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: bootloader, jump, boot, loader, boot loader

Part Number: TM4C123GH6PM


I need help please, the boot loader does not jump to the location of the app, the compiler is IAR.

the boot of the app is 0x0000

the address of the appis 0x1000

function call app

void app(uint32_t ui32StartAddr)
{
IntDisable();
SysTickIntDisable();
SysTickDisable();
//IntMasterEnable();
//SysTickDisable();

HWREG(NVIC_VTABLE) =0x1000;//app_vector;

__asm(" ldr r1, [r0]\n"
" mov sp, r1\n");

__asm(" ldr r0, [r0, #0x4]\n"
" bx r0\n");

}

  • Hello Emmanuel,

    I am not sure what you are trying to achieve with the assembly calls but you should be referencing the bootloader examples in TivaWare which handle all of this for you if properly configured.

    I can point you to a specific example if you inform on what bootloader you are wanting to use.