cancel
Showing results for 
Search instead for 
Did you mean: 

CooCox error while downloading code to STM32F103C8T6

loder
Associate II
Posted on August 29, 2016 at 16:09

Dear forum,

i get this error after i tried to download the code to this board: http://artofcircuits.com/wp-content/uploads/2015/07/STM32F103C8T6-Development-Board-1.jpg I use a ST-Link V2 with the latest firmware & driver installed. I connected Pin7 to GND, Pin 4 to SCLK, Pin6 to DIO and Pin 2 to 3.3V (http://wiki.sgmk-ssam.ch/images/d/dc/ST-LinkV2_pinout_jpg), this is the error from Coocox:

D:\Programme\CoIDE_V2Beta>''D:/Programme/CoIDE_V2Beta/bin\coflash.exe'' program STM32F103C8T6 ''D:/Programme/CoIDE_V2Beta/ProjectFolder/STM32F103C8T6TestProject/STM32F103C8T6TestProject/Debug/bin/STM32F103C8T6TestProject.elf'' --adapter-name=ST-Link --port=SWD --adapter-clk=1000000 --erase=affected --reset=SYSRESETREQ --driver=''C:\Users\Standardbenutzer\AppData\Roaming\CooCox\CoIDE\config\flash\CooCox-Flash\CoIDE_STM32F1xx_MD_64K\STM32F10x_MD_elf'' 
Erase: Done
Program: Failed
Error: Flash driver function execute error

Any help would be very much appreciated.
5 REPLIES 5
slimen
Senior
Posted on August 29, 2016 at 16:37

Hi,

Try to upgrade the ST-Link firmware version through ST-Link Utility (go to ST-LINK>firmware update) or this Link

http://www.st.com/content/st_com/en/products/embedded-software/development-tool-software/stsw-link009.html

 and try again.

Regards

loder
Associate II
Posted on August 29, 2016 at 16:49

Thanks a lot for your reply,

as i said, i already have the latest firmware installed (and your link doesn't work for me).
AvaTar
Lead
Posted on August 30, 2016 at 10:47

Can you access/flash your board with another toolchain, or the STLink utility software ?

If so, you might look at the wrong place.

knight master
Associate II
Posted on June 15, 2017 at 15:39

hey,

I also have same problem .

when i was doing flash write protection program   with stm32f407vg discovery board in CO IDE i enable the write protection and download the program in board then it run .

now second time i disable the write protection and download the code in board  i got same error  as above mentioned . now i cannot able to do  program with my board.

so check my board with stm st-utility and tried to erase  sectors and also full chip and also upgrade firmware then it shows me  'some flash pages are write protected'  so check  all sectors it is all write protected.

so my friend told me try with flash loader demonstrator their i have done all settings and then it shows me this error

'Bootloader  cannot be started , please verify the boot mode configuration and flash protection status '.

Posted on June 15, 2017 at 18:05

Sounds like you checked some more boxes, the F4 has an irreversible protection mode, if you enabled that then the chip is done.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..