I am using Keil and nrf52 dev kit to write some UART over BLE code if I set a break-point in nus_data_handler() it cause a reset to run soon after stepping though some code and the BLE radio starts advertising even though I am stepping through code.
I am using Keil and nrf52 dev kit to write some UART over BLE code if I set a break-point in nus_data_handler() it cause a reset to run soon after stepping though some code and the BLE radio starts advertising even though I am stepping through code.
The SoftDevice will hardfault if you halt the CPU, the hardfault handler will reset the MCU.
I suggest you try Monitor Mode Debugging: https://github.com/NordicPlayground/j-link-monitoring-mode-debugging.
Can you do this with nrf52 S112 chip? I may be doing a project based on that as well but still up in the air....
This is great thanks so much!! I will try it within a few days.....
Yeah, it's a debugging feature made by ARM or Segger and it will work on any Cortex-M series CPU.
Yeah, it's a debugging feature made by ARM or Segger and it will work on any Cortex-M series CPU.
it's a debugging feature made by ARM or Segger
It relies upon standard features of the ARM Cortex-M architecture but, AFAIK, Segger is the only one to have an implementation that uses it:
https://community.st.com/s/question/0D50X00009nNQQnSAO/monitor-mode-debug-mmd-
will work on any Cortex-M series CPU
Not on Cortex-M0 - so not on nRF51