![]() ![]() Press Button 1 and LED1 will still be toggled! Or set a break point in the while loop and notice the LED still toggles.How to make MMD work in any applicationAdd the monitor mode debug files to your project (JLINK_MONITOR_ISR_SES.s, JLINK_MONITOR.c,h).Make sure 'DebugMon_Handler' system interrupt is defined in your startup file after 'SVC_HANDLER.'In project properties under "Debugger -> J-Link Options" enter the command 'SetMonModeDebug = 1' in the "Execute J-Link Commands on Connect." This tells the J-Link FW running on the development kit MMD will be used.At the top of main.c add ' NVIC_SetPriority(DebugMonitor_IRQn, 3ul) ' to be the lowest priority possible (3 on nRF51, 7 on nRF52).Monitor Mode Debugging is supported in SEGGER Embedded Studio, Keil uVision and IAR. At the top of main.c you may have to change the pins the led
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |