Re: [Openocd-development] PXA270: can read/write the core registers, but can't read memory and registers of the devices on chip

2010-04-16 Thread Kaius Häggblom
The JTAGkey-tiny dongle and board work OK, I have now successfully used 
the ColibriLoader software to download images to the board.


~kaius

Kaius Häggblom wrote:


The attached trace was produced by starting program:
./src/openocd -s tcl -f board/colibri_pxa320.cfg -f nterface/jtagkey.cfg 
 -d 3 -l openocd.lo


... and issuing following commands through telnet client:

  reg
  reset halt
  reg cpsr 0xd3
  reset halt

Exactly as in original post with this issue on PXA270, writing and 
reading regs work OK, but anything else fails.


~kaius


yvind Harboe wrote:

I would strongly encourage someone who's familiar with these patches
to repost them to this list so we can work on getting the changes merged.

Should be in that projects and OpenOCD's interest...






___
Openocd-development mailing list
Openocd-development@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/openocd-development


___
Openocd-development mailing list
Openocd-development@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/openocd-development


Re: [Openocd-development] openocd crash when sending command over tcl_port

2010-04-15 Thread Kaius Häggblom

Øyvind Harboe wrote:

Try generating a stack trace:



The attached trace was produced by starting program:
./src/openocd -s tcl -f board/colibri_pxa320.cfg -f nterface/jtagkey.cfg 
 -d 3 -l openocd.log


... and issuing following commands through telnet client:

 reg
 reset halt
 reg cpsr 0xd3
 reset halt

Exactly as in original post with this issue on PXA270, writing and 
reading regs work OK, but anything else fails.


~kaius

Debug: 14 3 configuration.c:45 add_script_search_dir(): adding /home/kaius/.openocd
Debug: 15 3 configuration.c:45 add_script_search_dir(): adding /usr/local/share/openocd/site
Debug: 16 3 configuration.c:45 add_script_search_dir(): adding /usr/local/share/openocd/scripts
Debug: 17 3 configuration.c:87 find_file(): found tcl/board/colibri_pxa320.cfg
Debug: 18 3 configuration.c:87 find_file(): found tcl/target/pxa3xx.cfg
Debug: 19 3 command.c:133 script_debug(): command - ocd_command ocd_command type ocd_adapter_nsrst_delay 260
Debug: 20 4 command.c:133 script_debug(): command - adapter_nsrst_delay ocd_adapter_nsrst_delay 260
User : 22 4 command.c:539 command_print(): adapter_nsrst_delay: 260
Debug: 23 4 command.c:133 script_debug(): command - ocd_command ocd_command type ocd_jtag_ntrst_delay 250
Debug: 24 4 command.c:133 script_debug(): command - jtag_ntrst_delay ocd_jtag_ntrst_delay 250
User : 26 4 command.c:539 command_print(): jtag_ntrst_delay: 250
Debug: 27 4 command.c:133 script_debug(): command - ocd_command ocd_command type ocd_jtag newtap colibri_pxa320 cpu -irlen 11 -ircapture 0x1 -irmask 0x7f -expected-id 0x0E648013 -expected-id 0x1E648013 -expected-id 0x0E649013 -expected-id 0x1E649013 -expected-id 0x2E649013 -expected-id 0x3E649013 -expected-id 0x5E642013 -expected-id 0x6E642013 -expected-id 0x7E642013
Debug: 28 4 command.c:133 script_debug(): command - ocd_jtag ocd_jtag newtap colibri_pxa320 cpu -irlen 11 -ircapture 0x1 -irmask 0x7f -expected-id 0x0E648013 -expected-id 0x1E648013 -expected-id 0x0E649013 -expected-id 0x1E649013 -expected-id 0x2E649013 -expected-id 0x3E649013 -expected-id 0x5E642013 -expected-id 0x6E642013 -expected-id 0x7E642013
Debug: 29 4 tcl.c:573 jim_newtap_cmd(): Creating New Tap, Chip: colibri_pxa320, Tap: cpu, Dotted: colibri_pxa320.cpu, 24 params
Debug: 30 4 tcl.c:590 jim_newtap_cmd(): Processing option: -irlen
Debug: 31 4 tcl.c:590 jim_newtap_cmd(): Processing option: -ircapture
Debug: 32 4 tcl.c:590 jim_newtap_cmd(): Processing option: -irmask
Debug: 33 4 tcl.c:590 jim_newtap_cmd(): Processing option: -expected-id
Debug: 34 4 tcl.c:590 jim_newtap_cmd(): Processing option: -expected-id
Debug: 35 4 tcl.c:590 jim_newtap_cmd(): Processing option: -expected-id
Debug: 36 4 tcl.c:590 jim_newtap_cmd(): Processing option: -expected-id
Debug: 37 4 tcl.c:590 jim_newtap_cmd(): Processing option: -expected-id
Debug: 38 4 tcl.c:590 jim_newtap_cmd(): Processing option: -expected-id
Debug: 39 4 tcl.c:590 jim_newtap_cmd(): Processing option: -expected-id
Debug: 40 4 tcl.c:590 jim_newtap_cmd(): Processing option: -expected-id
Debug: 41 4 tcl.c:590 jim_newtap_cmd(): Processing option: -expected-id
Debug: 42 4 core.c:1313 jtag_tap_init(): Created Tap: colibri_pxa320.cpu @ abs position 0, irlen 11, capture: 0x1 mask: 0x7f
Debug: 43 4 command.c:133 script_debug(): command - ocd_command ocd_command type ocd_target create colibri_pxa320.cpu xscale -endian little -chain-position colibri_pxa320.cpu -variant pxa3xx
Debug: 44 4 command.c:133 script_debug(): command - ocd_target ocd_target create colibri_pxa320.cpu xscale -endian little -chain-position colibri_pxa320.cpu -variant pxa3xx
Debug: 45 4 command.c:346 register_command_handler(): registering 'ocd_arm'...
Debug: 46 4 command.c:346 register_command_handler(): registering 'ocd_arm'...
Debug: 47 4 command.c:346 register_command_handler(): registering 'ocd_arm'...
Debug: 48 4 command.c:346 register_command_handler(): registering 'ocd_arm'...
Debug: 49 4 command.c:346 register_command_handler(): registering 'ocd_arm'...
Debug: 50 4 command.c:346 register_command_handler(): registering 'ocd_arm'...
Debug: 51 4 command.c:346 register_command_handler(): registering 'ocd_xscale'...
Debug: 52 4 command.c:346 register_command_handler(): registering 'ocd_xscale'...
Debug: 53 4 command.c:346 register_command_handler(): registering 'ocd_xscale'...
Debug: 54 4 command.c:346 register_command_handler(): registering 'ocd_xscale'...
Debug: 55 5 command.c:346 register_command_handler(): registering 'ocd_xscale'...
Debug: 56 5 command.c:346 register_command_handler(): registering 'ocd_xscale'...
Debug: 57 5 command.c:346 register_command_handler(): registering 'ocd_xscale'...
Debug: 58 5 command.c:346 register_command_handler(): registering 'ocd_xscale'...
Debug: 59 5 command.c:346 register_command_handler(): registering 'ocd_xscale'...
Debug: 60 5 command.c:346 register_command_handler(): registering 'ocd_xscale'...
Debug: 61 5 command.c:346 register_command_handler(): registering 'ocd_xscale'...
Debug: 62 5 command.c:346 

