Unable to read data and "Read page failed" on flash
Hello,
I am unable to read from my OpenBCI 32bit. For example, this is the message i get when running the user.py script from OpenBCI's repo:
--> b
% OpenBCI V3 16 channel
% On Board ADS1299 Device ID: 0x3E
% LIS3DH Device ID: 0x33
% $$$updating channel settings to default
Traceback (most recent call last):
File "user.py", line 236, in <module>
c = board.ser.read().decode('utf-8')
File "/Users/Pedro/anaconda/lib/python2.7/encodings/utf_8.py", line 16, in decode
return codecs.utf_8_decode(input, errors, True)
UnicodeDecodeError: 'utf8' codec can't decode byte 0xa0 in position 0: invalid start byte
Closing Serial...
WARNING:root:serial closed
Deactivating Plugins...
User.py exiting...
I thought it might be a firmware issue, so I decided to flash it, however:
Programmer for Microchip PIC32 microcontrollers, Version 2.0.180
Copyright: (C) 2011-2015 Serge Vakulenko
Adapter: STK500v2 Bootloader
Program area: 1d000000-1d1fffff
Processor: Bootloader
Flash memory: 2048 kbytes
Boot memory: 80 kbytes
Data: 96368 bytes
Erase: done
Program flash: ................................................################################################# done
Verify flash: ................................................##Read page failed.
I fear the board might be damaged. Any thoughts ?
Thank you,
Pedro
Comments
Before reflashing the mainboard, did you try running the OpenBCI_GUI as outlined in the tutorial doc? Your Python problem was probably NOT a hardware issue.
http://docs.openbci.com/tutorials/01-GettingStarted#getting-started-w-openbci-iv-connect-to-your-openbci-board-from-the-gui
Did your reflash use these instructions?
http://docs.openbci.com/tutorials/02-Upload_Code_to_OpenBCI_Board
William
http://openbci.com/forum/index.php?p=/discussion/208/chipkit-uploading-tips-restarting-bootloader
Once you get the board reflashed, the OpenBCI_GUI will confirm your setup is working.