Hi,

has anyone got OpenOCD working with a Faraday FA526 processor (actually
a Raritan Kira100 which uses a FA526 processor)?  It appears to be an
ARM926 variant but apparently not exactly.  Does this require target
specific support or am I just missing some configuration?

I'm using an OpenOCD USB JTAG debugger from Embedded-Projects with the
following config:

        #interface
        interface ft2232
        ft2232_vid_pid 0x0403 0x6010
        ft2232_device_desc "Dual RS232"
        ft2232_layout "oocdlink"
        ft2232_latency 2
        # 6/(1+n) Mhz TCLK
        jtag_speed 1

I've used the same device successfully with a mips_m4k processor.
I've also tried speed 5 but it made no difference.  My target config is:

        # Target:    Raritan Kira100 (Faraday FA526)
        ############################################

        reset_config trst_and_srst

        #jtag_device <IR length> <IR capture> <IR mask> <IDCODE instruction>
        jtag_device 4 0x1 0xf 0xe

        jtag_nsrst_delay 200
        jtag_ntrst_delay 0

        ######################
        # Target configuration
        ######################

        #target <type> <endianess> <reset mode> <JTAG pos> <variant>
        #target arm940t little 0
        #arm7tdmi arm9tdmi arm920t arm720t arm966e arm926ejs feroceon xscale 
cortex_m3 arm11
        target arm926ejs little 0

        #[new_target_name] configure -event reset-init { script 
event/kira100_reset.script } 

        #working area <target#> <address> <size> <backup|nobackup>
        working_area 0 0x10200002 0x1000 backup #workspace in target RAM for 
fast programming algorithm

        #####################
        # Flash configuration
        #####################

        #flash bank cfi <base> <size> <chip width> <bus width> <target#>
        flash bank cfi 0x00000000 0x00800000 2 2 0

The halt command returns 'BUG: unknown debug reason: 0x0' but the
processor is halted.  The reset command does reset.

When I try to read RAM or Flash I get no errors but the output looks the
same no matter where I read (i.e. I think it's just dumping an internal
uninitialized buffer rather than reading from the processor).  A flash
probe fails.

The 'reg' command gives all the general registers as 0 which I'd think
is unlikely. ;-)

Any help at all would be greatly appreciated.


Thanks,
John McCarthy.
P.S. Here is the '-d 4' output from OpenOCD startup:

Open On-Chip Debugger 1.0 (2008-10-06-10:17) svn:1021


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


