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.

Jump to App from custom bootloader

Hi,

I am working on a boot loader for DM6437. The idea is to create 2 independent firmware that one will update another. In firmware1 i will download firmware2 file and write it to NOR flash in a specified address .Both firmware is stored in NOR flash in ais format. Now i have in flash two applications. one is my Custom boot loader and the second one is my main project. i want to know how can i jump from the first program to the second program located in a specified address. I also expect information about  documents which helps to create custom bootloader

If someone can help me to jump it will be great.

Thanks

Shihab

  • Shihab,

    This is not completely clear. Is Firmware1 the same as Custom bootloader and Firmware2 is the same as main project? Or are both the bootloader and main project duplicated entirely within Firmware1 and Firmware2?

    If the Custom boot loader is reading from one of the FirmwareN sets in AIS format, then the last AIS command will be the JUMP Close Command with an entry point value, right? Will that not take care of it for you?

    This is described in the DM643x Bootloader App Note, SPRAAG0.

    Regards,
    RandyP

  • Hi RandyP,

    Thanks for your replay.My idea is to create Firmware1 as Custom bootloader and Firmware2 as main project. 

    I am newbie to bootloaders so i need some more clarification about the implementation of bootloader. 

    My custom bootloader need to work as follows.

    1. Check for software update available at UART
    2. If available , save Firmware2 to NOR flash at a specified address in ais format
    3. Check for availability of valid  Firmware2  in specified address
    4. if available , jumb to  Firmware2  ,otherwise wait for software update

    Among this i can do the first 3 steps. for doing step 4 ,i need following information

    • What are the steps need to do for loading firmware2 ?
    • Do we need to implement functionality in custom boot loader for  copying entire firmware2 to RAM?, if so in which address , they need to be loaded?
    • Is there any sample code /document describing booting process in custom boot loader

    Thanks 

     Shihab

  • Shihab,

    I would start with the App Note I mentioned above. After that, search this forum for discussions others have had about this. And you can search TI.com and the TI Wiki Pages for similar discussions for other devices (I am not sure there would be a specific custom bootloader discussion for the DM6437).

    Regards,
    RandyP

  • Hi RandyP,

    Thanks for your suggestions. It helped me a lot. I found a sample boot loader project in C6748_StarterWare. I think this will be enough for solving my current doubts.

    Regards,

    Shihab