Versaloon & STM32 VL Discovery & F4 target

ChibiOS public support forum for all topics not covered by a specific support forum.

Moderators: RoccoMarco, lbednarz, tfAteba

Post Reply
User avatar
kulve
Posts: 86
Joined: Mon Nov 28, 2011 8:36 pm

Versaloon & STM32 VL Discovery & F4 target

Post by kulve »

Hi

This is quite off-topic for this forum but maybe somebody has bumped into this issue here as well.

I'm using a VL Discovery (F1) with Versaloon firmware together with OpenOCD to debug my F2 board. It's working well when using exactly the right versions of things.

I have F4 version of our board as well as the F4 is at least pin compatible with F2. But no matter what I do I can't get OpenOCD to find my F4 target. This is all I get:

Code: Select all

$ sudo /tmp/oocd/bin/openocd -f interface/vsllink-swd.cfg -target/stm32f4x.cfg
Open On-Chip Debugger 0.6.0-dev-00406-g0b0281d (2012-02-11-17:00)
Licensed under GNU GPL v2
For bug reports, read
        http://openocd.sourceforge.net/doc/doxygen/bugs.html
Warn : must select a transport.
Info : OpenOCD runs in SWD mode
DEPRECATED! use 'adapter_khz' not 'jtag_khz'
2000 kHz
DEPRECATED! use 'adapter_nsrst_delay' not 'jtag_nsrst_delay'
adapter_nsrst_delay: 100
jtag_ntrst_delay: 100
Info : Versaloon(0x33)by Simon(compiled on Feb 12 2012)
Info : USB_TO_XXX abilities: 0x00000008:0x00000040:0xC0000006
Info : clock speed 2000 kHz
Error: SWD-DP OVERRUN - check clock, memaccess, or reduce swd speed
Error: SWD-DP STICKY ERROR
Error: SWD-DP OVERRUN - check clock, memaccess, or reduce swd speed
Error: SWD-DP STICKY ERROR
Error: SWD-DP OVERRUN - check clock, memaccess, or reduce swd speed
Error: SWD-DP STICKY ERROR
Error: SWD-DP OVERRUN - check clock, memaccess, or reduce swd speed
Error: SWD-DP STICKY ERROR


The last two lines keep repeating really fast.

Any suggestions?

PS. Are the JTAG/SWD pins pin muxed as JTAG in the STM32 boot mode?

Thanks.
User avatar
Giovanni
Site Admin
Posts: 14895
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

Re: Versaloon & STM32 VL Discovery & F4 target

Post by Giovanni »

Did you try doing as suggested? reducing the clock speed? it is 2MHz apparently.

Giovanni
User avatar
kulve
Posts: 86
Joined: Mon Nov 28, 2011 8:36 pm

Re: Versaloon & STM32 VL Discovery & F4 target

Post by kulve »

Actually it's been 1000KHz usually. I just tested once with 2000KHz and didn't remember that when cut'n'pasting here.
User avatar
kulve
Posts: 86
Joined: Mon Nov 28, 2011 8:36 pm

Re: Versaloon & STM32 VL Discovery & F4 target

Post by kulve »

Now I got the connection.

So far I tried with an empty flash as flashing would have been the first thing to do with OpenOCD/GDB.

I flashed the software over UART and now I can get connection with OpenOCD in the normal mode (even though I my pin mux for JTAG is wrong as I don't know how I should configure them).

Too many moving parts and too little knowledge.
Post Reply