mini maple upload
Posted: Sat Apr 10, 2021 8:38 am
I'm on my first and a half project with STM32. the first I tried to do it with "blue pill" with 64k, but unfortunately I ran out of memory resources, and then I switched to using the mini marple with 128k.
With the blue pill everything was fine for the upload, but with the mini maple the problems started. I tried to upload the classic Blink example. the blue led on the card continues to flash (maybe the bootloader is missing?) and if I upload it with the PlatformIO platform and vs Code it gives me the error: No DFU capable USB device found.
as environment I set:
if I add the upload protocol:
gives me the following error:
P.S.
As I know. i use linux mint 20 64 bit
I connected to the board:
micro USB
ST_LINK to pins 21 SWCLK (PA14), 22 SWDIO (PA13) plus gnd
FTDI to pins 25 (PA10), 26 (PA9)
With the blue pill everything was fine for the upload, but with the mini maple the problems started. I tried to upload the classic Blink example. the blue led on the card continues to flash (maybe the bootloader is missing?) and if I upload it with the PlatformIO platform and vs Code it gives me the error: No DFU capable USB device found.
as environment I set:
Code: Select all
[env:maple_mini_origin]
platform = ststm32
board = maple_mini_origin
framework = arduino
Code: Select all
[env:maple_mini_origin]
platform = ststm32
board = maple_mini_origin
framework = arduino
upload_protocol = stlink
what should I and can I do to make the card work?xPSR: 0x01000000 pc: 0x0800016c msp: 0x20005000
** Programming Started **
Warn : STM32 flash size failed, probe inaccurate - assuming 128k flash
Error: stm32x device protected
Error: failed erasing sectors 0 to 10
embedded:startup.tcl:521: Error: ** Programming Failed **
in procedure 'program'
in procedure 'program_error' called at file "embedded:startup.tcl", line 586
at file "embedded:startup.tcl", line 521
*** [upload] Error 1
============================================ [FAILED] Took 2.81 seconds ============================================
The terminal process "platformio 'run', '--target', 'upload', '--environment', 'maple_mini_origin'" terminated with exit code: 1.
P.S.
As I know. i use linux mint 20 64 bit
I connected to the board:
micro USB
ST_LINK to pins 21 SWCLK (PA14), 22 SWDIO (PA13) plus gnd
FTDI to pins 25 (PA10), 26 (PA9)