I am relatively new to debugging with CCS. Can anyone relay to me how to define a breakpoint to break on a stack overflow? I can't quite figure it out.
Thanks,
Dustin
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
I am relatively new to debugging with CCS. Can anyone relay to me how to define a breakpoint to break on a stack overflow? I can't quite figure it out.
Thanks,
Dustin
Dustin,
Please take a look at this article: http://processors.wiki.ti.com/index.php/Checking_for_Stack_Overflow_using_Unified_Breakpoint_Manager
You did not mention which device you are using, but if it is MSP430, CCS4 also has a built-in option under View->Breakpoints, to set a Break on Stack overflow, which will cause program execution to stop on the instruction that caused the stack overflow. Details are in the CCS v4.2 Users Guide for MSP430, http://www.ti.com/lit/slau157 as well as the application note "Advanced Debugging using the Enhanced Emulation Module", http://www.ti.com/lit/slaa393
I am using CCS v4.2. I couldn't find the option "Break on Stack Overflow" from either debug window or breakpoint window. Any more suggestions?
Shuozhi Yang said:I am using CCS v4.2. I couldn't find the option "Break on Stack Overflow" from either debug window or breakpoint window. Any more suggestions?
If you are debugging a MSP430, the option "Break on Stack Overflow" is available in the breakpoint window.
The selections you see are dependent on the MSP430 device you are using. The capabilities of the emulation module differ per sub family of MSP430 devices hence the type of breakpoints available will be dependent on the device being used. I initially connected to a MSP430F5438 when I saw the longer selection of breakpoints, then I connected to a MSP430F2274 and saw the same breakpoints that you see.
Please check this application note and CCS 4.2 Users Guide for MSP430 for more details on emulation capabilities for each device family.
Aarti said:The selections you see are dependent on the MSP430 device you are using. The capabilities of the emulation module differ per sub family of MSP430 devices hence the type of breakpoints available will be dependent on the device being used. I initially connected to a MSP430F5438 when I saw the longer selection of breakpoints, then I connected to a MSP430F2274 and saw the same breakpoints that you see.
Please check this application note and CCS 4.2 Users Guide for MSP430 for more details on emulation capabilities for each device family.
This explains everything! Thank you so much!
I'm using the MSP430F2471 in the product datasheet page 2 it says "All MSP430 microcontrollers include an Embedded Emulation Module (EEM)". The app note linked to above refers to "Enhanced Emulation Module (EEM)".
Note the difference in enhanced vs. embedded. are the two documents refering to the same thing but definining the acronym differently, or refering to two different things that TI has kindly given the same acronym?
Michael Moore82146 said:are the two documents refering to the same thing but definining the acronym differently, or refering to two different things that TI has kindly given the same acronym?
They are referring to the same thing.