/var/www/restricted/ssh/stm32/www/stm32circle/ STM CircleOS forum / Primer as stand alone programmer ?

Username:     
Password:     
             

Forum

# 1   2008-01-07 21:26:03 Primer as stand alone programmer ?

ThomasScherrer
Member
From: Denmark
Registered: 2007-10-29
Posts: 64
Website

Primer as stand alone programmer ?

can I use the JTAG interface in the circle primer as a standalone jtag programmer ?
not as debugger, but hex file input and batch file will be cool ?
or via RIDE7 ? for all sorts of other hardware platforms ?


Thomas Scherrer Denmark webx.dk

Offline

 

# 2   2008-01-07 22:03:39 Primer as stand alone programmer ?

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

Re: Primer as stand alone programmer ?

You could.... but  I guess that it will be  not so easy to output the signals.
You could also purchase a standard RLink (that's not very expensive) and you will save  your time and your energy.

Offline

 

# 3   2008-01-07 22:21:27 Primer as stand alone programmer ?

ThomasScherrer
Member
From: Denmark
Registered: 2007-10-29
Posts: 64
Website

Re: Primer as stand alone programmer ?

ya I guess it is hardcoded to the onboard STM32
but I see the pads are avail there, just need to disable or reset the STM32 on the circle ?

it was just a fast jump to a solution to avoid using the bootloader pc software as development uploader !
it simply takes too long time to click thru it again and again,
the board I use at the moment is from keil and I have the keil jtag me, but it is not supported by ride7,
and I did not manage to get the microvision to work with GCC compiler (it was also included as install option on the CD) but I can not see the option about how to use GCC instead on the keil limited compiler.
I like ride7 a bit more the editor is also faster and abit better for my taste.

http://www.raisonance.com/products/RLink.php
will this be 100% pin compatible with my keil stm32 board ?'
http://www.keil.com/pr/article/1127.htm

is it possible to use the ULINK-ME from keil as jtag programmer with ride7 ?
as an external programmer ? or with microvision in programming only mode ?
with no project open ? like if someone sends you a cool hex file ?
maybe look here:
http://www.keil.com/support/docs/3061.htm

why so many pins in the JTAG ?
will I really need all those pins in my final applications to jtag program my chips ?

Last edited by ThomasScherrer (2008-01-07 22:50:35)


Thomas Scherrer Denmark webx.dk

Offline

 

# 4   2008-01-08 05:11:12 Primer as stand alone programmer ?

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

Re: Primer as stand alone programmer ?

Yes, the Primer embeds a RLink-STD.  Same firmware, ...
The RLink-STD is not limited for programming anf it allows debuggin up to 32KB (the RLink PRO is the same product, without the 32KB limitation for debuggin).

For the signals, RLink uses  TDI, TDO, TCK, TMS. It needs also Gnd, Vcc (from the target) and the reset  signal.
In the future (08Q2), RIDE7 will also support the SWD protocol through the existing RLink. The SWD protocol uses less signals (only a clock a nf one data signal).
NO, you can't use ULINK with RIDE7. I am not an expert for this product...

Offline

 

# 5   2008-01-08 07:55:14 Primer as stand alone programmer ?

ThomasScherrer
Member
From: Denmark
Registered: 2007-10-29
Posts: 64
Website

Re: Primer as stand alone programmer ?

Thanks for the input I have to deside what direction I want to go,
you see the keil compiler makes smaller and faster code compared to the ride7 with GCC,
so maybe it is smarter to simply purchase the keil compiler ?
but I like free !! and I like to be able to use STM32 both at home for private projects and at work for serious projects,
I also prefer to use the SAME gui and same compiler.

Last edited by ThomasScherrer (2008-01-08 07:56:38)


Thomas Scherrer Denmark webx.dk

Offline

 

# 6   2008-01-08 09:49:39 Primer as stand alone programmer ?

VincentC
Administrator
Registered: 2007-11-08
Posts: 149

Re: Primer as stand alone programmer ?

Hi,

The JTAG also needs TRST. So you need 8 signals:
GND, VCC, TCK, TMS, TDI, TDO, TRST, RST. (be careful not to connect RST and TRST, which are two completely independant signals. it is a common mistake to connect them but if you do so, the JTAG programming will very probably fail)

You can drop RTCK, DBGRQ and DBGACK. (connect big 10K pull-downs to GND on the STM32 side and leave them unconnected on the RLink)

I suggest you download the schematics of the demo boards from ST, Raisonance and/or others as examples for your board.

Finally, please note that the primer is not intended to be used as a RLink for another CPU than the STM32 in the primer. If you attempt to do so, we will not provide you with any support. We really recommend you purchase a stand-alone RLink. (that you can also use for STRx, ST7 and uPSD... wink )

Best Regards,

Vincent

Offline

 

# 7   2008-01-14 08:22:25 Primer as stand alone programmer ?

shug
Member
Registered: 2007-10-03
Posts: 18

Re: Primer as stand alone programmer ?

Francis :

In the future (08Q2), RIDE7 will also support the SWD protocol through the existing RLink. The SWD protocol uses less signals (only a clock a nf one data signal).

Are you are refering to the stand alone version of the RLink, or the embedded version in the Primer?

Offline

 

# 8   2008-01-14 08:59:31 Primer as stand alone programmer ?

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

Re: Primer as stand alone programmer ?

To both. The Primer embeds an exact  standard RLink.

Offline

 

# 9   2008-01-14 10:26:25 Primer as stand alone programmer ?

ThomasScherrer
Member
From: Denmark
Registered: 2007-10-29
Posts: 64
Website

Re: Primer as stand alone programmer ?

great info Vincent !! cant hardly wait :-)
can we use the SWD pins as programming interface also ?
and also in production ? to save pins ?

I heve received both a real Rlink and Reva starter kit, wow that is a cool board to test several os ST's MCU's


Thomas Scherrer Denmark webx.dk

Offline

 

# 10   2008-01-14 12:06:05 Primer as stand alone programmer ?

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

Re: Primer as stand alone programmer ?

<<can we use the SWD pins as programming interface also ?>>
Yes JTAG and SWD are two path to access the internal buses. SWD allows a few additional features for debuggubg, but nothing less than JTAG.
SWD uses TMS and TCK.  Other JTAG pins will be available for the application.

Offline

 

# 11   2008-01-16 15:10:07 Primer as stand alone programmer ?

ThomasScherrer
Member
From: Denmark
Registered: 2007-10-29
Posts: 64
Website

Re: Primer as stand alone programmer ?

if I look at page 20-24 in the performance datasheet,
the signals are not called exactly the same as you talk about, Vincent and Francis,


NRST
JTMS/SWDIO  (PA13)
JTCK/SWCLK  (PA14)
JTDI  (PA15)
JTDO  (PB3)
JNTRST  (PB4)


Thomas Scherrer Denmark webx.dk

Offline

 

# 12   2008-01-17 08:27:02 Primer as stand alone programmer ?

shug
Member
Registered: 2007-10-03
Posts: 18

Re: Primer as stand alone programmer ?

Thomas

We are using the STM32F103 with virtually all the pins taken up by the application and we are happily using the Keil ULink2 to programme our hardware [NOT THE PRIMER] through the SWD interface. You only need target Vcc, Ground, NRST, SWCLK(PA14) and SWDIO (PA13). I should also say at this point we are not using RIDE either.

Last edited by shug (2008-01-17 08:32:50)

Offline

 

Board footer