Re: [Openocd-development] PXA270: can read/write the core registers, but can't read memory and registers of the devices on chip

2010-04-15 Thread Kaius Häggblom


The attached trace was produced by starting program:
./src/openocd -s tcl -f board/colibri_pxa320.cfg -f nterface/jtagkey.cfg 
 -d 3 -l openocd.lo


... and issuing following commands through telnet client:

 reg
 reset halt
 reg cpsr 0xd3
 reset halt

Exactly as in original post with this issue on PXA270, writing and 
reading regs work OK, but anything else fails.


~kaius


yvind Harboe wrote:

I would strongly encourage someone who's familiar with these patches
to repost them to this list so we can work on getting the changes merged.

Should be in that projects and OpenOCD's interest...



Debug: 14 3 configuration.c:45 add_script_search_dir(): adding /home/kaius/.openocd
Debug: 15 3 configuration.c:45 add_script_search_dir(): adding /usr/local/share/openocd/site
Debug: 16 3 configuration.c:45 add_script_search_dir(): adding /usr/local/share/openocd/scripts
Debug: 17 3 configuration.c:87 find_file(): found tcl/board/colibri_pxa320.cfg
Debug: 18 3 configuration.c:87 find_file(): found tcl/target/pxa3xx.cfg
Debug: 19 3 command.c:133 script_debug(): command - ocd_command ocd_command type ocd_adapter_nsrst_delay 260
Debug: 20 4 command.c:133 script_debug(): command - adapter_nsrst_delay ocd_adapter_nsrst_delay 260
User : 22 4 command.c:539 command_print(): adapter_nsrst_delay: 260
Debug: 23 4 command.c:133 script_debug(): command - ocd_command ocd_command type ocd_jtag_ntrst_delay 250
Debug: 24 4 command.c:133 script_debug(): command - jtag_ntrst_delay ocd_jtag_ntrst_delay 250
User : 26 4 command.c:539 command_print(): jtag_ntrst_delay: 250
Debug: 27 4 command.c:133 script_debug(): command - ocd_command ocd_command type ocd_jtag newtap colibri_pxa320 cpu -irlen 11 -ircapture 0x1 -irmask 0x7f -expected-id 0x0E648013 -expected-id 0x1E648013 -expected-id 0x0E649013 -expected-id 0x1E649013 -expected-id 0x2E649013 -expected-id 0x3E649013 -expected-id 0x5E642013 -expected-id 0x6E642013 -expected-id 0x7E642013
Debug: 28 4 command.c:133 script_debug(): command - ocd_jtag ocd_jtag newtap colibri_pxa320 cpu -irlen 11 -ircapture 0x1 -irmask 0x7f -expected-id 0x0E648013 -expected-id 0x1E648013 -expected-id 0x0E649013 -expected-id 0x1E649013 -expected-id 0x2E649013 -expected-id 0x3E649013 -expected-id 0x5E642013 -expected-id 0x6E642013 -expected-id 0x7E642013
Debug: 29 4 tcl.c:573 jim_newtap_cmd(): Creating New Tap, Chip: colibri_pxa320, Tap: cpu, Dotted: colibri_pxa320.cpu, 24 params
Debug: 30 4 tcl.c:590 jim_newtap_cmd(): Processing option: -irlen
Debug: 31 4 tcl.c:590 jim_newtap_cmd(): Processing option: -ircapture
Debug: 32 4 tcl.c:590 jim_newtap_cmd(): Processing option: -irmask
Debug: 33 4 tcl.c:590 jim_newtap_cmd(): Processing option: -expected-id
Debug: 34 4 tcl.c:590 jim_newtap_cmd(): Processing option: -expected-id
Debug: 35 4 tcl.c:590 jim_newtap_cmd(): Processing option: -expected-id
Debug: 36 4 tcl.c:590 jim_newtap_cmd(): Processing option: -expected-id
Debug: 37 4 tcl.c:590 jim_newtap_cmd(): Processing option: -expected-id
Debug: 38 4 tcl.c:590 jim_newtap_cmd(): Processing option: -expected-id
Debug: 39 4 tcl.c:590 jim_newtap_cmd(): Processing option: -expected-id
Debug: 40 4 tcl.c:590 jim_newtap_cmd(): Processing option: -expected-id
Debug: 41 4 tcl.c:590 jim_newtap_cmd(): Processing option: -expected-id
Debug: 42 4 core.c:1313 jtag_tap_init(): Created Tap: colibri_pxa320.cpu @ abs position 0, irlen 11, capture: 0x1 mask: 0x7f
Debug: 43 4 command.c:133 script_debug(): command - ocd_command ocd_command type ocd_target create colibri_pxa320.cpu xscale -endian little -chain-position colibri_pxa320.cpu -variant pxa3xx
Debug: 44 4 command.c:133 script_debug(): command - ocd_target ocd_target create colibri_pxa320.cpu xscale -endian little -chain-position colibri_pxa320.cpu -variant pxa3xx
Debug: 45 4 command.c:346 register_command_handler(): registering 'ocd_arm'...
Debug: 46 4 command.c:346 register_command_handler(): registering 'ocd_arm'...
Debug: 47 4 command.c:346 register_command_handler(): registering 'ocd_arm'...
Debug: 48 4 command.c:346 register_command_handler(): registering 'ocd_arm'...
Debug: 49 4 command.c:346 register_command_handler(): registering 'ocd_arm'...
Debug: 50 4 command.c:346 register_command_handler(): registering 'ocd_arm'...
Debug: 51 4 command.c:346 register_command_handler(): registering 'ocd_xscale'...
Debug: 52 4 command.c:346 register_command_handler(): registering 'ocd_xscale'...
Debug: 53 4 command.c:346 register_command_handler(): registering 'ocd_xscale'...
Debug: 54 4 command.c:346 register_command_handler(): registering 'ocd_xscale'...
Debug: 55 5 command.c:346 register_command_handler(): registering 'ocd_xscale'...
Debug: 56 5 command.c:346 register_command_handler(): registering 'ocd_xscale'...
Debug: 57 5 command.c:346 register_command_handler(): registering 'ocd_xscale'...
Debug: 58 5 command.c:346 register_command_handler(): registering 'ocd_xscale'...
Debug: 59 5 command.c:346 register_command_handler(): registering 'ocd_xscale'...
Debug: 60 5 command.c:346 

Re: [Openocd-development] PXA270: can read/write the core registers, but can't read memory and registers of the devices on chip

2010-04-14 Thread Kaius Häggblom

Hello.

I'm having this same problem with Colibri PXA320, Amontec jtagkey-tiny 
and latest openocd pulled down from git (patched with openpxa PXA320 
patches).


Was this issue ever solved?

~kaius
___
Openocd-development mailing list
Openocd-development@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/openocd-development