|
|
|
|
scripts/push.gdb:6: Error in sourced command file:
|
|
|
|
|
Attaching to Remote target failed
|
|
|
|
|
[36m───[0m [1;33mAssembly[0m [36m────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────[0m
|
|
|
|
|
[1;32m0x000017e2[0m[1;32m [0m[1;32m[0m[1;32m?[0m[1;32m b.n 0x17e2[0m
|
|
|
|
|
[1;30m0x000017e4[0m [1;30m?[0m ldr r1, [pc, #96] ; (0x1848)
|
|
|
|
|
[1;30m0x000017e6[0m [1;30m?[0m ldr r0, [pc, #100] ; (0x184c)
|
|
|
|
|
[1;30m0x000017e8[0m [1;30m?[0m cmp r1, r0
|
|
|
|
|
[1;30m0x000017ea[0m [1;30m?[0m push {r4, lr}
|
|
|
|
|
[1;30m0x000017ec[0m [1;30m?[0m beq.n 0x1804 <_fini>
|
|
|
|
|
[1;30m0x000017ee[0m [1;30m?[0m ldr r3, [pc, #96] ; (0x1850)
|
|
|
|
|
[1;30m0x000017f0[0m [1;30m?[0m adds r2, r3, #3
|
|
|
|
|
[1;30m0x000017f2[0m [1;30m?[0m subs r2, r2, r0
|
|
|
|
|
[1;30m0x000017f4[0m [1;30m?[0m bic.w r2, r2, #3
|
|
|
|
|
[36m───[0m [33mBreakpoints[0m [36m─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────[0m
|
|
|
|
|
[36m───[0m [33mExpressions[0m [36m─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────[0m
|
|
|
|
|
[36m───[0m [33mHistory[0m [36m─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────[0m
|
|
|
|
|
[36m───[0m [33mMemory[0m [36m──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────[0m
|
|
|
|
|
[36m───[0m [1;33mRegisters[0m [36m───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────[0m
|
|
|
|
|
[1;30mr0[0m [1;32m0x200102ba[0m [1;30mr1[0m [1;32m0x200102ba[0m [1;30mr2[0m [1;32m0x00000001[0m [1;30mr3[0m [1;32m0xffffffff[0m [1;30mr4[0m [1;32m0x20000328[0m [1;30mr5[0m [1;32m0x200102ba[0m
|
|
|
|
|
[1;30mr6[0m [1;32m0x00001100[0m [1;30mr7[0m [1;32m0x000002d5[0m [1;30mr8[0m [1;32m0x000002a5[0m [1;30mr9[0m [1;32m0x00000000[0m [1;30mr10[0m [1;32m0x2000031c[0m [1;30mr11[0m [1;32m0xaf9fbfff[0m
|
|
|
|
|
[1;30mr12[0m [1;32m0x0000004a[0m [1;30msp[0m [1;32m0x20010278[0m [1;30mlr[0m [1;32m0xfffffff9[0m [1;30mpc[0m [1;32m0x000017e2[0m [1;30mxpsr[0m [1;32m0x21000003[0m [1;30mfpscr[0m [1;32m0x00000000[0m
|
|
|
|
|
[1;30mmsp[0m [1;32m0x20010278[0m [1;30mpsp[0m [1;32m0xfff3df7c[0m [1;30mprimask[0m [1;32m0x00[0m [1;30mbasepri[0m [1;32m0x00[0m [1;30mfaultmask[0m [1;32m0x00[0m [1;30mcontrol[0m [1;32m0x00[0m
|
|
|
|
|
[36m───[0m [33mSource[0m [36m──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────[0m
|
|
|
|
|
[36m───[0m [1;33mStack[0m [36m───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────[0m
|
|
|
|
|
[[1;32m0[0m] from [1;32m0x000017e2[0m
|
|
|
|
|
[36m───[0m [1;33mThreads[0m [36m─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────[0m
|
|
|
|
|
[[1;32m1[0m] id [1;32m0[0m from [1;32m0x000017e2[0m
|
|
|
|
|
[36m───[0m [33mVariables[0m [36m───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────[0m
|
|
|
|
|
[36m─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────[0m
|
|
|
|
|
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.
|
|
|
|
|
[H[J[3J[36m───[0m [1;33mOutput/messages[0m [36m─────────────────────────────────────────────────────────────────────────────────────────────────────────────────[0m
|
|
|
|
|
Note: automatically using hardware breakpoints for read-only addresses.
|
|
|
|
|
[36m───[0m [1;33mAssembly[0m [36m────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────[0m
|
|
|
|
|
[1;30m~[0m
|
|
|
|
|
[1;30m~[0m
|
|
|
|
|
[1;30m~[0m
|
|
|
|
|
[1;30m~[0m
|
|
|
|
|
[1;30m~[0m
|
|
|
|
|
[0;41m![0m[1;32m0x00000704[0m[1;32m [0m[1;32m[0m[1;32mmain+0[0m[1;32m push {r3, lr}[0m
|
|
|
|
|
[32m0x00000706[0m[32m [0m[32m[0m[32mmain+2[0m[32m ldr r3, [pc, #16] ; (0x718 <main+20>)[0m
|
|
|
|
|
[32m0x00000708[0m[32m [0m[32m[0m[32mmain+4[0m[32m blx r3[0m
|
|
|
|
|
[1;30m0x0000070a[0m [1;30mmain+6[0m ldr r3, [pc, #16] ; (0x71c <main+24>)
|
|
|
|
|
[1;30m0x0000070c[0m [1;30mmain+8[0m blx r3
|
|
|
|
|
[36m───[0m [1;33mBreakpoints[0m [36m─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────[0m
|
|
|
|
|
[[1;32m1[0m] [1;32mbreak[0m at [1;32m0x00000704[0m in [1;32m../main.c[0m:[1;32m6[0m for [1;32mmain[0m hit [1;32m1[0m time
|
|
|
|
|
[36m───[0m [33mExpressions[0m [36m─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────[0m
|
|
|
|
|
[36m───[0m [33mHistory[0m [36m─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────[0m
|
|
|
|
|
[36m───[0m [33mMemory[0m [36m──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────[0m
|
|
|
|
|
[36m───[0m [1;33mRegisters[0m [36m───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────[0m
|
|
|
|
|
[1;30mr0[0m [1;32m0x20000064[0m [1;30mr1[0m [1;32m0x00000000[0m [1;30mr2[0m [1;32m0x00f00000[0m [1;30mr3[0m [1;32m0x00000705[0m [1;30mr4[0m [1;32m0x1ffffffd[0m [1;30mr5[0m [m0x200102ba[0m
|
|
|
|
|
[1;30mr6[0m [m0x00001100[0m [1;30mr7[0m [m0x000002d5[0m [1;30mr8[0m [m0x000002a5[0m [1;30mr9[0m [m0x00000000[0m [1;30mr10[0m [m0x2000031c[0m [1;30mr11[0m [m0xaf9fbfff[0m
|
|
|
|
|
[1;30mr12[0m [m0x0000004a[0m [1;30msp[0m [1;32m0x200100d0[0m [1;30mlr[0m [1;32m0x000006d5[0m [1;30mpc[0m [1;32m0x00000704[0m [1;30mxpsr[0m [1;32m0x61000000[0m [1;30mfpscr[0m [m0x00000000[0m
|
|
|
|
|
[1;30mmsp[0m [1;32m0x200100d0[0m [1;30mpsp[0m [m0xfff3df7c[0m [1;30mprimask[0m [m0x00[0m [1;30mbasepri[0m [m0x00[0m [1;30mfaultmask[0m [m0x00[0m [1;30mcontrol[0m [m0x00[0m
|
|
|
|
|
[36m───[0m [1;33mSource[0m [36m──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────[0m
|
|
|
|
|
[1;30m~[0m
|
|
|
|
|
[1;30m~[0m
|
|
|
|
|
[1;30m~[0m
|
|
|
|
|
[1;30m~[0m
|
|
|
|
|
[1;30m~[0m
|
|
|
|
|
[1;30m 1[0m #include <atmel_start.h>
|
|
|
|
|
[1;30m 2[0m #include "pdebug.h"
|
|
|
|
|
[1;30m 3[0m int main(void)
|
|
|
|
|
[1;30m 4[0m {
|
|
|
|
|
[1;30m 5[0m /* Initializes MCU, drivers and middleware */
|
|
|
|
|
[0;41m![0m[1;32m 6 atmel_start_init();[0m
|
|
|
|
|
[1;30m 7[0m pdebug_init();
|
|
|
|
|
[1;30m 8[0m
|
|
|
|
|
[1;30m 9[0m printf("Hi\n");
|
|
|
|
|
[1;30m10[0m
|
|
|
|
|
[1;30m11[0m /* Replace with your application code */
|
|
|
|
|
[1;30m12[0m while (1) {
|
|
|
|
|
[1;30m13[0m }
|
|
|
|
|
[1;30m14[0m }
|
|
|
|
|
[1;30m~[0m
|
|
|
|
|
[36m───[0m [1;33mStack[0m [36m───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────[0m
|
|
|
|
|
[[1;32m0[0m] from [1;32m0x00000704[0m in [1;32mmain[0m+[1;32m0[0m at [1;32m../main.c[0m:[1;32m6[0m
|
|
|
|
|
[36m───[0m [1;33mThreads[0m [36m─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────[0m
|
|
|
|
|
[[1;32m1[0m] id [1;32m-1[0m from [1;32m0x00000704[0m in [1;32mmain[0m+[1;32m0[0m at [1;32m../main.c[0m:[1;32m6[0m
|
|
|
|
|
[36m───[0m [33mVariables[0m [36m───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────[0m
|
|
|
|
|
[36m─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────[0m
|
|
|
|
|
|
|
|
|
|
Breakpoint 1, main () at ../main.c:6
|
|
|
|
|
6 atmel_start_init();
|
|
|
|
|
[36m───[0m [1;33mAssembly[0m [36m────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────[0m
|
|
|
|
|
[1;30m~[0m
|
|
|
|
|
[1;30m~[0m
|
|
|
|
|
[1;30m~[0m
|
|
|
|
|
[1;30m~[0m
|
|
|
|
|
[1;30m~[0m
|
|
|
|
|
[1;32m0x00000714[0m[1;32m [0m[1;32m[0m[1;32mhri_mclk_write_CPUDIV_reg+0[0m[1;32m b.n 0x714 <_mclk_init>[0m
|
|
|
|
|
[32m0x00000716[0m[32m [0m[32m[0m[32mhri_mclk_write_CPUDIV_reg+2[0m[32m nop[0m
|
|
|
|
|
[32m0x00000718[0m[32m [0m[32m[0m[32mhri_mclk_write_CPUDIV_reg+4[0m[32m lsrs r1, r7, #17[0m
|
|
|
|
|
[1;30m~[0m
|
|
|
|
|
[1;30m~[0m
|
|
|
|
|
[36m───[0m [33mBreakpoints[0m [36m─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────[0m
|
|
|
|
|
[36m───[0m [33mExpressions[0m [36m─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────[0m
|
|
|
|
|
[36m───[0m [33mHistory[0m [36m─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────[0m
|
|
|
|
|
[36m───[0m [33mMemory[0m [36m──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────[0m
|
|
|
|
|
[36m───[0m [1;33mRegisters[0m [36m───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────[0m
|
|
|
|
|
[1;30mr0[0m [1;32m0x00000003[0m [1;30mr1[0m [1;32m0x0000000a[0m [1;30mr2[0m [1;32m0x000000f1[0m [1;30mr3[0m [1;32m0x000004c9[0m [1;30mr4[0m [1;32m0x1ffffffd[0m [1;30mr5[0m [1;32m0x200102ba[0m
|
|
|
|
|
[1;30mr6[0m [1;32m0x00001100[0m [1;30mr7[0m [1;32m0x000002d5[0m [1;30mr8[0m [1;32m0x000002a5[0m [1;30mr9[0m [1;32m0x00000000[0m [1;30mr10[0m [1;32m0x2000031c[0m [1;30mr11[0m [1;32m0xaf9fbfff[0m
|
|
|
|
|
[1;30mr12[0m [1;32m0x0000004a[0m [1;30msp[0m [1;32m0x200100c8[0m [1;30mlr[0m [1;32m0x00000715[0m [1;30mpc[0m [1;32m0x00000714[0m [1;30mxpsr[0m [1;32m0x21000000[0m [1;30mfpscr[0m [1;32m0x00000000[0m
|
|
|
|
|
[1;30mmsp[0m [1;32m0x200100c8[0m [1;30mpsp[0m [1;32m0xfff3df7c[0m [1;30mprimask[0m [1;32m0x00[0m [1;30mbasepri[0m [1;32m0x00[0m [1;30mfaultmask[0m [1;32m0x00[0m [1;30mcontrol[0m [1;32m0x00[0m
|
|
|
|
|
[36m───[0m [1;33mSource[0m [36m──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────[0m
|
|
|
|
|
[1;30m233[0m {
|
|
|
|
|
[1;30m234[0m uint8_t tmp;
|
|
|
|
|
[1;30m235[0m tmp = ((Mclk *)hw)->CPUDIV.reg;
|
|
|
|
|
[1;30m236[0m tmp &= mask;
|
|
|
|
|
[1;30m237[0m return tmp;
|
|
|
|
|
[1;30m238[0m }
|
|
|
|
|
[1;30m239[0m
|
|
|
|
|
[1;30m240[0m static inline void hri_mclk_write_CPUDIV_reg(const void *const hw, hri_mclk_cpudiv_reg_t data)
|
|
|
|
|
[1;30m241[0m {
|
|
|
|
|
[1;30m242[0m MCLK_CRITICAL_SECTION_ENTER();
|
|
|
|
|
[1;32m243 ((Mclk *)hw)->CPUDIV.reg = data;[0m
|
|
|
|
|
[1;30m244[0m MCLK_CRITICAL_SECTION_LEAVE();
|
|
|
|
|
[1;30m245[0m }
|
|
|
|
|
[1;30m246[0m
|
|
|
|
|
[1;30m247[0m static inline void hri_mclk_clear_CPUDIV_reg(const void *const hw, hri_mclk_cpudiv_reg_t mask)
|
|
|
|
|
[1;30m248[0m {
|
|
|
|
|
[1;30m249[0m MCLK_CRITICAL_SECTION_ENTER();
|
|
|
|
|
[1;30m250[0m ((Mclk *)hw)->CPUDIV.reg &= ~mask;
|
|
|
|
|
[1;30m251[0m MCLK_CRITICAL_SECTION_LEAVE();
|
|
|
|
|
[1;30m252[0m }
|
|
|
|
|
[36m───[0m [1;33mStack[0m [36m───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────[0m
|
|
|
|
|
[[1;32m0[0m] from [1;32m0x00000714[0m in [1;32mhri_mclk_write_CPUDIV_reg[0m+[1;32m0[0m at [1;32m../hri/hri_mclk_e54.h[0m:[1;32m243[0m
|
|
|
|
|
[[32m1[0m] from [32m0x00000714[0m in [32m_mclk_init[0m+[32m0[0m at [32m../hpl/mclk/hpl_mclk.c[0m:[32m43[0m
|
|
|
|
|
[[32m2[0m] from [32m0x00000714[0m in [32musart_sync_get_io_descriptor[0m+[32m36[0m at [32m../hal/src/hal_usart_sync.c[0m:[32m108[0m
|
|
|
|
|
[[32m3[0m] from [32m0xfffffffe[0m
|
|
|
|
|
[36m───[0m [1;33mThreads[0m [36m─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────[0m
|
|
|
|
|
[[1;32m1[0m] id [1;32m0[0m from [1;32m0x00000714[0m in [1;32mhri_mclk_write_CPUDIV_reg[0m+[1;32m0[0m at [1;32m../hri/hri_mclk_e54.h[0m:[1;32m243[0m
|
|
|
|
|
[36m───[0m [1;33mVariables[0m [36m───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────[0m
|
|
|
|
|
[1;30marg[0m [1;37mdata[0m [1;30m=[0m 1 '\001'[1;30m, [0m[1;37mhw[0m [1;30m=[0m 0x40000800
|
|
|
|
|
[36m─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────[0m
|
|
|
|
|
hri_mclk_write_CPUDIV_reg (data=1 '\001', hw=0x40000800) at ../hri/hri_mclk_e54.h:243
|
|
|
|
|
243 ((Mclk *)hw)->CPUDIV.reg = data;
|
|
|
|
|
Breakpoint 1 at 0x7ec: file ../main.c, line 7.
|
|
|
|
|
Loading section .text, size 0x1b14 lma 0x0
|
|
|
|
|
Loading section .relocate, size 0x64 lma 0x1b14
|
|
|
|
|
Start address 0x0, load size 7032
|
|
|
|
|
Transfer rate: 53 KB/sec, 781 bytes/write.
|
|
|
|
|
[H[J[3J[36m───[0m [1;33mOutput/messages[0m [36m─────────────────────────────────────────────────────────────────────────────────────────────────────────────────[0m
|
|
|
|
|
Note: automatically using hardware breakpoints for read-only addresses.
|
|
|
|
|
[36m───[0m [1;33mAssembly[0m [36m────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────[0m
|
|
|
|
|
[1;30m~[0m
|
|
|
|
|
[1;30m~[0m
|
|
|
|
|
[1;30m~[0m
|
|
|
|
|
[1;30m~[0m
|
|
|
|
|
[1;30m~[0m
|
|
|
|
|
[0;41m![0m[1;32m0x000007ec[0m[1;32m [0m[1;32m[0m[1;32mmain+0[0m[1;32m push {r3, lr}[0m
|
|
|
|
|
[32m0x000007ee[0m[32m [0m[32m[0m[32mmain+2[0m[32m ldr r3, [pc, #20] ; (0x804 <main+24>)[0m
|
|
|
|
|
[32m0x000007f0[0m[32m [0m[32m[0m[32mmain+4[0m[32m blx r3[0m
|
|
|
|
|
[1;30m0x000007f2[0m [1;30mmain+6[0m ldr r3, [pc, #20] ; (0x808 <main+28>)
|
|
|
|
|
[1;30m0x000007f4[0m [1;30mmain+8[0m blx r3
|
|
|
|
|
[36m───[0m [1;33mBreakpoints[0m [36m─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────[0m
|
|
|
|
|
[[1;32m1[0m] [1;32mbreak[0m at [1;32m0x000007ec[0m in [1;32m../main.c[0m:[1;32m7[0m for [1;32mmain[0m hit [1;32m1[0m time
|
|
|
|
|
[36m───[0m [33mExpressions[0m [36m─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────[0m
|
|
|
|
|
[36m───[0m [33mHistory[0m [36m─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────[0m
|
|
|
|
|
[36m───[0m [33mMemory[0m [36m──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────[0m
|
|
|
|
|
[36m───[0m [1;33mRegisters[0m [36m───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────[0m
|
|
|
|
|
[1;30mr0[0m [1;32m0x20000064[0m [1;30mr1[0m [1;32m0x00000000[0m [1;30mr2[0m [1;32m0x00f00000[0m [1;30mr3[0m [1;32m0x000007ed[0m [1;30mr4[0m [m0x1ffffffd[0m [1;30mr5[0m [m0x200102ba[0m
|
|
|
|
|
[1;30mr6[0m [m0x00001100[0m [1;30mr7[0m [m0x000002d5[0m [1;30mr8[0m [m0x000002a5[0m [1;30mr9[0m [m0x00000000[0m [1;30mr10[0m [m0x2000031c[0m [1;30mr11[0m [m0xaf9fbfff[0m
|
|
|
|
|
[1;30mr12[0m [m0x0000004a[0m [1;30msp[0m [1;32m0x200100d8[0m [1;30mlr[0m [1;32m0x000007bd[0m [1;30mpc[0m [1;32m0x000007ec[0m [1;30mxpsr[0m [1;32m0x61000000[0m [1;30mfpscr[0m [m0x00000000[0m
|
|
|
|
|
[1;30mmsp[0m [1;32m0x200100d8[0m [1;30mpsp[0m [m0xfff3df7c[0m [1;30mprimask[0m [m0x00[0m [1;30mbasepri[0m [m0x00[0m [1;30mfaultmask[0m [m0x00[0m [1;30mcontrol[0m [m0x00[0m
|
|
|
|
|
[36m───[0m [1;33mSource[0m [36m──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────[0m
|
|
|
|
|
[1;30m~[0m
|
|
|
|
|
[1;30m~[0m
|
|
|
|
|
[1;30m~[0m
|
|
|
|
|
[1;30m~[0m
|
|
|
|
|
[1;30m 1[0m #include <atmel_start.h>
|
|
|
|
|
[1;30m 2[0m #include "pdebug.h"
|
|
|
|
|
[1;30m 3[0m #include "sd_mmc.h"
|
|
|
|
|
[1;30m 4[0m int main(void)
|
|
|
|
|
[1;30m 5[0m {
|
|
|
|
|
[1;30m 6[0m /* Initializes MCU, drivers and middleware */
|
|
|
|
|
[0;41m![0m[1;32m 7 atmel_start_init();[0m
|
|
|
|
|
[1;30m 8[0m pdebug_init();
|
|
|
|
|
[1;30m 9[0m
|
|
|
|
|
[1;30m10[0m printf("Hi\n");
|
|
|
|
|
[1;30m11[0m
|
|
|
|
|
[1;30m12[0m sd_mmc_init();
|
|
|
|
|
[1;30m13[0m /* Replace with your application code */
|
|
|
|
|
[1;30m14[0m while (1) {
|
|
|
|
|
[1;30m15[0m }
|
|
|
|
|
[1;30m16[0m }
|
|
|
|
|
[36m───[0m [1;33mStack[0m [36m───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────[0m
|
|
|
|
|
[[1;32m0[0m] from [1;32m0x000007ec[0m in [1;32mmain[0m+[1;32m0[0m at [1;32m../main.c[0m:[1;32m7[0m
|
|
|
|
|
[36m───[0m [1;33mThreads[0m [36m─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────[0m
|
|
|
|
|
[[1;32m1[0m] id [1;32m-1[0m from [1;32m0x000007ec[0m in [1;32mmain[0m+[1;32m0[0m at [1;32m../main.c[0m:[1;32m7[0m
|
|
|
|
|
[36m───[0m [33mVariables[0m [36m───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────[0m
|
|
|
|
|
[36m─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────[0m
|
|
|
|
|
|
|
|
|
|
Breakpoint 1, main () at ../main.c:7
|
|
|
|
|
7 atmel_start_init();
|
|
|
|
|
[36m───[0m [1;33mAssembly[0m [36m────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────[0m
|
|
|
|
|
[1;30m0x000007f6[0m [1;30mmain+10[0m ldr r3, [pc, #20] ; (0x80c <main+32>)
|
|
|
|
|
[1;30m0x000007f8[0m [1;30mmain+12[0m ldr r0, [pc, #20] ; (0x810 <main+36>)
|
|
|
|
|
[1;30m0x000007fa[0m [1;30mmain+14[0m blx r3
|
|
|
|
|
[1;30m0x000007fc[0m [1;30mmain+16[0m ldr r3, [pc, #20] ; (0x814 <main+40>)
|
|
|
|
|
[1;30m0x000007fe[0m [1;30mmain+18[0m blx r3
|
|
|
|
|
[1;32m0x00000800[0m[1;32m [0m[1;32m[0m[1;32mmain+20[0m[1;32m b.n 0x800 <main+20>[0m
|
|
|
|
|
[32m0x00000802[0m[32m [0m[32m[0m[32mmain+22[0m[32m nop[0m
|
|
|
|
|
[32m0x00000804[0m[32m [0m[32m[0m[32mmain+24[0m[32m lsrs r1, r0, #23[0m
|
|
|
|
|
[32m0x00000806[0m[32m [0m[32m[0m[32mmain+26[0m[32m movs r0, r0[0m
|
|
|
|
|
[32m0x00000808[0m[32m [0m[32m[0m[32mmain+28[0m[32m lsrs r1, r5, #24[0m
|
|
|
|
|
[36m───[0m [33mBreakpoints[0m [36m─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────[0m
|
|
|
|
|
[36m───[0m [33mExpressions[0m [36m─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────[0m
|
|
|
|
|
[36m───[0m [33mHistory[0m [36m─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────[0m
|
|
|
|
|
[36m───[0m [33mMemory[0m [36m──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────[0m
|
|
|
|
|
[36m───[0m [1;33mRegisters[0m [36m───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────[0m
|
|
|
|
|
[1;30mr0[0m [1;32m0x00000000[0m [1;30mr1[0m [1;32m0x0000000a[0m [1;30mr2[0m [1;32m0x000000f1[0m [1;30mr3[0m [1;32m0x000005b1[0m [1;30mr4[0m [1;32m0x1ffffffd[0m [1;30mr5[0m [1;32m0x200102ba[0m
|
|
|
|
|
[1;30mr6[0m [1;32m0x00001100[0m [1;30mr7[0m [1;32m0x000002d5[0m [1;30mr8[0m [1;32m0x000002a5[0m [1;30mr9[0m [1;32m0x00000000[0m [1;30mr10[0m [1;32m0x2000031c[0m [1;30mr11[0m [1;32m0xaf9fbfff[0m
|
|
|
|
|
[1;30mr12[0m [1;32m0x0000000a[0m [1;30msp[0m [1;32m0x200100d0[0m [1;30mlr[0m [1;32m0x00000fcf[0m [1;30mpc[0m [1;32m0x00000800[0m [1;30mxpsr[0m [1;32m0x21000000[0m [1;30mfpscr[0m [1;32m0x00000000[0m
|
|
|
|
|
[1;30mmsp[0m [1;32m0x200100d0[0m [1;30mpsp[0m [1;32m0xfff3df7c[0m [1;30mprimask[0m [1;32m0x00[0m [1;30mbasepri[0m [1;32m0x00[0m [1;30mfaultmask[0m [1;32m0x00[0m [1;30mcontrol[0m [1;32m0x00[0m
|
|
|
|
|
[36m───[0m [1;33mSource[0m [36m──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────[0m
|
|
|
|
|
[1;30m 5[0m {
|
|
|
|
|
[1;30m 6[0m /* Initializes MCU, drivers and middleware */
|
|
|
|
|
[1;30m 7[0m atmel_start_init();
|
|
|
|
|
[1;30m 8[0m pdebug_init();
|
|
|
|
|
[1;30m 9[0m
|
|
|
|
|
[1;30m10[0m printf("Hi\n");
|
|
|
|
|
[1;30m11[0m
|
|
|
|
|
[1;30m12[0m sd_mmc_init();
|
|
|
|
|
[1;30m13[0m /* Replace with your application code */
|
|
|
|
|
[1;30m14[0m while (1) {
|
|
|
|
|
[1;32m15 }[0m
|
|
|
|
|
[1;30m16[0m }
|
|
|
|
|
[1;30m~[0m
|
|
|
|
|
[1;30m~[0m
|
|
|
|
|
[1;30m~[0m
|
|
|
|
|
[1;30m~[0m
|
|
|
|
|
[1;30m~[0m
|
|
|
|
|
[1;30m~[0m
|
|
|
|
|
[1;30m~[0m
|
|
|
|
|
[1;30m~[0m
|
|
|
|
|
[36m───[0m [1;33mStack[0m [36m───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────[0m
|
|
|
|
|
[[1;32m0[0m] from [1;32m0x00000800[0m in [1;32mmain[0m+[1;32m20[0m at [1;32m../main.c[0m:[1;32m15[0m
|
|
|
|
|
[36m───[0m [1;33mThreads[0m [36m─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────[0m
|
|
|
|
|
[[1;32m1[0m] id [1;32m0[0m from [1;32m0x00000800[0m in [1;32mmain[0m+[1;32m20[0m at [1;32m../main.c[0m:[1;32m15[0m
|
|
|
|
|
[36m───[0m [33mVariables[0m [36m───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────[0m
|
|
|
|
|
[36m─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────[0m
|
|
|
|
|
main () at ../main.c:15
|
|
|
|
|
15 }
|
|
|
|
|
Breakpoint 1 at 0x7ec: file ../main.c, line 7.
|
|
|
|
|
Loading section .text, size 0x1b14 lma 0x0
|
|
|
|
|
Loading section .relocate, size 0x64 lma 0x1b14
|
|
|
|
|
Start address 0x0, load size 7032
|
|
|
|
|
Transfer rate: 54 KB/sec, 781 bytes/write.
|
|
|
|
|
[H[J[3J[36m───[0m [1;33mOutput/messages[0m [36m─────────────────────────────────────────────────────────────────────────────────────────────────────────────────[0m
|
|
|
|
|
Note: automatically using hardware breakpoints for read-only addresses.
|
|
|
|
|
[36m───[0m [1;33mAssembly[0m [36m────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────[0m
|
|
|
|
|
[1;30m~[0m
|
|
|
|
|
[1;30m~[0m
|
|
|
|
|
[1;30m~[0m
|
|
|
|
|
[1;30m~[0m
|
|
|
|
|
[1;30m~[0m
|
|
|
|
|
[0;41m![0m[1;32m0x000007ec[0m[1;32m [0m[1;32m[0m[1;32mmain+0[0m[1;32m push {r3, lr}[0m
|
|
|
|
|
[32m0x000007ee[0m[32m [0m[32m[0m[32mmain+2[0m[32m ldr r3, [pc, #20] ; (0x804 <main+24>)[0m
|
|
|
|
|
[32m0x000007f0[0m[32m [0m[32m[0m[32mmain+4[0m[32m blx r3[0m
|
|
|
|
|
[1;30m0x000007f2[0m [1;30mmain+6[0m ldr r3, [pc, #20] ; (0x808 <main+28>)
|
|
|
|
|
[1;30m0x000007f4[0m [1;30mmain+8[0m blx r3
|
|
|
|
|
[36m───[0m [1;33mBreakpoints[0m [36m─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────[0m
|
|
|
|
|
[[1;32m1[0m] [1;32mbreak[0m at [1;32m0x000007ec[0m in [1;32m../main.c[0m:[1;32m7[0m for [1;32mmain[0m hit [1;32m1[0m time
|
|
|
|
|
[36m───[0m [33mExpressions[0m [36m─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────[0m
|
|
|
|
|
[36m───[0m [33mHistory[0m [36m─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────[0m
|
|
|
|
|
[36m───[0m [33mMemory[0m [36m──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────[0m
|
|
|
|
|
[36m───[0m [1;33mRegisters[0m [36m───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────[0m
|
|
|
|
|
[1;30mr0[0m [1;32m0x20000064[0m [1;30mr1[0m [1;32m0x00000000[0m [1;30mr2[0m [1;32m0x00f00000[0m [1;30mr3[0m [1;32m0x000007ed[0m [1;30mr4[0m [m0x1ffffffd[0m [1;30mr5[0m [m0x200102ba[0m
|
|
|
|
|
[1;30mr6[0m [m0x00001100[0m [1;30mr7[0m [m0x000002d5[0m [1;30mr8[0m [m0x000002a5[0m [1;30mr9[0m [m0x00000000[0m [1;30mr10[0m [m0x2000031c[0m [1;30mr11[0m [m0xaf9fbfff[0m
|
|
|
|
|
[1;30mr12[0m [m0x0000000a[0m [1;30msp[0m [1;32m0x200100d8[0m [1;30mlr[0m [1;32m0x000007bd[0m [1;30mpc[0m [1;32m0x000007ec[0m [1;30mxpsr[0m [1;32m0x61000000[0m [1;30mfpscr[0m [m0x00000000[0m
|
|
|
|
|
[1;30mmsp[0m [1;32m0x200100d8[0m [1;30mpsp[0m [m0xfff3df7c[0m [1;30mprimask[0m [m0x00[0m [1;30mbasepri[0m [m0x00[0m [1;30mfaultmask[0m [m0x00[0m [1;30mcontrol[0m [m0x00[0m
|
|
|
|
|
[36m───[0m [1;33mSource[0m [36m──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────[0m
|
|
|
|
|
[1;30m~[0m
|
|
|
|
|
[1;30m~[0m
|
|
|
|
|
[1;30m~[0m
|
|
|
|
|
[1;30m~[0m
|
|
|
|
|
[1;30m 1[0m #include <atmel_start.h>
|
|
|
|
|
[1;30m 2[0m #include "pdebug.h"
|
|
|
|
|
[1;30m 3[0m #include "sd_mmc.h"
|
|
|
|
|
[1;30m 4[0m int main(void)
|
|
|
|
|
[1;30m 5[0m {
|
|
|
|
|
[1;30m 6[0m /* Initializes MCU, drivers and middleware */
|
|
|
|
|
[0;41m![0m[1;32m 7 atmel_start_init();[0m
|
|
|
|
|
[1;30m 8[0m pdebug_init();
|
|
|
|
|
[1;30m 9[0m
|
|
|
|
|
[1;30m10[0m printf("Hi\n");
|
|
|
|
|
[1;30m11[0m
|
|
|
|
|
[1;30m12[0m sd_mmc_init();
|
|
|
|
|
[1;30m13[0m /* Replace with your application code */
|
|
|
|
|
[1;30m14[0m while (1) {
|
|
|
|
|
[1;30m15[0m }
|
|
|
|
|
[1;30m16[0m }
|
|
|
|
|
[36m───[0m [1;33mStack[0m [36m───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────[0m
|
|
|
|
|
[[1;32m0[0m] from [1;32m0x000007ec[0m in [1;32mmain[0m+[1;32m0[0m at [1;32m../main.c[0m:[1;32m7[0m
|
|
|
|
|
[36m───[0m [1;33mThreads[0m [36m─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────[0m
|
|
|
|
|
[[1;32m1[0m] id [1;32m-1[0m from [1;32m0x000007ec[0m in [1;32mmain[0m+[1;32m0[0m at [1;32m../main.c[0m:[1;32m7[0m
|
|
|
|
|
[36m───[0m [33mVariables[0m [36m───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────[0m
|
|
|
|
|
[36m─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────[0m
|
|
|
|
|
|
|
|
|
|
Breakpoint 1, main () at ../main.c:7
|
|
|
|
|
7 atmel_start_init();
|
|
|
|
|
[36m───[0m [1;33mAssembly[0m [36m────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────[0m
|
|
|
|
|
[1;30m0x000007f6[0m [1;30mmain+10[0m ldr r3, [pc, #20] ; (0x80c <main+32>)
|
|
|
|
|
[1;30m0x000007f8[0m [1;30mmain+12[0m ldr r0, [pc, #20] ; (0x810 <main+36>)
|
|
|
|
|
[1;30m0x000007fa[0m [1;30mmain+14[0m blx r3
|
|
|
|
|
[1;30m0x000007fc[0m [1;30mmain+16[0m ldr r3, [pc, #20] ; (0x814 <main+40>)
|
|
|
|
|
[1;30m0x000007fe[0m [1;30mmain+18[0m blx r3
|
|
|
|
|
[1;32m0x00000800[0m[1;32m [0m[1;32m[0m[1;32mmain+20[0m[1;32m b.n 0x800 <main+20>[0m
|
|
|
|
|
[32m0x00000802[0m[32m [0m[32m[0m[32mmain+22[0m[32m nop[0m
|
|
|
|
|
[32m0x00000804[0m[32m [0m[32m[0m[32mmain+24[0m[32m lsrs r1, r0, #23[0m
|
|
|
|
|
[32m0x00000806[0m[32m [0m[32m[0m[32mmain+26[0m[32m movs r0, r0[0m
|
|
|
|
|
[32m0x00000808[0m[32m [0m[32m[0m[32mmain+28[0m[32m lsrs r1, r5, #24[0m
|
|
|
|
|
[36m───[0m [33mBreakpoints[0m [36m─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────[0m
|
|
|
|
|
[36m───[0m [33mExpressions[0m [36m─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────[0m
|
|
|
|
|
[36m───[0m [33mHistory[0m [36m─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────[0m
|
|
|
|
|
[36m───[0m [33mMemory[0m [36m──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────[0m
|
|
|
|
|
[36m───[0m [1;33mRegisters[0m [36m───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────[0m
|
|
|
|
|
[1;30mr0[0m [1;32m0x00000000[0m [1;30mr1[0m [1;32m0x0000000a[0m [1;30mr2[0m [1;32m0x000000f1[0m [1;30mr3[0m [1;32m0x000005b1[0m [1;30mr4[0m [1;32m0x1ffffffd[0m [1;30mr5[0m [1;32m0x200102ba[0m
|
|
|
|
|
[1;30mr6[0m [1;32m0x00001100[0m [1;30mr7[0m [1;32m0x000002d5[0m [1;30mr8[0m [1;32m0x000002a5[0m [1;30mr9[0m [1;32m0x00000000[0m [1;30mr10[0m [1;32m0x2000031c[0m [1;30mr11[0m [1;32m0xaf9fbfff[0m
|
|
|
|
|
[1;30mr12[0m [1;32m0x0000000a[0m [1;30msp[0m [1;32m0x200100d0[0m [1;30mlr[0m [1;32m0x00000fcf[0m [1;30mpc[0m [1;32m0x00000800[0m [1;30mxpsr[0m [1;32m0x21000000[0m [1;30mfpscr[0m [1;32m0x00000000[0m
|
|
|
|
|
[1;30mmsp[0m [1;32m0x200100d0[0m [1;30mpsp[0m [1;32m0xfff3df7c[0m [1;30mprimask[0m [1;32m0x00[0m [1;30mbasepri[0m [1;32m0x00[0m [1;30mfaultmask[0m [1;32m0x00[0m [1;30mcontrol[0m [1;32m0x00[0m
|
|
|
|
|
[36m───[0m [1;33mSource[0m [36m──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────[0m
|
|
|
|
|
[1;30m 5[0m {
|
|
|
|
|
[1;30m 6[0m /* Initializes MCU, drivers and middleware */
|
|
|
|
|
[1;30m 7[0m atmel_start_init();
|
|
|
|
|
[1;30m 8[0m pdebug_init();
|
|
|
|
|
[1;30m 9[0m
|
|
|
|
|
[1;30m10[0m printf("Hi\n");
|
|
|
|
|
[1;30m11[0m
|
|
|
|
|
[1;30m12[0m sd_mmc_init();
|
|
|
|
|
[1;30m13[0m /* Replace with your application code */
|
|
|
|
|
[1;30m14[0m while (1) {
|
|
|
|
|
[1;32m15 }[0m
|
|
|
|
|
[1;30m16[0m }
|
|
|
|
|
[1;30m~[0m
|
|
|
|
|
[1;30m~[0m
|
|
|
|
|
[1;30m~[0m
|
|
|
|
|
[1;30m~[0m
|
|
|
|
|
[1;30m~[0m
|
|
|
|
|
[1;30m~[0m
|
|
|
|
|
[1;30m~[0m
|
|
|
|
|
[1;30m~[0m
|
|
|
|
|
[36m───[0m [1;33mStack[0m [36m───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────[0m
|
|
|
|
|
[[1;32m0[0m] from [1;32m0x00000800[0m in [1;32mmain[0m+[1;32m20[0m at [1;32m../main.c[0m:[1;32m15[0m
|
|
|
|
|
[36m───[0m [1;33mThreads[0m [36m─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────[0m
|
|
|
|
|
[[1;32m1[0m] id [1;32m0[0m from [1;32m0x00000800[0m in [1;32mmain[0m+[1;32m20[0m at [1;32m../main.c[0m:[1;32m15[0m
|
|
|
|
|
[36m───[0m [33mVariables[0m [36m───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────[0m
|
|
|
|
|
[36m─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────[0m
|
|
|
|
|
main () at ../main.c:15
|
|
|
|
|
15 }
|
|
|
|
|
Breakpoint 1 at 0x7ec: file ../main.c, line 7.
|
|
|
|
|
Loading section .text, size 0x1b24 lma 0x0
|
|
|
|
|
Loading section .relocate, size 0x64 lma 0x1b24
|
|
|
|
|
Start address 0x0, load size 7048
|
|
|
|
|
Transfer rate: 55 KB/sec, 783 bytes/write.
|
|
|
|
|
[H[J[3J[36m───[0m [1;33mOutput/messages[0m [36m─────────────────────────────────────────────────────────────────────────────────────────────────────────────────[0m
|
|
|
|
|
Note: automatically using hardware breakpoints for read-only addresses.
|
|
|
|
|
[36m───[0m [1;33mAssembly[0m [36m────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────[0m
|
|
|
|
|
[1;30m~[0m
|
|
|
|
|
[1;30m~[0m
|
|
|
|
|
[1;30m~[0m
|
|
|
|
|
[1;30m~[0m
|
|
|
|
|
[1;30m~[0m
|
|
|
|
|
[0;41m![0m[1;32m0x000007ec[0m[1;32m [0m[1;32m[0m[1;32mmain+0[0m[1;32m push {r3, lr}[0m
|
|
|
|
|
[32m0x000007ee[0m[32m [0m[32m[0m[32mmain+2[0m[32m ldr r3, [pc, #20] ; (0x804 <main+24>)[0m
|
|
|
|
|
[32m0x000007f0[0m[32m [0m[32m[0m[32mmain+4[0m[32m blx r3[0m
|
|
|
|
|
[1;30m0x000007f2[0m [1;30mmain+6[0m ldr r3, [pc, #20] ; (0x808 <main+28>)
|
|
|
|
|
[1;30m0x000007f4[0m [1;30mmain+8[0m blx r3
|
|
|
|
|
[36m───[0m [1;33mBreakpoints[0m [36m─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────[0m
|
|
|
|
|
[[1;32m1[0m] [1;32mbreak[0m at [1;32m0x000007ec[0m in [1;32m../main.c[0m:[1;32m7[0m for [1;32mmain[0m hit [1;32m1[0m time
|
|
|
|
|
[36m───[0m [33mExpressions[0m [36m─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────[0m
|
|
|
|
|
[36m───[0m [33mHistory[0m [36m─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────[0m
|
|
|
|
|
[36m───[0m [33mMemory[0m [36m──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────[0m
|
|
|
|
|
[36m───[0m [1;33mRegisters[0m [36m───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────[0m
|
|
|
|
|
[1;30mr0[0m [1;32m0x20000064[0m [1;30mr1[0m [1;32m0x00000000[0m [1;30mr2[0m [1;32m0x00f00000[0m [1;30mr3[0m [1;32m0x000007ed[0m [1;30mr4[0m [m0x1ffffffd[0m [1;30mr5[0m [m0x200102ba[0m
|
|
|
|
|
[1;30mr6[0m [m0x00001100[0m [1;30mr7[0m [m0x000002d5[0m [1;30mr8[0m [m0x000002a5[0m [1;30mr9[0m [m0x00000000[0m [1;30mr10[0m [m0x2000031c[0m [1;30mr11[0m [m0xaf9fbfff[0m
|
|
|
|
|
[1;30mr12[0m [m0x0000000a[0m [1;30msp[0m [1;32m0x200100d8[0m [1;30mlr[0m [1;32m0x000007bd[0m [1;30mpc[0m [1;32m0x000007ec[0m [1;30mxpsr[0m [1;32m0x61000000[0m [1;30mfpscr[0m [m0x00000000[0m
|
|
|
|
|
[1;30mmsp[0m [1;32m0x200100d8[0m [1;30mpsp[0m [m0xfff3df7c[0m [1;30mprimask[0m [m0x00[0m [1;30mbasepri[0m [m0x00[0m [1;30mfaultmask[0m [m0x00[0m [1;30mcontrol[0m [m0x00[0m
|
|
|
|
|
[36m───[0m [1;33mSource[0m [36m──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────[0m
|
|
|
|
|
[1;30m~[0m
|
|
|
|
|
[1;30m~[0m
|
|
|
|
|
[1;30m~[0m
|
|
|
|
|
[1;30m~[0m
|
|
|
|
|
[1;30m 1[0m #include <atmel_start.h>
|
|
|
|
|
[1;30m 2[0m #include "pdebug.h"
|
|
|
|
|
[1;30m 3[0m #include "sd_mmc.h"
|
|
|
|
|
[1;30m 4[0m int main(void)
|
|
|
|
|
[1;30m 5[0m {
|
|
|
|
|
[1;30m 6[0m /* Initializes MCU, drivers and middleware */
|
|
|
|
|
[0;41m![0m[1;32m 7 atmel_start_init();[0m
|
|
|
|
|
[1;30m 8[0m pdebug_init();
|
|
|
|
|
[1;30m 9[0m
|
|
|
|
|
[1;30m10[0m printf("Hi\n");
|
|
|
|
|
[1;30m11[0m
|
|
|
|
|
[1;30m12[0m sd_mmc_init();
|
|
|
|
|
[1;30m13[0m /* Replace with your application code */
|
|
|
|
|
[1;30m14[0m while (1) {
|
|
|
|
|
[1;30m15[0m }
|
|
|
|
|
[1;30m16[0m }
|
|
|
|
|
[36m───[0m [1;33mStack[0m [36m───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────[0m
|
|
|
|
|
[[1;32m0[0m] from [1;32m0x000007ec[0m in [1;32mmain[0m+[1;32m0[0m at [1;32m../main.c[0m:[1;32m7[0m
|
|
|
|
|
[36m───[0m [1;33mThreads[0m [36m─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────[0m
|
|
|
|
|
[[1;32m1[0m] id [1;32m-1[0m from [1;32m0x000007ec[0m in [1;32mmain[0m+[1;32m0[0m at [1;32m../main.c[0m:[1;32m7[0m
|
|
|
|
|
[36m───[0m [33mVariables[0m [36m───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────[0m
|
|
|
|
|
[36m─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────[0m
|
|
|
|
|
|
|
|
|
|
Breakpoint 1, main () at ../main.c:7
|
|
|
|
|
7 atmel_start_init();
|
|
|
|
|
[36m───[0m [1;33mAssembly[0m [36m────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────[0m
|
|
|
|
|
[1;30m0x000007f6[0m [1;30mmain+10[0m ldr r3, [pc, #20] ; (0x80c <main+32>)
|
|
|
|
|
[1;30m0x000007f8[0m [1;30mmain+12[0m ldr r0, [pc, #20] ; (0x810 <main+36>)
|
|
|
|
|
[1;30m0x000007fa[0m [1;30mmain+14[0m blx r3
|
|
|
|
|
[1;30m0x000007fc[0m [1;30mmain+16[0m ldr r3, [pc, #20] ; (0x814 <main+40>)
|
|
|
|
|
[1;30m0x000007fe[0m [1;30mmain+18[0m blx r3
|
|
|
|
|
[1;32m0x00000800[0m[1;32m [0m[1;32m[0m[1;32mmain+20[0m[1;32m b.n 0x800 <main+20>[0m
|
|
|
|
|
[32m0x00000802[0m[32m [0m[32m[0m[32mmain+22[0m[32m nop[0m
|
|
|
|
|
[32m0x00000804[0m[32m [0m[32m[0m[32mmain+24[0m[32m lsrs r1, r0, #23[0m
|
|
|
|
|
[32m0x00000806[0m[32m [0m[32m[0m[32mmain+26[0m[32m movs r0, r0[0m
|
|
|
|
|
[32m0x00000808[0m[32m [0m[32m[0m[32mmain+28[0m[32m lsrs r1, r5, #24[0m
|
|
|
|
|
[36m───[0m [33mBreakpoints[0m [36m─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────[0m
|
|
|
|
|
[36m───[0m [33mExpressions[0m [36m─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────[0m
|
|
|
|
|
[36m───[0m [33mHistory[0m [36m─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────[0m
|
|
|
|
|
[36m───[0m [33mMemory[0m [36m──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────[0m
|
|
|
|
|
[36m───[0m [1;33mRegisters[0m [36m───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────[0m
|
|
|
|
|
[1;30mr0[0m [1;32m0x00000000[0m [1;30mr1[0m [1;32m0x0000000a[0m [1;30mr2[0m [1;32m0x000000f1[0m [1;30mr3[0m [1;32m0x000005b1[0m [1;30mr4[0m [1;32m0x1ffffffd[0m [1;30mr5[0m [1;32m0x200102ba[0m
|
|
|
|
|
[1;30mr6[0m [1;32m0x00001100[0m [1;30mr7[0m [1;32m0x000002d5[0m [1;30mr8[0m [1;32m0x000002a5[0m [1;30mr9[0m [1;32m0x00000000[0m [1;30mr10[0m [1;32m0x2000031c[0m [1;30mr11[0m [1;32m0xaf9fbfff[0m
|
|
|
|
|
[1;30mr12[0m [1;32m0x0000000a[0m [1;30msp[0m [1;32m0x200100d0[0m [1;30mlr[0m [1;32m0x00000fdf[0m [1;30mpc[0m [1;32m0x00000800[0m [1;30mxpsr[0m [1;32m0x21000000[0m [1;30mfpscr[0m [1;32m0x00000000[0m
|
|
|
|
|
[1;30mmsp[0m [1;32m0x200100d0[0m [1;30mpsp[0m [1;32m0xfff3df7c[0m [1;30mprimask[0m [1;32m0x00[0m [1;30mbasepri[0m [1;32m0x00[0m [1;30mfaultmask[0m [1;32m0x00[0m [1;30mcontrol[0m [1;32m0x00[0m
|
|
|
|
|
[36m───[0m [1;33mSource[0m [36m──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────[0m
|
|
|
|
|
[1;30m 5[0m {
|
|
|
|
|
[1;30m 6[0m /* Initializes MCU, drivers and middleware */
|
|
|
|
|
[1;30m 7[0m atmel_start_init();
|
|
|
|
|
[1;30m 8[0m pdebug_init();
|
|
|
|
|
[1;30m 9[0m
|
|
|
|
|
[1;30m10[0m printf("Hi\n");
|
|
|
|
|
[1;30m11[0m
|
|
|
|
|
[1;30m12[0m sd_mmc_init();
|
|
|
|
|
[1;30m13[0m /* Replace with your application code */
|
|
|
|
|
[1;30m14[0m while (1) {
|
|
|
|
|
[1;32m15 }[0m
|
|
|
|
|
[1;30m16[0m }
|
|
|
|
|
[1;30m~[0m
|
|
|
|
|
[1;30m~[0m
|
|
|
|
|
[1;30m~[0m
|
|
|
|
|
[1;30m~[0m
|
|
|
|
|
[1;30m~[0m
|
|
|
|
|
[1;30m~[0m
|
|
|
|
|
[1;30m~[0m
|
|
|
|
|
[1;30m~[0m
|
|
|
|
|
[36m───[0m [1;33mStack[0m [36m───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────[0m
|
|
|
|
|
[[1;32m0[0m] from [1;32m0x00000800[0m in [1;32mmain[0m+[1;32m20[0m at [1;32m../main.c[0m:[1;32m15[0m
|
|
|
|
|
[36m───[0m [1;33mThreads[0m [36m─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────[0m
|
|
|
|
|
[[1;32m1[0m] id [1;32m0[0m from [1;32m0x00000800[0m in [1;32mmain[0m+[1;32m20[0m at [1;32m../main.c[0m:[1;32m15[0m
|
|
|
|
|
[36m───[0m [33mVariables[0m [36m───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────[0m
|
|
|
|
|
[36m─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────[0m
|
|
|
|
|
main () at ../main.c:15
|
|
|
|
|
15 }
|
|
|
|
|
Breakpoint 1 at 0x7ec: file ../main.c, line 7.
|
|
|
|
|
Loading section .text, size 0x1b24 lma 0x0
|
|
|
|
|
Loading section .relocate, size 0x64 lma 0x1b24
|
|
|
|
|
Start address 0x0, load size 7048
|
|
|
|
|
Transfer rate: 53 KB/sec, 783 bytes/write.
|
|
|
|
|
[H[J[3J[36m───[0m [1;33mOutput/messages[0m [36m─────────────────────────────────────────────────────────────────────────────────────────────────────────────────[0m
|
|
|
|
|
Note: automatically using hardware breakpoints for read-only addresses.
|
|
|
|
|
[36m───[0m [1;33mAssembly[0m [36m────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────[0m
|
|
|
|
|
[1;30m~[0m
|
|
|
|
|
[1;30m~[0m
|
|
|
|
|
[1;30m~[0m
|
|
|
|
|
[1;30m~[0m
|
|
|
|
|
[1;30m~[0m
|
|
|
|
|
[0;41m![0m[1;32m0x000007ec[0m[1;32m [0m[1;32m[0m[1;32mmain+0[0m[1;32m push {r3, lr}[0m
|
|
|
|
|
[32m0x000007ee[0m[32m [0m[32m[0m[32mmain+2[0m[32m ldr r3, [pc, #20] ; (0x804 <main+24>)[0m
|
|
|
|
|
[32m0x000007f0[0m[32m [0m[32m[0m[32mmain+4[0m[32m blx r3[0m
|
|
|
|
|
[1;30m0x000007f2[0m [1;30mmain+6[0m ldr r3, [pc, #20] ; (0x808 <main+28>)
|
|
|
|
|
[1;30m0x000007f4[0m [1;30mmain+8[0m blx r3
|
|
|
|
|
[36m───[0m [1;33mBreakpoints[0m [36m─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────[0m
|
|
|
|
|
[[1;32m1[0m] [1;32mbreak[0m at [1;32m0x000007ec[0m in [1;32m../main.c[0m:[1;32m7[0m for [1;32mmain[0m hit [1;32m1[0m time
|
|
|
|
|
[36m───[0m [33mExpressions[0m [36m─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────[0m
|
|
|
|
|
[36m───[0m [33mHistory[0m [36m─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────[0m
|
|
|
|
|
[36m───[0m [33mMemory[0m [36m──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────[0m
|
|
|
|
|
[36m───[0m [1;33mRegisters[0m [36m───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────[0m
|
|
|
|
|
[1;30mr0[0m [1;32m0x20000064[0m [1;30mr1[0m [1;32m0x00000000[0m [1;30mr2[0m [1;32m0x00f00000[0m [1;30mr3[0m [1;32m0x000007ed[0m [1;30mr4[0m [m0x1ffffffd[0m [1;30mr5[0m [m0x200102ba[0m
|
|
|
|
|
[1;30mr6[0m [m0x00001100[0m [1;30mr7[0m [m0x000002d5[0m [1;30mr8[0m [m0x000002a5[0m [1;30mr9[0m [m0x00000000[0m [1;30mr10[0m [m0x2000031c[0m [1;30mr11[0m [m0xaf9fbfff[0m
|
|
|
|
|
[1;30mr12[0m [m0x0000000a[0m [1;30msp[0m [1;32m0x200100d8[0m [1;30mlr[0m [1;32m0x000007bd[0m [1;30mpc[0m [1;32m0x000007ec[0m [1;30mxpsr[0m [1;32m0x61000000[0m [1;30mfpscr[0m [m0x00000000[0m
|
|
|
|
|
[1;30mmsp[0m [1;32m0x200100d8[0m [1;30mpsp[0m [m0xfff3df7c[0m [1;30mprimask[0m [m0x00[0m [1;30mbasepri[0m [m0x00[0m [1;30mfaultmask[0m [m0x00[0m [1;30mcontrol[0m [m0x00[0m
|
|
|
|
|
[36m───[0m [1;33mSource[0m [36m──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────[0m
|
|
|
|
|
[1;30m~[0m
|
|
|
|
|
[1;30m~[0m
|
|
|
|
|
[1;30m~[0m
|
|
|
|
|
[1;30m~[0m
|
|
|
|
|
[1;30m 1[0m #include <atmel_start.h>
|
|
|
|
|
[1;30m 2[0m #include "pdebug.h"
|
|
|
|
|
[1;30m 3[0m #include "sd_mmc.h"
|
|
|
|
|
[1;30m 4[0m int main(void)
|
|
|
|
|
[1;30m 5[0m {
|
|
|
|
|
[1;30m 6[0m /* Initializes MCU, drivers and middleware */
|
|
|
|
|
[0;41m![0m[1;32m 7 atmel_start_init();[0m
|
|
|
|
|
[1;30m 8[0m pdebug_init();
|
|
|
|
|
[1;30m 9[0m
|
|
|
|
|
[1;30m10[0m printf("Hi\n");
|
|
|
|
|
[1;30m11[0m
|
|
|
|
|
[1;30m12[0m sd_mmc_init();
|
|
|
|
|
[1;30m13[0m /* Replace with your application code */
|
|
|
|
|
[1;30m14[0m while (1) {
|
|
|
|
|
[1;30m15[0m }
|
|
|
|
|
[1;30m16[0m }
|
|
|
|
|
[36m───[0m [1;33mStack[0m [36m───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────[0m
|
|
|
|
|
[[1;32m0[0m] from [1;32m0x000007ec[0m in [1;32mmain[0m+[1;32m0[0m at [1;32m../main.c[0m:[1;32m7[0m
|
|
|
|
|
[36m───[0m [1;33mThreads[0m [36m─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────[0m
|
|
|
|
|
[[1;32m1[0m] id [1;32m-1[0m from [1;32m0x000007ec[0m in [1;32mmain[0m+[1;32m0[0m at [1;32m../main.c[0m:[1;32m7[0m
|
|
|
|
|
[36m───[0m [33mVariables[0m [36m───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────[0m
|
|
|
|
|
[36m─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────[0m
|
|
|
|
|
|
|
|
|
|
Breakpoint 1, main () at ../main.c:7
|
|
|
|
|
7 atmel_start_init();
|