Part Number: TMS320F28069F
I have finally got the SPI routines to work, where I can write/read data from the external SPI flash device. The idea is to read a new image (NewImage.hex) from a USB drive, and then copy that data into the SPI flash. Once copied, I would reset myself, and have the CurImage.hex detect that there is a new image on the SPI flash, execute a copy function from RAM to copy the data out of SPI flash and over-write CurImage.hex.
Once I have written NewImage.hex over the CurImage.hex, the device will reset and start executing NewImage.hex.
How do I do this?
I want everything to be integrated into one image, so I don't have the luxury have having a SecondaryBoot image, etc (as referenced in
).
How do I do the following:
a) specify the SPI read function to live in RAM
b) copy the image from SPI flash to overwrite the existing image (do I have to use the SCI method, or is there a quicker method to replace the internal flash image)?
c) reset the code so that NewImage.hex can run (simply jump to 0x0?)?