Reply by Tom Walsh June 30, 20062006-06-30
Shane Harrison wrote:

> Thanks Tom.
>
> I now am talking to the BDI2000 - yipee! I originally understood that I
> needed to use adaptive clocking with the LPC2106 (there are discussions
> about the Jeeni JTAG debugger not working with LPC2106 because it doesn't
> support RTCLK) - anyway given you weren't using it, I tried a pretty slow
> JTAG clock and it seems to be fine.
>
> Now to fire up gdb :-)
>
I use Insight as the front-end for gdb, look at:
http://www.openhardware.net/?title=ARM%20Thumb%20tools%20for%20LPC2000&dir=ArmTools&file=ThumbToolchain.html
TomW
--
Tom Walsh - WN3L - Embedded Systems Consultant
http://openhardware.net, http://cyberiansoftware.com
"Windows? No thanks, I have work to do..."
----------------

An Engineer's Guide to the LPC2100 Series

Reply by Shane Harrison June 30, 20062006-06-30
Thanks Tom.

I now am talking to the BDI2000 - yipee! I originally understood that I
needed to use adaptive clocking with the LPC2106 (there are discussions
about the Jeeni JTAG debugger not working with LPC2106 because it doesn't
support RTCLK) - anyway given you weren't using it, I tried a pretty slow
JTAG clock and it seems to be fine.

Now to fire up gdb :-)

Have a great weekend - it's Friday here!

Shane

-----Original Message-----
From: Tom Walsh [mailto:t...@openhardware.net]
Sent: Thursday, 29 June 2006 6:59 p.m.
To: l...
Subject: Re: [lpc2000] BDI 2000 configuration

Shane Harrison wrote:

> Hi there,
>
> I haven't had much luck connecting my BDI2000 to an LPC2103 board (JTAG
> connection). It complains about a lack of clock. I have set it up to use
> adaptive clocking and checked the cabling. Does anyone have a working
> BDI2000 config file that they would be willing to share, that way I can
> double check that part of the process.
>
========= begin file for both LPC2106 & LPC2138 daisy chained together
=======[INIT]
#0 WREG CPSR 0x000000D3
#0 WGPR 15 0x00000000
#0 WM32 0xE01FC040 0x00000001
#0 WM32 0xE01FC080 0x00000000
#0 WM32 0xE01FC084 0x00000000
#0 WM32 0xE01FC08C 0x000000AA
#0 WM32 0xE01FC08C 0x00000055
#0 DELAY 100
#1 WM32 0xE01FC040 0x00000001
#1 DELAY 100

[HOST]
IP 192.168.200.1
FORMAT BIN
LOAD MANUAL
#0 PROMPT LPC2138>
#1 PROMPT LPC2106>

[TARGET]
CLOCK 6
WAKEUP 100

#0 CPUTYPE ARM7TDMI
#0 SCANPRED 0 0
#0 SCANSUCC 1 4
#0 CLOCK 4
#0 RESET HARD 500
#0 STARTUP RESET
#0 ENDIAN LITTLE
#0 BREAKMODE HARD
#1 CPUTYPE ARM7TDMI
#1 SCANSUCC 0 0
#1 SCANPRED 1 4
#1 RESET HARD 500
#1 WAKEUP 100
#1 STARTUP STOP 500
#1 ENDIAN LITTLE
#1 BREAKMODE HARD

[FLASH]
#0 CHIPTYPE LPC2000 14745
#0 CHIPSIZE 0x80000
#0 WORKSPACE 0x40001000
#0 FILE main2138.bin
#0 FORMAT BIN
#0 ERASE 0x00FFFFF BLANK
#1 CHIPTYPE LPC2000 14745
#1 CHIPSIZE 0x20000
#1 WORKSPACE 0x40001000
#1 FILE main2106.bin
#1 FORMAT BIN 0x00000000
#1 ERASE 0x00007FFF BLANK

[REGS]
#0 FILE reg2100.def
#1 FILE reg2100.def

