Hi,
Taking as an example the "String Echo FreeRTOS RTOS API Demo". VS Code/MCUXpresso
If I start the debugger (launch) at uboot then all works fine but rebooting the linux side every time is a bit of a pain.
If the debugger (launch) is started after boot then rpmsg_lite_wait_for_link_up() will always hang.
The only way round this I have found is to scp the elf file to the board and then attach the debugger to the board after doing:
echo stop > /sys/devices/platform/imx8mp-cm7/remoteproc/remoteproc0/state
echo debugme.elf > /sys/devices/platform/imx8mp-echo start > /sys/devices/platform/imx8mp-cm7/remoteproc/remoteproc0/state
cat /sys/devices/platform/imx8mp-cm7/remoteproc/remoteproc0/state
Is it meant to be like this or is there a trick to get over this and stick to the JTAG programming without using remoteproc?
Thanks
Andy