A day ago my builds for the nRF52832 started failing without code changes with the following error:
C:\.platformio\packages\framework-arduinoadafruitnrf52\libraries\Adafruit_nRFCrypto\src\Adafruit_nRFCrypto.cpp:36:4: error: #error CryptoCell CC310 is not supported on this board #error CryptoCell CC310 is not supported on this board ^~~~~ *** [.pio\build\adafruit_feather_nrf52832\libd32\Adafruit_nRFCrypto\Adafruit_nRFCrypto.cpp.o] Error 1
I tried the same with ArduinoIDE and it built without issues but also fails on a fresh install of Visual Studio Code and PlatformIO extension for it. So I guess it was caused by some automatic platformio-specific library or configuration update.
In this issue-thread I tried to track the issue and provide a minimal code sample: https://github.com/adafruit/Adafruit_nRF52_Arduino/issues/737
To summarize: As soon as you include bluefruit.h , the build fails because it wants for the macro NRF_CRYPTOCELL to be defined for some reason with the above message. When looking for this macro, it is defined in the nrf52840.h headerfile (in
C:\.platformio\packages\framework-arduinoadafruitnrf52\cores\nRF5\nordic\nrfx\mdk ). An analogous file does NOT (or no longer?) exist for the nrf52832 (only a *_periphals.h).
I would be grateful if someone had a pointer why this error occurs exactly now (after no explicit change) or where I can go to look for changelogs/commits that potentially caused the deletion of an nrf52832.h ? Anyway, all help to fix this problem is greatly appreciated! Thanks in advance.