Hi
i bought a olimex interface arm usb ocd and works just fine.
my board is a mini 2440 with s3c2440 processor.
everything seems fne but i’m not sure
i think i missed something because i get nothing with flash list
the board has a nor ST39VF1601.
i did not understood if in openocd.cfg goes the configuration of nor memory.
my openocd.cfg is like that:
source [find interface/olimex-arm-usb-ocd.cfg]
source [find board/mini2440.cfg]
telnet_port 4444
gdb_port 3333
init_2440
i appreciate every reply.
thanks
I believe the standard mini2440.cfg is configured for NAND flash only. You will need to modify that script to configure the NOR flash - also of course change the switch on the Mini2440 board to NOR.
I doubt my script will run with latest OpenOCD, since I haven’t looked at it for a while, but you need to add the following to mini2440.cfg:
# There is 4KB of internal RAM
$_TARGETNAME configure -work-area-virt 0 -work-area-phys 0x40000000 -work-area-size 0x1000 -work-area-backup 0
flash bank cfi 0x0 0x200000 2 2 $_TARGETNAME jedec_probe
also add to init_2440()
arm920t mww_phys 0x48000004 0x00002f50 # BANKCON0 - NOR Flash
I used the following script to program the NOR flash:
# Program bootloader into NOR Flash
# NB: MMU, Icache and Dcache must be disabled
# Must have memory controller initialised (use init_2440)
# insert path to your file
set _file {W:\lyre\rockbox-lyre_proto_2\build_mini_boot\bootloader.bin}
soft_reset_halt
flash probe 0
flash write_image erase $_file 0 bin
verify_image $_file 0 bin
HTH