Hello
I am using the nrf51822_Beacon application and SDKv7.1.0. have a issue when sd_evt_get function start executing, after imitatively program counter reach into HardFault_handler, it can not come outside the sd_evt_get().
Hello
I am using the nrf51822_Beacon application and SDKv7.1.0. have a issue when sd_evt_get function start executing, after imitatively program counter reach into HardFault_handler, it can not come outside the sd_evt_get().
Hi Rk menat,
Do you have any modification to the code? Do you have the same issue when running normally (not in debug mode ? )
Do you have the same issue when trying with other example ? Which softdevice did you use ?
hi Hung Bui,
Yes i modified the code for advertise functionality. it happen when in debug mode and not in normal mode(modified functionality will work fine).
Hi Rk Menat,
When you add a break point and halt the CPU, other peripheral that the stack uses(timer, RTC, PPI, radio) still work and when you call a softdevice API, most likely you will receive a hardfault because the stack already crash.
For debugging you can use UART or Segger RTT to printout the trace.
Hi Hung Bui,
what is the right way for one step debug ?
Hi RK Menat, You can debug as long as you don't call further sd_* API. The BLE connectivity will be broken anyway if you add a break point (because the softdevice stops). It's suggested to use UART or Segger RTT to printout debug trace or you can add a breakpoint and step until another sd_* API call.