Hi all,
 
After long break i again started using OpenOCD for flashing my board.
Its an arm9 customized arm versatile board.
 
I think i have lost few updates in the recent openocd features.
 
I earlier had Flash write error message as below and quite a few openocd
guru's had given me patches and suggestion to apply for openocd and it
worked. later i think it was completely removed. 
 
But now when i started using it again, i am getting the same error.

I tried the old working version 404 and its working fine.

So either i am missing/should add some options to be added to config
file

or send some commands before writing

Kindly help me solve the same

TIA

Regards
Gururaja


Environment:
Using Customized arm9 versatile board
Flash completely erase
No Working Area as ram not initialized.
Trying to flash uboot image to board.
Having Spansion s29gl128N Flash on Board


Using Version from Yagarto website
C:\board>openocd-ftd2xx -f configs\flash_jtagkey.cfg -d2 Open On-Chip
Debugger (2008-05-16 20:15) svn: 657
URL: http://svn.berlios.de/svnroot/repos/openocd/trunk
Info:    options.c:50 configuration_output_handler(): jtag_speed: 1200,
1200
Info:    options.c:50 configuration_output_handler(): Open On-Chip
Debugger (2008-05-16 20:15) svn: 657
Info:    jtag.c:1376 jtag_examine_chain(): JTAG device found: 0x15926001
(Manufacturer: 0x000, Part: 0x5926, Version: 0x1)
Info:    jtag.c:1376 jtag_examine_chain(): JTAG device found: 0x15926001
(Manufacturer: 0x000, Part: 0x5926, Version: 0x1)
Info:    target.c:237 target_init_handler(): executing reset script
'configs\flash_setup.script'
Info:    options.c:50 configuration_output_handler(): cpsr (/32):
0x200000d3
Info:    options.c:50 configuration_output_handler(): jtag_speed: 0, 0
Info:    options.c:50 configuration_output_handler(): flash 'cfi' found
at 0x2c000000
Info:    options.c:50 configuration_output_handler(): dcc downloads are
enabled
User:    target.c:953 target_arch_state(): target state: halted
User:    arm926ejs.c:569 arm926ejs_arch_state(): target halted in ARM
state due to debug request, current mode: Supervisor
cpsr: 0x200000d3 pc: 0x00210ba4
MMU: disabled, D-Cache: disabled, I-Cache: enabled
 
Error in telnet:
> flash write_bank 0 u-boot-1.3.3.bin 0
 not enough working area available(requested 96, free 0)  Programming at
2c000000, count 0002035c bytes remaining  cfi primary command set 2
unimplemented - FIXME  error writing to flash at address 0x2c000000 at
offset 0x00000000 (-902)  wrote  131932 byte from file u-boot-1.3.3.bin
to flash bank 0 at offset 0x00000000 in 0.000000s (1.#INF00 kb/s)

Error in Openocd Server Terminal:
>Warning: target.c:849 target_alloc_working_area(): not enough working 
>area available(requested 96, free 0)
Info:    cfi.c:1743 cfi_write(): Programming at 2c000000, count 0002035c
bytes remaining
Error:   cfi.c:1625 cfi_write_words(): cfi primary command set 2
unimplemented - FIXME
Error:   flash.c:103 flash_driver_write(): error writing to flash at
address 0x2c000000 at offset 0x00000000 (-902)

openocd config

######################
# Daemon configuration
######################
telnet_port 4444
gdb_port 3333

gdb_detach resume
gdb_memory_map enable
gdb_flash_program disable

##############################
# JTAG interface configuration
##############################
interface ft2232
ft2232_device_desc "Amontec JTAGkey A"
ft2232_layout jtagkey
ft2232_vid_pid 0x0403 0xcff8
ft2232_latency 2
jtag_speed 1200

#use combined on interfaces or targets that can't set TRST/SRST
separately #reset_config <signals> [combination] [trst_type] [srst_type]
reset_config trst_and_srst 

#jtag scan chain
#format L IRC IRCM IDCODE (Length, IR Capture, IR Capture Mask, IDCODE)
jtag_device 4 0x1 0xf 0xe

jtag_nsrst_delay 200
jtag_ntrst_delay 0

######################
# Target configuration
######################
#daemon_startup <'attach'|'reset'>
daemon_startup reset

#target <type> <endianness> <reset mode> <chainpos> <variant> target
arm926ejs little run_and_init 0 arm926ejs

target_script 0 reset configs\flash_setup.script

run_and_halt_time 0 30
#working_area <target#> <address> <size> <'backup'|'nobackup'> #no
working area as SDRAM is not initialized.
#working_area 0 0x0b00000 65536 nobackup                        

#####################
# Flash configuration
#####################
#flash bank <driver> <base> <size> <chip_width> <bus_width> flash bank
cfi 0x2c000000 0x1000000 2 2 0
_______________________________________________
Openocd-development mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to