========================== snip =========================
========= begin file for only LPC2136 ============================[INIT]
WREG CPSR 0x000000D3 ;select supervisor mode
;WGPR 15 0x00000000 ;set PC
WGPR 15 0x00018000 ;set PC
WM32 0xE01FC040 0x00000001 ;MEMMAP: User flash mode
WM32 0xE01FC080 0x00000000 ;PLLCON:
WM32 0xE01FC084 0x00000000 ;PLLCFG:
WM32 0xE01FC08C 0x000000AA ;PLLFEED:
WM32 0xE01FC08C 0x00000055 ;PLLFEED:
DELAY 100

[HOST]
IP 192.168.200.1
FORMAT ELF
LOAD MANUAL
DUMP dump.bin
PROMPT LPC2136>

[TARGET]
CLOCK 4 ;JTAG clock 1MHz ( < 1/6 of CPU clock )
WAKEUP 100
CPUTYPE ARM7TDMI
RESET HARD 500 ;apply 500 ms RESET
STARTUP RESET ;let monitor run for 500 ms
ENDIAN LITTLE ;memory model (LITTLE | BIG)
;BREAKMODE SOFT 0xdfffdfff ;SOFT ARM / Thumb break code
BREAKMODE HARD ;only two hardware breakpoints available.

[FLASH]
CHIPTYPE LPC2000 14745 ;select LPC2100 flash, fsys = 12.000 MHz
CHIPSIZE 0x80000 ;256k internal flash
WORKSPACE 0x40001000 ;internal SRAM for buffer, code and stack
;FILE micromux-resident.bin
FILE micromux.bin
FORMAT BIN 0x18000
;ERASE 0x0007FFF BLANK ;erase sectors 0..14 of LPC2136
ERASE 0x0007C00 BLANK ;erase sectors 10..14 of LPC2136

[REGS]
FILE reg2100.def

================ snip ===================================
Note, the LPC2136 file will set the program counter of the ARM processor
to 0x18000. Change the comment on WGPR 15 for program counter of 0x0.

I don't use the adaptive clock, no reason other than a lot of wires get
in the way. The JTAG header on my most recent board is only a 2x5 (10
pins) row of 0.020 solder pads. I connect 30ga wire to a 14pin 0.100"
header to the BDI2000 TARGET A cable which I rewired.

Regards,

TomW

--
Tom Walsh - WN3L - Embedded Systems Consultant
http://openhardware .net, http://cyberiansoft
ware.com
"Windows? No thanks, I have work to do..."
----------------



Reply by Tom Walsh June 29, 20062006-06-29
Shane Harrison wrote:

> Hi there,
>
> I haven't had much luck connecting my BDI2000 to an LPC2103 board (JTAG
> connection). It complains about a lack of clock. I have set it up to use
> adaptive clocking and checked the cabling. Does anyone have a working
> BDI2000 config file that they would be willing to share, that way I can
> double check that part of the process.
>
========= begin file for both LPC2106 & LPC2138 daisy chained together
=======[INIT]
#0 WREG CPSR 0x000000D3
#0 WGPR 15 0x00000000
#0 WM32 0xE01FC040 0x00000001
#0 WM32 0xE01FC080 0x00000000
#0 WM32 0xE01FC084 0x00000000
#0 WM32 0xE01FC08C 0x000000AA
#0 WM32 0xE01FC08C 0x00000055
#0 DELAY 100
#1 WM32 0xE01FC040 0x00000001
#1 DELAY 100

[HOST]
IP 192.168.200.1
FORMAT BIN
LOAD MANUAL
#0 PROMPT LPC2138>
#1 PROMPT LPC2106>

[TARGET]
CLOCK 6
WAKEUP 100

#0 CPUTYPE ARM7TDMI
#0 SCANPRED 0 0
#0 SCANSUCC 1 4
#0 CLOCK 4
#0 RESET HARD 500
#0 STARTUP RESET
#0 ENDIAN LITTLE
#0 BREAKMODE HARD
#1 CPUTYPE ARM7TDMI
#1 SCANSUCC 0 0
#1 SCANPRED 1 4
#1 RESET HARD 500
#1 WAKEUP 100
#1 STARTUP STOP 500
#1 ENDIAN LITTLE
#1 BREAKMODE HARD

