Bootloader RTX jump RTX app

Hello !

I am working on bootloader application using RTX on mdk 5.

The bootloader load the user application using Ethernet communication and proceed to the jump after a reset.

When i use an simple blinky example and modify the BCA, the jump WORKS WELL !

BUT If I use an RTX application, the jump don't works.

I used the bootloader's vendor (without RTX) the jump to my RTX application works..

I suspect that RTX application erased some thing at initialization

Some one already seen that before

Board used : FRDM K64F

IDE : mdk 5

Parents
  • Had the same issue.

    // top of src

    __asm void Jump_To_Application (uint32_t AppAddr)
    {
    LDR SP, [R0]
    LDR PC, [R0, #4]
    }

    // At your jump

    SysTick->CTRL &= ~0x00000002;
    SCB->VTOR = 0x1C000000;
    LPC_CREG->M3MEMMAP = (uint32_t) 0x1C000000;
    __set_CONTROL(0x00000000);
    Jump_To_Application(0x1C000000);

Reply
  • Had the same issue.

    // top of src

    __asm void Jump_To_Application (uint32_t AppAddr)
    {
    LDR SP, [R0]
    LDR PC, [R0, #4]
    }

    // At your jump

    SysTick->CTRL &= ~0x00000002;
    SCB->VTOR = 0x1C000000;
    LPC_CREG->M3MEMMAP = (uint32_t) 0x1C000000;
    __set_CONTROL(0x00000000);
    Jump_To_Application(0x1C000000);

Children
More questions in this forum