Can't get arduino to install software.
Posted: Sun Dec 04, 2022 3:54 am
I am using a mac running BigSur 11.7.1
I have a STM32F411CEU6.
I installed STM32CubeProgrammer v 2.12 (I also tried 2.11 and 2.10)
In the Arduino IDE, I use STM32 libraries version 2.2.0
I have set the following options in my IDE.
No matter what I do, e.g. reconnect, hold boot0 and try again, hold reset, then boot0, release reset, release boot0... Nothing seems to work and I always get this:
The example program I am trying to upload is the following:
I have a STM32F411CEU6.
I installed STM32CubeProgrammer v 2.12 (I also tried 2.11 and 2.10)
In the Arduino IDE, I use STM32 libraries version 2.2.0
I have set the following options in my IDE.
Code: Select all
Board Generic STM32F4 series, Board part number BlackPill F411CE (or BlackPill F401CC).
Upload method STM32CubeProgrammer (DFU).
U(S)ART Support Enabled (no generic 'Serial').
USB Support CDC (generic 'serial' superseded U(S)ART).
Press and hold button BOOT0 while powering on or resetting then release BOOT0.
Code: Select all
Sketch uses 23800 bytes (4%) of program storage space. Maximum is 524288 bytes.
Global variables use 3864 bytes (2%) of dynamic memory, leaving 127208 bytes for local variables. Maximum is 131072 bytes.
-------------------------------------------------------------------
STM32CubeProgrammer v2.12.0
-------------------------------------------------------------------
USB speed : Full Speed (12MBit/s)
Manuf. ID : STMicroelectronics
Product ID : STM32 BOOTLOADER
SN : 3667355C3036
DFU protocol: 1.1
Board : --
Device ID : 0x0431
Device name : STM32F411xC/E
Flash size : 512 KBytes (default)
Device type : MCU
Revision ID : --
Device CPU : Cortex-M4
Memory Programming ...
Opening and parsing file: BlinkSTM32F4.ino.bin
File : BlinkSTM32F4.ino.bin
Size : 23.68 KB
Address : 0x08000000
Erasing memory corresponding to segment 0:
Erasing internal memory sectors [0 1]
erasing sector 0000 @: 0x08000000 done
erasing sector 0001 @: 0x08004000 done
Download in Progress:
Error:
Write failed at address: 0x8000000
Error: failed to download Segment[0]
Error: failed to download the File
Error: failed to download the File
The example program I am trying to upload is the following:
Code: Select all
void setup() {
// put your setup code here, to run once:
pinMode(PC13, OUTPUT);
Serial.begin(9600);
}
void loop() {
// put your main code here, to run repeatedly:
digitalWrite(PC13, HIGH);
delay(1000);
digitalWrite(PC13, LOW);
delay(1000);
Serial.println("Hello world!");
}