Home arrow Support arrow Forums

Luminary Micro Forums

swinchen

Expert Boarder

2008/10/10 12:35

OpenOCD w/ lm3s102

Hi All,

I got my ARM-USB-TINY from Sparkfun today and am trying to configure OpenOCD to talk to my LM3S102. Does anyone have a working configuration that they wouldn't mind sharing?

Also, the JTAG connector has a VREF, and VTARGET. Should I connect both of those to the 3.3 supply?

Thanks,

Sam

p.s... I am trying to use a hacked lm3s811 OpenOCD configuration file:

Code:

  # Script for luminary lm3s811 interface ft2232 ft2232_device_desc "Olimex Ltd. OpenOCD JTAG TINY" ft2232_layout olimex-jtag ft2232_vid_pid 0x15BA 0x0004 # jtag speed jtag_khz 500 jtag_nsrst_delay 100 jtag_ntrst_delay 100 #LM3S811 Evaluation Board has only srst reset_config srst_only #jtag scan chain #format L IRC IRCM IDCODE (Length, IR Capture, IR Capture Mask, IDCODE) jtag_device 4 0x1 0xf 0xe # the luminary variant causes a software reset rather than asserting SRST # this stops the debug registers from being cleared # this will be fixed in later revisions of silicon target cortex_m3 little 0 lm3s # 8k working area at base of ram working_area 0 0x20000000 0x2000 nobackup #flash configuration flash bank stellaris 0 0 0 0 0

login or register to reply

cb1

Platinum Boarder

2008/10/10 18:02

Re:OpenOCD w/ lm3s102

Good thing you're not in a hurry. Earlier you mentioned IAR - have you aborted that approach?

login or register to reply

swinchen

Expert Boarder

2008/10/10 22:13

Re:OpenOCD w/ lm3s102

cb1 wrote:
Good thing you're not in a hurry. Earlier you mentioned IAR - have you aborted that approach?

I don't think it was me that mentioned IAR... I wasn't even sure what IAR was until I googled it just now. I am using purely free development tools.

Thanks,
Sam

login or register to reply

cb1

Platinum Boarder

2008/10/11 04:55

Re:OpenOCD w/ lm3s102

Thought it was you - IAR has a free Kick Start development IDE functional up to 32KB of code - certainly suitable for 3S102.

It does work best with a JTAG device - theirs is called JLink - and this does cost.

As the 3S102 is "pin starved" I urge you to investigate SWD (Serial Wire Debug). While not quite true - SWD can reduce your "lost JTAG pins" from 5 to just 2.

*** Lastly - be sure to read/understand LMI's caution about "appropriating" any of the JTAG pins. (look for "JTAG-GPIO" in either part's data-sheet or PDL code library) Do NOT change a pin from its default JTAG functionality unless you have a tested, recovery mechanism! Doing so will lock your debugger from the part - forever!

S102's PB7 is most always "changed" from JTAG to GPIO - enabling the creation of an 8 bit port. (PB) And PB7 is a JTAG pin! Now if you use SWD - as I suggested earlier - PB7 is SAFELY FREED and you gain your 8 bit port without issue...

Post edited by: cb1, at: 2008/10/12 06:16

login or register to reply

ddrennan

Senior Boarder

2008/11/06 06:23

Re:OpenOCD w/ lm3s102

Did you ever manage to make any progress with this?

login or register to reply