[ECOS] AT91EB40 wiggler JTAG programmer
Michael Kelly
mike@cogcomp.com
Fri Aug 9 07:54:00 GMT 2002
Ulrich,
You need a config file for the OCD commander. A sample is
below. It sets up the chip selects, ram controller, etc.
Regards,
Michael
;
; OCD Configuration file for Cogent CSB226, PXA250
;
reset
endian little
; Write MSC0, MSC1, MSC2
word 0x48000008 = 0x2ef15af0
word 0x48000008
word 0x4800000c = 0x00003ff4
word 0x4800000c
; Assert MDREFR:K1RUN and MDREFR:K2RUN and configure MDREFR:K1DB2 and
; MDREFR:K2DB2 as desired.
word 0x48000004 = 0x03ca4fff ; chip default
word 0x48000004 = 0x03ca4030 ; REF Rate = (64MS/4096 Rows)/32 = 48
word 0x48000004 = 0x03cf6030 ; Set K0RUN, K1RUN and K2RUN
word 0x48000004 = 0x038f6030 ; Clear Self Refresh
word 0x48000004 = 0x038ff030 ; Set E0PIN and E1PIN
; b. set SDRAM config register, but don't enable any banks
word 0x48000000 = 0x09a809a8 ; don't enable just yet, wait 200usec
; write a reg as a delay tactic
reg 0 = 0
; write the disabled bank 9 times. Each time will cause a CBR refresh
word 0xa00000000 = 0
word 0xa00000000 = 0
word 0xa00000000 = 0
word 0xa00000000 = 0
word 0xa00000000 = 0
word 0xa00000000 = 0
word 0xa00000000 = 0
word 0xa00000000 = 0
word 0xa00000000 = 0
; Now enable SDRAM and force an MRS cycle
word 0x48000000 = 0x09a909a9 ; now enable SDRAM
; and do an MRS
word 0x48000040 = 0x00220022 ; MDMRS
download //Mike_laptop/d/umon/src/targets/csb226/monitor/ramcsb226
At 04:04 PM 8/9/2002 +0200, Ulrich Dahl wrote:
>Hi
>
>WOUW, that was an extremely fast response... Thanks
>
>My main problem is; That I can download redboot to ram via the serial
>cable and Angel monitor, but not execute it...
>
>With the wiggler I can acces both the flash and the CPU, but not
>download, only read the contentse...
>
>So you see, I have some life but it is not nearly enough to get going..
>
>Thankyou for your help
>
>Ulrich
>
>On Fri, 2002-08-09 at 15:47, Michael Kelly wrote:
>> Ulrich,
>>
>> If you can download to the board, you could write a simple
>> flash programming utility, download it, then the image at
>> some known address and go.
>>
>> Michael
>>
>> At 03:38 PM 8/9/2002 +0200, Ulrich Dahl wrote:
>> >Hi
>> >
>> >I'm working with a AT91EB40 board, I have the same problem as Scott and
>> >Timm with the download of redboot via the Angel debugger. I have
>> >concluded that my problem with the angel monitor and redboot must be in
>> >some sort of faulty software on the board. So I wanted to try the JTAG
>> >port instead...
>> >
>> >I have now managed to build a little lowcost OCD wiggler Parallel port
>> >jtag interface, and my god it seems to work. BUT, and its a big BUT..
>> >The supplied windows software doesn't allow programming of the devices
>> >as it is only an eval demo. Now I was beginning to get frustrated..
>> >
>> >I then discovered a chap who had done the same as me, and made a
>> >addition to GDB/Insight to support this wiggler parallel port thingy..
>> >
>> >But I can't get that to work either, gdb wont see the interface...
>> >
>> >Does anyone have any ideas of how I could get going with this shit..
>> >
>> >To summarise:
>> >
>> >I have the AT91EB40 board with accompaniyng serial cable.
>> >A homemade OCD wiggler (works well with the MaCgregor windows program)
>> >And no money, otherwise I would have bought the windows software(price
>> >is approx. 400$)
>> >
>> >My plan was to get the JTAG working and downloading the RedBoot into
>> >Flash and then work from there...
>> >
>> >PLEASE HELP...
>> >
>> >Best regards
>> >Ulrich Dahl
>> >ELBO Media
>> >Denmark
>> >
>> >
>> >--
>> >Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
>> >and search the list archive: http://sources.redhat.com/ml/ecos-discuss
>>
>> Michael J. Kelly
>> VP Engineering/Marketing
>> Cogent Computer Systems, Inc.
>> 1130 Ten Rod Road
>> Suite A-201
>> North Kingstown, RI 02852
>> tel:401-295-6505 fax:401-295-6507
>> www.cogcomp.com
>> alternate email: mkelly6505@hotmail.com
>>
>>
>> --
>> Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
>> and search the list archive: http://sources.redhat.com/ml/ecos-discuss
>>
>
>
>
>--
>Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
>and search the list archive: http://sources.redhat.com/ml/ecos-discuss
Michael J. Kelly
VP Engineering/Marketing
Cogent Computer Systems, Inc.
1130 Ten Rod Road
Suite A-201
North Kingstown, RI 02852
tel:401-295-6505 fax:401-295-6507
www.cogcomp.com
alternate email: mkelly6505@hotmail.com
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss
More information about the Ecos-discuss
mailing list