> 
> I have an sam7s64-ek board with r1411 of openocd and gdb-6.8. 
> I am using arm-elf binutils-2.19, gcc-4.3.3, newlib-1.17.0. 
> I'm new to openocd and gdb so if this post doesn't belong to 
> this list. Please kindly point me to the right place.
> 
> So here's my first question. from gdb, I loaded my elf with 
> "file demo.elf" and flash with openocd in gdb with "monitor 
> flash write_address erase demo.elf 0x00100000. I then tried 
> "run" from gdb and it says "Don't know how to run". Did I 
> miss anything?
> 
> The second one is a little weird. I tried to verify that 
> "load" in gdb actually wrote my image into the flash. So I 
> did "monitor flash erase_address 0x00100000 0x10000". "x 0x0" 
> shows 0xffffffff. That's a good sign. Then i did "load". "x 
> 0x0" still shows 0xffffffff. The "load" command didn't seem 
> to do anything.
> 
> Any ideas? 
> 

flash write_address is not a valid cmd (unless i am going mad) - should be
write_image or write_bank.

But as you are using gdb then this should not be required anyway.
As long as you have a valid flash config then this info is passed to gdb,
when you perform a load
it will check the elf and will erase/write the flash as required using
vFlash packets - more info is in the pdf docs.

you can verify the operation using gdb's compare-sections cmd.
If you still have issues then please attach a full debug log.

Cheers
Spen

_______________________________________________
Openocd-development mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to