Page 1 of 1

upload error stm32

Posted: Thu Apr 22, 2021 4:37 pm
by frankz
until yesterday, using arduino ide with bluepill f103cb, i had uploaded regularly. today after some changes to the code, when I upload it gives me the following error:
Sketch uses 32960 bytes (25%) of program storage space. Maximum is 131072 bytes.
Global variables use 1304 bytes (6%) of dynamic memory, leaving 19176 bytes for local variables. Maximum is 20480 bytes.
-------------------------------------------------------------------
STM32CubeProgrammer v2.6.0
-------------------------------------------------------------------

ST-LINK SN : 1C2A05012612344D314B4E00
ST-LINK FW : V2J31S7
Board : --
Voltage : 3,23V
Error: No STM32 target found!
Error: No STM32 target found!
without making any changes to the hardware.
What may have happened ?

Re: upload error stm32

Posted: Thu Apr 22, 2021 5:07 pm
by fpiSTM
As a first feeling I would check STLink connection with the BP

Re: upload error stm32

Posted: Fri Apr 23, 2021 5:59 am
by frankz
the connections are OK.

Re: upload error stm32

Posted: Fri Apr 23, 2021 6:23 am
by frankz
now i tried with STEM32Cube programmer and with connection STLINk the error is the same.
with UART give me this error:
Error: Activating device: KO. Please, verify the boot mode configuration and check the serial port configuration. Reset your device then try again...

Re: upload error stm32

Posted: Fri Apr 23, 2021 6:55 am
by ag123
check connections again as if the connections are ok stm32cube-programmer should be able to detect the device over st-link. check the vdd and swd-data and swd-clk connections. i'd guess it'd help to press reset as well

Re: upload error stm32

Posted: Fri Apr 23, 2021 4:37 pm
by frankz
at this moment I think I have solved the problem. Monday I'll check.
I solved the problem by turning on the board by holding down the UT button, which allowed STM32cube programmer to connect to the board via STLINK, after which I reinstalled the "mini_maple_boot.bin" booloader.

Re: upload error stm32

Posted: Fri Apr 23, 2021 4:53 pm
by fpiSTM
Maybe you disabled the SWD pin.