Quantcast
Channel: MSP low-power microcontrollers
Viewing all articles
Browse latest Browse all 64947

Forum Post: RE: new update of code composer halt the program with exit.c file

$
0
0
[quote user="Khanh Nguyen34"]This is code for my program, wherever i clicked resume when debugging, exit.c file opened by itsel[/quote]CCS sets a breakpoint on the exit() function, where exit() will be called if either: The main function returns The program is terminated upon detecting an error (used in SYS/BIOS programs) The example program returns from main which explains the behavior. It you make main() run continuously, by adding a continuous loop, then will not stop when you click resume: void main(void) { WDTCTL = WDTPW | WDTHOLD; // Stop watchdog timer P1DIR = 0X0020; P1OUT = 0X0020; for (;;) { } }

Viewing all articles
Browse latest Browse all 64947

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>