cancel
Showing results for 
Search instead for 
Did you mean: 

UART Help

Andrei Gheorghiu
Associate II
Posted on November 03, 2017 at 06:51

Hello,

I am using an STM 32 F401 Nucleo and i want to send numbers from PC via UART.

For example I need to set the frequency and amplitude.

Can some one help me to provide the code?

Thank you in advance.

12 REPLIES 12
Posted on November 04, 2017 at 13:10

For the benefit of other readers, please keep the conversation in English

Posted on November 04, 2017 at 15:28

I did that (sending characters from PC to board) to

https://sites.google.com/site/funlw65/evb-projects

and PIC boards, and also sending from Android via bluetooth (you can find a bluetooth module at

http://robofun.ro)

but not yet for STM32... right now I have to finish a project, and the next will be an application with something similar, just basic stuff. Even if it won't be on time to help you.

Meantime, go to the page I sent you before, and download the package from the bottom (the last link), is an archive from over 400Mb in size, unpack it and go to the Projects subfolder, search inside, and even if your board doesn't have those examples, other boards have - it is the same family of microcontrollers. Search for a polling communication between two boards and look at the UART preparations and at the receiving part. For the PC part, you can send code from a terminal (look for one that has that ability) or you can program an application that has access to serial port (I did it in Object Pascal - Delphi, Lazarus + FreePascal but as I always install an interesting linux distro, my projects dies in that process

:)

).

But I advise you to start with an Arduino board to get proficient and then will be easy to migrate

Posted on November 04, 2017 at 15:40

Hi Vasile,

Thank you for the feedback.

Its ok with you if you give me your email address so i can update you with my project?