|
|
Quit
|
|
|
[36m───[0m [1;33mAssembly[0m [36m────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────[0m
|
|
|
[1;30m0x00000808[0m [1;30mmain+0 [0m push {r3, lr}
|
|
|
[1;30m0x0000080a[0m [1;30mmain+2 [0m ldr r3, [pc, #8] ; (0x814 <main+12>)
|
|
|
[1;30m0x0000080c[0m [1;30mmain+4 [0m blx r3
|
|
|
[1;30m0x0000080e[0m [1;30mmain+6 [0m ldr r3, [pc, #8] ; (0x818 <main+16>)
|
|
|
[1;30m0x00000810[0m [1;30mmain+8 [0m blx r3
|
|
|
[1;32m0x00000812[0m[1;32m [0m[1;32m[0m[1;32mmain+10[0m[1;32m b.n 0x812 <main+10>[0m
|
|
|
[32m0x00000814[0m[32m [0m[32m[0m[32mmain+12[0m[32m lsrs r5, r4, #30[0m
|
|
|
[32m0x00000816[0m[32m [0m[32m[0m[32mmain+14[0m[32m movs r0, r0[0m
|
|
|
[32m0x00000818[0m[32m [0m[32m[0m[32mmain+16[0m[32m asrs r5, r4, #32[0m
|
|
|
[32m0x0000081a[0m[32m [0m[32m[0m[32mmain+18[0m[32m movs r0, r0[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;32m0x000005cd[0m [1;30mr4[0m [1;32m0x1ffffffd[0m [1;30mr5[0m [1;32m0x00000000[0m
|
|
|
[1;30mr6[0m [1;32m0x000002a5[0m [1;30mr7[0m [1;32m0xa0000000[0m [1;30mr8[0m [1;32m0xf7e2f6ef[0m [1;30mr9[0m [1;32m0xffffff7d[0m [1;30mr10[0m [1;32m0xfff7e7cf[0m [1;30mr11[0m [1;32m0xbf9faffe[0m
|
|
|
[1;30mr12[0m [1;32m0x0000000a[0m [1;30msp[0m [1;32m0x20010158[0m [1;30mlr[0m [1;32m0x0000103d[0m [1;30mpc[0m [1;32m0x00000812[0m [1;30mxpsr[0m [1;32m0x61000000[0m [1;30mfpscr[0m [1;32m0x00000000[0m
|
|
|
[1;30mmsp[0m [1;32m0x20010158[0m [1;30mpsp[0m [1;32m0xfff7df7c[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 2[0m #include "pdebug.h"
|
|
|
[1;30m 3[0m
|
|
|
[1;30m 4[0m int main(void)
|
|
|
[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 /* Replace with your application code */
|
|
|
[1;30m11[0m while (1) {
|
|
|
[1;32m12 }[0m
|
|
|
[1;30m13[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;32m0x00000812[0m in [1;32mmain[0m+[1;32m10[0m at [1;32m../main.c[0m:[1;32m12[0m
|
|
|
[36m───[0m [1;33mThreads[0m [36m─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────[0m
|
|
|
[[1;32m1[0m] id [1;32m-1[0m from [1;32m0x00000812[0m in [1;32mmain[0m+[1;32m10[0m at [1;32m../main.c[0m:[1;32m12[0m
|
|
|
[36m───[0m [33mVariables[0m [36m───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────[0m
|
|
|
[36m─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────[0m
|
|
|
main () at ../main.c:12
|
|
|
12 }
|
|
|
A program is being debugged already. Kill it? (y or n) [answered Y; input not from terminal]
|
|
|
[36m───[0m [1;33mAssembly[0m [36m────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────[0m
|
|
|
[1;30m0x00000552[0m [1;30m_oscctrl_init_referenced_generators+34[0m ldr r3, [pc, #16] ; (0x564 <_oscctrl_init_referenced_generators+52>)
|
|
|
[1;30m0x00000554[0m [1;30m_oscctrl_init_referenced_generators+36[0m ldr r2, [r3, #64] ; 0x40
|
|
|
[1;30m0x00000556[0m [1;30m_oscctrl_init_referenced_generators+38[0m lsls r1, r2, #31
|
|
|
[1;30m0x00000558[0m [1;30m_oscctrl_init_referenced_generators+40[0m bmi.n 0x560 <_oscctrl_init_referenced_generators+48>
|
|
|
[32m0x0000055a[0m[32m [0m[32m[0m[32m_oscctrl_init_referenced_generators+42[0m[32m ldr r2, [r3, #64] ; 0x40[0m
|
|
|
[1;32m0x0000055c[0m[1;32m [0m[1;32m[0m[1;32m_oscctrl_init_referenced_generators+44[0m[1;32m lsls r2, r2, #30[0m
|
|
|
[32m0x0000055e[0m[32m [0m[32m[0m[32m_oscctrl_init_referenced_generators+46[0m[32m bpl.n 0x554 <_oscctrl_init_referenced_generators+36>[0m
|
|
|
[32m0x00000560[0m[32m [0m[32m[0m[32m_oscctrl_init_referenced_generators+48[0m[32m bx lr[0m
|
|
|
[32m0x00000562[0m[32m [0m[32m[0m[32m_oscctrl_init_referenced_generators+50[0m[32m nop[0m
|
|
|
[32m0x00000564[0m[32m [0m[32m[0m[32m_oscctrl_init_referenced_generators+52[0m[32m asrs r0, r0, #32[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 [m0x00000000[0m [1;30mr1[0m [1;32m0x00000000[0m [1;30mr2[0m [1;32m0x00000000[0m [1;30mr3[0m [1;32m0x40001000[0m [1;30mr4[0m [m0x1ffffffd[0m [1;30mr5[0m [m0x00000000[0m
|
|
|
[1;30mr6[0m [m0x000002a5[0m [1;30mr7[0m [m0xa0000000[0m [1;30mr8[0m [m0xf7e2f6ef[0m [1;30mr9[0m [m0xffffff7d[0m [1;30mr10[0m [m0xfff7e7cf[0m [1;30mr11[0m [m0xbf9faffe[0m
|
|
|
[1;30mr12[0m [m0x0000000a[0m [1;30msp[0m [1;32m0x20010140[0m [1;30mlr[0m [1;32m0x000004cb[0m [1;30mpc[0m [1;32m0x0000055c[0m [1;30mxpsr[0m [1;32m0x41000000[0m [1;30mfpscr[0m [m0x00000000[0m
|
|
|
[1;30mmsp[0m [1;32m0x20010140[0m [1;30mpsp[0m [m0xfff7df7c[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;30m914[0m }
|
|
|
[1;30m915[0m
|
|
|
[1;30m916[0m static inline bool hri_oscctrl_get_DPLLSTATUS_LOCK_bit(const void *const hw, uint8_t submodule_index)
|
|
|
[1;30m917[0m {
|
|
|
[1;30m918[0m return (((Oscctrl *)hw)->Dpll[submodule_index].DPLLSTATUS.reg & OSCCTRL_DPLLSTATUS_LOCK)
|
|
|
[1;30m919[0m >> OSCCTRL_DPLLSTATUS_LOCK_Pos;
|
|
|
[1;30m920[0m }
|
|
|
[1;30m921[0m
|
|
|
[1;30m922[0m static inline bool hri_oscctrl_get_DPLLSTATUS_CLKRDY_bit(const void *const hw, uint8_t submodule_index)
|
|
|
[1;30m923[0m {
|
|
|
[1;32m924 return (((Oscctrl *)hw)->Dpll[submodule_index].DPLLSTATUS.reg & OSCCTRL_DPLLSTATUS_CLKRDY)[0m
|
|
|
[1;30m925[0m >> OSCCTRL_DPLLSTATUS_CLKRDY_Pos;
|
|
|
[1;30m926[0m }
|
|
|
[1;30m927[0m
|
|
|
[1;30m928[0m static inline hri_oscctrl_dpllstatus_reg_t hri_oscctrl_get_DPLLSTATUS_reg(const void *const hw, uint8_t submodule_index,
|
|
|
[1;30m929[0m hri_oscctrl_dpllstatus_reg_t mask)
|
|
|
[1;30m930[0m {
|
|
|
[1;30m931[0m uint32_t tmp;
|
|
|
[1;30m932[0m tmp = ((Oscctrl *)hw)->Dpll[submodule_index].DPLLSTATUS.reg;
|
|
|
[1;30m933[0m tmp &= mask;
|
|
|
[36m───[0m [1;33mStack[0m [36m───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────[0m
|
|
|
[[1;32m0[0m] from [1;32m0x0000055c[0m in [1;32m_oscctrl_init_referenced_generators[0m+[1;32m44[0m at [1;32m../hri/hri_oscctrl_e54.h[0m:[1;32m924[0m
|
|
|
[[32m1[0m] from [32m0x000004ca[0m in [32m_init_chip[0m+[32m30[0m at [32m../hpl/core/hpl_init.c[0m:[32m63[0m
|
|
|
[[32m2[0m] from [32m0x00000c16[0m in [32minit_mcu[0m+[32m4[0m at [32m../hal/include/hal_init.h[0m:[32m58[0m
|
|
|
[[32m3[0m] from [32m0x00000c16[0m in [32msystem_init[0m+[32m6[0m at [32m../driver_init.c[0m:[32m407[0m
|
|
|
[[32m4[0m] from [32m0x00000faa[0m in [32matmel_start_init[0m+[32m6[0m at [32m../atmel_start.c[0m:[32m8[0m
|
|
|
[[32m5[0m] from [32m0x0000080e[0m in [32mmain[0m+[32m6[0m at [32m../main.c[0m:[32m7[0m
|
|
|
[36m───[0m [1;33mThreads[0m [36m─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────[0m
|
|
|
[[1;32m1[0m] id [1;32m0[0m from [1;32m0x0000055c[0m in [1;32m_oscctrl_init_referenced_generators[0m+[1;32m44[0m at [1;32m../hri/hri_oscctrl_e54.h[0m:[1;32m924[0m
|
|
|
[36m───[0m [33mVariables[0m [36m───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────[0m
|
|
|
[36m─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────[0m
|
|
|
0x0000055c in _oscctrl_init_referenced_generators () at ../hri/hri_oscctrl_e54.h:924
|
|
|
924 return (((Oscctrl *)hw)->Dpll[submodule_index].DPLLSTATUS.reg & OSCCTRL_DPLLSTATUS_CLKRDY)
|
|
|
Breakpoint 1 at 0x808: file ../main.c, line 7.
|
|
|
Loading section .text, size 0x1bc0 lma 0x0
|
|
|
Loading section .relocate, size 0x6c lma 0x1bc0
|
|
|
Start address 0x0, load size 7212
|
|
|
Transfer rate: 53 KB/sec, 801 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;32m0x00000808[0m[1;32m [0m[1;32m[0m[1;32mmain+0[0m[1;32m push {r3, lr}[0m
|
|
|
[32m0x0000080a[0m[32m [0m[32m[0m[32mmain+2[0m[32m ldr r3, [pc, #8] ; (0x814 <main+12>)[0m
|
|
|
[32m0x0000080c[0m[32m [0m[32m[0m[32mmain+4[0m[32m blx r3[0m
|
|
|
[1;30m0x0000080e[0m [1;30mmain+6[0m ldr r3, [pc, #8] ; (0x818 <main+16>)
|
|
|
[1;30m0x00000810[0m [1;30mmain+8[0m blx r3
|
|
|
[36m───[0m [1;33mBreakpoints[0m [36m─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────[0m
|
|
|
[[1;32m1[0m] [1;32mbreak[0m at [1;32m0x00000808[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;32m0x20000070[0m [1;30mr1[0m [m0x00000000[0m [1;30mr2[0m [1;32m0x00f00000[0m [1;30mr3[0m [1;32m0x00000809[0m [1;30mr4[0m [m0x1ffffffd[0m [1;30mr5[0m [m0x00000000[0m
|
|
|
[1;30mr6[0m [m0x000002a5[0m [1;30mr7[0m [m0xa0000000[0m [1;30mr8[0m [m0xf7e2f6ef[0m [1;30mr9[0m [m0xffffff7d[0m [1;30mr10[0m [m0xfff7e7cf[0m [1;30mr11[0m [m0xbf9faffe[0m
|
|
|
[1;30mr12[0m [m0x0000000a[0m [1;30msp[0m [1;32m0x20010160[0m [1;30mlr[0m [1;32m0x000007d9[0m [1;30mpc[0m [1;32m0x00000808[0m [1;30mxpsr[0m [1;32m0x61000000[0m [1;30mfpscr[0m [m0x00000000[0m
|
|
|
[1;30mmsp[0m [1;32m0x20010160[0m [1;30mpsp[0m [m0xfff7df7c[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
|
|
|
[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 /* Replace with your application code */
|
|
|
[1;30m11[0m while (1) {
|
|
|
[1;30m12[0m }
|
|
|
[1;30m13[0m }
|
|
|
[1;30m~[0m
|
|
|
[1;30m~[0m
|
|
|
[1;30m~[0m
|
|
|
[36m───[0m [1;33mStack[0m [36m───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────[0m
|
|
|
[[1;32m0[0m] from [1;32m0x00000808[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;32m0x00000808[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;30m0x00000808[0m [1;30mmain+0 [0m push {r3, lr}
|
|
|
[1;30m0x0000080a[0m [1;30mmain+2 [0m ldr r3, [pc, #8] ; (0x814 <main+12>)
|
|
|
[1;30m0x0000080c[0m [1;30mmain+4 [0m blx r3
|
|
|
[1;30m0x0000080e[0m [1;30mmain+6 [0m ldr r3, [pc, #8] ; (0x818 <main+16>)
|
|
|
[1;30m0x00000810[0m [1;30mmain+8 [0m blx r3
|
|
|
[1;32m0x00000812[0m[1;32m [0m[1;32m[0m[1;32mmain+10[0m[1;32m b.n 0x812 <main+10>[0m
|
|
|
[32m0x00000814[0m[32m [0m[32m[0m[32mmain+12[0m[32m lsrs r5, r4, #30[0m
|
|
|
[32m0x00000816[0m[32m [0m[32m[0m[32mmain+14[0m[32m movs r0, r0[0m
|
|
|
[32m0x00000818[0m[32m [0m[32m[0m[32mmain+16[0m[32m asrs r5, r4, #32[0m
|
|
|
[32m0x0000081a[0m[32m [0m[32m[0m[32mmain+18[0m[32m movs r0, r0[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;32m0x000005cd[0m [1;30mr4[0m [1;32m0x1ffffffd[0m [1;30mr5[0m [1;32m0x00000000[0m
|
|
|
[1;30mr6[0m [1;32m0x000002a5[0m [1;30mr7[0m [1;32m0xa0000000[0m [1;30mr8[0m [1;32m0xf7e2f6ef[0m [1;30mr9[0m [1;32m0xffffff7d[0m [1;30mr10[0m [1;32m0xfff7e7cf[0m [1;30mr11[0m [1;32m0xbf9faffe[0m
|
|
|
[1;30mr12[0m [1;32m0x0000000a[0m [1;30msp[0m [1;32m0x20010158[0m [1;30mlr[0m [1;32m0x0000103d[0m [1;30mpc[0m [1;32m0x00000812[0m [1;30mxpsr[0m [1;32m0x61000000[0m [1;30mfpscr[0m [1;32m0x00000000[0m
|
|
|
[1;30mmsp[0m [1;32m0x20010158[0m [1;30mpsp[0m [1;32m0xfff7df7c[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 2[0m #include "pdebug.h"
|
|
|
[1;30m 3[0m
|
|
|
[1;30m 4[0m int main(void)
|
|
|
[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 /* Replace with your application code */
|
|
|
[1;30m11[0m while (1) {
|
|
|
[1;32m12 }[0m
|
|
|
[1;30m13[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;32m0x00000812[0m in [1;32mmain[0m+[1;32m10[0m at [1;32m../main.c[0m:[1;32m12[0m
|
|
|
[36m───[0m [1;33mThreads[0m [36m─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────[0m
|
|
|
[[1;32m1[0m] id [1;32m-1[0m from [1;32m0x00000812[0m in [1;32mmain[0m+[1;32m10[0m at [1;32m../main.c[0m:[1;32m12[0m
|
|
|
[36m───[0m [33mVariables[0m [36m───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────[0m
|
|
|
[36m─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────[0m
|
|
|
main () at ../main.c:12
|
|
|
12 }
|
|
|
A program is being debugged already. Kill it? (y or n) [answered Y; input not from terminal]
|
|
|
[36m───[0m [1;33mAssembly[0m [36m────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────[0m
|
|
|
[1;30m~[0m
|
|
|
[1;30m~[0m
|
|
|
[1;30m~[0m
|
|
|
[1;30m~[0m
|
|
|
[1;30m0x00000552[0m [1;30mhri_oscctrl_get_DPLLSTATUS_LOCK_bit+0[0m ldr r3, [pc, #16] ; (0x564 <_oscctrl_init_referenced_generators+52>)
|
|
|
[1;32m0x00000554[0m[1;32m [0m[1;32m[0m[1;32mhri_oscctrl_get_DPLLSTATUS_LOCK_bit+2[0m[1;32m ldr r2, [r3, #64] ; 0x40[0m
|
|
|
[1;30m~[0m
|
|
|
[1;30m~[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 [m0x00000000[0m [1;30mr1[0m [1;32m0x00000000[0m [1;30mr2[0m [1;32m0x00000000[0m [1;30mr3[0m [1;32m0x40001000[0m [1;30mr4[0m [m0x1ffffffd[0m [1;30mr5[0m [m0x00000000[0m
|
|
|
[1;30mr6[0m [m0x000002a5[0m [1;30mr7[0m [m0xa0000000[0m [1;30mr8[0m [m0xf7e2f6ef[0m [1;30mr9[0m [m0xffffff7d[0m [1;30mr10[0m [m0xfff7e7cf[0m [1;30mr11[0m [m0xbf9faffe[0m
|
|
|
[1;30mr12[0m [m0x0000000a[0m [1;30msp[0m [1;32m0x20010140[0m [1;30mlr[0m [1;32m0x000004cb[0m [1;30mpc[0m [1;32m0x00000554[0m [1;30mxpsr[0m [1;32m0x41000000[0m [1;30mfpscr[0m [m0x00000000[0m
|
|
|
[1;30mmsp[0m [1;32m0x20010140[0m [1;30mpsp[0m [m0xfff7df7c[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;30m908[0m }
|
|
|
[1;30m909[0m
|
|
|
[1;30m910[0m static inline hri_oscctrl_dpllsyncbusy_reg_t hri_oscctrl_read_DPLLSYNCBUSY_reg(const void *const hw,
|
|
|
[1;30m911[0m uint8_t submodule_index)
|
|
|
[1;30m912[0m {
|
|
|
[1;30m913[0m return ((Oscctrl *)hw)->Dpll[submodule_index].DPLLSYNCBUSY.reg;
|
|
|
[1;30m914[0m }
|
|
|
[1;30m915[0m
|
|
|
[1;30m916[0m static inline bool hri_oscctrl_get_DPLLSTATUS_LOCK_bit(const void *const hw, uint8_t submodule_index)
|
|
|
[1;30m917[0m {
|
|
|
[1;32m918 return (((Oscctrl *)hw)->Dpll[submodule_index].DPLLSTATUS.reg & OSCCTRL_DPLLSTATUS_LOCK)[0m
|
|
|
[1;30m919[0m >> OSCCTRL_DPLLSTATUS_LOCK_Pos;
|
|
|
[1;30m920[0m }
|
|
|
[1;30m921[0m
|
|
|
[1;30m922[0m static inline bool hri_oscctrl_get_DPLLSTATUS_CLKRDY_bit(const void *const hw, uint8_t submodule_index)
|
|
|
[1;30m923[0m {
|
|
|
[1;30m924[0m return (((Oscctrl *)hw)->Dpll[submodule_index].DPLLSTATUS.reg & OSCCTRL_DPLLSTATUS_CLKRDY)
|
|
|
[1;30m925[0m >> OSCCTRL_DPLLSTATUS_CLKRDY_Pos;
|
|
|
[1;30m926[0m }
|
|
|
[1;30m927[0m
|
|
|
[36m───[0m [1;33mStack[0m [36m───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────[0m
|
|
|
[[1;32m0[0m] from [1;32m0x00000554[0m in [1;32mhri_oscctrl_get_DPLLSTATUS_LOCK_bit[0m+[1;32m2[0m at [1;32m../hri/hri_oscctrl_e54.h[0m:[1;32m918[0m
|
|
|
[[32m1[0m] from [32m0x00000554[0m in [32m_oscctrl_init_referenced_generators[0m+[32m36[0m at [32m../hpl/oscctrl/hpl_oscctrl.c[0m:[32m204[0m
|
|
|
[[32m2[0m] from [32m0x000004ca[0m in [32m_init_chip[0m+[32m30[0m at [32m../hpl/core/hpl_init.c[0m:[32m63[0m
|
|
|
[[32m3[0m] from [32m0x00000c16[0m in [32minit_mcu[0m+[32m4[0m at [32m../hal/include/hal_init.h[0m:[32m58[0m
|
|
|
[[32m4[0m] from [32m0x00000c16[0m in [32msystem_init[0m+[32m6[0m at [32m../driver_init.c[0m:[32m407[0m
|
|
|
[[32m5[0m] from [32m0x00000faa[0m in [32matmel_start_init[0m+[32m6[0m at [32m../atmel_start.c[0m:[32m8[0m
|
|
|
[[32m6[0m] from [32m0x0000080e[0m in [32mmain[0m+[32m6[0m at [32m../main.c[0m:[32m7[0m
|
|
|
[36m───[0m [1;33mThreads[0m [36m─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────[0m
|
|
|
[[1;32m1[0m] id [1;32m0[0m from [1;32m0x00000554[0m in [1;32mhri_oscctrl_get_DPLLSTATUS_LOCK_bit[0m+[1;32m2[0m at [1;32m../hri/hri_oscctrl_e54.h[0m:[1;32m918[0m
|
|
|
[36m───[0m [1;33mVariables[0m [36m───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────[0m
|
|
|
[1;30marg[0m [1;37msubmodule_index[0m [1;30m=[0m 0 '\000'[1;30m, [0m[1;37mhw[0m [1;30m=[0m 0x40001000
|
|
|
[36m─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────[0m
|
|
|
hri_oscctrl_get_DPLLSTATUS_LOCK_bit (submodule_index=0 '\000', hw=0x40001000) at ../hri/hri_oscctrl_e54.h:918
|
|
|
918 return (((Oscctrl *)hw)->Dpll[submodule_index].DPLLSTATUS.reg & OSCCTRL_DPLLSTATUS_LOCK)
|
|
|
Breakpoint 1 at 0x808: file ../main.c, line 7.
|
|
|
Loading section .text, size 0x1bc0 lma 0x0
|
|
|
Loading section .relocate, size 0x6c lma 0x1bc0
|
|
|
Start address 0x0, load size 7212
|
|
|
Transfer rate: 54 KB/sec, 801 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;32m0x00000808[0m[1;32m [0m[1;32m[0m[1;32mmain+0[0m[1;32m push {r3, lr}[0m
|
|
|
[32m0x0000080a[0m[32m [0m[32m[0m[32mmain+2[0m[32m ldr r3, [pc, #8] ; (0x814 <main+12>)[0m
|
|
|
[32m0x0000080c[0m[32m [0m[32m[0m[32mmain+4[0m[32m blx r3[0m
|
|
|
[1;30m0x0000080e[0m [1;30mmain+6[0m ldr r3, [pc, #8] ; (0x818 <main+16>)
|
|
|
[1;30m0x00000810[0m [1;30mmain+8[0m blx r3
|
|
|
[36m───[0m [1;33mBreakpoints[0m [36m─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────[0m
|
|
|
[[1;32m1[0m] [1;32mbreak[0m at [1;32m0x00000808[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;32m0x20000070[0m [1;30mr1[0m [m0x00000000[0m [1;30mr2[0m [1;32m0x00f00000[0m [1;30mr3[0m [1;32m0x00000809[0m [1;30mr4[0m [m0x1ffffffd[0m [1;30mr5[0m [m0x00000000[0m
|
|
|
[1;30mr6[0m [m0x000002a5[0m [1;30mr7[0m [m0xa0000000[0m [1;30mr8[0m [m0xf7e2f6ef[0m [1;30mr9[0m [m0xffffff7d[0m [1;30mr10[0m [m0xfff7e7cf[0m [1;30mr11[0m [m0xbf9faffe[0m
|
|
|
[1;30mr12[0m [m0x0000000a[0m [1;30msp[0m [1;32m0x20010160[0m [1;30mlr[0m [1;32m0x000007d9[0m [1;30mpc[0m [1;32m0x00000808[0m [1;30mxpsr[0m [1;32m0x61000000[0m [1;30mfpscr[0m [m0x00000000[0m
|
|
|
[1;30mmsp[0m [1;32m0x20010160[0m [1;30mpsp[0m [m0xfff7df7c[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
|
|
|
[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 /* Replace with your application code */
|
|
|
[1;30m11[0m while (1) {
|
|
|
[1;30m12[0m }
|
|
|
[1;30m13[0m }
|
|
|
[1;30m~[0m
|
|
|
[1;30m~[0m
|
|
|
[1;30m~[0m
|
|
|
[36m───[0m [1;33mStack[0m [36m───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────[0m
|
|
|
[[1;32m0[0m] from [1;32m0x00000808[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;32m0x00000808[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;30m0x00000808[0m [1;30mmain+0 [0m push {r3, lr}
|
|
|
[1;30m0x0000080a[0m [1;30mmain+2 [0m ldr r3, [pc, #8] ; (0x814 <main+12>)
|
|
|
[1;30m0x0000080c[0m [1;30mmain+4 [0m blx r3
|
|
|
[1;30m0x0000080e[0m [1;30mmain+6 [0m ldr r3, [pc, #8] ; (0x818 <main+16>)
|
|
|
[1;30m0x00000810[0m [1;30mmain+8 [0m blx r3
|
|
|
[1;32m0x00000812[0m[1;32m [0m[1;32m[0m[1;32mmain+10[0m[1;32m b.n 0x812 <main+10>[0m
|
|
|
[32m0x00000814[0m[32m [0m[32m[0m[32mmain+12[0m[32m lsrs r5, r4, #30[0m
|
|
|
[32m0x00000816[0m[32m [0m[32m[0m[32mmain+14[0m[32m movs r0, r0[0m
|
|
|
[1;30m0x00000818[0m [1;30mmain+16[0m asrs r5, r4, #32
|
|
|
[1;30m0x0000081a[0m [1;30mmain+18[0m movs r0, r0
|
|
|
[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;32m0x000005cd[0m [1;30mr4[0m [1;32m0x1ffffffd[0m [1;30mr5[0m [1;32m0x00000000[0m
|
|
|
[1;30mr6[0m [1;32m0x000002a5[0m [1;30mr7[0m [1;32m0xa0000000[0m [1;30mr8[0m [1;32m0xf7e2f6ef[0m [1;30mr9[0m [1;32m0xffffff7d[0m [1;30mr10[0m [1;32m0xfff7e7cf[0m [1;30mr11[0m [1;32m0xbf9faffe[0m
|
|
|
[1;30mr12[0m [1;32m0x0000000a[0m [1;30msp[0m [1;32m0x20010158[0m [1;30mlr[0m [1;32m0x0000103d[0m [1;30mpc[0m [1;32m0x00000812[0m [1;30mxpsr[0m [1;32m0x61000000[0m [1;30mfpscr[0m [1;32m0x00000000[0m
|
|
|
[1;30mmsp[0m [1;32m0x20010158[0m [1;30mpsp[0m [1;32m0xfff7df7c[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~[0m
|
|
|
[1;30m~[0m
|
|
|
[1;30m 1[0m #include <atmel_start.h>
|
|
|
[1;30m 2[0m #include "pdebug.h"
|
|
|
[1;30m 3[0m
|
|
|
[1;30m 4[0m int main(void)
|
|
|
[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;32m 9 printf("Hello world\n");[0m
|
|
|
[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
|
|
|
[1;30m~[0m
|
|
|
[1;30m~[0m
|
|
|
[1;30m~[0m
|
|
|
[36m───[0m [1;33mStack[0m [36m───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────[0m
|
|
|
[[1;32m0[0m] from [1;32m0x00000812[0m in [1;32mmain[0m+[1;32m10[0m at [1;32m../main.c[0m:[1;32m9[0m
|
|
|
[36m───[0m [1;33mThreads[0m [36m─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────[0m
|
|
|
[[1;32m1[0m] id [1;32m-1[0m from [1;32m0x00000812[0m in [1;32mmain[0m+[1;32m10[0m at [1;32m../main.c[0m:[1;32m9[0m
|
|
|
[36m───[0m [33mVariables[0m [36m───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────[0m
|
|
|
[36m─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────[0m
|
|
|
main () at ../main.c:9
|
|
|
9 printf("Hello world\n");
|
|
|
A program is being debugged already. Kill it? (y or n) [answered Y; input not from terminal]
|
|
|
[36m───[0m [1;33mAssembly[0m [36m────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────[0m
|
|
|
[1;30m0x00000552[0m [1;30m_oscctrl_init_referenced_generators+34[0m ldr r3, [pc, #16] ; (0x564 <_oscctrl_init_referenced_generators+52>)
|
|
|
[1;30m0x00000554[0m [1;30m_oscctrl_init_referenced_generators+36[0m ldr r2, [r3, #64] ; 0x40
|
|
|
[1;30m0x00000556[0m [1;30m_oscctrl_init_referenced_generators+38[0m lsls r1, r2, #31
|
|
|
[1;30m0x00000558[0m [1;30m_oscctrl_init_referenced_generators+40[0m bmi.n 0x560 <_oscctrl_init_referenced_generators+48>
|
|
|
[32m0x0000055a[0m[32m [0m[32m[0m[32m_oscctrl_init_referenced_generators+42[0m[32m ldr r2, [r3, #64] ; 0x40[0m
|
|
|
[1;32m0x0000055c[0m[1;32m [0m[1;32m[0m[1;32m_oscctrl_init_referenced_generators+44[0m[1;32m lsls r2, r2, #30[0m
|
|
|
[32m0x0000055e[0m[32m [0m[32m[0m[32m_oscctrl_init_referenced_generators+46[0m[32m bpl.n 0x554 <_oscctrl_init_referenced_generators+36>[0m
|
|
|
[32m0x00000560[0m[32m [0m[32m[0m[32m_oscctrl_init_referenced_generators+48[0m[32m bx lr[0m
|
|
|
[32m0x00000562[0m[32m [0m[32m[0m[32m_oscctrl_init_referenced_generators+50[0m[32m nop[0m
|
|
|
[32m0x00000564[0m[32m [0m[32m[0m[32m_oscctrl_init_referenced_generators+52[0m[32m asrs r0, r0, #32[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 [m0x00000000[0m [1;30mr1[0m [1;32m0x00000000[0m [1;30mr2[0m [1;32m0x00000000[0m [1;30mr3[0m [1;32m0x40001000[0m [1;30mr4[0m [m0x1ffffffd[0m [1;30mr5[0m [m0x00000000[0m
|
|
|
[1;30mr6[0m [m0x000002a5[0m [1;30mr7[0m [m0xa0000000[0m [1;30mr8[0m [m0xf7e2f6ef[0m [1;30mr9[0m [m0xffffff7d[0m [1;30mr10[0m [m0xfff7e7cf[0m [1;30mr11[0m [m0xbf9faffe[0m
|
|
|
[1;30mr12[0m [m0x0000000a[0m [1;30msp[0m [1;32m0x20010140[0m [1;30mlr[0m [1;32m0x000004cb[0m [1;30mpc[0m [1;32m0x0000055c[0m [1;30mxpsr[0m [1;32m0x41000000[0m [1;30mfpscr[0m [m0x00000000[0m
|
|
|
[1;30mmsp[0m [1;32m0x20010140[0m [1;30mpsp[0m [m0xfff7df7c[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;30m914[0m }
|
|
|
[1;30m915[0m
|
|
|
[1;30m916[0m static inline bool hri_oscctrl_get_DPLLSTATUS_LOCK_bit(const void *const hw, uint8_t submodule_index)
|
|
|
[1;30m917[0m {
|
|
|
[1;30m918[0m return (((Oscctrl *)hw)->Dpll[submodule_index].DPLLSTATUS.reg & OSCCTRL_DPLLSTATUS_LOCK)
|
|
|
[1;30m919[0m >> OSCCTRL_DPLLSTATUS_LOCK_Pos;
|
|
|
[1;30m920[0m }
|
|
|
[1;30m921[0m
|
|
|
[1;30m922[0m static inline bool hri_oscctrl_get_DPLLSTATUS_CLKRDY_bit(const void *const hw, uint8_t submodule_index)
|
|
|
[1;30m923[0m {
|
|
|
[1;32m924 return (((Oscctrl *)hw)->Dpll[submodule_index].DPLLSTATUS.reg & OSCCTRL_DPLLSTATUS_CLKRDY)[0m
|
|
|
[1;30m925[0m >> OSCCTRL_DPLLSTATUS_CLKRDY_Pos;
|
|
|
[1;30m926[0m }
|
|
|
[1;30m927[0m
|
|
|
[1;30m928[0m static inline hri_oscctrl_dpllstatus_reg_t hri_oscctrl_get_DPLLSTATUS_reg(const void *const hw, uint8_t submodule_index,
|
|
|
[1;30m929[0m hri_oscctrl_dpllstatus_reg_t mask)
|
|
|
[1;30m930[0m {
|
|
|
[1;30m931[0m uint32_t tmp;
|
|
|
[1;30m932[0m tmp = ((Oscctrl *)hw)->Dpll[submodule_index].DPLLSTATUS.reg;
|
|
|
[1;30m933[0m tmp &= mask;
|
|
|
[36m───[0m [1;33mStack[0m [36m───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────[0m
|
|
|
[[1;32m0[0m] from [1;32m0x0000055c[0m in [1;32m_oscctrl_init_referenced_generators[0m+[1;32m44[0m at [1;32m../hri/hri_oscctrl_e54.h[0m:[1;32m924[0m
|
|
|
[[32m1[0m] from [32m0x000004ca[0m in [32m_init_chip[0m+[32m30[0m at [32m../hpl/core/hpl_init.c[0m:[32m63[0m
|
|
|
[[32m2[0m] from [32m0x00000c16[0m in [32mdelay_driver_init[0m+[32m6[0m at [32m../driver_init.c[0m:[32m402[0m
|
|
|
[36m───[0m [1;33mThreads[0m [36m─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────[0m
|
|
|
[[1;32m1[0m] id [1;32m0[0m from [1;32m0x0000055c[0m in [1;32m_oscctrl_init_referenced_generators[0m+[1;32m44[0m at [1;32m../hri/hri_oscctrl_e54.h[0m:[1;32m924[0m
|
|
|
[36m───[0m [33mVariables[0m [36m───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────[0m
|
|
|
[36m─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────[0m
|
|
|
0x0000055c in _oscctrl_init_referenced_generators () at ../hri/hri_oscctrl_e54.h:924
|
|
|
924 return (((Oscctrl *)hw)->Dpll[submodule_index].DPLLSTATUS.reg & OSCCTRL_DPLLSTATUS_CLKRDY)
|
|
|
Breakpoint 1 at 0x808: file ../main.c, line 7.
|
|
|
Loading section .text, size 0x1bdc lma 0x0
|
|
|
Loading section .relocate, size 0x6c lma 0x1bdc
|
|
|
Start address 0x0, load size 7240
|
|
|
Transfer rate: 53 KB/sec, 804 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;32m0x00000808[0m[1;32m [0m[1;32m[0m[1;32mmain+0[0m[1;32m push {r3, lr}[0m
|
|
|
[32m0x0000080a[0m[32m [0m[32m[0m[32mmain+2[0m[32m ldr r3, [pc, #16] ; (0x81c <main+20>)[0m
|
|
|
[32m0x0000080c[0m[32m [0m[32m[0m[32mmain+4[0m[32m blx r3[0m
|
|
|
[1;30m0x0000080e[0m [1;30mmain+6[0m ldr r3, [pc, #16] ; (0x820 <main+24>)
|
|
|
[1;30m0x00000810[0m [1;30mmain+8[0m blx r3
|
|
|
[36m───[0m [1;33mBreakpoints[0m [36m─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────[0m
|
|
|
[[1;32m1[0m] [1;32mbreak[0m at [1;32m0x00000808[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;32m0x20000070[0m [1;30mr1[0m [m0x00000000[0m [1;30mr2[0m [1;32m0x00f00000[0m [1;30mr3[0m [1;32m0x00000809[0m [1;30mr4[0m [m0x1ffffffd[0m [1;30mr5[0m [m0x00000000[0m
|
|
|
[1;30mr6[0m [m0x000002a5[0m [1;30mr7[0m [m0xa0000000[0m [1;30mr8[0m [m0xf7e2f6ef[0m [1;30mr9[0m [m0xffffff7d[0m [1;30mr10[0m [m0xfff7e7cf[0m [1;30mr11[0m [m0xbf9faffe[0m
|
|
|
[1;30mr12[0m [m0x0000000a[0m [1;30msp[0m [1;32m0x20010160[0m [1;30mlr[0m [1;32m0x000007d9[0m [1;30mpc[0m [1;32m0x00000808[0m [1;30mxpsr[0m [1;32m0x61000000[0m [1;30mfpscr[0m [m0x00000000[0m
|
|
|
[1;30mmsp[0m [1;32m0x20010160[0m [1;30mpsp[0m [m0xfff7df7c[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
|
|
|
[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 printf("Hello world\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
|
|
|
[1;30m~[0m
|
|
|
[36m───[0m [1;33mStack[0m [36m───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────[0m
|
|
|
[[1;32m0[0m] from [1;32m0x00000808[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;32m0x00000808[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;30m~[0m
|
|
|
[1;30m~[0m
|
|
|
[1;30m~[0m
|
|
|
[1;30m~[0m
|
|
|
[32m0x00000816[0m[32m [0m[32m[0m[32mmmc_spi_op_cond+0 [0m[32m blx r3[0m
|
|
|
[1;32m0x00000818[0m[1;32m [0m[1;32m[0m[1;32mmmc_spi_op_cond+2 [0m[1;32m b.n 0x818 <sd_mmc_check+248>[0m
|
|
|
[32m0x0000081a[0m[32m [0m[32m[0m[32mmmc_spi_op_cond+4 [0m[32m nop[0m
|
|
|
[32m0x0000081c[0m[32m [0m[32m[0m[32mmmc_spi_op_cond+6 [0m[32m lsrs r5, r6, #30[0m
|
|
|
[1;30m0x0000081e[0m [1;30mmmc_spi_op_cond+8 [0m movs r0, r0
|
|
|
[1;30m0x00000820[0m [1;30mmmc_spi_op_cond+10[0m asrs r5, r6, #32
|
|
|
[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;32m0x0000000c[0m [1;30mr1[0m [1;32m0x0000000a[0m [1;30mr2[0m [1;32m0x000000f1[0m [1;30mr3[0m [1;32m0x000005cd[0m [1;30mr4[0m [1;32m0x1ffffffd[0m [1;30mr5[0m [1;32m0x00000000[0m
|
|
|
[1;30mr6[0m [1;32m0x000002a5[0m [1;30mr7[0m [1;32m0xa0000000[0m [1;30mr8[0m [1;32m0xf7e2f6ef[0m [1;30mr9[0m [1;32m0xffffff7d[0m [1;30mr10[0m [1;32m0xfff7e7cf[0m [1;30mr11[0m [1;32m0xbf9faffe[0m
|
|
|
[1;30mr12[0m [1;32m0x0000000a[0m [1;30msp[0m [1;32m0x20010158[0m [1;30mlr[0m [1;32m0x00000819[0m [1;30mpc[0m [1;32m0x00000818[0m [1;30mxpsr[0m [1;32m0x21000000[0m [1;30mfpscr[0m [1;32m0x00000000[0m
|
|
|
[1;30mmsp[0m [1;32m0x20010158[0m [1;30mpsp[0m [1;32m0xfff7df7c[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;30m432[0m * process, then it sets the SD/MMC card in transfer state.
|
|
|
[1;30m433[0m * At last, it will automaticly enable maximum bus width and transfer speed.
|
|
|
[1;30m434[0m *
|
|
|
[1;30m435[0m * \return true if success, otherwise false
|
|
|
[1;30m436[0m */
|
|
|
[1;30m437[0m static bool sd_mmc_spi_install_mmc(void)
|
|
|
[1;30m438[0m {
|
|
|
[1;30m439[0m uint8_t b_authorize_high_speed;
|
|
|
[1;30m440[0m
|
|
|
[1;30m441[0m // CMD0 - Reset all cards to idle state.
|
|
|
[1;32m442 if (!driver_send_cmd(sd_mmc_hal, SDMMC_SPI_CMD0_GO_IDLE_STATE, 0)) {[0m
|
|
|
[1;30m443[0m return false;
|
|
|
[1;30m444[0m }
|
|
|
[1;30m445[0m
|
|
|
[1;30m446[0m if (!mmc_spi_op_cond()) {
|
|
|
[1;30m447[0m return false;
|
|
|
[1;30m448[0m }
|
|
|
[1;30m449[0m
|
|
|
[1;30m450[0m // Disable CRC check for SPI mode
|
|
|
[1;30m451[0m if (!driver_send_cmd(sd_mmc_hal, SDMMC_SPI_CMD59_CRC_ON_OFF, 0)) {
|
|
|
[36m───[0m [1;33mStack[0m [36m───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────[0m
|
|
|
[[1;32m0[0m] from [1;32m0x00000818[0m in [1;32mmmc_spi_op_cond[0m+[1;32m2[0m at [1;32m../sd_mmc/sd_mmc.c[0m:[1;32m442[0m
|
|
|
[[32m1[0m] from [32m0x00000818[0m in [32msd_mmc_spi_install_mmc[0m+[32m20[0m at [32m../sd_mmc/sd_mmc.c[0m:[32m446[0m
|
|
|
[[32m2[0m] from [32m0x00000818[0m in [32msd_mmc_spi_card_init[0m+[32m220[0m at [32m../sd_mmc/sd_mmc.c[0m:[32m379[0m
|
|
|
[[32m3[0m] from [32m0x00000818[0m in [32msd_mmc_check[0m+[32m248[0m at [32m../sd_mmc/sd_mmc.c[0m:[32m1633[0m
|
|
|
[[32m4[0m] from [32m0xcf1f4f30[0m
|
|
|
[36m───[0m [1;33mThreads[0m [36m─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────[0m
|
|
|
[[1;32m1[0m] id [1;32m-1[0m from [1;32m0x00000818[0m in [1;32mmmc_spi_op_cond[0m+[1;32m2[0m at [1;32m../sd_mmc/sd_mmc.c[0m:[1;32m442[0m
|
|
|
[36m───[0m [1;33mVariables[0m [36m───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────[0m
|
|
|
[1;30mloc[0m [1;37mretry[0m [1;30m=[0m <optimized out>[1;30m, [0m[1;37mresp[0m [1;30m=[0m <optimized out>[1;30m, [0m[1;37m__func__[0m [1;30m=[0m '\377' <repeats 16 times>[1;30m, [0m[1;37mb_authorize_high_speed[0m [1;30m=[0m <optimized out>[1;30m, [0m[1;37mv2[0m [1;30m=[0m <optimized out>[1;30m, [0m[1;37msd_mmc_err[0m [1;30m=[0m <optimized out>
|
|
|
[36m─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────[0m
|
|
|
0x00000818 in mmc_spi_op_cond () at ../sd_mmc/sd_mmc.c:442
|
|
|
442 if (!driver_send_cmd(sd_mmc_hal, SDMMC_SPI_CMD0_GO_IDLE_STATE, 0)) {
|
|
|
A program is being debugged already. Kill it? (y or n) [answered Y; input not from terminal]
|
|
|
[36m───[0m [1;33mAssembly[0m [36m────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────[0m
|
|
|
[32m0x00000550[0m[32m [0m[32m[0m[32msd_mmc_select_slot+136[0m[32m bmi.n 0x54c <sd_mmc_select_slot+132>[0m
|
|
|
[32m0x00000552[0m[32m [0m[32m[0m[32msd_mmc_select_slot+138[0m[32m ldr r3, [pc, #16] ; (0x564 <sd_mmc_select_slot+156>)[0m
|
|
|
[32m0x00000554[0m[32m [0m[32m[0m[32msd_mmc_select_slot+140[0m[32m ldr r2, [r3, #64] ; 0x40[0m
|
|
|
[32m0x00000556[0m[32m [0m[32m[0m[32msd_mmc_select_slot+142[0m[32m lsls r1, r2, #31[0m
|
|
|
[32m0x00000558[0m[32m [0m[32m[0m[32msd_mmc_select_slot+144[0m[32m bmi.n 0x560 <sd_mmc_select_slot+152>[0m
|
|
|
[1;32m0x0000055a[0m[1;32m [0m[1;32m[0m[1;32msd_mmc_select_slot+146[0m[1;32m ldr r2, [r3, #64] ; 0x40[0m
|
|
|
[32m0x0000055c[0m[32m [0m[32m[0m[32msd_mmc_select_slot+148[0m[32m lsls r2, r2, #30[0m
|
|
|
[32m0x0000055e[0m[32m [0m[32m[0m[32msd_mmc_select_slot+150[0m[32m bpl.n 0x554 <sd_mmc_select_slot+140>[0m
|
|
|
[32m0x00000560[0m[32m [0m[32m[0m[32msd_mmc_select_slot+152[0m[32m bx lr[0m
|
|
|
[32m0x00000562[0m[32m [0m[32m[0m[32msd_mmc_select_slot+154[0m[32m nop[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;32m0x00000000[0m [1;30mr2[0m [1;32m0x00000000[0m [1;30mr3[0m [1;32m0x40001000[0m [1;30mr4[0m [m0x1ffffffd[0m [1;30mr5[0m [m0x00000000[0m
|
|
|
[1;30mr6[0m [m0x000002a5[0m [1;30mr7[0m [m0xa0000000[0m [1;30mr8[0m [m0xf7e2f6ef[0m [1;30mr9[0m [m0xffffff7d[0m [1;30mr10[0m [m0xfff7e7cf[0m [1;30mr11[0m [m0xbf9faffe[0m
|
|
|
[1;30mr12[0m [m0x0000000a[0m [1;30msp[0m [1;32m0x20010140[0m [1;30mlr[0m [1;32m0x000004cb[0m [1;30mpc[0m [1;32m0x0000055a[0m [1;30mxpsr[0m [1;32m0x41000000[0m [1;30mfpscr[0m [m0x00000000[0m
|
|
|
[1;30mmsp[0m [1;32m0x20010140[0m [1;30mpsp[0m [m0xfff7df7c[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;30m1303[0m /* Set 1-bit bus width and low clock for initialization */
|
|
|
[1;30m1304[0m sd_mmc_cards[slot].clock = SDMMC_CLOCK_INIT;
|
|
|
[1;30m1305[0m sd_mmc_cards[slot].bus_width = 1;
|
|
|
[1;30m1306[0m sd_mmc_cards[slot].high_speed = 0;
|
|
|
[1;30m1307[0m }
|
|
|
[1;30m1308[0m if (sd_mmc_cards[slot].state == SD_MMC_CARD_STATE_UNUSABLE) {
|
|
|
[1;30m1309[0m return SD_MMC_ERR_UNUSABLE;
|
|
|
[1;30m1310[0m }
|
|
|
[1;30m1311[0m } else {
|
|
|
[1;30m1312[0m /* No pin card detection, then always try to install it */
|
|
|
[1;32m1313 if ((sd_mmc_cards[slot].state == SD_MMC_CARD_STATE_NO_CARD)[0m
|
|
|
[1;30m1314[0m || (sd_mmc_cards[slot].state == SD_MMC_CARD_STATE_UNUSABLE)) {
|
|
|
[1;30m1315[0m /* Card is not initialized */
|
|
|
[1;30m1316[0m sd_mmc_cards[slot].state = SD_MMC_CARD_STATE_INIT;
|
|
|
[1;30m1317[0m /* Set 1-bit bus width and low clock for initialization */
|
|
|
[1;30m1318[0m sd_mmc_cards[slot].clock = SDMMC_CLOCK_INIT;
|
|
|
[1;30m1319[0m sd_mmc_cards[slot].bus_width = 1;
|
|
|
[1;30m1320[0m sd_mmc_cards[slot].high_speed = 0;
|
|
|
[1;30m1321[0m }
|
|
|
[1;30m1322[0m }
|
|
|
[36m───[0m [1;33mStack[0m [36m───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────[0m
|
|
|
[[1;32m0[0m] from [1;32m0x0000055a[0m in [1;32msd_mmc_select_slot[0m+[1;32m146[0m at [1;32m../sd_mmc/sd_mmc.c[0m:[1;32m1313[0m
|
|
|
[[32m1[0m] from [32m0x00000fba[0m in [32mspi_m_sync_start_read_block[0m+[32m46[0m at [32m../sd_mmc/sd_mmc_spi.c[0m:[32m179[0m
|
|
|
[[32m2[0m] from [32m0x2b3af61e[0m
|
|
|
[36m───[0m [1;33mThreads[0m [36m─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────[0m
|
|
|
[[1;32m1[0m] id [1;32m0[0m from [1;32m0x0000055a[0m in [1;32msd_mmc_select_slot[0m+[1;32m146[0m at [1;32m../sd_mmc/sd_mmc.c[0m:[1;32m1313[0m
|
|
|
[36m───[0m [1;33mVariables[0m [36m───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────[0m
|
|
|
[1;30marg[0m [1;37mslot[0m [1;30m=[0m <optimized out>
|
|
|
[36m─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────[0m
|
|
|
0x0000055a in sd_mmc_select_slot (slot=<optimized out>) at ../sd_mmc/sd_mmc.c:1313
|
|
|
1313 if ((sd_mmc_cards[slot].state == SD_MMC_CARD_STATE_NO_CARD)
|
|
|
Breakpoint 1 at 0x18e4: file ../main.c, line 8.
|
|
|
Loading section .text, size 0x31c0 lma 0x0
|
|
|
Loading section .relocate, size 0x6c lma 0x31c0
|
|
|
Start address 0x0, load size 12844
|
|
|
Transfer rate: 52 KB/sec, 856 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;32m0x000018e4[0m[1;32m [0m[1;32m[0m[1;32mmain+0[0m[1;32m push {r3, lr}[0m
|
|
|
[32m0x000018e6[0m[32m [0m[32m[0m[32mmain+2[0m[32m ldr r3, [pc, #20] ; (0x18fc <main+24>)[0m
|
|
|
[32m0x000018e8[0m[32m [0m[32m[0m[32mmain+4[0m[32m blx r3[0m
|
|
|
[1;30m0x000018ea[0m [1;30mmain+6[0m ldr r3, [pc, #20] ; (0x1900 <main+28>)
|
|
|
[1;30m0x000018ec[0m [1;30mmain+8[0m blx r3
|
|
|
[36m───[0m [1;33mBreakpoints[0m [36m─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────[0m
|
|
|
[[1;32m1[0m] [1;32mbreak[0m at [1;32m0x000018e4[0m in [1;32m../main.c[0m:[1;32m8[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;32m0x20000070[0m [1;30mr1[0m [m0x00000000[0m [1;30mr2[0m [1;32m0x00f00000[0m [1;30mr3[0m [1;32m0x000018e5[0m [1;30mr4[0m [m0x1ffffffd[0m [1;30mr5[0m [m0x00000000[0m
|
|
|
[1;30mr6[0m [m0x000002a5[0m [1;30mr7[0m [m0xa0000000[0m [1;30mr8[0m [m0xf7e2f6ef[0m [1;30mr9[0m [m0xffffff7d[0m [1;30mr10[0m [m0xfff7e7cf[0m [1;30mr11[0m [m0xbf9faffe[0m
|
|
|
[1;30mr12[0m [m0x0000000a[0m [1;30msp[0m [1;32m0x20010368[0m [1;30mlr[0m [1;32m0x000018b5[0m [1;30mpc[0m [1;32m0x000018e4[0m [1;30mxpsr[0m [1;32m0x61000000[0m [1;30mfpscr[0m [m0x00000000[0m
|
|
|
[1;30mmsp[0m [1;32m0x20010368[0m [1;30mpsp[0m [m0xfff7df7c[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 1[0m #include <atmel_start.h>
|
|
|
[1;30m 2[0m #include "pdebug.h"
|
|
|
[1;30m 3[0m #include "sd_mmc_start.h"
|
|
|
[1;30m 4[0m
|
|
|
[1;30m 5[0m int main(void)
|
|
|
[1;30m 6[0m {
|
|
|
[1;30m 7[0m /* Initializes MCU, drivers and middleware */
|
|
|
[0;41m![0m[1;32m 8 atmel_start_init();[0m
|
|
|
[1;30m 9[0m pdebug_init();
|
|
|
[1;30m10[0m printf("Hello world\n");
|
|
|
[1;30m11[0m
|
|
|
[1;30m12[0m SDMMC_example();
|
|
|
[1;30m13[0m /* Replace with your application code */
|
|
|
[1;30m14[0m while (1) {
|
|
|
[1;30m15[0m }
|
|
|
[1;30m16[0m }
|
|
|
[1;30m~[0m
|
|
|
[36m───[0m [1;33mStack[0m [36m───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────[0m
|
|
|
[[1;32m0[0m] from [1;32m0x000018e4[0m in [1;32mmain[0m+[1;32m0[0m at [1;32m../main.c[0m:[1;32m8[0m
|
|
|
[36m───[0m [1;33mThreads[0m [36m─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────[0m
|
|
|
[[1;32m1[0m] id [1;32m-1[0m from [1;32m0x000018e4[0m in [1;32mmain[0m+[1;32m0[0m at [1;32m../main.c[0m:[1;32m8[0m
|
|
|
[36m───[0m [33mVariables[0m [36m───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────[0m
|
|
|
[36m─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────[0m
|
|
|
|
|
|
Breakpoint 1, main () at ../main.c:8
|
|
|
8 atmel_start_init();
|