-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Description
Hi, I'm testing a Nucleo-STM32U031R8 board. I'm trying to make a simple blink function with its internal LED. I compile and program it without problems, but it doesn't work. I did the same experiment with the ST IDE and it works fine, but with Arduino, I can't get it to show any activity.
void setup() {
// Forzamos la configuración del pin PA5 como salida digital
// usando la nomenclatura de Arduino para STM32
pinMode(PA5, OUTPUT);
}
void loop() {
// Intentamos encenderlo de dos formas distintas
digitalWrite(PA5, HIGH);
delay(200);
digitalWrite(PA5, LOW);
delay(200);
}result:
Compiling 'PruebaSTM32U' for 'Generic STM32U0 series (STMicroelectronics_GenU0)'
Program size: 11476 bytes (used 4% of a 262144 byte maximum) (14,49 secs)
Minimum Memory Usage: 1208 bytes (3% of a 40960 byte maximum)Uploading 'PruebaSTM32U' to 'Generic STM32U0 series (STMicroelectronics_GenU0)' using 'COM64'
Uploader started for board Generic STM32U0 series (STMicroelectronics_GenU0)
Upload method will be: bootloader
Uploading via Bootloader
C:\Users\Gerencia Ingetronik\AppData\Local\arduino15\packages\STMicroelectronics\tools\STM32Tools\2.4.0\win\busybox.exe sh "C:\Users\Gerencia Ingetronik\AppData\Local\arduino15\packages\STMicroelectronics\tools\STM32Tools\2.4.0/stm32CubeProg.sh" -i swd -f "C:\Users\Gerencia Ingetronik\AppData\Local\Temp\VMBuilds\PruebaSTM32U\STMicroelectronics_GenU0\Release/PruebaSTM32U.ino.bin" -o 0x0 -a 0x8000000 -m UR -s 0x8000000
Selected interface: swdSTM32CubeProgrammer v2.17.0
ST-LINK SN : 0668FF3833554B3043131139
ST-LINK FW : V2J46M33
Board : NUCLEO-U031R8
Voltage : 3.22V
SWD freq : 4000 KHz
Connect mode: Under Reset
Reset mode : Hardware reset
Device ID : 0x459
Revision ID : Rev A
Device name : STM32U0xx
Flash size : 64 KBytes (default)
Device type : MCU
Device CPU : Cortex-M0+
BL Version : 0xA
Memory Programming ...
Opening and parsing file: PruebaSTM32U.ino.bin
File : PruebaSTM32U.ino.bin
Size : 11.42 KB
Address : 0x08000000
Erasing memory corresponding to segment 0:
Erasing internal memory sectors [0 5]
Download in Progress:
File download complete
Time elapsed during download operation: 00:00:00.482
The upload process has finished.
RUNNING Program ...
Address: : 0x8000000
Application is running, Please Hold on...
Start operation achieved successfully