[i.MX 8QM - hardware implementation] Debug port and SoM programmation on USB

Hi,

I’m making a carrier board with the Apalis iMX8 8QM and I would like to have your help for the following questions regarding hardware implementation:

  1. I’d like to confirm with you which pins to use for debugging via UART, I’ve heard of dedicated pins?

  2. Also, is it possible to program the board via USB? Which USB port should I use, I imagine that there are probably one or more particular pins that need to be set to a certain state in order to enter programming mode via this USB port?

Thank you for your guidance.

Sincerely,

Nicolas.A

Hi, I’m the Toradex AI Assistant. The Toradex Support team will follow up with you shortly!

Did you like my answer?

:+1: :-1:


Hi Nicolas.A,

  1. For debugging via UART on the Apalis iMX8 8QM, there are indeed dedicated pins that you should use. It is essential to refer to the hardware documentation to accurately identify these pins, as they are crucial for establishing a reliable UART connection during debugging sessions.

  2. Yes, it is possible to program the Apalis iMX8 8QM board via USB. You will need to use the appropriate USB port designated for programming. Additionally, specific pins may need to be configured to enter programming mode through the USB port. The exact USB port and the necessary pin states for this configuration are typically detailed in the hardware documentation. Consulting this documentation will ensure successful programming of the board.

If you need further assistance, feel free to ask!

Sincerely,
[Your Name]

Please, also check if these links can help you solve your problem:

Cortex-M Serial debug on UART2 IMX8QM.

Hello @Nicolas.A,

Yes, there are specific pins that are used for the debug UART interface on the Apalis family of modules.
This interface is UART1, using pins 110, 112, 114, 116, 118, 120, 122, and 124.

Yes, this is certainly possible by using the recovery mode.
The USBO1 port is needed and it should be used as an OTG or DR port.


Please note that I purposefully gave simple responses to your questions because I want to strongly recommend that you first have a look at the following documents before starting your carrier board design:

Most of our customers start their designs from one of our designs, which we make freely available on our developer website: Reference Designs | Toradex Developer Center
This would be a recommended starting point here as well.

The Pinout Designer Tool is also a very useful tool to select which interfaces from the SoM will be used.

Lastly, if you need further guidance with layout, we have the Carrier Board Layout Guide available as well.

Best Regards,
Bruno

Hello @Nicolas.A,

Did the resources above help you with your custom carrier board development?
Or do you need further support with this topic?

Best Regards,
Bruno