Other Parts Discussed in Thread: LMFLASHPROGRAMMER
Hi Folks,
I need some suggestions. I have two program files (.bin). Either I can use LMFlashProgrammer and run on my custom board with a TM4C123GH6PM chip setting the offset location to 0x0000.
For simplicity call them programA.bin and programB.bin
Using LMFlashProgrammer I can successfully put ProgramA @ 0x0 and ProgramB @ 0x20000 (128K location.) Both programs are very similar and created using CSS.
I would like to have Program A have the logic to load Program B at runtime. (Program B will act as if it were programmed at 0x0000 and the system was booting up fresh. Program B will not exit or return to Program A.)
Are there any function calls I can use for this? (Basically Run the .bin file loaded at 0x20000 location. I thought about calling 0x20001 from Program A, but I think there is overhead information at the beginning of the .bin file that will not execute. I need to look into this more.)
thanks much for any suggestions, links or examples. Note the binary is already in flash so I think trying to go the ROM Bootloader route is overkill.
Bob