Serial driver is not working for F401 Topic is solved

ChibiOS public support forum for topics related to the STMicroelectronics STM32 family of micro-controllers.

Moderator: RoccoMarco

Post Reply
ep.hobbyiest
Posts: 94
Joined: Sun Jun 26, 2016 5:22 pm
Has thanked: 4 times
Been thanked: 1 time

Serial driver is not working for F401

Post by ep.hobbyiest »

Hi,
I am using F401. Last time i was using UART for serial print and it was working fine. But unfortunately i lost my code. So, i was doing that again.
So, i configure Serial driver but now it is not working. I checked demo code for F401 nucleo code. For that also serial driver is not working.
I checked my USB2Serial device and it is working fine.
how to debug this one.

I am using SD1 driver and connected PA2 and PA3 pin of nucleo.
User avatar
Giovanni
Site Admin
Posts: 14893
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

Re: Serial driver is not working for F401

Post by Giovanni »

Hi,

Use an oscilloscope or a logic analyzer and see if the UART TX generates the frames.

Giovanni
User avatar
RoccoMarco
Posts: 655
Joined: Wed Apr 24, 2013 4:11 pm
Has thanked: 83 times
Been thanked: 67 times

Re: Serial driver is not working for F401

Post by RoccoMarco »

If we are talking about STM32F401xE on PA2 and PA3 there is SD2 already connected to ST-Link and virtualized over USB
steved
Posts: 834
Joined: Fri Nov 09, 2012 2:22 pm
Has thanked: 12 times
Been thanked: 138 times

Re: Serial driver is not working for F401

Post by steved »

The ST dev boards have various jumpers and solder links on some of the I/O - sometimes these need changing. Check the circuit for the relevant board. (RoccoMarco obviously has - probably you can route these signals direct to pins if you want)

(Serial driver for the F407 certainly works fine, so I think you're looking for a hardware problem)
ep.hobbyiest
Posts: 94
Joined: Sun Jun 26, 2016 5:22 pm
Has thanked: 4 times
Been thanked: 1 time

Re: Serial driver is not working for F401

Post by ep.hobbyiest »

Problem is solved now.
As RoccoMarco and steved suggested, i was re-connecting USB to serial to the pins which were connected to ST-Link on board.
Post Reply