Open jdeane opened 6 years ago
Seems your firmware has problems, see http://forum.segger.com/index.php?page=Thread&threadID=3392, to fix it, try to reset your firmware back to default, to make sure options at 00804000 are valid as the following descriptions:
"Good" board option bytes:
00804000 = FF C7 E0 D8 5D FC FF FF FF FF FF FF FF FF FF FF
"Bad" boards option bytes:
00804000 = FA C7 E0 D8 5D FC FF FF FF FF FF FF FF FF FF FF
@jdeane , have you got this issue solved?
Hi,
I didn't try the solution above. I was able to get it working reasonably well by using the GDB from Atmel 7 and the Segger GDB server.
I'll try the solution above over the next few days and post back.
Thanks.
@jdeane do you try the solution and fix work ?
Hi,
I tried the above fix, and unfortunately, I'm getting the same errors.
I have updated the J-Link software to 6.30f
I set the values starting at address 0x00804000 to FF C7 E0 D8 5D FC FF FF FF FF FF FF FF FF FF FF I reloaded the bootloader using Atmel Studio 7, leaving erase option unchecked. I'm seeing these errors when debugging from VSCode:
Note: automatically using hardware breakpoints for read-only addresses.
1: (10826) ->^running
1: (10826) ->*running,thread-id="all"
1: (10826) ->(gdb)
1: (10826) ->&"\n"
1: (10826) ->^done
1: (10826) ->(gdb)
openocd: Error: at91samd.cpu -- clearing lockup after double fault
1: (10927) ->@"at91samd.cpu -- clearing lockup after double fault\n"
@"at91samd.cpu -- clearing lockup after double fault\n"
openocd: Polling target at91samd.cpu failed, trying to reexamine
openocd: Info : at91samd.cpu: hardware has 4 breakpoints, 2 watchpoints
openocd: Error: address + size wrapped(0xfffffffe, 0x00000004)
1: (10973) ->*stopped,reason="signal-received",signal-name="SIGINT",signal-meaning="Interrupt",frame={addr="0xfffffffe",func="??",args=[]},thread-id="1",stopped-threads="all"
1: (10973) <-1015-stack-list-frames 0 1000
openocd: Info : SWD IDCODE 0x0bc11477
openocd: Error: Failed to read memory at 0xfffffff4
openocd: Info : SWD IDCODE 0x0bc11477
openocd: Error: Failed to read memory at 0xffffffc0
1: (10995) ->1015^done,stack=[frame={level="0",addr="0xfffffffe",func="??"},frame={level="1",addr="0xfffffff9",func="<signal handler called>"},frame={level="2",addr="0x00000000",func="??"},frame={level="3",addr="0x00000000",func="??"}]
1: (10995) ->(gdb)
1: (10995) 1015: elapsed time 22
1: (10996) ->&"\n"
1: (10996) ->^done
1: (10996) ->(gdb)
Execute debugger commands using "-exec <command>", for example "-exec info registers" will list registers in use (when GDB is the debugger)
1: (11060) <-1016-stack-list-arguments 0 0 2
1: (11068) ->1016^done,stack-args=[frame={level="0",args=[]},frame={level="1",args=[]},frame={level="2",args=[]}]
1: (11068) ->(gdb)
1: (11068) 1016: elapsed time 8
1: (11068) ->&"\n"
1: (11068) ->^done
1: (11068) ->(gdb)
``
Apologies I closed the issue in error.
@Sneezry Can you help out?
Hello,
I have a problem debugging an Adafruit Feather M0 using VSCode-Arduino. I have installed libusb to get Openocd to recognise the jlink.
I'm using:
Here is the verbose output when I try to debug the application:
Any ideas?