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.
I'm implementing a firmware update method for our device.
The device consists of a SOM module running Linux which talks to a F280049C via SPI bus.
The plan is to send a 'go-to-firmware-update' command to the F280049C firmware
via the SPI bus. The firmware will then stop all other code except the SPI
communication which runs from RAM and enter a loop where it receiver
the new Flash contents via the SPI and programs the Flash as the data
comes available and finally issue a reset.
I've tested the FlashAPI and it works for me.
I can run the SPI code from RAM and enter into a wait for data loop.
I intend to convert the firmware.out into an ASCII hex file using hex2000
and write some code for the Linux side to send that over the SPI bus.
So far this seems like plan, right?
But I now started to think, maybe I'm re-inventing the wheel.
Could I do this using the SPI boot mode ?
This would mean I haveto turn the Linux SPI master into slave,
create some sort of kernel to upload via SPI which kernel
would receive he the Flash contents and program the Flash.
Could I utilise some code from the
serial_flash_programmer the source code of which is available?
With my current approach I have the advantage that I'm
working with my known SPI traffic and protocol at both ends
all the time and I can code and test everything without
playing with the boot mode and uploading kernels etc.
All ideas or comments would be welcome.
Hi Kustaa,
The serial flash programmer is designed for the SCI peripheral, the source code can be found in C2000Ware_4_01_00_00\utilities\flash_programmers\serial_flash_programmer.
The SPI bootmode if selected will interface with the host and download the code into its RAM and continue execution from there. The image should be in proper format expected and can be generated using the hex2000 tool
Best regards,
Pawan
Hi Kustaa,
Does this help you with your query. Can we close this thread
Thanks and regards,
Pawan