I’m using OpenOCD (r657) to download code to a Hitex comStick.
I have code mapped to flash at address 0. Here’s what I see when I download my file:
reset halt
JTAG device found: 0x04570041 (Manufacturer: 0x020, Part: 0x4570, Version: 0x0)
JTAG device found: 0x25966041 (Manufacturer: 0x020, Part: 0x5966, Version: 0x2)
JTAG device found: 0x2457f041 (Manufacturer: 0x020, Part: 0x457f, Version: 0x2)
target state: halted
target halted in ARM state due to debug request, current mode: Supervisor
cpsr: 0x000000d3 pc: 0x00000000
flash write_image erase c:\download\odu\odu\odu.elf 0 elf
auto erase enabled
No flash at address 0x04000000
wrote 183064 byte from file c:\download\odu\odu\odu.elf in 14.910795s (11.989531 kb/s)
reset run
JTAG device found: 0x04570041 (Manufacturer: 0x020, Part: 0x4570, Version: 0x0)
JTAG device found: 0x25966041 (Manufacturer: 0x020, Part: 0x5966, Version: 0x2)
JTAG device found: 0x2457f041 (Manufacturer: 0x020, Part: 0x457f, Version: 0x2)
//*********************************************
the header from my .elf file:
readelf -S odu.elf
There are 18 section headers, starting at offset 0x67a20:
Section Headers:
[Nr] Name Type Addr Off Size ES Flg Lk Inf Al
[ 0] NULL 00000000 000000 000000 00 0 0 0
[ 1] .text PROGBITS 00000000 008000 02cb18 00 AX 0 0 4
[ 2] .data PROGBITS 04000000 038000 000b10 00 WA 0 0 4
[ 3] .bss NOBITS 04000b10 038b10 00aa50 00 WA 0 0 4
[ 4] .comment PROGBITS 00000000 038b10 000132 00 0 0 1
//*********************************************
So everything looks like it’s correct, but what does that “no flash at address 0x04000000” mean?? Of course there’s no flash at 0x4000000, that’s RAM there, I never told it to put anything there (that I know of) … ???
My str912.cfg:
#daemon configuration
telnet_port 4444
gdb_port 3333
#interface
interface ft2232
ft2232_device_desc “STR9-comStick A”
ft2232_layout comstick
jtag_speed 1
#delays on reset lines
jtag_nsrst_delay 100
jtag_ntrst_delay 100
#use combined on interfaces or targets that can’t set TRST/SRST separately
reset_config trst_and_srst
#jtag scan chain
#format L IRC IRCM IDCODE (Length, IR Capture, IR Capture Mask, IDCODE)
jtag_device 8 0x1 0x1 0xfe
jtag_device 4 0x1 0xf 0xe
jtag_device 5 0x1 0x1 0x1e
#target configuration
daemon_startup reset
#target
#target arm7tdmi
target arm966e little reset_halt 1 arm966e
run_and_halt_time 0 30
target_script 0 reset event/str912_reset.script
target_script 0 gdb_program_config event/str912_program.script
working_area 0 0x50000000 16384 nobackup
#flash bank str9x 0 0 <target#>
flash bank str9x 0x00000000 0x00080000 0 0 0
#flash bank str9x 0x00080000 0x00008000 0 0 0
//************************************************
Any ideas as to why this message is occurring?? Do I care??