EmbDev.net

Forum: ARM programming with GCC/GNU tools [Solved] STM32F0 Discovery Board: Connect faild, check config and cable connection


Author: Markus J. (markus_j31)
Posted on:

Rate this post
0 useful
not useful
Hi
I bougth the Stm32F0 Discovery to get into microcontrollers. I have only 
knowlegth about c# and java programming.

I followed this tutorial (video 
Youtube-Video "STM32F0 Discovery Tutorial Blinking Led")

Downlaoding coocox ide and CoFlash
installing gcc-arm-none-eabi-4_8-2014q1-20140314-win32.exe (md5)
and the usb driver http://www.st.com/web/en/catalog/tools/PF258167
...

I can build the programm but I can not load it on the microcontroller. I 
get always this error:

C:\CooCox\CoIDE>"C:/CooCox/CoIDE/bin\coflash.exe" program STM32F051R8 
"C:/CooCox/CoIDE/workspace/blinkingLEDs/blinkingLEDs/Debug/bin/blinkingL 
EDs.elf"  --adapter-name=ST-Link --port=SWD --adapter-clk=1000000 
--erase=affected --reset=SYSRESETREQ 
--driver="C:/CooCox/CoIDE/flash/STM32F05xx_64.elf"

Error: Connect failed, check config and cable connection
Program Download Failed !

I have no cloue what to change. Can anyone give me a hint?
Do I Have to know anything else about the st Driver?

Thanks in advance

: Edited by User
Author: Uwe B. (derexponent)
Posted on:

Rate this post
0 useful
not useful
are both jumpers "CN2" for the ST-Link connected ?

Author: Markus J. (markus_j31)
Posted on:

Rate this post
0 useful
not useful
There are three jumper connections in place. One for the JP2 and two for 
St-Link. I did not change anything since I got this board from the 
manufacturer.

Author: Markus J. (markus_j31)
Posted on:

Rate this post
0 useful
not useful
Uwe B. wrote:
> are both jumpers "CN2" for the ST-Link connected ?

There are three jumper connections in place. One for the JP2 and two for
St-Link. I did not change anything since I got this board from the
manufacturer.

Author: Uwe B. (derexponent)
Posted on:
Attached files:

Rate this post
1 useful
not useful
ok, connect the board with usb and check your device manager

in "usb controller" you must have an entry like "STLink dongle"
(see picture)

if this is ok, donwload the "ST-Link Utility" from ST
and try to connect with this tool and readout the Device Information

perhaps you have selected the wrong Device

Author: Markus J. (markus_j31)
Posted on:

Rate this post
0 useful
not useful
Thank you

That solved my problem.

Reply

Entering an e-mail address is optional. If you want to receive reply notifications by e-mail, please log in.

Rules — please read before posting

  • Post long source code as attachment, not in the text
  • Posting advertisements is forbidden.

Formatting options

  • [c]C code[/c]
  • [avrasm]AVR assembler code[/avrasm]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]




Bild automatisch verkleinern, falls nötig
Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.