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)