www.mikrocontroller.net

Forum: Mikrocontroller und Elektronik Use your STMxx-Discoveryboard as JTAG (SWD)


Autor: Bingo (Gast)
Datum:
Angehängte Dateien:

Ich habe versaloon angepasst (nur SWD) fur die onboard ARM debugger am :
1: STM8S-Discovery
2: STM32VL-Discovery

vsprog funktioniert , so ich kann programmiere meiner STM32VL-Discovery
via die eingebaute USB.

Und Simon arbeitet am einer neues OpenOCD patch , ich habe problemen mit
OOCD und die neue versaloon firmware.


Siehe weiter hier

http://www.avrfreaks.net/index.php?name=PNphpBB2&f...

Die sources kommt bald , wann OOCD is fixed.

mfg
Bingo Dänemark
Autor: Bingo (Gast)
Datum:

Ohh

Tested on Versaloon SVN rev 669 , also for vsprog

/Bingo
Autor: Bingo (Gast)
Datum:

Yess

OpenOCD funktioniert auch

http://www.versaloon.com/bbs/viewtopic.php?p=63#p63

mfg
Bingo Dänemark
Autor: Bingo (Gast)
Datum:

Und sourcecode als versprochen

http://www.versaloon.com/bbs/viewtopic.php?p=65#p65

mfg
Bingo
Autor: Tom (Gast)
Datum:

Was erzählt der da uns?
Autor: Stefan B. (stefan) Benutzerseite
Datum:

Tom schrieb:

> Was erzählt der da uns?

Du musst das nicht nutzen. Einfach weitergehen...

Bingo arbeitet kräftig an dem OpenSource & OpenHardware Projekt
Versaloon mit und stellt seine Arbeiten der Community zur Verfügung.
Ich finde das Projekt spannend. "Uns anderen" kann das z.B. bei ISP
und JTAG nutzen.
Autor: Bingo (Gast)
Datum:

Neu funktionierende OpenOCD BuildScript hier

http://www.versaloon.com/bbs/viewtopic.php?p=74#p74

Bingo Dänemark
Autor: Bingo (Gast)
Datum:

Die Versaloon SWD port für STM8S & STM32VL ist jetzt im Versaloon trunk
(Rev 688+).

svn checkout http://vsprog.googlecode.com/svn/trunk/


Da sind einer kleiner fehler (rev 688) für die STM8S im
dongle/firmware/Projects/board_defs.mk

LD_FILE     = sd-discovery.ld

soll

LD_FILE     = st-discovery.ld

werden.

Build OOCD als hier
http://www.versaloon.com/bbs/viewtopic.php?p=74#p74

mfg
Bingo Dänemark
Autor: Trockenpflaume (Gast)
Datum:

Die Seite ist ziemlich uninformativ, aber es ist wohl eine Art USBProg
auf STM32 Basis.
Autor: Bingo (Gast)
Datum:

Versaloon ist einer ARM JTAG am STM32 basis.

Und ich habe die ARM JTAG SWD angepasst für die OnBoard ST-Link am
STm8S-Discovery und STM32VL-Discovery boards angepasst.

