Nucleo 144, Arduino IDE 2.3.2 not working blink, digitalWrite(), Seria;println()
Posted: Wed Aug 21, 2024 6:06 pm
Hi,
I have a Nucleo-144 F722ZE
I am attempting to program it with the arduino 2.3.2 ide.
And so far, no blink, no digitalWrite() and no Serial.println()
Details are listed below.
Thank you in advance. I am sure it is trivial, and apologize for having to ask. I have not found any document that helps me solve the problem.
For setup, I followed the instructions here,
https://community.st.com/t5/stm32-mcus/ ... a-p/608514
Here is the blink code, from the arduino examples. This does not blink anything and does not produce any output on the Serial Monitor in the Arduino IDE
Then I tried setting a specific pin by number, hoping to see it on an oscilloscope. Again, no result
And then after discovering PinNames.h, I tried this:
I have a Nucleo-144 F722ZE
I am attempting to program it with the arduino 2.3.2 ide.
And so far, no blink, no digitalWrite() and no Serial.println()
Details are listed below.
Thank you in advance. I am sure it is trivial, and apologize for having to ask. I have not found any document that helps me solve the problem.
For setup, I followed the instructions here,
https://community.st.com/t5/stm32-mcus/ ... a-p/608514
Here is the blink code, from the arduino examples. This does not blink anything and does not produce any output on the Serial Monitor in the Arduino IDE
Code: Select all
void setup() {
// initialize digital pin LED_BUILTIN as an output.
pinMode(LED_BUILTIN, OUTPUT);
Serial.begin(9600);
while( !Serial);
}
// the loop function runs over and over again forever
void loop() {
Serial.println("here i am");
digitalWrite(LED_BUILTIN, HIGH); // turn the LED on (HIGH is the voltage level)
delay(1000); // wait for a second
digitalWrite(LED_BUILTIN, LOW); // turn the LED off by making the voltage LOW
delay(1000); // wait for a second
}
Then I tried setting a specific pin by number, hoping to see it on an oscilloscope. Again, no result
Code: Select all
void setup() {
// initialize digital pin LED_BUILTIN as an output.
pinMode(13, OUTPUT);
Serial.begin(9600);
while( !Serial);
}
// the loop function runs over and over again forever
void loop() {
Serial.println("here i am");
digitalWrite(13, HIGH); // turn the LED on (HIGH is the voltage level)
delay(1000); // wait for a second
digitalWrite(13, LOW); // turn the LED on (HIGH is the voltage level)
delay(1000); // wait for a second
}
And then after discovering PinNames.h, I tried this:
Code: Select all
void setup() {
// initialize digital pin LED_BUILTIN as an output.
pinMode(PD_13, OUTPUT);
Serial.begin(9600);
while( !Serial);
}
// the loop function runs over and over again forever
void loop() {
Serial.println("here i am");
digitalWrite(PD_13, HIGH); // turn the LED on (HIGH is the voltage level)
delay(1000); // wait for a second
digitalWrite(PD_13, LOW); // turn the LED on (HIGH is the voltage level)
delay(1000); // wait for a second
}