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.

CCS/TM4C1230E6PM: Code execution stopped

Part Number: TM4C1230E6PM

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?

Images for reference

  • 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.

  • Hi Raph,

    I was doing a step by step debug. the code worked well till line 139. As soon as it reaches line 143, mcu hangs (code execution stopped). Now if I press the pause button it shows me the above message. Have look at the image for details

  • 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.

  • Hi Ralph,

    problem solved. I increased the heap size.