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.

TM4C123BH6ZRB: How to set stack pointer

Part Number: TM4C123BH6ZRB

Hi,

I've ported our bootloader to the TI hardware. The last step is to set the stack pointer before jumping into the application what usually can be done through some inline assembly like

void __set_MSP(uint32_t val)
{
    __asm volatile ("MSR msp, %0\n" : : "r" (val) : "sp");
}

However, using the TI v20.2.6.LTS compiler, there is no support for inline assembly. Is there a way to solve this?

Thanks for any suggestions

Best regards

Lothar