SAM E70 Xplained debugging with GNU ARM Eclipse + OpenOCD

Go To Last Post
3 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hello,

 

Has somebody had any success with setting up programing/debugging using OpenOCD on the SAM E70 Xplained board. 

I have a blinky project that I migrated from the GCC Software package 1.5 "getting-started" example to the Eclipse GNU ARM environment. The project builds without any problem and seems to upload to the board using OpenOCD but it doesn't break nor the LED is blinking... The debug window says "Thread #1. Running: User Request"

 

Thanks!

 

Console log: 

GNU ARM Eclipse 64-bits Open On-Chip Debugger 0.10.0-dev-00287-g85cec24 (2016-01-10-12:03)
Licensed under GNU GPL v2
For bug reports, read
	http://openocd.org/doc/doxygen/bugs.html
Info : only one transport option; autoselect 'swd'
adapter speed: 1800 kHz
cortex_m reset_config sysresetreq
Info : flash bank command
srst_only separate srst_gates_jtag srst_open_drain connect_deassert_srst
Started by GNU ARM Eclipse
Info : CMSIS-DAP: SWD  Supported
Info : CMSIS-DAP: Interface Initialised (SWD)
Info : CMSIS-DAP: FW Version = 02.09.0169
Info : SWCLK/TCK = 1 SWDIO/TMS = 1 TDI = 1 TDO = 1 nTRST = 0 nRESET = 1
Info : CMSIS-DAP: Interface ready
Info : clock speed 1800 kHz
Info : SWD IDCODE 0x0bd11477
Info : atsame70q21.cpu: hardware has 8 breakpoints, 4 watchpoints
Info : accepting 'gdb' connection on tcp/3333
Info : device id = 0xa1020e00
undefined debug reason 7 - target needs reset
atsame70q21.cpu: target state: halted
target halted due to debug-request, current mode: Thread
xPSR: 0x01000000 pc: 0x0080004c msp: 0x20400a00
semihosting is enabled
atsame70q21.cpu: target state: halted
target halted due to debug-request, current mode: Thread
xPSR: 0x01000000 pc: 0x0080004c msp: 0x20400a00, semihosting
Info : erasing lock regions 0-2...
Info : erasing lock region 0
Info : erasing lock region 1
Info : erasing lock region 2
Warn : keep_alive() was not invoked in the 1000ms timelimit. GDB alive packet not sent! (3301). Workaround: increase "set remotetimeout" in GDB
atsame70q21.cpu: target state: halted
target halted due to debug-request, current mode: Thread
xPSR: 0x01000000 pc: 0x0080004c msp: 0x20400a00, semihosting
atsame70q21.cpu: target state: halted
target halted due to debug-request, current mode: Thread
xPSR: 0x01000000 pc: 0x0080004c msp: 0x20400a00, semihosting
===== arm v7m registers
(0) r0 (/32): 0x00000000
(1) r1 (/32): 0x00000000
(2) r2 (/32): 0x00000000
(3) r3 (/32): 0x00000000
(4) r4 (/32): 0x00000000
(5) r5 (/32): 0x00000000
(6) r6 (/32): 0x00000000
(7) r7 (/32): 0x00000000
(8) r8 (/32): 0x00000000
(9) r9 (/32): 0x00000000
(10) r10 (/32): 0x00000000
(11) r11 (/32): 0x00000000
(12) r12 (/32): 0x00000000
(13) sp (/32): 0x20400A00
(14) lr (/32): 0xFFFFFFFF
(15) pc (/32): 0x0080004C
(16) xPSR (/32): 0x01000000
(17) msp (/32): 0x20400A00
(18) psp (/32): 0x00000000
(19) primask (/1): 0x00
(20) basepri (/8): 0x00
(21) faultmask (/1): 0x00
(22) control (/2): 0x00
===== Cortex-M DWT registers
(23) dwt_ctrl (/32)
(24) dwt_cyccnt (/32)
(25) dwt_0_comp (/32)
(26) dwt_0_mask (/4)
(27) dwt_0_function (/32)
(28) dwt_1_comp (/32)
(29) dwt_1_mask (/4)
(30) dwt_1_function (/32)
(31) dwt_2_comp (/32)
(32) dwt_2_mask (/4)
(33) dwt_2_function (/32)
(34) dwt_3_comp (/32)
(35) dwt_3_mask (/4)
(36) dwt_3_function (/32)
Last Edited: Wed. Oct 19, 2016 - 03:05 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

It has been a while since your post. Have you made any headway. I am currently using the SAME70 Xplained board with the EDBG port and that works. But I want to migrate to using a JTAG pod and OPENOCD since I do not wish to have to port the PIC processor to my project.

 

I am trying to figure out if the Olimex ARM-USB-OCD-H JTAG pos and OPENOCD is a viable solution. I would rather not have to buy a SEGGER J-LINK pod.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

skyeSweeney wrote:
I am trying to figure out if the Olimex ARM-USB-OCD-H JTAG pos and OPENOCD is a viable solution.
Those are popular on Windows and maybe on other OS.

http://visualgdb.com/tutorials/arm/samd21/

http://visualgdb.com/hwsupport/detail.php?target=arm-eabi&package=com.sysprogs.arm.atmel.sam-cortex&version=1.0 (SAME70)

via

http://visualgdb.com/hwsupport/

http://visualgdb.com/tutorials/arm/openocd/

http://platformio.org/platforms/atmelsam (multi-OS)

skyeSweeney wrote:
I would rather not have to buy a SEGGER J-LINK pod.
IIRC Atmel-ICE is CMSIS-DAP and is an ARM GDB server.

If need ETM then SEGGER J-Trace is one of several for that.

 

"Dare to be naïve." - Buckminster Fuller