Mahjoub, I think you are using a very old configuration file. Some of the commands in the file have changed for OpenOCD 0.4.0. i recommend you use the configuration files that come with the OpenOCD itself, look for cfg files corresponding to your board/requirements, in directories board,interface and target. That should solve most of these problems.
- Nived On Fri, Sep 17, 2010 at 10:53 AM, Mahjoub Kamel <mahjoubkame...@gmail.com>wrote: > Thank you for your answer. > Knowing that i'm new to such developments and at the same time i have to > accomplish openocd flash programming, i had yet corrected my > code i succeded only to program the On-chip flash of the lpc2212. by the > script ".cfg" here attached ( I have only one WARNING to correct it !). > > > flash write_bank 0 X35AU.bin 0x0 ===============> > Warn : Verification will fail since checksum in image > (0xe1a00000) to be written to flash is different from calculated vector > checksum (0xb8 > a06f60). > Warn : To remove this warning modify build tools on > developer PC to inject correct LPC vector checksum. > wrote 1452 bytes from file BootLoader_108.bin to flash bank 0 at offset > 0x00000000 in 0.187501s (7.562 kb/s) > > My serious problem now and three days ago, is to program the external > flash of the ARM7 LPC2212 based board. This flash is *S29AL016D SPANSION > 2Mo Nor flash* (normally, we use a CFI method for that) so, i wrote and > tryed the following code but, there are many error messages displayed for me > and i couldn't understand them in order to correct them. > > I wish you help me to resolve this. > For OnCHIP ^programming micro i have the following WARNING : > > > I resume my error messages as the following : > > flash protect 0 0 0 off =========> Error: auto_probe failed -601 > flash protect 0 0 1 off =========> Error: auto_probe failed -601 > flash protect 0 0 2 off =========> Error: auto_probe failed -601 > flash protect 0 0 3 off =========> Error: auto_probe failed -601 > flash erase_sector 0 0 1 =========> Error: auto_probe failed -601 > flash write_image X35A_20_90.bin 0x8001000 =======> Error: Argument > overflow > image.base_address option value > ('0x80010000') is not valid > Command handler execution failed > > when i change this by : > flash write_image X35A_20_90.bin 0x0 wrote 0 bytes from file > X35A_20_90.bin in 0.000000s (nan kb/s) > Perhaps, i didn't right configured jtag, ram and flash bank as it must be . > > Console Error messages, cfg files are attached with this mail. > > Note : I have too some cmm good programming files, i can send them to you > if that make my problem more clear. > > > Yours truly. > > > > 2010/9/17 Andreas Fritiofson <andreas.fritiof...@gmail.com> > > > flash write_binary 0 BootLoader_108.bin 0x0 0: command requires more >> > arguments >> >> There is no command with the name 'flash write_binary'. Perhaps you >> mean 'flash write_bank'? In that case, the extra zero on the end >> shouldn't be there. The error message is nonsense. >> >> "> help flash write_bank >> flash write_bank bank_id filename offset >> Write binary data from file to flash bank, starting at specified >> byte offset from the beginning of the bank." >> >> /Andreas >> > > > _______________________________________________ > Openocd-development mailing list > Openocd-development@lists.berlios.de > https://lists.berlios.de/mailman/listinfo/openocd-development > >
_______________________________________________ Openocd-development mailing list Openocd-development@lists.berlios.de https://lists.berlios.de/mailman/listinfo/openocd-development