cancel
Showing results for 
Search instead for 
Did you mean: 

Serial callback not call after warm book on NUCLEO-L4A6ZG

phoddie
Visitor

I'm using a NUCLEO-L4A6ZG board with the STM32L4A6ZG MCU. My project uses the microSD connector for serial communication with a computerThe microSD connector uses lpuart1. I use uart_irq_callback_user_data_set to install a callback for received data. This works perfectly from a cold boot (power disconnected). The callback is invoked as data is received. From a warm boot (reset without disconnecting power), the receive callback is never invoked. In this state, even though the receive callback is never called, the STM32L4A6ZG can still transmit data over lpuart1.

I changed the Device Tree to use uart3 instead (with an external serial-to-usb bridge). There are no code changes. That works perfectly every time – the receive callback is invoked after both cold and warm reboots.

Any suggestions?

0 REPLIES 0