This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

SDK blinky example with softdevice does not start on nRF52832


I am working with a ublox NINA-B1 based board. NINA-B1 uses the nRF52832. IDE is Segger. I followed the ublox instructions to create a custom board matching NINA based on the blinky/pca10040/s132 project (the nRF52832 DK, I believe).

However, when attempting to debug softdevice and application in the IDE, the debugger never gets to the entry point of main(). The processor seems to loop somewhere in the high address range for which the debugger cannot find any associated source code. I do not get any error messages in the debugger. The softdevice appears to be correctly loaded.

The blinky example without softdevice (called 'blank' in the SDK) works fine.

Does anyone have a pointer to help an nRF newby?

Thanks.

Parents
  • The bootloader resides in high flash addresses. And it compares the FLASH to a checksum that it genereated during DFU and wrote to a "special" page in bootloader space.

    This prevents you from "just" flashing a new app using a debugger, since the checksum won't match and thus the bootloader will not start the app.

    Workarounds:

    • Remove the bootloader by erasing all flash
    • Re-write the bootloader page with the correct CRC when debugging (in theory, have not actually tried that one)
    • Re-Write the bootloader page with a "don't care" CRC value
Reply
  • The bootloader resides in high flash addresses. And it compares the FLASH to a checksum that it genereated during DFU and wrote to a "special" page in bootloader space.

    This prevents you from "just" flashing a new app using a debugger, since the checksum won't match and thus the bootloader will not start the app.

    Workarounds:

    • Remove the bootloader by erasing all flash
    • Re-write the bootloader page with the correct CRC when debugging (in theory, have not actually tried that one)
    • Re-Write the bootloader page with a "don't care" CRC value
Children
Related