[SOLVED] Possible bug on pin assignments on NUCLEO 64 F411re ??

All about boards manufactured by ST
Post Reply
User avatar
NasTor
Posts: 9
Joined: Sat Dec 21, 2019 7:17 am

[SOLVED] Possible bug on pin assignments on NUCLEO 64 F411re ??

Post by NasTor »

Hello to all.

First, this is not my native language. I undestand english perfectly but writing skills are very poor.
I am a technician in electronics, radio amateur. I have electronic instruments necessary to do
tests such as oscilloscope, logic analyzer, etc.

I have a NUCLEO 64 F411RE (MB1136 rev. C)
ST official core, arduino ide 1.8.13 running on win7 64.

the problem is that the signals do not go out through the pins that they should.
I tried all this on a blue pill and NUCLEO 64 103 without any problem, the problem is on the f411re.

example 1:
The default serial does not come out through any pin. I check all outputs with oscilloscope.

Code: Select all

void setup() {
  Serial.begin(115200);
}

void loop() {
 Serial.println("hello world");
delay(1);
}

Example 2:
Digitalwrite come out on PB6 instead of PA10!!!

Code: Select all

void setup() {
   pinMode(PA_10, OUTPUT);      
}

void loop() {
   digitalWrite(PA_10, HIGH);
  delay(100);                      
digitalWrite(PA_10, LOW);
  delay(100);                      
}
example 3:
Now Digitalwrite come out on PB10 instead of PA2 !!!!!!

Code: Select all

void setup() {
   pinMode(PA_2, OUTPUT);

}

void loop() {
   digitalWrite(PA_2, HIGH);
  delay(100);                      
digitalWrite(PA_2, LOW);
  delay(100);                      
}
Another minor issue is the use of the underscore in the code for
the f411 when the underscore is not used for other MCUs like the f103 in the pins names.
I do not know if this is so for a reason or it is inherited code that was not updated.
Am I doing something wrong or is it really a bug?

Thank you very much to all
by fpiSTM » Mon Sep 28, 2020 6:50 am
Serial out on PA2/PA3 which are connected to the STlink which allows to have the output Serial on the CDC.

About all other "issues" this is normal as you use the PinName (PY_n) instead of the pin number PYn.
So remove the '_'
Go to full post
Last edited by NasTor on Mon Sep 28, 2020 8:20 am, edited 1 time in total.
User avatar
fpiSTM
Posts: 1738
Joined: Wed Dec 11, 2019 7:11 pm
Answers: 91
Location: Le Mans
Contact:

Re: Possible bug on pin assignments on NUCLEO 64 F411re ??

Post by fpiSTM »

Serial out on PA2/PA3 which are connected to the STlink which allows to have the output Serial on the CDC.

About all other "issues" this is normal as you use the PinName (PY_n) instead of the pin number PYn.
So remove the '_'
User avatar
NasTor
Posts: 9
Joined: Sat Dec 21, 2019 7:17 am

Re: Possible bug on pin assignments on NUCLEO 64 F411re ??

Post by NasTor »

fpiSTM wrote: Mon Sep 28, 2020 6:50 am Serial out on PA2/PA3 which are connected to the STlink which allows to have the output Serial on the CDC.

About all other "issues" this is normal as you use the PinName (PY_n) instead of the pin number PYn.
So remove the '_'
You are right, I did not imagine that PA2 AND PA3 come disconnected by default from the physical pins. my mistake for not properly reading the datasheet. As there is no signal with digitalwrite I began to think that it could be a bug in the assignment of pin names

Thank you very much for your time and your quick response
Post Reply

Return to “STM boards (Discovery, Eval, Nucleo, ...)”