Hi Oyvind,

On Fri, Jan 9, 2009 at 1:07 PM, Øyvind Harboe <[email protected]> wrote:
> On Fri, Jan 9, 2009 at 1:12 PM, Alan Carvalho de Assis
> <[email protected]> wrote:
>> Hi Øyvind,
>>
>> On Fri, Jan 9, 2009 at 7:52 AM, Øyvind Harboe <[email protected]> 
>> wrote:
>>> Do we have any arm11 testers/users on this list?
>>>
>>> I'm poking around the arm11 code and wondering if I should pull down i.MX31
>>> from the shelf to take it for a spin...
>>>
>>
>> I can help you testing it!
>>
>> Please let send me instructions in order to test it.
>
> I need a working configuration file. Hopefully Kees will provide it :-)
>
> For now I've committed a new imx31.cfg file. It has a couple of syntax
> errors weeded out, but it needs work still.
>
> If you are comfortable reading the datasheets I'm sure you can
> figure out what's missing :-)
>
> 1. rebuild latest openocd
>
> 2. Run:
>
> openocd -f interface/myinterface.cfg -f target/imx31.cfg
>
>> reset init
> JTAG tap: imx31.sjc tap/device found: 0x2b900f0f (Manufacturer: 0x787,
> Part: 0xb900, Version: 0x2)
> JTAG Tap/device matched
> JTAG tap: imx31.cpu tap/device found: 0x07b3601d (Manufacturer: 0x00e,
> Part: 0x7b36, Version: 0x0)
> JTAG Tap/device matched
> Tap/Device does not have IDCODE
> JTAG Tap/device matched
> JTAG tap: imx31.smda tap/device found: 0x2190101d (Manufacturer:
> 0x00e, Part: 0x1901, Version: 0x2)
> JTAG Tap/device matched
> Error validating JTAG scan chain, IR mismatch, scan returned 0x042011
> Could not validate JTAG chain, continuing anyway...
>
> ....

There is my results:

$ sudo openocd -f imx31axm.cfg -f target/imx31.cfg
[sudo] password for alan:
Open On-Chip Debugger 1.0 (2009-01-10-15:42) svn:1312


BUGS? Read http://svn.berlios.de/svnroot/repos/openocd/trunk/BUGS


$URL: http://svn.berlios.de/svnroot/repos/openocd/trunk/src/openocd.c $
jtag_speed: 10
Info : JTAG tap: imx31.sjc tap/device found: 0x2b900f0f (Manufacturer:
0x787, Part: 0xb900, Version: 0x2)
Info : JTAG Tap/device matched
Info : JTAG tap: imx31.cpu tap/device found: 0x07b3601d (Manufacturer:
0x00e, Part: 0x7b36, Version: 0x0)
Info : JTAG Tap/device matched
Warn : Tap/Device does not have IDCODE
Info : JTAG Tap/device matched
Info : JTAG tap: imx31.smda tap/device found: 0x2190101d
(Manufacturer: 0x00e, Part: 0x1901, Version: 0x2)
Info : JTAG Tap/device matched
Error: Error validating JTAG scan chain, IR mismatch, scan returned 0x042011
Error: Could not validate JTAG chain, continuing anyway...
Warn : TAP imx31.cpu:
Warn : value captured during scan didn't pass the requested check:
Warn : captured: 0x01 check_value: 0x1e check_mask: 0x1f
Warn : in_handler: w/o "in_value", mismatch in SIR
Warn : TAP imx31.cpu:
Warn : value captured during scan didn't pass the requested check:
Warn : captured: 0x01 check_value: 0x1e check_mask: 0x1f
Warn : in_handler: w/o "in_value", mismatch in SIR
Error: 'arm11 target' JTAG communication error SCREG SCAN OUT 0x07
(expected 0x10)
Warn : in_handler: w/o "in_value", mismatch in SDR
Warn : TAP imx31.cpu:
Warn : value captured during scan didn't pass the requested check:
Warn : captured: 0x01 check_value: 0x1e check_mask: 0x1f
Warn : in_handler: w/o "in_value", mismatch in SIR
Warn : no tcl port specified, using default port 6666
Info : accepting 'telnet' connection from 0
Info : JTAG tap: imx31.sjc tap/device found: 0x2b900f0f (Manufacturer:
0x787, Part: 0xb900, Version: 0x2)
Info : JTAG Tap/device matched
Info : JTAG tap: imx31.cpu tap/device found: 0x07b3601d (Manufacturer:
0x00e, Part: 0x7b36, Version: 0x0)
Info : JTAG Tap/device matched
Warn : Tap/Device does not have IDCODE
Info : JTAG Tap/device matched
Info : JTAG tap: imx31.smda tap/device found: 0x2190101d
(Manufacturer: 0x00e, Part: 0x1901, Version: 0x2)
Info : JTAG Tap/device matched
Error: Error validating JTAG scan chain, IR mismatch, scan returned 0x042011
Error: Could not validate JTAG chain, continuing anyway...
Warn : TAP imx31.cpu:
Warn : value captured during scan didn't pass the requested check:
Warn : captured: 0x01 check_value: 0x1e check_mask: 0x1f
Warn : in_handler: w/o "in_value", mismatch in SIR
Warn : TAP imx31.cpu:
Warn : value captured during scan didn't pass the requested check:
Warn : captured: 0x01 check_value: 0x1e check_mask: 0x1f
Warn : in_handler: w/o "in_value", mismatch in SIR
Error: 'arm11 target' JTAG communication error SCREG SCAN OUT 0x07
(expected 0x10)
Warn : in_handler: w/o "in_value", mismatch in SDR
Warn : TAP imx31.cpu:
Warn : value captured during scan didn't pass the requested check:
Warn : captured: 0x01 check_value: 0x1e check_mask: 0x1f
Warn : in_handler: w/o "in_value", mismatch in SIR



