Hi guys,
I'm using F28335 MCU with "Jump To Flash" Boot mode and I would like to be able to perform a firware update. I already learned how to write the image into Flash using FlashAPI and read it back into a file on the host (I'm using CAN for communucation).
If I program my Flash using CCS menu Tools->F28xx On-Chip Flash Programmer, then read Flash Sectors A and D using FlashAPI, transmit that data to the host and save into file I'll get a loadable image. Now I want to be able to create this image directly from my .out COFF file.
What I need to know is how does CCS create a loadable image from the COFF file? I'm guessing it uses hex2000.exe with -b option, but I tried that and failed. I'm able to create an image, but it's invalid. I can see that because the complete Sector A in my image file is empty (0xFFFF).
The command file I tried is:
./2833x_FLASH/prog.out
-b
-image
-boot
-fill 0xFFFF
-memwidth 16
ROMS
{
FLASHD : origin = 0x320000, length = 0x7FFF, files = { sectD.bin }
FLASHA : origin = 0x338000, length = 0x7FFF, files = { sectA.bin }
}
I would appreciate any help.
Thanks,
Suren.