Skip to main content
Mohammed Al Hunaiti
Associate
Sep 28, 2017 2:47 PM UTC
Solved

Problem with UART Example on Nucleo-F746ZG

Posted on September 28, 2017 at 16:47

Hello everyone

Yesterday i buy a Nucleo-F746ZG, i installed SW4STM32, ST-LINK/V2 Drivers and 

http://www.st.com/content/st_com/en/products/embedded-software/mcus-embedded-software/stm32-embedded-software/stm32cube-embedded-software/stm32cubef7.html

 examples, first of all i try the Demonstration firmware and all was good.

Finally i decide to try the Uart Example and here start the problems, i download on the board the firmware using SW4STM32 and the usb cable, then i try to read the messages with several terminals (Termite, Hyperterminal, Putty) but i not see any message(i also try to reset it using push button on the board but nothing), using the oscilloscope on the TX and RX lines on the CN5 connector i see a fixed 3.3 V.

I make something wrong? any idea about the problem?

Thank's for the attention and for the help 

#nucleo-f746 #example #uart #problem
This topic has been closed for replies.
Tesla DeLorean
Tesla DeLoreanBest answer
Guru
Sep 28, 2017 5:53 PM UTC
Posted on September 28, 2017 at 17:53

 ,

 ,

Demo .HEX file here

https://community.st.com/0D70X000006T0kmSAC

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

5 replies

Tesla DeLorean
Guru
Sep 28, 2017 3:31 PM UTC
Posted on September 28, 2017 at 17:31

>>I make something wrong? any idea about the problem?

Apparently, which example specifically are you compiling, have you used the debugger and stepped the code, do you have the right baud rate and COM port?

The USART/VCP works on the boards here.

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
Tesla DeLorean
Tesla DeLoreanBest answer
Guru
Sep 28, 2017 5:53 PM UTC
Posted on September 28, 2017 at 17:53

 ,

 ,

Demo .HEX file here

https://community.st.com/0D70X000006T0kmSAC

 ,
Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
Mohammed Al Hunaiti
Associate
Sep 29, 2017 8:51 AM UTC
Posted on September 29, 2017 at 08:51

Thank you Very much for your answer, with your code work correctly, you have the source code of that program ? because i have the same problem on another firmware, what was the problem ?

Mohammed Al Hunaiti
Associate
Sep 29, 2017 2:40 PM UTC
Posted on September 29, 2017 at 16:40

I find the problem, was missing the file syscalls.c, adding it the example work, i think that this problem happens using the eclipse IDE SW4STM32

HKim.101
Visitor II
May 10, 2019 4:27 AM UTC

Thank you Mohamed.

I have a same issue but I resolved by your answer.

Please copy syscall.c to SW4STM32 dirctory if anybody have the same issue.

I did it like a following.

copy STM32F746ZG-Nucleo\Applications\USB_Host\HID_Standalone\SW4STM32\syscall.c ==> STM32F746ZG-Nucleo\Examples\UART\UART_Printf\SW4STM32\STM32746ZG_Nucleo\

If you use odd for parity bit, you will see strange character.

UartHandle.Init.Parity   = UART_PARITY_ODD;

result) * T??鳶n?h? su娠?s?壹y?** 둇 一b?? p侄n廳 ?n辛旭n 剃 ??襤RT?

I've changed parity bit to none and it show it correctly.

UartHandle.Init.Parity   = UART_PARITY_NONE;

result)  UART Printf Example: retarget the C library printf function to the UART

** Test finished successfully. **