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

Monitor mode debugging not working with IAR and s140 6.0.0-6alpha

Hello,

I followed the steps mentionned in this blog

I did all the required step but I'm still seeing the same behavior. below is my setup :

I'm using nRF52840 and s140 6.0.0-6 alpha. IAR 7.70.1 JLINK 5.22a SDK 14.0 (att_mtu_troughput) and SDK 14.2.0 (ble_app_blinky). nRF52840 dev kit board

I tried what was suggested in different questions asked before this but still not able to make it work.

-Increased the priority to 6 : NVIC_SetPriority(DebugMonitor_IRQn, 6ul). -Made sure I have DebugMon_Handler in both sides. -Removed CONFIG_GPIO_AS_PINRESET.

  • Chanegd "SetMonModeVTableAddr=0x1B000" to 0x2500 the start address of the s140 6.0.0-6alpha but the breakpoints wont work at all with this setup.

Not sure what might be wrong with my setup !!

any suggestions would very appreciated.

Thank you Chaabane

Parents
  • Ok, I understand now how you do it. But It is not working for me yet!

    • s140 version 5.0.0-2.alpha. it's the one found on SDK 14.2.0 ? I made sure to load the SD 5.0.0-2.alpha and the blinky example available in this SDK.
    • What address did you put on the SetMonModeVTableAddr in the macro file ? I tried 0x1B000 and 0x1C000. Not sure of the meaning of this address. the start of the softdevice or the user application !
    • To make sure I'm testing this correctly, here how I proceed : I do as you described above, then I connect to the module using the nRF Blinky app. and then put a break point on the entry of the switch (p_ble_evt->header.evt_id) in the ble_evt_handler function. In the nRF Blinky app I hit the "ON/OFF" button. If it is working I expect that the code doesn't jump to app_error_fault_handler, and will be able to keep debuggin the code, am I right ?
Reply
  • Ok, I understand now how you do it. But It is not working for me yet!

    • s140 version 5.0.0-2.alpha. it's the one found on SDK 14.2.0 ? I made sure to load the SD 5.0.0-2.alpha and the blinky example available in this SDK.
    • What address did you put on the SetMonModeVTableAddr in the macro file ? I tried 0x1B000 and 0x1C000. Not sure of the meaning of this address. the start of the softdevice or the user application !
    • To make sure I'm testing this correctly, here how I proceed : I do as you described above, then I connect to the module using the nRF Blinky app. and then put a break point on the entry of the switch (p_ble_evt->header.evt_id) in the ble_evt_handler function. In the nRF Blinky app I hit the "ON/OFF" button. If it is working I expect that the code doesn't jump to app_error_fault_handler, and will be able to keep debuggin the code, am I right ?
Children
No Data
Related