upload error stm32

Development environment specific, Arduino, Eclipse, VS2013, Em::Blocks etc
Post Reply
frankz
Posts: 10
Joined: Sat Apr 10, 2021 8:05 am

upload error stm32

Post 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 ?
User avatar
fpiSTM
Posts: 1738
Joined: Wed Dec 11, 2019 7:11 pm
Answers: 91
Location: Le Mans
Contact:

Re: upload error stm32

Post by fpiSTM »

As a first feeling I would check STLink connection with the BP
frankz
Posts: 10
Joined: Sat Apr 10, 2021 8:05 am

Re: upload error stm32

Post by frankz »

the connections are OK.
frankz
Posts: 10
Joined: Sat Apr 10, 2021 8:05 am

Re: upload error stm32

Post 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...
ag123
Posts: 1655
Joined: Thu Dec 19, 2019 5:30 am
Answers: 24

Re: upload error stm32

Post 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
frankz
Posts: 10
Joined: Sat Apr 10, 2021 8:05 am

Re: upload error stm32

Post 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.
User avatar
fpiSTM
Posts: 1738
Joined: Wed Dec 11, 2019 7:11 pm
Answers: 91
Location: Le Mans
Contact:

Re: upload error stm32

Post by fpiSTM »

Maybe you disabled the SWD pin.
Post Reply

Return to “IDE's”