[FLASH]
#0 CHIPTYPE LPC2000 14745
#0 CHIPSIZE 0x80000
#0 WORKSPACE 0x40001000
#0 FILE main2138.bin
#0 FORMAT BIN
#0 ERASE 0x00FFFFF BLANK
#1 CHIPTYPE LPC2000 14745
#1 CHIPSIZE 0x20000
#1 WORKSPACE 0x40001000
#1 FILE main2106.bin
#1 FORMAT BIN 0x00000000
#1 ERASE 0x00007FFF BLANK

[REGS]
#0 FILE reg2100.def
#1 FILE reg2100.def

========================== snip =========================
========= begin file for only LPC2136 ============================[INIT]
WREG CPSR 0x000000D3 ;select supervisor mode
;WGPR 15 0x00000000 ;set PC
WGPR 15 0x00018000 ;set PC
WM32 0xE01FC040 0x00000001 ;MEMMAP: User flash mode
WM32 0xE01FC080 0x00000000 ;PLLCON:
WM32 0xE01FC084 0x00000000 ;PLLCFG:
WM32 0xE01FC08C 0x000000AA ;PLLFEED:
WM32 0xE01FC08C 0x00000055 ;PLLFEED:
DELAY 100

[HOST]
IP 192.168.200.1
FORMAT ELF
LOAD MANUAL
DUMP dump.bin
PROMPT LPC2136>

[TARGET]
CLOCK 4 ;JTAG clock 1MHz ( < 1/6 of CPU clock )
WAKEUP 100
CPUTYPE ARM7TDMI
RESET HARD 500 ;apply 500 ms RESET
STARTUP RESET ;let monitor run for 500 ms
ENDIAN LITTLE ;memory model (LITTLE | BIG)
;BREAKMODE SOFT 0xdfffdfff ;SOFT ARM / Thumb break code
BREAKMODE HARD ;only two hardware breakpoints available.

[FLASH]
CHIPTYPE LPC2000 14745 ;select LPC2100 flash, fsys = 12.000 MHz
CHIPSIZE 0x80000 ;256k internal flash
WORKSPACE 0x40001000 ;internal SRAM for buffer, code and stack
;FILE micromux-resident.bin
FILE micromux.bin
FORMAT BIN 0x18000
;ERASE 0x0007FFF BLANK ;erase sectors 0..14 of LPC2136
ERASE 0x0007C00 BLANK ;erase sectors 10..14 of LPC2136

[REGS]
FILE reg2100.def

================ snip ===================================Note, the LPC2136 file will set the program counter of the ARM processor
to 0x18000. Change the comment on WGPR 15 for program counter of 0x0.

I don't use the adaptive clock, no reason other than a lot of wires get
in the way. The JTAG header on my most recent board is only a 2x5 (10
pins) row of 0.020 solder pads. I connect 30ga wire to a 14pin 0.100"
header to the BDI2000 TARGET A cable which I rewired.

Regards,

TomW

--
Tom Walsh - WN3L - Embedded Systems Consultant
http://openhardware.net, http://cyberiansoftware.com
"Windows? No thanks, I have work to do..."
----------------

Reply by Shane Harrison June 29, 20062006-06-29
Hi there,

I haven't had much luck connecting my BDI2000 to an LPC2103 board (JTAG
connection). It complains about a lack of clock. I have set it up to use
adaptive clocking and checked the cabling. Does anyone have a working
BDI2000 config file that they would be willing to share, that way I can
double check that part of the process.

Cheers
Shane

Shane Harrison
General Manager
Paragon Electronic Design Limited
Level 2 21-23 Andrews Avenue
ANZ House
PO Box 30-449, Lower Hutt
New Zealand

Direct: +64 4 5703875
Fax: +64 4 5703 871
Mobile: 021 608 919
mailto:s...@paragon.co.nz
http://www.paragon.co.nz
-------------------------
The information contained in this email is intended solely for the use of
the individual or entity to whom it is addressed and others authorized to
receive, and may contain confidential or legally privileged information. If
you are not the intended recipient, please delete the email and notify us
immediately. Any unauthorized disclosure, copying, distribution or taking
any action in reliance on the contents of this information is strictly
prohibited and may be unlawful.
(c) Paragon Electronic Design Ltd, 2002