Other Parts Discussed in Thread: SYSCONFIG
Tool/software:
Hello AM62x Champ !
We want to use the MCU_UART0 Port (pins B5 and B4) externally. Currently, these pins are connected to ttyS7. During boot-up, we see automatic messages printed via this port.
When we try to send data to this port using:
# stty -F /dev/ttyS7 115200 cs8 -cstopb -parenb -echo
# echo -n "FROM_AM62\r\n" > /dev/ttyS7
the data does not transmit correctly.
After investigation, we found that the UART is occupied by the MCU firmware running on the M4 core, so communication fails when MCU is active. When we stop the M4 MCU process via:
echo stop > /sys/class/remoteproc/remoteproc0/state
communication on ttyS7 works normally.
From this, it seems that only the M4 core (remoteproc0) is using the MCU resources.
Our questions are:
-
If we stop the remoteproc0 (M4) to use this UART externally, will there be any side effects on other MCU peripherals such as GPIO, I2C, etc. that the MCU firmware manages?
-
We have not modified the MCU firmware in the default base image. In this case, is it safe to disable MCU (M4 core) and use the UART externally without causing system issues?
-
If using the UART in this way is acceptable, can we permanently disable the M4 process (remoteproc0) to free the UART for our use?
We would appreciate your guidance regarding the impact of disabling the MCU M4 core on peripheral functionality and best practices for safely using MCU_UART0 externally on the AM6232 series.
Regards,
Jack