cancel
Showing results for 
Search instead for 
Did you mean: 

Trouble with uart reception in nucleo144-stm32f746

jack focker
Associate II
Posted on April 09, 2017 at 08:13

Hi dear friends,

I have a problem with uart reception.

I can't receive any data or maybe i can't init it correctly.

I assign gpio to it and init it according to user manual. it has transmission but no data can receive. I don't no why??

Can everybody show me an example?

I used example of uart in stm32cubef7 too , but no reception can be done.

#stm32 #uart #stm32f746-nucleo #cubef7
13 REPLIES 13
jack focker
Associate II
Posted on April 09, 2017 at 15:55

Is there nobody??

Posted on April 09, 2017 at 18:19

What USART via what pins?

I've had NUCLEO-144-F7 boards (746 and 767) outputting via the ST-LINK provided VCP, using USART3 PD8/PD9

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Mohammad A
Senior
Posted on April 10, 2017 at 00:16

I have a NUCLEO-64-F4 board. I also have used VCP interface provided inside the ST-LINK. When I was testing UART, transmission was ok but for reception, I had to place an external crystal which its frequency was 

relevant

to  UART baud scales. I used a 11.0592MHz one. without that, every recieved byte was crap.

Well, I don't know if it has different situations in your board.

Posted on April 10, 2017 at 00:25

On the NUCLEO-64 the VCP clashes with the D0/D1 pins for the Shield. It should be getting a good 8 MHz HSE input from the ST-LINK processor, although you'd want to be using HSE BYPASS mode.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Posted on April 10, 2017 at 07:35

My board is NUCLEO-144-F746ZGT6.

First i used example of uart-printf in cubeF7 and try to receive data via PD9 (USART3.RX pin) , by 'HAL_UART_Receive()' function, but it never get data and RXNE flag never sets. That example uses USART3 via PD8 and PD9 pins.

After great effort by that example I write my codes in register level, not HAL level, and guess what happened? NO data was received!

I can't find the reson of that.

Could you receive any data from your NUCLEO-144-F746 board?

Posted on April 10, 2017 at 07:55

I'd have to review if the receive works.

Check solder bridges.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Posted on April 10, 2017 at 07:58

Tank you for your answer dear Mohammad.

I don't think that problem can be by crystal, because I connect TX to RX but again it can't receive any byte.

Posted on April 10, 2017 at 08:00

It's connected.

Posted on April 10, 2017 at 08:03

I assigned another pin to usart, But the result was the same.

Even I used another usart module and still got the same results.