I've cross compiled m4ctrl and m4ctrl_dev.ko.
After inserting the kernel module, I'm trying to deploy the hello_world_TCM.bin binary on the M4 using:
root@imx8qxpmek:~# ./m4ctrl --deploy hello_world_TCM.bin
Stop cortex M4, core 0
ioctl: Input/output error
dmesg:
[ 243.730740] stoping the core M0
[ 243.730862] pwroff the core M0
On the serial console (attached to the M4), I see this:
#################### CODEC SRTM DEMO ####################
Build Time: Mar 25 2019--15:31:14
##########################################################
Press 'r' to do M4 partition reset
Is this printed by code running on the M4?
Any idea why I'm getting ioctl: Input/output error when trying to run m4ctrl --deploy?