2020-02-07 10:36 AM
I have recently bought 3 BluePills (STM32F103C8T6) and 1 ST-LINK V2 from ebay. I have been succesfully testing some old codes with Coocox Studio, but I decided to try out STM32CUBEIDE. Once I set up STM32CUBEIDE and built the program, I noticed that there's debugging option so I went with it. Unfortunately I wasn't able to debug the program - the chip would not be flashed successfully because the device would not be found or disconnected. I was/am receiving these messages
Error in final launch sequence:
Failed to execute MI command:
-exec-run
Error message from debugger back end:
Error creating process C:/Users/zdrav/Google Drive/STM32CUBEIDE/PWM/Debug/PWM.elf, (error 193).
Failed to execute MI command:
-exec-run
Error message from debugger back end:
Error creating process C:/Users/zdrav/Google Drive/STM32CUBEIDE/PWM/Debug/PWM.elf, (error 193).
Error creating process C:/Users/zdrav/Google Drive/STM32CUBEIDE/PWM/Debug/PWM.elf, (error 193).
I also can't run the program
Error starting process.
Cannot run program "C:\Users\zdrav\Google Drive\STM32CUBEIDE\PWM\Debug\PWM.elf": Launching failed
Cannot run program "C:\Users\zdrav\Google Drive\STM32CUBEIDE\PWM\Debug\PWM.elf": Launching failed
Cannot run program "C:\Users\zdrav\Google Drive\STM32CUBEIDE\PWM\Debug\PWM.elf": Launching failed
Now since I couldn't do anything from STM32CUBEIDE I decided to see if Coocox works. I wasn't able to burn the program to the Bluepill which previously was 'burned' with STM32CUBEIDE. I am receiving the following messages
Error: Connect failed, check config and cable connection
I was able to burn other Bluepills with Coocox which were not burned with STM32CUBEIDE, by just switching the Bluepill, but I thought I would want to give all 3 bluepills a burn with STM32CUBEIDE, now none of the chips can be burned.
What can be done now ?
Solved! Go to Solution.
2020-04-13 10:28 AM
I did something similar - made my Blue Pill boards unresponsive after flashing and debugging with STM32CubeIDE. The reason was that in my project I had not switched on Serial Wire debugging in STM32CubeIDE under the System Core/SYS parameters. The solution was to move the 2 jumpers on the Blue Pill board from their default position (both near the USB connector) to the opposite position (both nearer the processor chip), press the reset button, and re-flash. Then move the jumpers back to their original position.
2020-02-07 12:10 PM
Use the STLink GUI or STM32CubeProgrammer software and see if they can connect to the board. I'm not very familiar with the blue pill boards other than they are pretty bare bones. A wild guess, but maybe, somehow, when programming from CubeIDE it set RDP mode to 1, which prevents debugging. Anyway, try the stand-alone programmer software and see what it shows. If RDP *IS* set to 1, you can then reset it to zero which will also erase the entire FLASH contents.
2020-02-07 04:10 PM
I have installed STM32CubeProgrammer and I can't connect the Bluepill to the stlink2, but I successfully upgraded the firmware
2020-04-13 10:28 AM
I did something similar - made my Blue Pill boards unresponsive after flashing and debugging with STM32CubeIDE. The reason was that in my project I had not switched on Serial Wire debugging in STM32CubeIDE under the System Core/SYS parameters. The solution was to move the 2 jumpers on the Blue Pill board from their default position (both near the USB connector) to the opposite position (both nearer the processor chip), press the reset button, and re-flash. Then move the jumpers back to their original position.
2020-07-13 12:32 PM
I followed these steps and now it works like normal.
2022-05-09 12:18 PM
I just did the same mistake as OP, resulting in bricking 4x stm32f103c8t6 / blue pills before i noticed. I just wanted to document and share my solution in case it ever happens again.
Hardware:
Software:
Problem:
Error codes:
Reason: No device found on target.
Solution:
I hope this helps!
2024-06-17 05:53 AM
thank you very much for your solution, I am a fresher with Microcontroller programing, I have same trouble my board was blocked, I have try to solve it as your advice but it still do not connected although it can update drivers,
could you please share some picture for me do the right way.