Sonsivri

Electronics => Hardware and Tools => Topic started by: dcsmrgun on February 09, 2013, 06:11:52 18:11



Title: Keil MDK + ST-Link v2 + Non-ST chips/boards?
Post by: dcsmrgun on February 09, 2013, 06:11:52 18:11
A lot, if not all, of the STM32 Discovery boards have on-board ST-Link interfaces with optional jumpers to allow you to debug/program external circuits.

Does anyone know if they can be used to debug boards or chips that aren't produced by ST? I'm specifically wondering about using Keil MDK-ARM with its ST-Link feature.

If this is something that is doable, I'm thinking about just putting my STM32F3Discovery in a project-box and using it as a SWD/JTAG programmer for future ARM Cortex projects. I am using the STM32F3Discovery because it seems to be supported in Keil (and I'm just migrating my workflow to Keil today so hopefully that's correct), but I also have a few TI-Stellaris and LPCXpresso boards that I'd like to be able to program, not to mention a few bare LPC1768 chips.

I could spend the money on a JLink clone or an Olimex JTAG programmer, but if the STM board I have no works then there's really no reason to put out extra dollars.

Any advice/suggestions/thoughts?

Thanks!


Title: Re: Keil MDK + ST-Link v2 + Non-ST chips/boards?
Post by: Ichan on February 10, 2013, 10:19:30 10:19
Never tried that, but i think it wont work - logically it will read the target chip signature first and no reason to support competitors.

Let us know if you try this.

-ichan


Title: Re: Keil MDK + ST-Link v2 + Non-ST chips/boards?
Post by: Mega32 on February 10, 2013, 12:40:24 12:40
Someone says he has debugged a LPC1768 with a stlink.
It seems that most Cortexes shares the same TAP ID , and thats seems to be whats checkked

Mega32


Title: Re: Keil MDK + ST-Link v2 + Non-ST chips/boards?
Post by: dcsmrgun on February 12, 2013, 05:04:34 05:04
Hmm, interesting. I will try to run some tests this week if time permits.