cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with stlink

ee06091
Associate III
Posted on July 24, 2014 at 12:08

Hi,

I'm trying to program

http://andybrown.me.uk/wk/wp-content/images//awreflow/schematic.pdf

with a stm32f0308-disco st-link but it only works if I power the board with the 3v from the disco board if I power the board from an external 3.3V it gives this error:

ze@ze-VGN-CS11S-W:~/Development/openocd-code$ openocd -f tcl/interface/stlink-v2.cfg -f tcl/target/stm32f0x_stlink.cfg
Open On-Chip Debugger 0.9.0-dev-00093-g518ce9e (2014-07-09-16:15)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.sourceforge.net/doc/doxygen/bugs.html
Info : This adapter doesn't support configurable speed
Info : STLINK v2 JTAG v17 API v2 SWIM v0 VID 0x0483 PID 0x3748
Info : using stlink api v2
Info : Target voltage: 2.909697
Error: init mode failed
in procedure 'init'
in procedure 'ocd_bouncer'
in procedure 'transport'
in procedure 'init'

How can I identify w
7 REPLIES 7
Posted on July 24, 2014 at 14:30

And what pins are you connecting? GND, SWDIO, SWCLK and NRST?

All the jumpers and solder-bridges set appropriately?

ST-LINK Utilities reports what?
Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
ee06091
Associate III
Posted on July 24, 2014 at 14:40

1 - See the attached file please

2 - Remove the jumpers, and the sb19 and sb

3 - Stlink just say it can't connect.

________________

Attachments :

path3947-2.png : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006I0u8&d=%2Fa%2F0X0000000bhe%2FiJCiMTQfSMHhh9FypJ8mxxQlyA5E3r1vmsb.kdfRuSQ&asPdf=false
Posted on July 24, 2014 at 15:15

Do NOT connect VDD_TARGET

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
ee06091
Associate III
Posted on July 24, 2014 at 15:23

Without VDD_Target:

ze@ze-VGN-CS11S-W:~/Development/openocd-code$ openocd -f tcl/interface/stlink-v2.cfg -f tcl/target/stm32f0x_stlink.cfg 
Open On-Chip Debugger 0.9.0-dev-00093-g518ce9e (2014-07-09-16:15)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.sourceforge.net/doc/doxygen/bugs.html
Info : This adapter doesn't support configurable speed
Info : STLINK v2 JTAG v17 API v2 SWIM v0 VID 0x0483 PID 0x3748
Info : using stlink api v2
Info : Target voltage: 2.916022
Error: init mode failed
in procedure 'init' 
in procedure 'ocd_bouncer' 
in procedure 'transport'
in procedure 'init'

Posted on July 24, 2014 at 16:05

Then you'll need to review your board design, especially the Vin path, and how this is powering the rest of your board.

The Vin of the board schematic you supplied is the in bound side of a 3.3V regulator, doesn't that have a voltage dropout? Wouldn't you inject 3.3V on the Vout side? Or at the supply jumper?

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
ee06091
Associate III
Posted on July 25, 2014 at 01:15

ee06091
Associate III
Posted on July 25, 2014 at 12:13

Hi,

This is the circuit: http://andybrown.me.uk/wk/wp-content/images//awreflow/schematic.pdf

I can't find the problem :s With the multimeter it looks like the reset line has 50mV dropout but it should be normal because the pullup resistor, right?

PS: after program it the board works ok with sourcing the power from the ams1117