When I connect through telnet and issue "reset run", I receive:

$ telnet 127.0.0.1 4444
Trying 127.0.0.1...
Connected to 127.0.0.1.
Escape character is '^]'.
Open On-Chip Debugger
> reset run
JTAG tap: imx31.sjc tap/device found: 0x2b900f0f (Manufacturer: 0x787,
Part: 0xb900, Version: 0x2)
JTAG Tap/device matched
JTAG tap: imx31.cpu tap/device found: 0x07b3601d (Manufacturer: 0x00e,
Part: 0x7b36, Version: 0x0)
JTAG Tap/device matched
Tap/Device does not have IDCODE
JTAG Tap/device matched
JTAG tap: imx31.smda tap/device found: 0x2190101d (Manufacturer:
0x00e, Part: 0x1901, Version: 0x2)
JTAG Tap/device matched
Error validating JTAG scan chain, IR mismatch, scan returned 0x042011
Could not validate JTAG chain, continuing anyway...
TAP imx31.cpu:
value captured during scan didn't pass the requested check:
captured: 0x01 check_value: 0x1e check_mask: 0x1f
in_handler: w/o "in_value", mismatch in SIR
TAP imx31.cpu:
value captured during scan didn't pass the requested check:
captured: 0x01 check_value: 0x1e check_mask: 0x1f
in_handler: w/o "in_value", mismatch in SIR
'arm11 target' JTAG communication error SCREG SCAN OUT 0x07 (expected 0x10)
in_handler: w/o "in_value", mismatch in SDR
TAP imx31.cpu:
value captured during scan didn't pass the requested check:
captured: 0x01 check_value: 0x1e check_mask: 0x1f
in_handler: w/o "in_value", mismatch in SIR
Runtime error, file "embedded:startup.tcl", line 176:
    examine-fails: -104
in procedure 'ocd_process_reset'
called at file "embedded:startup.tcl", line 175
Runtime error, file "command.c", line 456:

The same to "reset halt"!

The "reg" command appear not work because it returns zero for all:

> reg
(0) r0 (/32): 0x00000000 (dirty: 0, valid: 0)
(1) r1 (/32): 0x00000000 (dirty: 0, valid: 0)
(2) r2 (/32): 0x00000000 (dirty: 0, valid: 0)
(3) r3 (/32): 0x00000000 (dirty: 0, valid: 0)
(4) r4 (/32): 0x00000000 (dirty: 0, valid: 0)
(5) r5 (/32): 0x00000000 (dirty: 0, valid: 0)
(6) r6 (/32): 0x00000000 (dirty: 0, valid: 0)
(7) r7 (/32): 0x00000000 (dirty: 0, valid: 0)
(8) r8 (/32): 0x00000000 (dirty: 0, valid: 0)
(9) r9 (/32): 0x00000000 (dirty: 0, valid: 0)
(10) r10 (/32): 0x00000000 (dirty: 0, valid: 0)
(11) r11 (/32): 0x00000000 (dirty: 0, valid: 0)
(12) r12 (/32): 0x00000000 (dirty: 0, valid: 0)
(13) sp (/32): 0x00000000 (dirty: 0, valid: 0)
(14) lr (/32): 0x00000000 (dirty: 0, valid: 0)
(15) pc (/32): 0x00000000 (dirty: 0, valid: 0)
(16) cpsr (/32): 0x00000000 (dirty: 0, valid: 0)
(17) dscr (/32): 0x00000000 (dirty: 0, valid: 0)
(18) wdtr (/32): 0x00000000 (dirty: 0, valid: 0)
(19) rdtr (/32): 0x00000000 (dirty: 0, valid: 0)

What next?

>
> --
> Øyvind Harboe
> http://www.zylin.com/zy1000.html
> ARM7 ARM9 XScale Cortex
> JTAG debugger and flash programmer
>

Regards,

Alan
_______________________________________________
Openocd-development mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to