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.

TM4C123GH6PM: crash in debug session

Part Number: TM4C123GH6PM

The TI board crashed when it is:

in the debug session then the reset button was pressed. after that, the memory 1 tab is clicked from other tab or double click on it (try to access the memory)

The board later can be fixed using LM flash programmer but I would like to avoid the crash

Please advise on this matter.

thank you

  • Hi

    What program code is running on the board? Most of the time, the device will crash if it tries to access a peripheral that is not yet enabled. The device can also crash if there is not enough memory stack or heap if you use dynamic memory. Check those things first and most of the time it will resolve the issue. 

  • The Code:

    EXPORT Start

    AREA prog2, CODE, READONLY

    Start 

             ENTRY

             MOV r4, #10

             MOV r5, #1

    loop 

             CMP r4, #0

             MULGT r5, r4, r5

             SUBGT r4, r4, #1

             BGT loop

    stop   B stop

             END

    I'm using keil. the condition:

    1. it is in debug session

    2. it is not RUN.

    3. reset button is pressed once.

    4. I can wait for few minutes but it will crash once the memory is accessed

    thank you for the reply

  • 4. I can wait for few minutes but it will crash once the memory is accessed

    thank you for the reply

    Hi,

      I can't decipher what your assembly code is doing in regards to the the crashing. As I mentioned before, if your program will crash after a few minutes, then it is very likely you don't have enough memory stack or heap. Try to increase them and see if that makes a difference. 

      This app note is very helpful to diagnose the the faults. https://www.ti.com/lit/pdf/spma043