Hello Team
I was able to run the LED blink example on R5_0_0 core through Linux using remoteproc commands.
For this I used mcu_plus_sdk_am64x_09_01_00_41 SDK. In addition to the steps mentioned in the https://dev.ti.com/tirex/explore/node?node=A__Acm3ikTTJ1WqHgJWiJz0tA__AM64-ACADEMY__WI1KRXP__LATEST page.
I am running all the commands from /lib/firmware folder. I had to do following steps:
a. Delete existing .out (if any of same name) in the folder.
b. Copy the latest .out to the working folder
c. Find the out the remoteproc core number using the head /sys/class/remoteproc/remoteproc*/name command. It was remoteproc1 in this case for R5_0_0.
d. Update symbolic link using ln -sf gpio_led_blink.out am64-main-r5f0_0-fw command
e. run command echo gpio_led_blink.out > /sys/class/remoteproc/remoteproc1/firmware
f. run command echo start > /sys/class/remoteproc/remoteproc1/state
Note: If the start does not work (which happened for me as the led blink program started running automatically on every restart). I deleted the .out and am64-main-r5f0_0-fw files from /lib/firmware folder
then rebooted the device and executed above commands in sequence. And that worked.
The linker file was updated as per the instructions mentioned in the YouTube video https://www.youtube.com/watch?v=VuJLyO5R2yM. See the steps below:
Step 4 may not be needed as I was able to run the .out file with & without stripping.
I have following questions:
a. I was not able to run the led blink example compiled in mcu_plus_sdk_am64x_09_00_00_35. I had done all the changes which were done in above working project except the linker file was created based on instructions from dev.ti.com/.../node. I am attaching the linker files below. I believe there is something to do with the linker file. Can you go through both linker file and let me know?
b. What is the importance of armstrip command. What does it exactly do?
c. After reboot now the program starts automatically on the R5 core. Is to possible to start the execution only when remoteproc command is executed?
Thanks
Amey
PS: Attaching linker file as separate message as I was facing issue with the upload