cancel
Showing results for 
Search instead for 
Did you mean: 

Changing Default Debug UART on STM32MP257F-EV1

Bar01
Associate II

Hi everyone,

I’m currently working with the STM32MP257F-EV1 evaluation board and would like to change the default UART used for debug output. By default, the EV1 board uses USART2 via the STLINK USB port for debug. However, for testing purposes, I’d like to reroute the debug console to USART6 so I can read debug messages from the header pins on the board. I’ve tried editing the device tree by modifying the chosen node and changing the parameter:

 

stdout-path = "serial0:115200n8";

to:

stdout-path = "serial1:115200n8";

According to my aliases, serial1 should correspond to USART6. However, after making this change, I encounter a watchdog panic very early during boot:

 

m32_serc_handle_ilac:133 SERC exceptions [63:32]: 0x10  
E/TC:0   stm32_serc_handle_ilac:139 SERC exception ID: 36  
E/TC:0   Panic 'Watchdog' at /usr/src/debug/optee-os-stm32mp/4.0.0-stm32mp-r1/core/drivers/stm32_iwdg.c:228 <stm32_iwdg_it_handler>

Based on this post I tried masking the st-m33firmware-load.service and applied it to a clean, freshly built image to ensure it executed properly, but I’m still getting the same error.

My questions are:

  • Is it actually possible to switch the default debug UART on the STM32MP257F-EV1 board?
  • If so, what other device tree or configuration steps might be necessary to get the debug console working on USART6?

Any insights would be greatly appreciated.

Thanks!

0 REPLIES 0