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.

Increase stack size for TM4C123GH6PM in Keil uVision 5

I've got a problem with the stack overflowing on my Tiva processor, mostly when using sprintf/vsprintf.

I'm trying to increase the size of the stack, but all the info I'm finding is for CCS - I'm using Keil uVision though due to a course requirement. I've looked all over uVision and can't  find where I'd adjust it.

Any assistance appreciated.

  • Hi Tom,

         You, can increase stack size at startup_rvmdk.S. See, below.

    ;******************************************************************************

    ;
    ; <o> Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>
    ;
    ;******************************************************************************
    Stack EQU 0x00000100

    ;******************************************************************************

    -kel

  • Thanks very much. That did it!

    Had some really odd bugs with a small stack, even allowing the code to be reachable (whether or not it actually executed) was causing problems.