From: Sean de la H. <se...@gm...> - 2013-06-27 23:08:37
|
Hello, I am trying to load and run a project on a Stellaris Launchpad with OpenOCD 0.7.0. I am able to load and execute code from the TivaWare examples with the GDB that is part of Sourcery CodeBench 2012.03. Here is the version string for this version: GNU gdb (Sourcery CodeBench Lite 2012.03-56) 7.2.50.20100908-cvs When I try to use a version of GDB that I cross compiled in Gentoo Linux, I am able to connect and read/write registers, but loading flash fails. Here is the version string for this version: GNU gdb (Gentoo 7.6 p1) 7.6 Both share the same configuration options: This GDB was configured as "--host=i686-pc-linux-gnu --target=arm-none-eabi". Here is the debug log from the error: Debug: 374 32165 gdb_server.c:2017 gdb_input_inner(): received packet: 'X0,0:<binary-data>' Debug: 375 32166 gdb_server.c:2017 gdb_input_inner(): received packet: 'X0,3f00:<binary-data>' Debug: 376 32166 gdb_server.c:1324 gdb_write_memory_binary_packet(): addr: 0x00000000, len: 0x00003f00 Debug: 377 32166 target.c:1683 target_write_buffer(): writing buffer of 16128 byte at 0x00000000 Debug: 378 32166 hla_target.c:745 adapter_write_memory(): adapter_write_memory 0x00000000 4 4032 Error: 379 32275 ti_icdi_usb.c:583 icdi_usb_write_mem(): memory write failed: 0x7 Debug: 380 32275 gdb_server.c:2017 gdb_input_inner(): received packet: 'X3f00,2d10:<binary-data>' Debug: 381 32275 gdb_server.c:1155 gdb_error(): Reporting -4 to GDB as generic error Debug: 382 32275 gdb_server.c:1324 gdb_write_memory_binary_packet(): addr: 0x00003f00, len: 0x00002d10 Debug: 383 32275 target.c:1683 target_write_buffer(): writing buffer of 11536 byte at 0x00003f00 Debug: 384 32275 hla_target.c:745 adapter_write_memory(): adapter_write_memory 0x00003f00 4 2884 Error: 385 32383 ti_icdi_usb.c:583 icdi_usb_write_mem(): memory write failed: 0x7 Are there limitations in the version of GDB that should be used with OpenOCD? Did I configure GDB wrong when I compiled it? Is there any other information that would be helpful? Thanks, Sean |