scripts/push.gdb:6: Error in sourced command file: Attaching to Remote target failed ─── Assembly ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── 0x000017e2 ? b.n 0x17e2 0x000017e4 ? ldr r1, [pc, #96] ; (0x1848) 0x000017e6 ? ldr r0, [pc, #100] ; (0x184c) 0x000017e8 ? cmp r1, r0 0x000017ea ? push {r4, lr} 0x000017ec ? beq.n 0x1804 <_fini> 0x000017ee ? ldr r3, [pc, #96] ; (0x1850) 0x000017f0 ? adds r2, r3, #3 0x000017f2 ? subs r2, r2, r0 0x000017f4 ? bic.w r2, r2, #3 ─── Breakpoints ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────── ─── Expressions ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────── ─── History ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── ─── Memory ────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── ─── Registers ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── r0 0x200102ba r1 0x200102ba r2 0x00000001 r3 0xffffffff r4 0x20000328 r5 0x200102ba r6 0x00001100 r7 0x000002d5 r8 0x000002a5 r9 0x00000000 r10 0x2000031c r11 0xaf9fbfff r12 0x0000004a sp 0x20010278 lr 0xfffffff9 pc 0x000017e2 xpsr 0x21000003 fpscr 0x00000000 msp 0x20010278 psp 0xfff3df7c primask 0x00 basepri 0x00 faultmask 0x00 control 0x00 ─── Source ────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── ─── Stack ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── [0] from 0x000017e2 ─── Threads ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── [1] id 0 from 0x000017e2 ─── Variables ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── 0x000017e2 in ?? () Breakpoint 1 at 0x704: file ../main.c, line 6. Loading section .text, size 0x1814 lma 0x0 Loading section .relocate, size 0x64 lma 0x1814 Start address 0x0, load size 6264 Transfer rate: 49 KB/sec, 783 bytes/write. ─── Output/messages ───────────────────────────────────────────────────────────────────────────────────────────────────────────────── Note: automatically using hardware breakpoints for read-only addresses. ─── Assembly ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── ~ ~ ~ ~ ~ !0x00000704 main+0 push {r3, lr} 0x00000706 main+2 ldr r3, [pc, #16] ; (0x718 ) 0x00000708 main+4 blx r3 0x0000070a main+6 ldr r3, [pc, #16] ; (0x71c ) 0x0000070c main+8 blx r3 ─── Breakpoints ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────── [1] break at 0x00000704 in ../main.c:6 for main hit 1 time ─── Expressions ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────── ─── History ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── ─── Memory ────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── ─── Registers ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── r0 0x20000064 r1 0x00000000 r2 0x00f00000 r3 0x00000705 r4 0x1ffffffd r5 0x200102ba r6 0x00001100 r7 0x000002d5 r8 0x000002a5 r9 0x00000000 r10 0x2000031c r11 0xaf9fbfff r12 0x0000004a sp 0x200100d0 lr 0x000006d5 pc 0x00000704 xpsr 0x61000000 fpscr 0x00000000 msp 0x200100d0 psp 0xfff3df7c primask 0x00 basepri 0x00 faultmask 0x00 control 0x00 ─── Source ────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── ~ ~ ~ ~ ~  1 #include  2 #include "pdebug.h"  3 int main(void)  4 {  5 /* Initializes MCU, drivers and middleware */ ! 6 atmel_start_init();  7 pdebug_init();  8  9 printf("Hi\n"); 10 11 /* Replace with your application code */ 12 while (1) { 13 } 14 } ~ ─── Stack ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── [0] from 0x00000704 in main+0 at ../main.c:6 ─── Threads ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── [1] id -1 from 0x00000704 in main+0 at ../main.c:6 ─── Variables ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── Breakpoint 1, main () at ../main.c:6 6 atmel_start_init();