Error upgrading firmware

Hi, I have a Cyton board purchased in October 2016 which works fine with both OpenBCI and OpenVibe software. Tried to upgrade the firmware from Arduine IDE 1.8.5 following the instructions; the upload fails with exit error 255. I have installed all the libraries, the board is in boatloader mode with the blue LED blinking, I can select the COM port but the upload always fails. Any thoughts?

Comments

  • I am having the same problem. Did you ever find a solution?
  • No, haven't found a solution yet. Tried a couple of more times, same "exit status 255" error.
  • wjcroftwjcroft Mount Shasta, CA
    Did you look through these other threads?


    Is the 255 error coming at compile time or upload? Post a few of the lines that precede the error message.
  • Yes, I checked the other threads, but could not find anything similar. The error happens at compiling time. Here are the last lines of the full error message:

    Arduino: 1.8.5 (Windows 10), Board: "OpenBCI 32"

    Compiling sketch...

    In file included from D:\...\Documents\Arduino\libraries\OpenBCI_32bit_Library\examples\DefaultBoard\DefaultBoard.ino:3:0:

    C:\Users\...\AppData\Local\Arduino15\packages\chipKIT\hardware\pic32\2.0.3\libraries\EEPROM/EEPROM.h:
    In member function 'uint16_t EEPROMClass::length()':

    C:\Users\...\AppData\Local\Arduino15\packages\chipKIT\hardware\pic32\2.0.3\libraries\EEPROM/EEPROM.h:127:51: error: 'E2END' was not declared in this scope

         uint16_t length()                    { return E2END + 1; }

                                                       ^

    Using library DSPI in folder: C:\Users\...\AppData\Local\Arduino15\packages\chipKIT\hardware\pic32\2.0.3\libraries\DSPI (legacy)
    Using library OpenBCI_32bit_SD at version 2.0.0 in folder: D:\...\Documents\Arduino\libraries\OpenBCI_32bit_SD
    Using library EEPROM in folder: C:\Users\...\AppData\Local\Arduino15\packages\chipKIT\hardware\pic32\2.0.3\libraries\EEPROM (legacy)
    Using library OpenBCI_Wifi_Master at version 1.0.1 in folder: D:\...\Documents\Arduino\libraries\OpenBCI_Wifi_Master
    Using library OpenBCI_32bit_Library at version 3.1.1 in folder: D:\...\Documents\Arduino\libraries\OpenBCI_32bit_Library
    exit status 255
    Error compiling for board OpenBCI 32.

    It appears that there is an undeclared variable in EEPROM.h of the chipKit core firmware. I am using Arduine IDE 1.8.5.
  • wjcroftwjcroft Mount Shasta, CA
    This is the fix listed in the search link I gave earlier,


    Regards,

    William

  • You are obviously right and I totally missed it. Will define the variable in the EEPROM.h file and will try again to flash the firmware. Thank you and apologize for not doing my homework properly.
  • It worked fine. As suggested by dmontezano in the other thread, I added a the line #define E2END 0x0fff in the EEPROM.h file found in the C:\Users\(User NAME)\AppData\Local\Arduino15\packages\chipKIT\hardware\pic32\2.0.3\libraries\EEPROM folder. The firmware flashed correctly. Thanks again.
Sign In or Register to comment.