/var/www/restricted/ssh/stm32/www/stm32circle/ STM CircleOS forum / STM32, JTAG programming under Linux ?

Username:     
Password:     
             

Forum

# 1   2008-03-03 07:20:00 STM32, JTAG programming under Linux ?

graham
Member
Registered: 2008-02-23
Posts: 32

STM32, JTAG programming under Linux ?

Hi all,
Has anyone programmed the STM32 chips under Linux without the fatfryer USB mod ?

I understand, (correct me if I'm wrong), that a new, unprogrammed ST32 ARM can only be initially programmed via the JTAG port.  I have a JTAG interface (somewhere), and I'm trying to figure out how worthwhile it is to go down this path...

If there's enough components in existence, then I could wrap up a GUI in Tkinter via Python, I really dislike booting up in windows !

Offline

 

# 2   2008-03-03 08:44:45 STM32, JTAG programming under Linux ?

Francis
Administrator
From: France-Grenoble
Registered: 2007-07-09
Posts: 890

Re: STM32, JTAG programming under Linux ?

Offline

 

# 3   2008-03-03 11:08:34 STM32, JTAG programming under Linux ?

graham
Member
Registered: 2008-02-23
Posts: 32

Re: STM32, JTAG programming under Linux ?

thanks, I've been researching that one.
It looks like Eclipse (an IDE available free in Linux) can wrap around the codesourcery ARM stuff AND OpenOCD for the JTAG, but I'm still trying to get my head around installing them and making them work together.

Offline

 

# 4   2008-03-06 00:47:33 STM32, JTAG programming under Linux ?

abardsley
New member
From: Manchester, UK
Registered: 2007-12-20
Posts: 2

Re: STM32, JTAG programming under Linux ?

The JTAG lines to the STM32 are sourced from the ST7.  I wonder how hard it would be to reprogram the ST7 to allow more direct access. The programming lines for the ST7 are available on the circle and ST give app. notes for parallel port programming via that interface.  Hmm.

Offline

 

# 5   2008-05-12 00:25:50 STM32, JTAG programming under Linux ?

lou
New member
Registered: 2008-05-05
Posts: 7

Re: STM32, JTAG programming under Linux ?

abardsley :

The JTAG lines to the STM32 are sourced from the ST7.  I wonder how hard it would be to reprogram the ST7 to allow more direct access. The programming lines for the ST7 are available on the circle and ST give app. notes for parallel port programming via that interface.  Hmm.

They are.  But the lines may very well be tristated (high impedance) when the ST7 isn't active (no USB cable plugged in, for instance).  Unfortunately, I do not have the equipment to test that out.  If that cannot be assured, then surely holding the chip in reset (by tying pins 1 and 5 of J3 together, for instance) would do it.  Once they are assured to always be tristated, then not only would it be possible to flylead a JTAG interface, but Serial Wire Debug would become available as well.  Of course, one could just desolder the chip, entirely.  Either way, it looks like all of the JTAG lines (the usual 4 plus TRST and SRST) are available on vias under the chip.

I looked into reprogramming the ST7, but that poses the same problems that the Windows-only support for the RLink programmer does.  The only compiler I've found for ST7 comes from Raisonance, and is Windows-only.  The ST7 core appears to be some variant of 6502, but the status register is laid out quite differently, and I don't fancy trying to hack an existing 6502 C compiler to deal with it.  Besides, that is unlikely (though conceivably possible) to be the only difference.   I haven't touched 6502 since High School.

Last edited by lou (2008-05-13 12:55:13)

Offline

 

# 6   2009-02-27 08:40:04 STM32, JTAG programming under Linux ?

zwieblum
Member
Registered: 2008-12-19
Posts: 68

Re: STM32, JTAG programming under Linux ?

Primer 1 is supported by OpenOCD, see http://www.stm32circle.com/forum/viewtopic.php?id=23 for more information.

Offline

 

Board footer