$URL: http://svn.berlios.de/svnroot/repos/openocd/trunk/src/openocd.c $
Debug:   5 0 configuration.c:88 find_file(): found 
target/interface/openocd-usb.cfg
Debug:   7 1 command.c:82 script_command(): script_command - interface
Debug:   8 1 command.c:99 script_command(): script_command - interface, 
argv[0]=ocd_interface
Debug:   9 1 command.c:99 script_command(): script_command - interface, 
argv[1]=ft2232
Debug:   11 1 command.c:82 script_command(): script_command - ft2232_vid_pid
Debug:   12 1 command.c:99 script_command(): script_command - ft2232_vid_pid, 
argv[0]=ocd_ft2232_vid_pid
Debug:   13 1 command.c:99 script_command(): script_command - ft2232_vid_pid, 
argv[1]=0x0403
Debug:   14 1 command.c:99 script_command(): script_command - ft2232_vid_pid, 
argv[2]=0x6010
Debug:   16 1 command.c:82 script_command(): script_command - ft2232_device_desc
Debug:   17 1 command.c:99 script_command(): script_command - 
ft2232_device_desc, argv[0]=ocd_ft2232_device_desc
Debug:   18 1 command.c:99 script_command(): script_command - 
ft2232_device_desc, argv[1]=Dual RS232
Debug:   20 1 command.c:82 script_command(): script_command - ft2232_layout
Debug:   21 1 command.c:99 script_command(): script_command - ft2232_layout, 
argv[0]=ocd_ft2232_layout
Debug:   22 1 command.c:99 script_command(): script_command - ft2232_layout, 
argv[1]=oocdlink
Debug:   24 1 command.c:82 script_command(): script_command - ft2232_latency
Debug:   25 1 command.c:99 script_command(): script_command - ft2232_latency, 
argv[0]=ocd_ft2232_latency
Debug:   26 1 command.c:99 script_command(): script_command - ft2232_latency, 
argv[1]=2
Debug:   28 1 command.c:82 script_command(): script_command - jtag_speed
Debug:   29 1 command.c:99 script_command(): script_command - jtag_speed, 
argv[0]=ocd_jtag_speed
Debug:   30 1 command.c:99 script_command(): script_command - jtag_speed, 
argv[1]=5
Debug:   31 1 jtag.c:1937 handle_jtag_speed_command(): handle jtag speed
User:    32 1 command.c:363 command_print(): jtag_speed: 5
Debug:   33 28 configuration.c:88 find_file(): found 
target/target/kira100-omap.cfg
Debug:   35 30 command.c:82 script_command(): script_command - reset_config
Debug:   36 30 command.c:99 script_command(): script_command - reset_config, 
argv[0]=ocd_reset_config
Debug:   37 30 command.c:99 script_command(): script_command - reset_config, 
argv[1]=trst_and_srst
Debug:   39 30 command.c:82 script_command(): script_command - jtag_device
Debug:   40 30 command.c:99 script_command(): script_command - jtag_device, 
argv[0]=ocd_jtag_device
Debug:   41 30 command.c:99 script_command(): script_command - jtag_device, 
argv[1]=4
Debug:   42 30 command.c:99 script_command(): script_command - jtag_device, 
argv[2]=0x1
Debug:   43 30 command.c:99 script_command(): script_command - jtag_device, 
argv[3]=0xf
Debug:   44 30 command.c:99 script_command(): script_command - jtag_device, 
argv[4]=0xe
Debug:   46 30 command.c:82 script_command(): script_command - jtag_nsrst_delay
Debug:   47 30 command.c:99 script_command(): script_command - 
jtag_nsrst_delay, argv[0]=ocd_jtag_nsrst_delay
Debug:   48 30 command.c:99 script_command(): script_command - 
jtag_nsrst_delay, argv[1]=200
Debug:   50 30 command.c:82 script_command(): script_command - jtag_ntrst_delay
Debug:   51 30 command.c:99 script_command(): script_command - 
jtag_ntrst_delay, argv[0]=ocd_jtag_ntrst_delay
Debug:   52 30 command.c:99 script_command(): script_command - 
jtag_ntrst_delay, argv[1]=0
Debug:   53 30 target.c:3919 jim_target(): Target command params:
Debug:   54 30 target.c:3920 jim_target(): target arm926ejs little 0 
Debug:   55 30 target.c:3998 jim_target(): Target OLD SYNTAX - converted to new 
syntax
Debug:   56 30 target.c:3919 jim_target(): Target command params:
Debug:   57 30 target.c:3920 jim_target(): target create target0 arm926ejs 
-endian little -chain-position 0 -variant 0xe 
Debug:   58 30 target.c:3919 jim_target(): Target command params:
Debug:   59 30 target.c:3920 jim_target(): target count 
Debug:   60 30 target.c:3919 jim_target(): Target command params:
Debug:   61 30 target.c:3920 jim_target(): target number 0 
Debug:   63 30 command.c:82 script_command(): script_command - working_area
Debug:   64 30 command.c:99 script_command(): script_command - working_area, 
argv[0]=ocd_working_area
Debug:   65 30 command.c:99 script_command(): script_command - working_area, 
argv[1]=0
Debug:   66 30 command.c:99 script_command(): script_command - working_area, 
argv[2]=0x10200002
Debug:   67 30 command.c:99 script_command(): script_command - working_area, 
argv[3]=0x1000
Debug:   68 30 command.c:99 script_command(): script_command - working_area, 
argv[4]=backup
Debug:   70 31 command.c:82 script_command(): script_command - bank
Debug:   71 31 command.c:99 script_command(): script_command - bank, 
argv[0]=ocd_flash_bank
Debug:   72 31 command.c:99 script_command(): script_command - bank, argv[1]=cfi
Debug:   73 31 command.c:99 script_command(): script_command - bank, 
argv[2]=0x00000000
Debug:   74 31 command.c:99 script_command(): script_command - bank, 
argv[3]=0x00800000
Debug:   75 31 command.c:99 script_command(): script_command - bank, argv[4]=2
Debug:   76 31 command.c:99 script_command(): script_command - bank, argv[5]=2
Debug:   77 31 command.c:99 script_command(): script_command - bank, argv[6]=0
Debug:   79 31 command.c:82 script_command(): script_command - init
Debug:   80 31 command.c:99 script_command(): script_command - init, 
argv[0]=ocd_init
Debug:   81 31 openocd.c:106 handle_init_command(): target init complete
Debug:   82 31 ft2232.c:1509 ft2232_init_libftdi(): 'ft2232' interface using 
libftdi with 'oocdlink' layout (0403:6010)
Debug:   83 184 ft2232.c:1551 ft2232_init_libftdi(): current latency timer: 2
Debug:   84 185 ft2232.c:1737 jtagkey_init(): 80 08 1b
Debug:   85 187 ft2232.c:1795 jtagkey_init(): 82 06 0f
Debug:   86 187 ft2232.c:256 ft2232_speed(): 86 05 00
Debug:   87 191 openocd.c:113 handle_init_command(): jtag interface init 
complete
Debug:   88 191 jtag.c:1621 jtag_init_inner(): Init JTAG chain
Debug:   89 191 jtag.c:327 jtag_call_event_callbacks(): jtag event: JTAG 
controller reset (TLR or TRST)
Debug:   90 191 jtag.c:1301 jtag_reset_callback(): -
Debug:   91 193 jtag.c:327 jtag_call_event_callbacks(): jtag event: JTAG 
controller reset (TLR or TRST)
Debug:   92 193 jtag.c:1301 jtag_reset_callback(): -
Info:    93 198 jtag.c:1410 jtag_examine_chain(): JTAG device found: 0x00526fa1 
(Manufacturer: 0x7d0, Part: 0x0526, Version: 0x0)
Debug:   94 198 jtag.c:327 jtag_call_event_callbacks(): jtag event: JTAG 
controller reset (TLR or TRST)
Debug:   95 198 jtag.c:1301 jtag_reset_callback(): -
Debug:   96 208 openocd.c:119 handle_init_command(): jtag init complete
Debug:   97 212 embeddedice.c:403 embeddedice_write_reg(): 12: 0x00000000
Debug:   98 212 embeddedice.c:403 embeddedice_write_reg(): 20: 0x00000000
Debug:   99 212 openocd.c:122 handle_init_command(): jtag examine complete
Debug:   100 213 openocd.c:128 handle_init_command(): flash init complete
Debug:   101 213 openocd.c:132 handle_init_command(): NAND init complete
Debug:   102 213 openocd.c:136 handle_init_command(): pld init complete
Warning: 103 213 telnet_server.c:612 telnet_init(): no telnet port specified, 
using default port 4444
Warning: 104 213 gdb_server.c:2093 gdb_init(): no gdb port specified, using 
default port 3333
Debug:   105 213 gdb_server.c:2114 gdb_init(): gdb service for target arm926ejs 
at port 3333
Warning: 106 213 tcl_server.c:178 tcl_init(): no tcl port specified, using 
default port 6666
Warning: 107 230 arm7_9_common.c:673 arm7_9_poll(): DBGACK set while target was 
in unknown state. Reset or initialize target.
Debug:   108 230 embeddedice.c:403 embeddedice_write_reg(): 0: 0x00000005
Debug:   109 230 embeddedice.c:403 embeddedice_write_reg(): 0: 0x00000005
Error:   110 242 arm926ejs.c:341 arm926ejs_examine_debug_reason(): BUG: unknown 
debug reason: 0x0




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

Reply via email to