We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hi
can i halt the cpu when i am at end of code? like this:
#endif (void)WDT1_Service(); __asm("WFI"); // Enable Debugging CoreDebug->DHCSR |= CoreDebug_DHCSR_C_DEBUGEN_Msk; // Halt the processor CoreDebug->DHCSR |= CoreDebug_DHCSR_C_HALT_Msk; for (;;) { } }
Are you describing semihosting? The default implementation of _sys_exit will stop on a breakpoint (HLT).