Hi, I’m the Toradex AI Assistant. The Toradex Support team will follow up with you shortly!
Did you like my answer?
Based on the context provided, here are some steps you can take to troubleshoot the issue of no or garbage serial output from your ‘hello world’ program on the Colibri iMX8X evaluation board:
-
UART Configuration: Double-check the UART settings in your software to ensure they match the hardware configuration. This includes verifying the baud rate, data bits, stop bits, and parity settings. Mismatches in these settings can lead to garbage output or no output at all.
-
Pin Configuration: Re-validate the pin configuration to ensure that the correct pins are being used for TX and RX. Any misconfiguration in the pin assignments can lead to communication failures.
-
Overlay Application: Ensure that the overlay you applied is correctly configured. The overlay should set up the UART pins as intended. Review the overlay settings to make sure they align with the expected configurations for UART on the Colibri iMX8X.
-
Clock Frequency Changes: Consider reverting the
SDK_DEVICE_MAXIMUM_CPU_CLOCK_FREQUENCY
back to 400MHz from 266MHz. The change in clock frequency might be affecting the timing of the UART communication, leading to issues with the serial output. -
Software Configuration: If the hardware configuration is correct but the output is still garbage or absent, further investigate the software settings and UART initialization code. Ensure that the hello world program is correctly compiled and loaded onto the M4 core.
By following these recommendations, you should be able to identify and resolve the issue with the serial output. If the problem persists, further review of the software configuration and initialization code may be necessary.
Please, also check if these links can help you solve your problem:
Torizon serial communication issue while adding Colibri imx7d target to VS Code.