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

FW doesn't run after being flashed with Crossworks

I'm currently using CrossStudio as IDE. I've no problem in compiling and downloading the application in the nRF52832 microcontroller. However the application wouldn't start automatically after a download. Only if I disconnect the debugger from CrossStudio and power cycle the board, then the application run smoothly. A similar thing happens while debugging. If I make the debugger executing all the BLE initialisation code by running in one go to a code line placed after all the initialisation, the application has no problem and I can debug it step by step. Instead, If I step through the softdevice initialisation code, after a while I get a softdevice assert and the fault handler gets executed.

Any idea why this is happening?

Thanks

Parents
  • Only if I disconnect the debugger from CrossStudio and power cycle the board then the application run smoothly.

    Try to see if there are some settings in the Debugger that halts the CPU after flashing.

    If I make the debugger executing all the BLE initialisation code by running in one go to a code line placed after all the initialisation, the application has no problem and I can debug it step by step. Instead, If I step through the softdevice initialisation code, after a while I get a softdevice assert and the fault handler gets executed.

    Debugging your application by stepping through the code causes softdevice asserts. This is very well discussed in forum. Some topics are listed in the link below.
    PRIMASK

  • Sorry no, I cannot upload the code. Anyway, my colleagues are experiencing the same issue with different source code, which means this is not a code related problem, but rather a IDE related problem.

Reply Children
No Data
Related