Faulty STM32 chip or incorrect core code #2076
Replies: 1 comment
-
Answered here #2077 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Good day @fpistm.
I use BlackPill
stm32f401ccu6
and I need to work withI2C
busPB6/PB7
.Earlier I wrote an issue about
BlackPill
hardware, because. possible damage to thePA10
port.But as soon as I connect the serial port
PA9/PA10
and theI2C
bus, nothing works.I'm starting to deal with serial ports.
The code is following
The code is just to check if serial ports are working.

This code was checked on 3
BlackPill
and the work is equally wrong everywhere.First, the code in the infinite loop is executed only 1 time.
In the screenshot below, each output is a separate press of the
RESET
button.The output is single and without a line break, although the code indicates
println
When I connect
CH340
to thePA9
(TX) leg, I get the outputI am serial 3
When I connect
CH340
to thePB6
(TX) leg, I get exactly the same outputI am serial 3
And there is no line break.
What am I doing wrong?
PS.
If you specify
Serial1
, then the code does not compile at all ...The compiler reports that the Serial1 variable has already been defined in the
HardwareSerial.cpp.o
fileCode doesn't work if I set
define
During compilation error also.
Beta Was this translation helpful? Give feedback.
All reactions