Other Parts Discussed in Thread: SYSCONFIG, AM62P
Tool/software:
Hi,ti experts
mcu has such an upgrade scenario, the new software is saved in the sd card,the old mcu program is saved in flash, and the mcu needs to be upgraded.
The first solution is to put the new version of mcu program into SD, when the opsi mode is used to power on and start mcu, after starting linux, mcu can directly access the sd card, read the new mcu version and copy the data to flash, and then read the new mcu program from the new flash position and load the memory when ospi is started next time. Realize mcu software upgrade.
a1. Is this plan feasible?
a2. Can mcu directly access SD, read and write sd card?
a3. Can the mcu read and write flash?
a4.sd card stores the linux image. Follow this link to complete the operation. If the mcu needs to read the SD card, does the SD card need to be set up?
Writing the WIC Image to SD Card
dev.ti.com/.../node rue
a5. If this solution is possible, what is the format of saving programs in sd card?
a6. How do I save the mcu program to the corresponding address in the sd card, because the read from the sd card is read from the corresponding Block, so how do I write the file to the corresponding address, and how do I convert this address to Block to start reading data from
I am now burning through the serial port, mcu program file format is hs_fs.
b1. I have checked the sdk of mcu, flash and sd card can only be accessed by wkup domain for r5f processor, while mcu domain cannot be accessed. Can mcu domain read and write sd card and flash?
So the second option is ospi boot, wkup boot, mcu boot, then linux boot, then wkup program to access the sd card, read the data from the corresponding location, and then copy to flash, and then the next boot mcu from the new flash address boot. Is it feasible to complete the mcu upgrade? If so, what kind of file format should be used to save the mcu program to the sd card? Now, how should the mcu program file be stored to the corresponding position in sd in order to be read by the wkup program?
b2. Is the data of type uint_8 read? Can I save it as an int array and then write the contents of the array to flash?
The third scheme is ospi start, wkup start, mcu start, linux start, linux read the sd card file, and then directly write to flash.
c1. Can linux operate the sd card? How should the program file be saved to the corresponding position of the sd card? Can linux read the file directly?
c2. Can linux operate flash?
The fourth scheme is ospi start, wkup start, mcu start, linux start, linux read the file of sd card, linux send the data to wkup through rpmsg, wkup save the data to flash.
d1. Is this solution feasible?
This solution also involves the format of the program file saved to the sd card, and how to save it to the desired location of the sd card.
e1.The above scheme does not involve low-power mode, so the wkup domain can execute applications just like the mcu domain, right?
f1.Another question is if the mcu uses the uds upgrade, can the mcu save the data received by the uds into the flash?
The above mentioned content has the corresponding demo, including the linux application demo and the r5f processor application.
Thank you for your reply.