This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

bootloader

Hello,
I have to create a bootloader on a luminary micro. To start, I have just written a little program with a timer and at the end of the timer it branches to the start line of an other program stored in the flash before. So the second program starts but it is an RTX program and it crashes at os_sys_init (init); function.
It seems that memory map with vector interruptions not working correctly.
Is someone can explain me how to link correctly these 2 programs and how remap IT vectors?
Thanks a lot
Ludovic

Parents
  • you did not specify the device you are using.
    if you are using an LPC24xx device, place

    RAM_INTVEC REMAP RAM_MODE
    


    in the define of the ASM tab of your application (NOT bootloader) project settings.
    If you are using a CM3 device, use the

    NVIC_SetVectorTable(NVIC_VectTab_FLASH, USER_FLASH_START);
    


    statement instead.

Reply
  • you did not specify the device you are using.
    if you are using an LPC24xx device, place

    RAM_INTVEC REMAP RAM_MODE
    


    in the define of the ASM tab of your application (NOT bootloader) project settings.
    If you are using a CM3 device, use the

    NVIC_SetVectorTable(NVIC_VectTab_FLASH, USER_FLASH_START);
    


    statement instead.

Children