Spark Logic

Help with st-link

BennehBoy Fri Jan 27, 2017 11:25 am

I managed to brick one of my maple mini clones when attempting to use victors firmware updater sketch.

I bought an st-link2 clone which arrived today.

I’ve connected ground to ground on the mini, reset to reset on the min, SWCLK to pin 21, and SWDIO to pin 22

I then powered the Mini only by USB (so not 3.3v connection from the st-link2 clone)

The st-link utility reports the following:

11:23:49 : Can not connect to target!
Please select "Connect Under Reset" mode from Target->Settings menu and try again.
If you're trying to connect to a low frequency application , please select a lower SWD Frequency mode from Target->Settings menu.
11:23:50 : No target connected

Replies

BennehBoy Thu Feb 02, 2017 10:57 pm

Should be a way to use this method -> https://github.com/rogerclarkmelbourne/ … from-Linux

But it will need a different config for the ch340 usb to serial…

So this line:

while true; do openocd -f /usr/local/share/openocd/scripts/interface/stlink-v2.cfg -f /usr/local/share/openocd/scripts/target/stm32f1x.cfg ; sleep 1;done

Would need to look something like:

while true; do openocd -f /usr/local/share/openocd/scripts/interface/ftdi/ch340.cfg -f /usr/local/share/openocd/scripts/target/stm32f1x.cfg ; sleep 1;done

I’m trying to find a suitable config though.

RogerClark Thu Feb 02, 2017 11:08 pm

Can someone repost to this thread, as I need to check the cacheing

BennehBoy Thu Feb 02, 2017 11:19 pm

reposted

RogerClark Thu Feb 02, 2017 11:49 pm

This is a test post. I will delete later to test the server caching issues

Sign in to reply