Nur SWD (Serial Wire Debug), als die ausführte pins (0.1" pinheaders) am
die 2 boards , nur habe 2 pins.

Wann die Versaloon ist im ST-Link ARM chip programmiert , dan können sie
die board brauchen als ARM SWD debugger mit OpenOCD.

Und am die STM32VL-Discovery kann man die onboard STM ARM-ValueLine
direkt programmiere via OpenOCD oder vsprog , nur die standard STM32VL
USB kabel ist connected zu PC. Und die eingebaute ARM-USB chip (ST-Link
mit Versaloon firmware) programmiere die onboard STM32-VL chip via SWD.

Ich hoffe sie verstehe meiner "Schule Deutch"

mfg
Bingo Dänemark.
Autor: Bingo (Gast)
Datum:

Ich habe einer fehler mit "Target Reset / Value-Line MCU" am
STM32VL-Discovery board korrigiert.

Siehe veiter hier (erste post)
http://www.versaloon.com/bbs/viewtopic.php?f=2&t=1...

OpenOCD funktioniert jetzt ok.
Aber ich glaube das ich release noch einer version in die nexte 2
wochen.


mfg
Bingo Dänemark
Autor: Bingo (Gast)
Datum:

Tim hast einer nettes guide macht hier
Um einer STM32VL brauchen zum konvertiere ein andere STM32VL zum
Versaloon

http://takenapart.com/?p=82

Die firmware und OOCD sind hier (erste post)
http://www.versaloon.com/bbs/viewtopic.php?f=2&t=17

mfg
Bingo Dänamark
Autor: Uwe Bonnes (Gast)
Datum:

Was fehlt noch fuer die JTAG Programming mit den modifizierten STM
Adaptern?
Autor: Bingo (Gast)
Datum:

Die STM32VL hast nur 2 ST-Link-MCU pins am "Pinheaders"

Die STM8S hast auch nur 2 , und die ST-Link-MCU "Native JTAG" pins

Ob Versaloon die "Native Pins" brauchen kann , dann sind Jtag villeicht
possible.

Ich habe Simon fragt ob Jtag specielle funktionen braucht (SPI), oder
nur normales GPIO pins ?

Kein antvort bis heute


mfg
Bingo Dänemark
Autor: Info (Gast)
Datum:

So I could use two STM8S to flash your branch of versaloon's Vsprog onto
one with the other?
Autor: klausr (Gast)
Datum:

Hallo,

ich wollte eines meiner zwei STM32VL Boards nach versaloon konvertieren
- leider kann ich nicht mehr auf das Versaloon Forum
(http://www.versaloon.com/bbs/viewtopic.php?f=2&t=17) zugreifen. Gibt es
die unter http://takenapart.com/?p=82 erwähnte binaries auch woanders
zum runterladen? Woher bekomme ich einen aktuellen OpenOCD? Vielen Dank
im Voraus für eure Hilfe!

-Klaus
Autor: Info (Gast)
Datum:

> leider kann ich nicht mehr auf das Versaloon Forum .. zugreifen.
Das ging vorhin noch. Bestimmt nur temp..
Autor: klausr (Gast)
Datum:

Ja Danke! Geht wieder...

-Klaus
Autor: Bingo (Gast)
Datum:

@Info

I have used a normal "ARM-Jtag" to convert the STM8S to versaloon.

Quite easy , as the jtag headers is available on a STM8S.

Once i have Versaloon in a STM8S i can program a STM32VL via SWD.

/Bingo
Autor: klausr (Gast)
Datum:

@Bingo: My problem was, that www.versaloon.com/bbs was down. It works
again now. I have two STM32 discoveries and I want to convert one to
versaloon, and I needed the files mentioned in that thread in the
versaloon forum.

-Klaus
Autor: Info (Gast)
Datum:

Ok so I can convert an STM discovery board into versaloon with another
discovery board.
Can I use that firmware to flash MSP430 via JTAG? You mentioned two
pins, but I'm not sure what this implies - so please be so kind and tell
what the limitations of versaloon on the ST-Link are.
Autor: Bingo (Gast)
Datum:

The STM-Discovery boards only supports ARM Cortex SWD for the moment.

This is due to the 2 pin limit.

If you need a full Versaloon (Jtag & other features) , i suggest you get
a "Real Versaloon" dongle.

When i get the bootloader working , i might be able to convert the
STM8S-Discovery to a Jtag & SWD versaloon. As i might be able to use the
"Native Jtag" pins for the missing JTAG pins.
But it depends on how Simon drives the other pins , and if he uses the
pins in a "Non GPIO" mode , that is bound to a specific pin.


/Bingo
Autor: Info (Gast)
Datum:

Tak for det.
Autor: Bingo (Gast)
Datum:

@klausr

What do you need ?

I suggest you grab the bootloader from here
http://www.versaloon.com/bbs/viewtopic.php?p=742#p742

Program the bl_GCC.bin file into a STM32 , using the other one.
I haven't tried the using a STM32-Discovery with STM's windowsprogrammer
But Tim says it works. Just remember to to unlock the STM32 first , as
ST enables the protection bits ... And so does the bootloader.

Then you can build your own firmware , but remember to change the
flash-origin and load-offset in the 2 files (make room for the
bootloader) , as described the the quote above.
See http://www.versaloon.com/bbs/viewtopic.php?f=2&t=1...


For OpenOCD ... It's a bit more tricky (and i have only tried on Linux)

OpenOCD changes often , and is sometimes broken.
I made changes to Simons script here (forcing checkout of a specific
version)
http://www.versaloon.com/bbs/viewtopic.php?f=2&t=2...

This is the version i'm currently using.
http://www.versaloon.com/bbs/viewtopic.php?f=2&t=1...

Change the
WORKING_GIT_REV=4994c6008382d14875f122d2036dcabbde53221b
to
WORKING_GIT_REV=0123985abc88876ca8ecd03e9a5462cc8e911693

In the script i modified (listed) above , should check out that
revision.

/Bingo
Autor: Bingo (Gast)
Datum:

@klausr

I forgot ...

You still need to get Simons "OOCD" package from here , as it contains
the OOCD patches.
http://www.versaloon.com/bbs/viewtopic.php?f=2&t=29

Get this one (the 01-30)
http://www.versaloon.com/bbs/download/file.php?id=38

Just edit/replace the oocd_update with the script i made.

Or you can try the latest OOCD (using Simons script unmodified)...
Sometimes it works :-)

@Info ... Selv tak

/Bingo
Autor: J. V. (janvi)
Datum:

as far as I can understand, your posting explains how to connect openOCD
with the 2 pin Serial Wire Debug Interface from ST. Versaloon seems to
be a hardware board what can do the cable link to the target (?). I
already have a ST-Link but up on today, this seems to be limited for
JTAG connections only? Your STM32VL-Discovery is used as a target system
or programming cable ?

Is anybody able to provide a a step by step instruction on how to
install OOCD debugger with STM32 2 pin SWD connection ?
Autor: OppaErich (Gast)
Datum:

Hallo,

ich kenne bisher nur Bootloader und besitze keinen ST-Link. Kann ich
einen 8S oder 32VL nehmen um einen weiteren 8S zu konvertieren ?

Oppa
Autor: Karsten F. (Firma: von Dänemark) (bingo600)
Datum:

Einer 32VL sollte funktioniere als ST-Link , und kann ein andere 32VL
oder 8S programmiere (Ich habe nut 8S konvertiert mit JTAG , nicht SWD).
Aber ich glaube das 8S und SWD kein problem werde.

http://takenapart.com/?p=82

mfg
Bingo
Autor: Oliver R. (sourcebox)
Datum:

Ich würde das aktuell gerne mit einem VL-Discovery ausprobieren, aber
ich stelle fest, dass ich zu blöd bin, an ein aktuelles Binary zu
kommen. Alle Links zum Versaloon-Forum laufen ins Leere und wenn ich bei
Google-Code aus dem SVN eine aktuelle Revision auschecke, dann ist dort
kein ST-Link Support mehr drin.
Autor: Karsten F. (Firma: von Dänemark) (bingo600)
Datum:
Angehängte Dateien:

Oliver R. schrieb:
> Alle Links zum Versaloon-Forum laufen ins Leer

Simon hast die neue Versaloon forum am yahoogroups macht.
http://tech.groups.yahoo.com/group/versaloon/

Einer backup von die alte group sind hier
http://www.versaloon.com/~bbs/viewtopic.php?p=22587
Aber die interne links im alte posts  muss manuelt anpassen verden bbs
muss /~bbs/ verden

Ich habe fungerende binaries (svn-968) und OOCD buildacript als anhang
macht


Hoffe das hilfe

mfg
Bingo Dänemark
Autor: Oliver R. (sourcebox)
Datum:

Vielen Dank, das hilft mir schon mal weiter. Ich versuche gerade zu
verstehen, wie das ganze funktioniert. Zum Flashen wollte ich einmalig
das ST-Link Utility unter Windows benutzen und später unter Linux bzw.
OSX arbeiten. Brauche ich dazu die Version mit oder ohne Bootloader?
Autor: Karsten F. (Firma: von Dänemark) (bingo600)
Datum:

I'll have to continue in english here.

For a start i'll recommend that you install the version without
bootloader.
Then you only have to install/flash the firmware. And it will work.

Play around , and when comfortable , maybe reflash with bootloader.



For bootloader
You have to make 2 steps

1: Flash the bootloader
2: Use vsprog & bootloader to load "real versaloon" firmware
See /svn-986/STM32VL/Bootloader/Simon-BL/Versaloon-BL-How2.txt

Advantage of bootloader is that you hopefully never have to flash it
again , you can just load new firmware with vsprog & the bootloader.


Ps: Every time you flash , remember to remove the "Write protect" fuses.
    You will have to find out how , depending on what programmer you
use.


Rgds
Bingo
Autor: Oliver R. (sourcebox)
Datum:

I got the no-bootloader version running. Now moving on to the OpenOCD
stuff.
Autor: Karsten F. (Firma: von Dänemark) (bingo600)
Datum:

Super

There might be some OOCD tips here
http://www.versaloon.com/~bbs/viewtopic.php?f=2&t=10695


******** For STM32L , ans maybe STM4F ********

Here is a link to the STM32L (not VL) thread if anyone has one.
http://www.versaloon.com/~bbs/viewtopic.php?p=23356#p23356

I'd suspect the STM32L mod and the STM4F mod , to be the same as the
ST-Link hardware on the board is 99% equal (STM32L just has Zeners added
to the SWD i/f)

Simon says he new SVN trunk supports STM4F , see yahoo.

Rgds
Bingo

Antwort schreiben

Die Angabe einer E-Mail-Adresse ist freiwillig. Wenn Sie automatisch per E-Mail über Antworten auf Ihren Beitrag informiert werden möchten, melden Sie sich bitte an.

Wichtige Regeln - erst lesen, dann posten!

  • Groß- und Kleinschreibung verwenden
  • Längeren Sourcecode nicht im Text einfügen, sondern als Dateianhang

Formatierung (mehr Informationen...)

  • [c]C-Code[/c]
  • [avrasm]AVR-Assembler-Code[/avrasm]
  • [code]Code in anderen Sprachen, ASCII-Zeichnungen[/code]
  • [math]Formel in LaTeX-Syntax[/math]
  • [[Titel]] - Link zu Artikel




Bitte das JPG-Format nur für Fotos und Scans verwenden!
Zeichnungen und Screenshots im PNG- oder GIF-Format hochladen.
Siehe Bildformate

Mit dem Abschicken erkennst du die Nutzungsbedingungen an.

webmaster@mikrocontroller.netImpressumNutzungsbedingungenWerbung auf Mikrocontroller.net