My board consists of LPC2212 micro and Flash Spansion S29AL016D.

Yours truly
Kamel Mahjoub
---------- Forwarded message ----------
From: Mahjoub Kamel <mahjoubkame...@gmail.com>
Date: 2010/9/15
Subject: Message script openocd 0.4.0 windows for In Board flash
programming.
To: openocd-development@lists.berlios.de,
openocd-development-requ...@lists.berlios.de
Cc: Kamel MAHJOUB <kamel.mahj...@sagemcom.com>


HI all berlios members list.
I'm looking for help.
When i execute some commands wrote in .cfg file (openocd.exe), i encounter
the message "*command requires more arguments*" which i hadn't understand or
explain exactly where's the problem.
Commands as "halt" , "poll" , "flash erase_check".

Also, the command "daemon_startup reset" cause another Error (system dpn't
recognize this command name?)

Here attached the script that i'm using.

C:\Program Files\OpenOCD\0.4.0\bin>openocd.exe -f openocd.cfg
Open On-Chip Debugger 0.4.0 (2010-02-22-19:05)
Licensed under GNU GPL v2
For bug reports, read
        http://openocd.berlios.de/doc/doxygen/bugs.html
parport port = 0x378
trst_and_srst srst_pulls_trst srst_gates_jtag trst_push_pull srst_open_drain
jtag_nsrst_delay: 100
jtag_ntrst_delay: 100
    TargetName         Type       Endian TapName            State
--  ------------------ ---------- ------ ------------------ ------------
*flash write_binary 0 BootLoader_108.bin 0x0 0: command requires more
arguments*

C:\Program Files\OpenOCD\0.4.0\bin

My main goal is to program internal lpc2212 flash by one file and after,
program an lpc2212 external flash, through an LPT wiggler interface and
openOcd 0.4.0 windows platform.
I haven't any debugging purpose, just downloading images into board flashes.
I m not progressing as it could be.
Is there any friend that could help me in this subject, so, I will recognize
this for him so much.

Note : i'm new in openOcd development.
Thank you.
Kamel Mahjoub
#
#daemon configuration
telnet_port 4444
gdb_port 3333

#interface
interface parport
parport_port 0x378
parport_cable wiggler

# jtag_rclk 1000

#use combined on interfaces or targets that can't set TRST/SRST separately
reset_config trst_and_srst srst_pulls_trst

# reset delays
jtag_nsrst_delay 100
jtag_ntrst_delay 100

#jtag scan chain
#format L IRC IRCM IDCODE (Length, IR Capture, IR Capture Mask, IDCODE)

jtag newtap lpc2212 cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id 
0x4F1F0F0F

#target configuration
daemon_startup reset

targets #0

target create lpc2212.cpu arm7tdmi -endian little -chain-position lpc2212.cpu 
-variant arm7tdmi-s_r4

# internal SRAM
lpc2212.cpu configure -work-area-virt 0 -work-area-phys 0x40000000 
-work-area-size 0x4000 -work-area-backup 0


##  program_flash BootLoader_108.bin

   set _CHIPNAME lpc2212
   set _TARGETNAME $_CHIPNAME.cpu
   set _FLASHNAME $_CHIPNAME.flash
 
flash bank $_FLASHNAME lpc2000 0x0 0x20000 0 0 $_TARGETNAME lpc2000_v1 14745 
calc_checksum

set _File BootLoader_108.bin

flash banks

   halt
   sleep 10
   poll
   flash probe 0

   flash erase_check 1 0 1
   flash write_binary 0 $_File 0x0 0
    
   sleep 200

shutdown

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

Reply via email to