Hi,
I am new to STM32, recently i purchased STM32F411CE (BlackPill), at once i was able to program from Arduino IDE but later i stuck with no luck : Write failed at address: 0x8000000.
my machine is macOS bigSur (11.5.2), Arduino IDE 1.8.16 and Arduino Board Manager STMicroelectronics 2.1.0. Upload code via USB cable.
(entering DFU Mode by pressing BOOT0 (hold) then NRST (press-release) then release BOOT0)
Arduino IDE Config:
via USB : CDC(generic 'Serial' supersede U(S)ART
upload method : STM32CubeProgrammer DFU
Perhaps any tips and tricks?
-------------------------------------------------------------------
STM32CubeProgrammer v2.9.0
-------------------------------------------------------------------
USB speed : Full Speed (12MBit/s)
Manuf. ID : STMicroelectronics
Product ID : STM32 BOOTLOADER
SN : 366E355E3036
FW version : 0x011a
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: Blink.ino.bin
File : Blink.ino.bin
Size : 23948 Bytes
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
RUNNING Program ...
Address: : 0x8000000
Start operation achieved successfully
Thank you.
by tsulis » Sat Dec 04, 2021 5:48 pm
tsulis wrote: Sat Dec 04, 2021 12:35 pm
Hi,
I am new to STM32, recently i purchased STM32F411CE (BlackPill), at once i was able to program from Arduino IDE but later i stuck with no luck : Write failed at address: 0x8000000.
my machine is macOS bigSur (11.5.2), Arduino IDE 1.8.16 and Arduino Board Manager STMicroelectronics 2.1.0. Upload code via USB cable.
(entering DFU Mode by pressing BOOT0 (hold) then NRST (press-release) then release BOOT0)
Arduino IDE Config:
via USB : CDC(generic 'Serial' supersede U(S)ART
upload method : STM32CubeProgrammer DFU
Perhaps any tips and tricks?
-------------------------------------------------------------------
STM32CubeProgrammer v2.9.0
-------------------------------------------------------------------
USB speed : Full Speed (12MBit/s)
Manuf. ID : STMicroelectronics
Product ID : STM32 BOOTLOADER
SN : 366E355E3036
FW version : 0x011a
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: Blink.ino.bin
File : Blink.ino.bin
Size : 23948 Bytes
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
RUNNING Program ...
Address: : 0x8000000
Start operation achieved successfully
Thank you.
SOLVED!
strange happens with native USB C cable. My blackpill usb is USB C connector. When i use native USB C cable then all this errors happened, but when i use Micro USB cable with little converter from micro usb to USB C, i can upload code as it should.
Go to full post