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.

dual rtos/bios image in flash

Other Parts Discussed in Thread: TM4C1233H6PM

Hi,

I would like to achieve the goal to put 2 bios-rtos/application image in flash. One golden image, and one upgrade-able image. While in regular working condition, the system boot/run on the upgradeable image. If in any case, the upgradeable image fail due to outage or whatever event. It can fall back to golden image. I wonder if anyone knows how to do that?

BIOS : ti-rtos 1.10

Hardware : TM4C1233H6PM

Regards,

sink.

  • Hi sink,

    A colleague recommended that you have a look at the Stellaris (bare metal) bootloader guide:

    http://www.ti.com/lit/ug/spmu134p/spmu134p.pdf

    You can use that as a reference on how to integrate a secondary bootloader into your application. That bootloader could be your “golden” application, whose sole purpose is to program a SYS/BIOS application if based on a certain condition.

    Steve

  • I knew this document. Actually, it's just the beginning of the problem. Ideally, the flash should be programming into

    Memory Map :

    ----------------------

    my boot loader, say 20K

    -----------------------

    golden Image, maybe 200K, begin from 20k+1 to 220K.

    -----------------------

    updateable image, for example, from 300k to 500k.

    -----------------------

    =========================

    I can do the custom boot loader part. But how do I put 2 BIOS/RTOS project (image) into  flash? 

    at this moment, each BIOS/RTOS has their main() function. I figure that I need to

    1. while each project, set their entrance point to 20K and 300k, for example. and the linker need to know the program will be load to 20k and 300k. (how to do that?).

    2. in CCS, .out file sometimes is 2MB. Which definitely is not the real binary that write to flash. where can I find the information about how the CCS load/launch the program.

    regards,

    sink.