Tool/software: Code Composer Studio
Hi,
I'm using TM4C1230E6PM for one of my projects. My code execution gets stopped as soon as the MCU enters While(1) loop.
Is this issue related to stack size allotted? what is the solution?
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.
Tool/software: Code Composer Studio
Hi,
I'm using TM4C1230E6PM for one of my projects. My code execution gets stopped as soon as the MCU enters While(1) loop.
Is this issue related to stack size allotted? what is the solution?
Hello Ansul,
Did you hit the pause button for the debugger manually or did it automatically stop?
If it automatically stopped, how did you ascertain it is when it hit the while(1) loop?
If you hit pause manually, it could be that the code was accessing a library function and the source code is not available.
The disassembly would indicate that is what happened as it seems to be in a driverlib function.
You may need to use breakpoints in your code to debug instead because that will stop the code execution before getting into the library functions. Or you could remove driverlib.lib and manually add the driverlib files to your product so that the IDE can pause in the library source code.
Hello Ansul,
There seems to be a warning on one of the lines, can you explain what that warning is? Seems like it might be related.
Nothing there is TM4C related (no peripheral related APIs) so I would guess that it is a C issue and I might not be able to help as much beyond with my coding experience...
Can you get to Line 148 where the TimerEnable is being called?
Edit: Sorry, didn't mean to hit TI thinks resolved, my mistake.