2.0.3 Compilation error "invalid option softdevice"

OK, I was able to find the cause of the problem.

Version 1.0.0 of the "Seeed nRF52 mbed-enabled Boards " platform did have a softdevice custom board option. Arduino IDE remembers the previously selected options for convenience so that you don't need to reconfigure the board every time you select it. Unfortunately, this causes a bug where Arduino IDE continues to try to use that option even after you update to a different version of a platform that doesn't have the option anymore. This is why you now get that error message when compiling.

I have submitted a formal bug report to the Arduino IDE developers:

I'll share the workaround you can use to get Arduino IDE working again:

  1. Select File > Quit from the Arduino IDE menus if it is running.

  2. Delete the following folder to clear the incorrect FQBN from Arduino IDE's data store:

    • If you are using Windows:
      C:\Users\<user name>\AppData\Roaming\arduino-ide
      
    • If you are using Linux:
      ~/.config/arduino-ide
      
    • If you are using macOS:
      ~/Library/Application Support/arduino-ide
      

    :warning: Please be very careful when deleting things from your computer. When in doubt, back up!

  3. Start Arduino IDE.

  4. Select the board again.

  5. Retry whatever operation that failed previously.

Deleting the C:\Users\<user name>\AppData\Roaming\arduino-ide folder will cause Arduino IDE to forget some convenience information like the board options you had selected before, and it will cause it to run some setup processes that normally only occur on the first run of a fresh installation, but no essential data is stored in that folder so you don't need to worry about this causing the loss of anything essential.


Please let me know if you have any questions or problems while following those instructions.

1 Like