cancel
Showing results for 
Search instead for 
Did you mean: 

Nucleo-F072RB Serial port not working

dyMath6
Visitor

Hi, I'm a student quite new with STM, I am using a nucleo F072RB and I have been unable to print anything onto putty for a few weeks, it was working fine before summer break but not anymore (I haven't used my nucleo during that time), I am using the same baud rate and same port com as before, I tried to run my older projects that use putty and same result, nothing appears. I have no idea what to do to try to solve it, please help. Thanks.

4 REPLIES 4
Andrew Neil
Super User

Welcome to the forum.

Please see How to write your question to maximize your chances to find a solution for best results.

 

How are you connecting to PuTTY - are you using the ST-Link VCP ?

You need to use a full data cable - not just a charging cable.

Try other cables.

 


@dyMath6 wrote:

it was working fine before summer break but not anymore (I haven't used my nucleo during that time).


and you're sure that nobody else has touched it ?

 


@dyMath6 wrote:

I am using the same baud rate and same port com as before,


Might be worth checking that the board is still on the same COM port

 


@dyMath6 wrote:

 I have no idea what to do to try to solve it, please help. Thanks.


First thing would be to use an oscilloscope to check that data is actually emerging from the STM32 at the correct rate

A complex system that works is invariably found to have evolved from a simple system that worked.
A complex system designed from scratch never works and cannot be patched up to make it work.

Thank you for you answer, 

I am using the ST-Link VCP, and I checked the COM port in my settings thousands of times, but I tried connecting the nucleo to one of my uni computer and putty worked just fine (I didn't change anything except the Port COM, didn't upload anything else) so my problem must come from my personal computer 

So we can conclude the MCU is sending serial data when connecting to the university PC.
Assuming the same firmware on the MCU and the same cable it should work on your PC.
What can potential problems be?


USB port issues. Voltage and/or power. Are you sure the board is powered and is in device manager the programmer is visible? If not try a different USB port. If you use a hub or front USB port that can cause issues, so use an USB port on the back of your PC.

Are you sure you have the right serial port number?

Serial port driver/programmer firmware. Windows sometimes updates drivers automatically to a nonworking version. Especially if a non-genuine chip is used or the firmware of the programmer is not compatible with the driver.
Look up the firmware of the programmer and the version of the driver on both your PC and the university PC.

Virus scanner?

Kudo posts if you have the same problem and kudo replies if the solution works.
Click "Accept as Solution" if a reply solved your problem. If no solution was posted please answer with your own.

@dyMath6 wrote:

I checked the COM port in my settings  


Did you check in Device Manager that the COM port is there and on the expected COMx number?

Make sure that your terminal is set for NO flow control 

 


@dyMath6 wrote:

my problem must come from my personal computer 


Indeed.

Do you have another Nucleo board to try?

and/or a standalone USB-to-UART converter?

 

Does the debug connection to the ST-Link work?

A complex system that works is invariably found to have evolved from a simple system that worked.
A complex system designed from scratch never works and cannot be patched up to make it work.