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.

TM4C1292NCPDT: 07/10/2017

Part Number: TM4C1292NCPDT

Hii,

I am doing a boot code from which two firmware images have to be executed. The boot code and the two firmware images have to be stored in flash memory. They are stored as shown in the  memorymap snippet.

A variable have to be stored in the flash memory in the common memory region as in the snippet and according to the variable a switching have to be done between firmware images. How can I store, update and read a variable in flash memory ? Also, I have to execute the firmware image from flash memory. I tried using the function (*((void (*)(void))(*(uint32_t *)0x00004000)))(); . Is it enough to execute from flash address?

I loaded the program to the evaluation board connected with a USB cable using LM flash programmer utility. When I loaded blinky.bin to 0x00000000 it worked. But when I loaded to 0x00004000 it did not work. What may be the reason? If I load a bin file initially to an address and if I again load a program to 0x00000000 will the program be retained in the address?

I loaded blinky.bin to 0x00004000 and then boot code to 0x00000000. I have to execute the blinky.bin from the boot code. I have done as shown in the snippet.

Am I in the right way? Please give me necessary advise.

Thanks & Regards

Sandra