STLink v2 dongle clone cfg

Discussions and support about ChibiStudio, the free development environment for ARM.
pito
Posts: 199
Joined: Sun Nov 06, 2011 3:54 pm

STLink v2 dongle clone cfg

Postby pito » Fri Mar 25, 2016 7:09 pm

Hi, trying to use the stlink dongle clone for programming/debug out of chibistudio.
The clone has got the latest firmware and it works fine with stlink-utility (when flashing the .bin).
While trying to use it under chibistudio (stlink v1, v2, v2-1) I get with st32vldiscovery.cfg (vldisco onboard stlink is disconnected):

Code: Select all

Warn : Interface already configured, ignoring
Error: already specified hl_layout stlink
Info : The selected transport took over low-level target control. The results might differ compared to plain JTAG/SWD
adapter speed: 1000 kHz
adapter_nsrst_delay: 100
none separate
srst_only separate srst_nogate srst_open_drain connect_deassert_srst
Info : Unable to match requested speed 1000 kHz, using 950 kHz
Info : Unable to match requested speed 1000 kHz, using 950 kHz
Info : clock speed 950 kHz
Error: open failed
in procedure 'init'
in procedure 'ocd_bouncer'

Any hint how to get it working, plz?
Last edited by pito on Fri Mar 25, 2016 7:30 pm, edited 1 time in total.

pito
Posts: 199
Joined: Sun Nov 06, 2011 3:54 pm

Re: STLink dongle cfg

Postby pito » Fri Mar 25, 2016 7:27 pm

I've tried the stm32f4discovery.cfg (as the dongle is v2) and I've got a bit better result, but the chip does not match (working with stm32vldisco):

Code: Select all

Warn : Interface already configured, ignoring
Error: already specified hl_layout stlink
Info : The selected transport took over low-level target control. The results might differ compared to plain JTAG/SWD
adapter speed: 2000 kHz
adapter_nsrst_delay: 100
none separate
srst_only separate srst_nogate srst_open_drain connect_deassert_srst
Info : Unable to match requested speed 2000 kHz, using 1800 kHz
Info : Unable to match requested speed 2000 kHz, using 1800 kHz
Info : clock speed 1800 kHz
Info : STLINK v2 JTAG v25 API v2 SWIM v4 VID 0x0483 PID 0x3748
Info : using stlink api v2
Info : Target voltage: 3.228402
Warn : UNEXPECTED idcode: 0x1ba01477
Error: expected 1 of 1: 0x2ba01477
in procedure 'init'
in procedure 'ocd_bouncer'

pito
Posts: 199
Joined: Sun Nov 06, 2011 3:54 pm

Re: STLink v2 dongle clone cfg

Postby pito » Fri Mar 25, 2016 7:52 pm

OK, with ST-link V2 and
..openocd/scripts/target/stm32f1x.cfg
it starts to work!

Dwar
Posts: 12
Joined: Fri Jan 08, 2016 2:04 pm
Location: USA
Has thanked: 4 times
Been thanked: 3 times

Re: STLink v2 dongle clone cfg

Postby Dwar » Sat Mar 26, 2016 2:32 am

I have one of those inexpensive dongles that I use for a STM32F1xx board that works ok. It only supports the st-link v2 protocol.

This is what I use for openocd:

Code: Select all

-c "telnet_port 4444" -s "C:\ChibiStudio\tools\openocd\scripts" -f "interface/stlink-v2.cfg" -f "board/olimex_stm32_p107.cfg" -c "stm32f1x.cpu  configure -rtos ChibiOS"


Regards!
--dave

pito
Posts: 199
Joined: Sun Nov 06, 2011 3:54 pm

Re: STLink v2 dongle clone cfg

Postby pito » Sat Mar 26, 2016 7:36 am

It works with F4Discovery board too - with standard ST_LInk V2 settings but:
openocd/scripts/target/stm32f4x.cfg
selected.


Return to “ChibiStudio”

Who is online

Users browsing this forum: No registered users and 6 guests