Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs
This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Need to "Erase All" before I can run project without crashing.

Hi all,

I'm working on a project in SDK 5 (V17.0.2) on a custom board using a raytac nrf52840 module. IDE is segger embedded studio with a J-Link interface to the hardware.

The project has been going for a while and the code has been in a reasonably stable state.

Just recently the project has gone into a "phase" where I cannot reload new code unless I first "Erase All" flash. This is a new situation, previously I could happily reload code and continue debugging.

Now, if I write new code (or even stop and restart without code changes) and try to run in debug mode without "Erase All", the code hangs in drv_rtc_init()  at NVIC_EnableIRQ(RTC1_IRQn)

I have 2 timers running under app_timer - nothing has really changed there between when it was working normally and now.

If anyone has any ideas, it would be much appreciated.

Regards,

Carl Kamper.

Parents
  • So, to close the loop. I managed to get to the bottom of the problem & it wasn't software related at all.

    When spinning up a new board, I set my bench power supply to a reasonable current limit to stop possible destruction.

    At the current limit that I had chosen, and when the relay was operated, I'm guessing the voltage took a dive due to the current limit and corrupted something.

    Weird effect that became even weirder when I moved the relay control away from TraceData(3) and on to another pin .. at least the effect was more pronounced and led me to the realisation.

    Thanks for looking into the issue Edvin.

    Reagrds,

    Carl.

Reply
  • So, to close the loop. I managed to get to the bottom of the problem & it wasn't software related at all.

    When spinning up a new board, I set my bench power supply to a reasonable current limit to stop possible destruction.

    At the current limit that I had chosen, and when the relay was operated, I'm guessing the voltage took a dive due to the current limit and corrupted something.

    Weird effect that became even weirder when I moved the relay control away from TraceData(3) and on to another pin .. at least the effect was more pronounced and led me to the realisation.

    Thanks for looking into the issue Edvin.

    Reagrds,

    Carl.

Children
No Data
Related