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 and Satterload files

Hi, I´ve inherited some code writen for a STR755FR2, and the program was *supposed* to do bootloading.

However, i´ve found out that the program does not upgrade in application, and the only mean to upgrade the code is to use the JTAG.

It receives the image of the new version, and stores on an external flash memory, but does not load the image into the program memory after the download, so now I will have to write a piece of code to do so.

I´ve read the STR755 datasheet, and found out that in order to write over the flash, it is required to erase the flash first, and by doing so, my program will fail to run, but i´ve also find out that it´s possible to erase just some sector of the flash and write over them, so my idea is to write a piece of code that will be called after the download of the new image, to retreive the image at the external flash and write on the program area.

This piece of code will be insolated at a sector of the flash memory dedicated to it, and that will not be erased during the writing process.

My problem is to load the objects at the required memory area. I tried to do it by creating an memory area at 0x20030000-0x20040000, calling it ROM3 and assigning the objects to this area, however the linker fail to do this. I want to know how can a I load the object th this particular area.

Thanx.

0