I am using eclipse/openocd and arm-usb-ocd. Open ocd connects fine, but when I go to load my code and run i get. someone even have an idea of what is happening? no breakpoints other than main are set.
source C:\gccfd\projects\gpu\sam9261-ek-sdram.gdb
C:\gccfd\projects\gpu\sam9261-ek-sdram.gdb:6: Error in sourced command file:
Cannot access memory at address 0xfffffc20
Configuring the master clock...
target remote localhost: 3333
0x3a2ed530 in ?? ()
monitor soft_reset_halt
requesting target halt and executing a soft reset
load
Loading section .fixed, size 0x1e4 lma 0x20000000
Loading section .postrelocate, size 0x6c lma 0x200001e4
Start address 0x20000000, load size 592
Transfer rate: 12 KB/sec, 296 bytes/write.
continue
Unable to set 32 bit software breakpoint at address 200000c0
open ocd console
Info: server.c:78 add_connection(): accepting 'gdb' connection from 0
Warning: gdb_server.c:416 gdb_get_packet_inner(): acknowledgment received, but no packet pending
Error: cfi.c:1947 cfi_probe(): Could not probe bank
Error: flash.c:219 get_flash_bank_by_num(): auto_probe failed -900
Warning: arm7_9_common.c:1950 arm7_9_read_memory(): memory read caused data abort (address: 0x00989680, size: 0x4, count: 0x1)
User: target.c:1838 handle_soft_reset_halt_command(): requesting target halt and executing a soft reset
Error: arm7_9_common.c:188 arm7_9_set_breakpoint(): Unable to set 32 bit software breakpoint at address 200000c0
today it loaded a few times, but more often than not it get this
source C:\gccfd\projects\gpu\sam9261-ek-sdram.gdb
Configuring the master clock...
C:\gccfd\projects\gpu\sam9261-ek-sdram.gdb:6: Error in sourced command file:
Cannot access memory at address 0xfffffc20
target remote localhost: 3333
0x00000010 in ?? ()
monitor soft_reset_halt
requesting target halt and executing a soft reset
load
Loading section .fixed, size 0x1e4 lma 0x20000000
Loading section .postrelocate, size 0x6c lma 0x200001e4
Start address 0x20000000, load size 592
Transfer rate: 9 KB/sec, 296 bytes/write.
continue
this is the open ocd console of the above
Info: server.c:395 server_loop(): dropped 'gdb' connection
Info: server.c:78 add_connection(): accepting 'gdb' connection from 0
Warning: gdb_server.c:416 gdb_get_packet_inner(): acknowledgment received, but no packet pending
Warning: jtag.c:1211 jtag_check_value(): value captured during scan didn't pass the requested check: captured: 0x03 check_value: 0x01 check_mask: 0x0f
Warning: jtag.c:1171 jtag_read_buffer(): in_handler reported a failed check
Error: cfi.c:1947 cfi_probe(): Could not probe bank
Error: flash.c:219 get_flash_bank_by_num(): auto_probe failed -900
User: target.c:1838 handle_soft_reset_halt_command(): requesting target halt and executing a soft reset
Warning: arm7_9_common.c:1950 arm7_9_read_memory(): memory read caused data abort (address: 0x00000000, size: 0x4, count: 0x6)
Warning: arm7_9_common.c:2120 arm7_9_write_memory(): memory write caused data abort (address: 0x00000000, size: 0x4, count: 0x6)
Ive also got this a few times
source C:\gccfd\projects\gpu\sam9261-ek-sdram.gdb
C:\gccfd\projects\gpu\sam9261-ek-sdram.gdb:6: Error in sourced command file:
Cannot access memory at address 0xfffffc20
Configuring the master clock...
target remote localhost: 3333
0x00000000 in ?? ()
monitor soft_reset_halt
requesting target halt and executing a soft reset
Failed to halt CPU after 1 sec
load
Loading section .fixed, size 0x1e4 lma 0x20000000
Load failed
continue
Program received signal SIGINT, Interrupt.
0x00000000 in ?? ()
Cannot access memory at address 0x0
ocd console for above
Info: server.c:78 add_connection(): accepting 'gdb' connection from 0
Warning: gdb_server.c:416 gdb_get_packet_inner(): acknowledgment received, but no packet pending
Error: cfi.c:1947 cfi_probe(): Could not probe bank
Error: flash.c:219 get_flash_bank_by_num(): auto_probe failed -900
Warning: arm7_9_common.c:1950 arm7_9_read_memory(): memory read caused data abort (address: 0x00989680, size: 0x4, count: 0x1)
User: target.c:1838 handle_soft_reset_halt_command(): requesting target halt and executing a soft reset
Warning: jtag.c:1211 jtag_check_value(): value captured during scan didn't pass the requested check: captured: 0x08 check_value: 0x01 check_mask: 0x0f
Warning: jtag.c:1171 jtag_read_buffer(): in_handler reported a failed check
Error: arm7_9_common.c:2229 arm7_9_bulk_write_memory(): bulk write timed out, target not halted
Error: gdb_server.c:1024 gdb_error(): unexpected error -302
Warning: arm7_9_common.c:1829 arm7_9_read_memory(): target not halted
Warning: arm7_9_common.c:1829 arm7_9_read_memory(): target not halted
Warning: arm7_9_common.c:1829 arm7_9_read_memory(): target not halted
so, I come in this morning and it takes code a few times. but its still not right. I have break main in my commands, which should start it at the first line. but instead it starts about 5 lines down. also, none of my variables are defined, which I suspect is leading to the error at the step through.
edit -
as a test I decided to rename a global since those are the only ones that are being created, after the rename, i get:
mi_cmd_var_create: unable to create variable object
for the variable that I renamed, not sure what this actually means though.