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

Debugging in nRF51422

Hi all, I am in the process of debugging the ANT broadcast_tx example program using Keil on nRF51422. I have flashed the program on nRF51422. After entering the debugging mode and doing a line by line execution process i am stuck in the step where the CPU is put in the sleep mode During this time only LED1 is turned on and LED0 is turned off.

How to proceed to make the broadcast packet data to be transmitted and see it in theANT emulator being incremented. Please let me know on how to proceed and make the LED 0 glows for 20 msec as per code after first packet transmission. Line of code:

err_code = sd_app_event_wait();

Thank you.

Parents
  • You can't do step-by-step debugging while the softdevice is running, since the softdevice doesn't get to run its interrupts when the MCU is halted on a breakpoint. You can however step your application code by setting the PRIMASK register to 1.

    Take a look at this question for details.

Reply
  • You can't do step-by-step debugging while the softdevice is running, since the softdevice doesn't get to run its interrupts when the MCU is halted on a breakpoint. You can however step your application code by setting the PRIMASK register to 1.

    Take a look at this question for details.

Children
No Data