Tool/software:
Hi,
I am using ipc_rpmsg_echo_linux (M4 and R5F firmware - mcu_plus_sdk_am62x_09_02_01_06) and I followed the commands in this link, I executed the following:
echo enabled > /sys/bus/platform/devices/5000000.m4fss/power/wakeup
echo mem > /sys/power/state
The MCU_UART was printing:
[IPC RPMSG ECHO] Suspend request to MCU-only mode received
[IPC RPMSG ECHO] Press a sinlge key on this terminal to resume the kernel from MCU only mode
Then, I recompiled the M4 firmware after adding the code below (next to 'Press a sinlge key on this terminal to resume the kernel from MCU only mode' in the code)
while(1) { DebugP_log("loop here... \r\n"); }
When I put the device in MCU Only, I saw the 'loop here...' messages in the MCU debug uart. But, after the linux prints the messages below, the M4 firmware also stops printing the 'loop here' messages.
[ 22.658942] Freezing remaining freezable tasks completed (elapsed 0.001 seconds)
[ 22.666403] printk: Suspending console(s) (use no_console_suspend to debug)
Then, I tried to toggle an "MCU Domain Peripherals" GPIO. In normal operation, I saw the gpio toggling. But, when I put the device in MCU only, I did not see any toggling activity.
According to this sprad41.pdf the MCU should be supported.
Any idea why the M4 firmware behavior is different?
Thanks,
John