cancel
Showing results for 
Search instead for 
Did you mean: 

F767zi UART

PLau.1
Associate II

I tried 2 demo printf using HAL and UART Tx using LL from your examples. LL demo runs ok and getting message display on Serial COM console. HAL printf demo got not message display. Any suggestion? I hv another board NUCLEO-F411RE works ok for HAL UART. This will proof my PC (win10) and CubeIDE(1.6.1) setup are ok

7 REPLIES 7

USART3

PD8/PD9 AF7

HSE_VALUE 8000000

Works for me

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..

> HAL printf demo got not message display.

With HAL, Tx using other methods than printf() (i.e. directly calling HAL functions) works?

JW

PLau.1
Associate II

not sure which part should change

same ioc works for Examples_LL/USART/USART_Communication_Tx/Src/main.c

What's the "2" do here?

HAL_UART_Transmit(&huart3, "Z", "2", 100);

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
PLau.1
Associate II

typo:

HAL_UART_Transmit(&huart3, "Z", 2, 100)

"Z" is the char to send out

2 is the size

but not working as well

Observe Tx pin using oscilloscope/logic analyzer.

Try to transmit by simply writing to the Tx data register a byte and then performing a long enough delay, in a loop.

Read out and check/compare UART and relevant GPIO registers content between working and non-working case. Also check your clocks setup, e.g. by outputting PWM from a timer on the same APB bus, with the same settings, and observe output waveform.

JW

PLau.1
Associate II

I found the solution. I hv to set the RCC: HSE Bypass, & LSE Crystal

thanks all comments and help