You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1231 lines
54 KiB
Plaintext

hw_interfacing_scripts/gdb/generic_push.gdb:6: Error in sourced command file:
Remote communication error. Target disconnected.: Connection reset by peer.
Quit
Quit
Quit
quit
0x00000670 in Reset_Handler () at ../gcc/gcc/startup_same54.c:655
655 SCB->CPACR |= (0xFu << 20);
### Assembly ###################################################################
0x00000666 Reset_Handler+66 str r2, [r3, #0]
0x00000668 Reset_Handler+68 movs r2, #0
0x0000066a Reset_Handler+70 ldr r3, [pc, #240] ; (0x75c <USART_0_PORT_init+16>)
0x0000066c Reset_Handler+72 strb r2, [r3, #0]
0x0000066e Reset_Handler+74 ldr r3, [pc, #236] ; (0x75c <USART_0_PORT_init+16>)
0x00000670 Reset_Handler+76 ldrb r3, [r3, #0]
0x00000672 Reset_Handler+78 cmp r3, #0
0x00000674 Reset_Handler+80 beq.n 0x66e <Reset_Handler+74>
0x00000676 Reset_Handler+82 ldr r3, [pc, #228] ; (0x75c <USART_0_PORT_init+16>)
0x00000678 Reset_Handler+84 ldr r3, [r3, #4]
### Breakpoints ################################################################
### Expressions ################################################################
### History ####################################################################
### Memory #####################################################################
### Registers ##################################################################
r0 0x00000000 r8 0xf7e2d6ef xPSR 0x61000000
r1 0xc0000020 r9 0xffffff7d fpscr 0x00000000
r2 0x00000000 r10 0xfff7a7cf msp 0x20010028
r3 0x2000001c r11 0xaf9faffe psp 0xfff7df7c
r4 0xbfffffff r12 0x7ffff6df primask 0x00
r5 0xfba7dfb7 sp 0x20010028 basepri 0x00
r6 0xffffffef lr 0x000003d9 faultmask 0x00
r7 0xff7f6ffd pc 0x00000670 control 0x00
### Source #####################################################################
645 for (pDest = &_szero; pDest < &_ezero;) {
646 *pDest++ = 0;
647 }
648
649 /* Set the vector table base address */
650 pSrc = (uint32_t *)&_sfixed;
651 SCB->VTOR = ((uint32_t)pSrc & SCB_VTOR_TBLOFF_Msk);
652
653 #if __FPU_USED
654 /* Enable FPU */
655 SCB->CPACR |= (0xFu << 20);
656 __DSB();
657 __ISB();
658 #endif
659
660 /* Initialize the C library */
661 __libc_init_array();
662
663 /* Branch to main function */
664 main();
### Stack ######################################################################
[0] from 0x00000670 in Reset_Handler+76 at ../gcc/gcc/startup_same54.c:655
[1] from 0x00000334 in _sbrk+24 at ../hal/utils/src/utils_syscalls.c:72
### Threads ####################################################################
[1] id 0 from 0x00000670 in Reset_Handler+76 at ../gcc/gcc/startup_same54.c:655
### Variables ##################################################################
################################################################################
Loading section .text, size 0x8898 lma 0x0
Loading section .relocate, size 0x99c lma 0x8898
Start address 0x00000000, load size 37428
Transfer rate: 37 KB/sec, 9357 bytes/write.
SWD DPIDR 0x2ba01477
A debugging session is active.
Inferior 1 [Remote target] will be detached.
Quit anyway? (y or n) [answered Y; input not from terminal]
[Inferior 1 (Remote target) detached]
0x000006cc in Reset_Handler () at ../gcc/gcc/startup_same54.c:667
667 while (1)
### Assembly ###################################################################
0x000006c2 Reset_Handler+110 ldr r3, [pc, #24] ; (0x6dc <Reset_Handler+136>)
0x000006c4 Reset_Handler+112 ldr r0, [pc, #24] ; (0x6e0 <Reset_Handler+140>)
0x000006c6 Reset_Handler+114 blx r3
0x000006c8 Reset_Handler+116 ldr r3, [pc, #24] ; (0x6e4 <main>)
0x000006ca Reset_Handler+118 blx r3
0x000006cc Reset_Handler+120 b.n 0x6cc <Reset_Handler+120>
0x000006ce Reset_Handler+122 nop
0x000006d0 Reset_Handler+124 lsrs r1, r6, #24
0x000006d2 Reset_Handler+126 movs r0, r0
0x000006d4 Reset_Handler+128 lsrs r1, r4, #26
### Breakpoints ################################################################
### Expressions ################################################################
### History ####################################################################
### Memory #####################################################################
### Registers ##################################################################
r0 0x00000000 r8 0xf7e2d6ef xPSR 0x61000000
r1 0x00000037 r9 0xffffff7d fpscr 0x00000000
r2 0x000000f1 r10 0xfff7a7cf msp 0x20010a20
r3 0x0000049d r11 0xaf9faffe psp 0xfff7df7c
r4 0x1ffffffd r12 0xffffffff primask 0x00
r5 0x00000004 sp 0x20010a20 basepri 0x00
r6 0x00000871 lr 0x00000f49 faultmask 0x00
r7 0x00000010 pc 0x000006cc control 0x00
### Source #####################################################################
657 __ISB();
658 #endif
659
660 /* Initialize the C library */
661 __libc_init_array();
662
663 /* Branch to main function */
664 main();
665
666 /* Infinite loop */
667 while (1)
668 ;
669 }
670
671 /**
672 * \brief Default interrupt handler for unused IRQs.
673 */
674 void Dummy_Handler(void)
675 {
676 while (1) {
### Stack ######################################################################
[0] from 0x000006cc in Reset_Handler+120 at ../gcc/gcc/startup_same54.c:667
[1] from 0x00000684 in Reset_Handler+48 at ../gcc/gcc/startup_same54.c:646
[2] from 0xfffffffe
### Threads ####################################################################
[1] id 0 from 0x000006cc in Reset_Handler+120 at ../gcc/gcc/startup_same54.c:667
### Variables ##################################################################
################################################################################
Loading section .text, size 0x88d0 lma 0x0
Loading section .relocate, size 0x99c lma 0x88d0
Start address 0x00000000, load size 37484
Transfer rate: 38 KB/sec, 9371 bytes/write.
SWD DPIDR 0x2ba01477
A debugging session is active.
Inferior 1 [Remote target] will be detached.
Quit anyway? (y or n) [answered Y; input not from terminal]
[Inferior 1 (Remote target) detached]
main () at ../main.c:22
22 while (1) {
### Assembly ###################################################################
0x000006f2 main+14 ldr r3, [pc, #24] ; (0x70c <main+40>)
0x000006f4 main+16 ldr r0, [pc, #24] ; (0x710 <main+44>)
0x000006f6 main+18 blx r3
0x000006f8 main+20 ldr r3, [pc, #24] ; (0x714 <main+48>)
0x000006fa main+22 blx r3
0x000006fc main+24 b.n 0x6fc <main+24>
0x000006fe main+26 nop
0x00000700 main+28 lsrs r1, r4, #25
0x00000702 main+30 movs r0, r0
0x00000704 main+32 lsrs r1, r2, #27
### Breakpoints ################################################################
### Expressions ################################################################
### History ####################################################################
### Memory #####################################################################
### Registers ##################################################################
r0 0x00000000 r8 0xf7e2d6ef xPSR 0x61000000
r1 0x00000037 r9 0xffffff7d fpscr 0x00000000
r2 0x000000f1 r10 0xfff7a7cf msp 0x20010a20
r3 0x000004cd r11 0xaf9faffe psp 0xfff7df7c
r4 0x1ffffffd r12 0xffffffff primask 0x00
r5 0x00000004 sp 0x20010a20 basepri 0x00
r6 0x000008a1 lr 0x00000f97 faultmask 0x00
r7 0x00000010 pc 0x000006fc control 0x00
### Source #####################################################################
12 {
13 /* Initializes MCU, drivers and middleware */
14 atmel_start_init();
15 project_init();
16 PDEBUG("Hi there\n");
17 p_i2c_scan();
18
19
20
21 /* Replace with your application code */
22 while (1) {
23 }
24 }
~
~
~
~
~
~
~
### Stack ######################################################################
[0] from 0x000006fc in main+24 at ../main.c:22
### Threads ####################################################################
[1] id 0 from 0x000006fc in main+24 at ../main.c:22
### Variables ##################################################################
################################################################################
Loading section .text, size 0x88d8 lma 0x0
Loading section .relocate, size 0x99c lma 0x88d8
Start address 0x00000000, load size 37492
Transfer rate: 38 KB/sec, 9373 bytes/write.
SWD DPIDR 0x2ba01477
A debugging session is active.
Inferior 1 [Remote target] will be detached.
Quit anyway? (y or n) [answered Y; input not from terminal]
[Inferior 1 (Remote target) detached]
main () at ../main.c:22
22 while (1) {
### Assembly ###################################################################
0x000006f2 main+14 ldr r3, [pc, #24] ; (0x70c <main+40>)
0x000006f4 main+16 ldr r0, [pc, #24] ; (0x710 <main+44>)
0x000006f6 main+18 blx r3
0x000006f8 main+20 ldr r3, [pc, #24] ; (0x714 <main+48>)
0x000006fa main+22 blx r3
0x000006fc main+24 b.n 0x6fc <main+24>
0x000006fe main+26 nop
0x00000700 main+28 lsrs r1, r4, #25
0x00000702 main+30 movs r0, r0
0x00000704 main+32 lsrs r1, r2, #27
### Breakpoints ################################################################
### Expressions ################################################################
### History ####################################################################
### Memory #####################################################################
### Registers ##################################################################
r0 0x00000000 r8 0xf7e2d6ef xPSR 0x61000000
r1 0x0000000a r9 0xffffff7d fpscr 0x00000000
r2 0x000000f1 r10 0xfff7a7cf msp 0x20010a20
r3 0x000004cd r11 0xaf9faffe psp 0xfff7df7c
r4 0x1ffffffd r12 0xffffffff primask 0x00
r5 0x00000004 sp 0x20010a20 basepri 0x00
r6 0x000008a1 lr 0x00000f8f faultmask 0x00
r7 0x00000010 pc 0x000006fc control 0x00
### Source #####################################################################
12 {
13 /* Initializes MCU, drivers and middleware */
14 atmel_start_init();
15 project_init();
16 PDEBUG("Hi there\n");
17 p_i2c_scan();
18
19
20
21 /* Replace with your application code */
22 while (1) {
23 }
24 }
~
~
~
~
~
~
~
### Stack ######################################################################
[0] from 0x000006fc in main+24 at ../main.c:22
### Threads ####################################################################
[1] id 0 from 0x000006fc in main+24 at ../main.c:22
### Variables ##################################################################
################################################################################
Loading section .text, size 0x88d8 lma 0x0
Loading section .relocate, size 0x99c lma 0x88d8
Start address 0x00000000, load size 37492
Transfer rate: 38 KB/sec, 9373 bytes/write.
SWD DPIDR 0x2ba01477
A debugging session is active.
Inferior 1 [Remote target] will be detached.
Quit anyway? (y or n) [answered Y; input not from terminal]
[Inferior 1 (Remote target) detached]
main () at ../main.c:22
22 while (1) {
### Assembly ###################################################################
0x000006f2 main+14 ldr r3, [pc, #24] ; (0x70c <main+40>)
0x000006f4 main+16 ldr r0, [pc, #24] ; (0x710 <main+44>)
0x000006f6 main+18 blx r3
0x000006f8 main+20 ldr r3, [pc, #24] ; (0x714 <main+48>)
0x000006fa main+22 blx r3
0x000006fc main+24 b.n 0x6fc <main+24>
0x000006fe main+26 nop
0x00000700 main+28 lsrs r1, r4, #25
0x00000702 main+30 movs r0, r0
0x00000704 main+32 lsrs r1, r2, #27
### Breakpoints ################################################################
### Expressions ################################################################
### History ####################################################################
### Memory #####################################################################
### Registers ##################################################################
r0 0x00000000 r8 0xf7e2d6ef xPSR 0x61000000
r1 0x0000000a r9 0xffffff7d fpscr 0x00000000
r2 0x000000f1 r10 0xfff7a7cf msp 0x20010a20
r3 0x000004cd r11 0xaf9faffe psp 0xfff7df7c
r4 0x1ffffffd r12 0xffffffff primask 0x00
r5 0x00000004 sp 0x20010a20 basepri 0x00
r6 0x000008a1 lr 0x00000f8f faultmask 0x00
r7 0x00000010 pc 0x000006fc control 0x00
### Source #####################################################################
12 {
13 /* Initializes MCU, drivers and middleware */
14 atmel_start_init();
15 project_init();
16 PDEBUG("Hi there\n");
17 p_i2c_scan();
18
19
20
21 /* Replace with your application code */
22 while (1) {
23 }
24 }
~
~
~
~
~
~
~
### Stack ######################################################################
[0] from 0x000006fc in main+24 at ../main.c:22
### Threads ####################################################################
[1] id 0 from 0x000006fc in main+24 at ../main.c:22
### Variables ##################################################################
################################################################################
Loading section .text, size 0x88d0 lma 0x0
Loading section .relocate, size 0x99c lma 0x88d0
Start address 0x00000000, load size 37484
Transfer rate: 38 KB/sec, 9371 bytes/write.
SWD DPIDR 0x2ba01477
A debugging session is active.
Inferior 1 [Remote target] will be detached.
Quit anyway? (y or n) [answered Y; input not from terminal]
[Inferior 1 (Remote target) detached]
main () at ../main.c:22
22 while (1) {
### Assembly ###################################################################
0x000006f2 main+14 ldr r3, [pc, #24] ; (0x70c <main+40>)
0x000006f4 main+16 ldr r0, [pc, #24] ; (0x710 <main+44>)
0x000006f6 main+18 blx r3
0x000006f8 main+20 ldr r3, [pc, #24] ; (0x714 <main+48>)
0x000006fa main+22 blx r3
0x000006fc main+24 b.n 0x6fc <main+24>
0x000006fe main+26 nop
0x00000700 main+28 lsrs r1, r4, #25
0x00000702 main+30 movs r0, r0
0x00000704 main+32 lsrs r1, r2, #27
### Breakpoints ################################################################
### Expressions ################################################################
### History ####################################################################
### Memory #####################################################################
### Registers ##################################################################
r0 0x00000000 r8 0xf7e2d6ef xPSR 0x61000000
r1 0x0000002d r9 0xffffff7d fpscr 0x00000000
r2 0x000000f1 r10 0xfff7a7cf msp 0x20010a20
r3 0x000004cd r11 0xaf9faffe psp 0xfff7df7c
r4 0x1ffffffd r12 0xffffffff primask 0x00
r5 0x00000004 sp 0x20010a20 basepri 0x00
r6 0x000008a1 lr 0x00000f89 faultmask 0x00
r7 0x00000010 pc 0x000006fc control 0x00
### Source #####################################################################
12 {
13 /* Initializes MCU, drivers and middleware */
14 atmel_start_init();
15 project_init();
16 PDEBUG("Hi there\n");
17 p_i2c_scan();
18
19
20
21 /* Replace with your application code */
22 while (1) {
23 }
24 }
~
~
~
~
~
~
~
### Stack ######################################################################
[0] from 0x000006fc in main+24 at ../main.c:22
### Threads ####################################################################
[1] id 0 from 0x000006fc in main+24 at ../main.c:22
### Variables ##################################################################
################################################################################
Loading section .text, size 0x88d0 lma 0x0
Loading section .relocate, size 0x99c lma 0x88d0
Start address 0x00000000, load size 37484
Transfer rate: 38 KB/sec, 9371 bytes/write.
SWD DPIDR 0x2ba01477
A debugging session is active.
Inferior 1 [Remote target] will be detached.
Quit anyway? (y or n) [answered Y; input not from terminal]
[Inferior 1 (Remote target) detached]
main () at ../main.c:22
22 while (1) {
### Assembly ###################################################################
0x000006f2 main+14 ldr r3, [pc, #24] ; (0x70c <main+40>)
0x000006f4 main+16 ldr r0, [pc, #24] ; (0x710 <main+44>)
0x000006f6 main+18 blx r3
0x000006f8 main+20 ldr r3, [pc, #24] ; (0x714 <main+48>)
0x000006fa main+22 blx r3
0x000006fc main+24 b.n 0x6fc <main+24>
0x000006fe main+26 nop
0x00000700 main+28 lsrs r1, r4, #25
0x00000702 main+30 movs r0, r0
0x00000704 main+32 lsrs r1, r2, #27
### Breakpoints ################################################################
### Expressions ################################################################
### History ####################################################################
### Memory #####################################################################
### Registers ##################################################################
r0 0x00000000 r8 0xf7e2d6ef xPSR 0x61000000
r1 0x0000000a r9 0xffffff7d fpscr 0x00000000
r2 0x000000f1 r10 0xfff7a7cf msp 0x20010a20
r3 0x000004cd r11 0xaf9faffe psp 0xfff7df7c
r4 0x1ffffffd r12 0xffffffff primask 0x00
r5 0x00000004 sp 0x20010a20 basepri 0x00
r6 0x000008a1 lr 0x00000f93 faultmask 0x00
r7 0x00000010 pc 0x000006fc control 0x00
### Source #####################################################################
12 {
13 /* Initializes MCU, drivers and middleware */
14 atmel_start_init();
15 project_init();
16 PDEBUG("Hi there\n");
17 p_i2c_scan();
18
19
20
21 /* Replace with your application code */
22 while (1) {
23 }
24 }
~
~
~
~
~
~
~
### Stack ######################################################################
[0] from 0x000006fc in main+24 at ../main.c:22
### Threads ####################################################################
[1] id 0 from 0x000006fc in main+24 at ../main.c:22
### Variables ##################################################################
################################################################################
Loading section .text, size 0x88d0 lma 0x0
Loading section .relocate, size 0x99c lma 0x88d0
Start address 0x00000000, load size 37484
Transfer rate: 38 KB/sec, 9371 bytes/write.
SWD DPIDR 0x2ba01477
A debugging session is active.
Inferior 1 [Remote target] will be detached.
Quit anyway? (y or n) [answered Y; input not from terminal]
[Inferior 1 (Remote target) detached]
main () at ../main.c:22
22 while (1) {
### Assembly ###################################################################
0x000006f2 main+14 ldr r3, [pc, #24] ; (0x70c <main+40>)
0x000006f4 main+16 ldr r0, [pc, #24] ; (0x710 <main+44>)
0x000006f6 main+18 blx r3
0x000006f8 main+20 ldr r3, [pc, #24] ; (0x714 <main+48>)
0x000006fa main+22 blx r3
0x000006fc main+24 b.n 0x6fc <main+24>
0x000006fe main+26 nop
0x00000700 main+28 lsrs r1, r4, #25
0x00000702 main+30 movs r0, r0
0x00000704 main+32 lsrs r1, r2, #27
### Breakpoints ################################################################
### Expressions ################################################################
### History ####################################################################
### Memory #####################################################################
### Registers ##################################################################
r0 0x00000000 r8 0xf7e2d6ef xPSR 0x61000000
r1 0x0000000a r9 0xffffff7d fpscr 0x00000000
r2 0x000000f1 r10 0xfff7a7cf msp 0x20010a20
r3 0x000004cd r11 0xaf9faffe psp 0xfff7df7c
r4 0x1ffffffd r12 0xffffffff primask 0x00
r5 0x00000004 sp 0x20010a20 basepri 0x00
r6 0x000008a1 lr 0x00000f93 faultmask 0x00
r7 0x00000010 pc 0x000006fc control 0x00
### Source #####################################################################
12 {
13 /* Initializes MCU, drivers and middleware */
14 atmel_start_init();
15 project_init();
16 PDEBUG("Hi there\n");
17 p_i2c_scan();
18
19
20
21 /* Replace with your application code */
22 while (1) {
23 }
24 }
~
~
~
~
~
~
~
### Stack ######################################################################
[0] from 0x000006fc in main+24 at ../main.c:22
### Threads ####################################################################
[1] id 0 from 0x000006fc in main+24 at ../main.c:22
### Variables ##################################################################
################################################################################
Loading section .text, size 0x88d0 lma 0x0
Loading section .relocate, size 0x99c lma 0x88d0
Start address 0x00000000, load size 37484
Transfer rate: 38 KB/sec, 9371 bytes/write.
SWD DPIDR 0x2ba01477
A debugging session is active.
Inferior 1 [Remote target] will be detached.
Quit anyway? (y or n) [answered Y; input not from terminal]
[Inferior 1 (Remote target) detached]
io_read (io_descr=0x41014000, buf=0x4 <io_read+4> "U\006", length=62722) at ../hal/src/hal_io.c:61
61 ASSERT(io_descr && buf);
### Assembly ###################################################################
~
~
~
~
~
0x00000000 ? lsrs r0, r6, #8
0x00000002 ? movs r0, #1
0x00000004 ? lsls r5, r2, #25
0x00000006 ? movs r0, r0
0x00000008 ? lsls r1, r2, #25
### Breakpoints ################################################################
### Expressions ################################################################
### History ####################################################################
### Memory #####################################################################
### Registers ##################################################################
r0 0x41014000 r8 0xf7e2d6ef xPSR 0x61000000
r1 0x00000004 r9 0xffffff7d fpscr 0x00000000
r2 0x0000f502 r10 0xfff7a7cf msp 0x20010a08
r3 0x00000000 r11 0xaf9faffe psp 0xfff7df7c
r4 0x41014000 r12 0xffffffff primask 0x00
r5 0x00000004 sp 0x20010a08 basepri 0x00
r6 0x000008a1 lr 0x0000096b faultmask 0x00
r7 0x00000010 pc 0x00000000 control 0x00
### Source #####################################################################
51 {
52 ASSERT(io_descr && buf);
53 return io_descr->write(io_descr, buf, length);
54 }
55
56 /**
57 * \brief I/O read interface
58 */
59 int32_t io_read(struct io_descriptor *const io_descr, uint8_t *const buf, const uint16_t length)
60 {
61 ASSERT(io_descr && buf);
62 return io_descr->read(io_descr, buf, length);
63 }
~
~
~
~
~
~
~
### Stack ######################################################################
[0] from 0x00000000 in io_read+0 at ../hal/src/hal_io.c:61
### Threads ####################################################################
[1] id 0 from 0x00000000 in io_read+0 at ../hal/src/hal_io.c:61
### Variables ##################################################################
arg io_descr = 0x41014000: {write = 0x0 <io_read>,read = 0x0 <io_read>}, buf = 0x4 <io_read+4> "U\006": 85 'U', length = 62722
################################################################################
Loading section .text, size 0x88d0 lma 0x0
Loading section .relocate, size 0x99c lma 0x88d0
Start address 0x00000000, load size 37484
Transfer rate: 37 KB/sec, 9371 bytes/write.
SWD DPIDR 0x2ba01477
A debugging session is active.
Inferior 1 [Remote target] will be detached.
Quit anyway? (y or n) [answered Y; input not from terminal]
[Inferior 1 (Remote target) detached]
0x00000714 in hri_port_write_PINCFG_PMUXEN_bit (hw=0x41008000, value=true, index=253 '\375', submodule_index=0 '\000') at ../hri/hri_port_e54.h:2324
2324 tmp = ((Port *)hw)->Group[submodule_index].PINCFG[index].reg;
### Assembly ###################################################################
0x0000070a hri_port_write_PINCFG_PMUXEN_bit+12 ldr r3, [pc, #24] ; (0x724 <_gpio_set_pin_function+40>)
0x0000070c hri_port_write_PINCFG_PMUXEN_bit+14 ldr r0, [pc, #24] ; (0x728 <_gpio_set_pin_function+44>)
0x0000070e hri_port_write_PINCFG_PMUXEN_bit+16 blx r3
0x00000710 hri_port_write_PINCFG_PMUXEN_bit+18 ldr r3, [pc, #24] ; (0x72c <_gpio_set_pin_function+48>)
0x00000712 hri_port_write_PINCFG_PMUXEN_bit+20 blx r3
0x00000714 hri_port_write_PINCFG_PMUXEN_bit+22 b.n 0x714 <_gpio_set_pin_function+24>
0x00000716 hri_port_write_PINCFG_PMUXEN_bit+24 nop
0x00000718 hri_port_write_PINCFG_PMUXEN_bit+26 lsrs r1, r7, #25
0x0000071a hri_port_write_PINCFG_PMUXEN_bit+28 movs r0, r0
0x0000071c hri_port_write_PINCFG_PMUXEN_bit+30 lsrs r1, r5, #27
### Breakpoints ################################################################
### Expressions ################################################################
### History ####################################################################
### Memory #####################################################################
### Registers ##################################################################
r0 0x00000000 r8 0xf7e2d6ef xPSR 0x61000000
r1 0x0000000a r9 0xffffff7d fpscr 0x00000000
r2 0x000000f1 r10 0xfff7a7cf msp 0x20010a20
r3 0x000004e5 r11 0xaf9faffe psp 0xfff7df7c
r4 0x1ffffffd r12 0xffffffff primask 0x00
r5 0x00000004 sp 0x20010a20 basepri 0x00
r6 0x000008b9 lr 0x00000f7d faultmask 0x00
r7 0x00000010 pc 0x00000714 control 0x00
### Source #####################################################################
2314 tmp = ((Port *)hw)->Group[submodule_index].PINCFG[index].reg;
2315 tmp = (tmp & PORT_PINCFG_PMUXEN) >> PORT_PINCFG_PMUXEN_Pos;
2316 return (bool)tmp;
2317 }
2318
2319 static inline void hri_port_write_PINCFG_PMUXEN_bit(const void *const hw, uint8_t submodule_index, uint8_t index,
2320 bool value)
2321 {
2322 uint8_t tmp;
2323 PORT_CRITICAL_SECTION_ENTER();
2324 tmp = ((Port *)hw)->Group[submodule_index].PINCFG[index].reg;
2325 tmp &= ~PORT_PINCFG_PMUXEN;
2326 tmp |= value << PORT_PINCFG_PMUXEN_Pos;
2327 ((Port *)hw)->Group[submodule_index].PINCFG[index].reg = tmp;
2328 PORT_CRITICAL_SECTION_LEAVE();
2329 }
2330
2331 static inline void hri_port_clear_PINCFG_PMUXEN_bit(const void *const hw, uint8_t submodule_index, uint8_t index)
2332 {
2333 PORT_CRITICAL_SECTION_ENTER();
### Stack ######################################################################
[0] from 0x00000714 in hri_port_write_PINCFG_PMUXEN_bit+22 at ../hri/hri_port_e54.h:2324
[1] from 0x00000714 in _gpio_set_pin_function+24 at ../hpl/port/hpl_gpio_base.h:154
[2] from 0x41014000
### Threads ####################################################################
[1] id 0 from 0x00000714 in hri_port_write_PINCFG_PMUXEN_bit+22 at ../hri/hri_port_e54.h:2324
### Variables ##################################################################
arg hw = 0x41008000, value = true, index = 253 '\375', submodule_index = 0 '\000'
loc tmp = <optimized out>, port = 0 '\000', pin = 253 '\375'
################################################################################
Loading section .text, size 0x88a0 lma 0x0
Loading section .relocate, size 0x99c lma 0x88a0
Start address 0x00000000, load size 37436
Transfer rate: 38 KB/sec, 9359 bytes/write.
SWD DPIDR 0x2ba01477
A debugging session is active.
Inferior 1 [Remote target] will be detached.
Quit anyway? (y or n) [answered Y; input not from terminal]
[Inferior 1 (Remote target) detached]
main () at ../main.c:22
22 while (1) {
### Assembly ###################################################################
0x000006c2 main+14 ldr r3, [pc, #24] ; (0x6dc <main+40>)
0x000006c4 main+16 ldr r0, [pc, #24] ; (0x6e0 <main+44>)
0x000006c6 main+18 blx r3
0x000006c8 main+20 ldr r3, [pc, #24] ; (0x6e4 <main+48>)
0x000006ca main+22 blx r3
0x000006cc main+24 b.n 0x6cc <main+24>
0x000006ce main+26 nop
0x000006d0 main+28 lsrs r1, r6, #24
0x000006d2 main+30 movs r0, r0
0x000006d4 main+32 lsrs r1, r4, #26
### Breakpoints ################################################################
### Expressions ################################################################
### History ####################################################################
### Memory #####################################################################
### Registers ##################################################################
r0 0x00000000 r8 0xf7e2d6ef xPSR 0x61000000
r1 0x0000000a r9 0xffffff7d fpscr 0x00000000
r2 0x000000f1 r10 0xfff7a7cf msp 0x20010a20
r3 0x0000049d r11 0xaf9faffe psp 0xfff7df7c
r4 0x1ffffffd r12 0xffffffff primask 0x00
r5 0x00000004 sp 0x20010a20 basepri 0x00
r6 0x00000871 lr 0x00000f45 faultmask 0x00
r7 0x00000010 pc 0x000006cc control 0x00
### Source #####################################################################
12 {
13 /* Initializes MCU, drivers and middleware */
14 atmel_start_init();
15 project_init();
16 PDEBUG("Hi there\n");
17 p_i2c_scan();
18
19
20
21 /* Replace with your application code */
22 while (1) {
23 }
24 }
~
~
~
~
~
~
~
### Stack ######################################################################
[0] from 0x000006cc in main+24 at ../main.c:22
### Threads ####################################################################
[1] id 0 from 0x000006cc in main+24 at ../main.c:22
### Variables ##################################################################
################################################################################
Loading section .text, size 0x8898 lma 0x0
Loading section .relocate, size 0x99c lma 0x8898
Start address 0x00000000, load size 37428
Transfer rate: 38 KB/sec, 9357 bytes/write.
SWD DPIDR 0x2ba01477
A debugging session is active.
Inferior 1 [Remote target] will be detached.
Quit anyway? (y or n) [answered Y; input not from terminal]
[Inferior 1 (Remote target) detached]
main () at ../main.c:22
22 while (1) {
### Assembly ###################################################################
0x000006c2 main+14 ldr r3, [pc, #24] ; (0x6dc <main+40>)
0x000006c4 main+16 ldr r0, [pc, #24] ; (0x6e0 <main+44>)
0x000006c6 main+18 blx r3
0x000006c8 main+20 ldr r3, [pc, #24] ; (0x6e4 <main+48>)
0x000006ca main+22 blx r3
0x000006cc main+24 b.n 0x6cc <main+24>
0x000006ce main+26 nop
0x000006d0 main+28 lsrs r1, r6, #24
0x000006d2 main+30 movs r0, r0
0x000006d4 main+32 lsrs r1, r4, #26
### Breakpoints ################################################################
### Expressions ################################################################
### History ####################################################################
### Memory #####################################################################
### Registers ##################################################################
r0 0x00000000 r8 0xf7e2d6ef xPSR 0x61000000
r1 0x0000000a r9 0xffffff7d fpscr 0x00000000
r2 0x000000f1 r10 0xfff7a7cf msp 0x20010a20
r3 0x0000049d r11 0xaf9faffe psp 0xfff7df7c
r4 0x1ffffffd r12 0xffffffff primask 0x00
r5 0x00000004 sp 0x20010a20 basepri 0x00
r6 0x00000871 lr 0x00000f45 faultmask 0x00
r7 0x00000010 pc 0x000006cc control 0x00
### Source #####################################################################
12 {
13 /* Initializes MCU, drivers and middleware */
14 atmel_start_init();
15 project_init();
16 PDEBUG("Hi there\n");
17 p_i2c_scan();
18
19
20
21 /* Replace with your application code */
22 while (1) {
23 }
24 }
~
~
~
~
~
~
~
### Stack ######################################################################
[0] from 0x000006cc in main+24 at ../main.c:22
### Threads ####################################################################
[1] id 0 from 0x000006cc in main+24 at ../main.c:22
### Variables ##################################################################
################################################################################
Loading section .text, size 0x8890 lma 0x0
Loading section .relocate, size 0x99c lma 0x8890
Start address 0x00000000, load size 37420
Transfer rate: 38 KB/sec, 9355 bytes/write.
SWD DPIDR 0x2ba01477
A debugging session is active.
Inferior 1 [Remote target] will be detached.
Quit anyway? (y or n) [answered Y; input not from terminal]
[Inferior 1 (Remote target) detached]
main () at ../main.c:22
22 while (1) {
### Assembly ###################################################################
0x000006c2 main+14 ldr r3, [pc, #24] ; (0x6dc <main+40>)
0x000006c4 main+16 ldr r0, [pc, #24] ; (0x6e0 <main+44>)
0x000006c6 main+18 blx r3
0x000006c8 main+20 ldr r3, [pc, #24] ; (0x6e4 <main+48>)
0x000006ca main+22 blx r3
0x000006cc main+24 b.n 0x6cc <main+24>
0x000006ce main+26 nop
0x000006d0 main+28 lsrs r1, r6, #24
0x000006d2 main+30 movs r0, r0
0x000006d4 main+32 lsrs r1, r4, #26
### Breakpoints ################################################################
### Expressions ################################################################
### History ####################################################################
### Memory #####################################################################
### Registers ##################################################################
r0 0x00000000 r8 0xf7e2d6ef xPSR 0x61000000
r1 0x0000000a r9 0xffffff7d fpscr 0x00000000
r2 0x000000f1 r10 0xfff7a7cf msp 0x20010a20
r3 0x0000049d r11 0xaf9faffe psp 0xfff7df7c
r4 0x1ffffffd r12 0xffffffff primask 0x00
r5 0x00000004 sp 0x20010a20 basepri 0x00
r6 0x00000871 lr 0x00000f43 faultmask 0x00
r7 0x00000010 pc 0x000006cc control 0x00
### Source #####################################################################
12 {
13 /* Initializes MCU, drivers and middleware */
14 atmel_start_init();
15 project_init();
16 PDEBUG("Hi there\n");
17 p_i2c_scan();
18
19
20
21 /* Replace with your application code */
22 while (1) {
23 }
24 }
~
~
~
~
~
~
~
### Stack ######################################################################
[0] from 0x000006cc in main+24 at ../main.c:22
### Threads ####################################################################
[1] id 0 from 0x000006cc in main+24 at ../main.c:22
### Variables ##################################################################
################################################################################
Loading section .text, size 0x8890 lma 0x0
Loading section .relocate, size 0x99c lma 0x8890
Start address 0x00000000, load size 37420
Transfer rate: 38 KB/sec, 9355 bytes/write.
SWD DPIDR 0x2ba01477
A debugging session is active.
Inferior 1 [Remote target] will be detached.
Quit anyway? (y or n) [answered Y; input not from terminal]
[Inferior 1 (Remote target) detached]
0x000006cc in main () at ../main.c:19
19 while (1) {
### Assembly ###################################################################
0x000006c2 main+14 ldr r3, [pc, #24] ; (0x6dc <_osc32kctrl_init_sources+4>)
0x000006c4 main+16 ldr r0, [pc, #24] ; (0x6e0 <_osc32kctrl_init_sources+8>)
0x000006c6 main+18 blx r3
0x000006c8 main+20 ldr r3, [pc, #24] ; (0x6e4 <_osc32kctrl_init_sources+12>)
0x000006ca main+22 blx r3
0x000006cc main+24 b.n 0x6cc <main+24>
0x000006ce main+26 nop
0x000006d0 main+28 lsrs r1, r6, #24
0x000006d2 main+30 movs r0, r0
0x000006d4 main+32 lsrs r1, r4, #26
### Breakpoints ################################################################
### Expressions ################################################################
### History ####################################################################
### Memory #####################################################################
### Registers ##################################################################
r0 0x00000000 r8 0xf7e2d6ef xPSR 0x61000000
r1 0x0000000a r9 0xffffff7d fpscr 0x00000000
r2 0x000000f1 r10 0xfff7a7cf msp 0x20010a20
r3 0x0000049d r11 0xaf9faffe psp 0xfff7df7c
r4 0x1ffffffd r12 0xffffffff primask 0x00
r5 0x00000004 sp 0x20010a20 basepri 0x00
r6 0x00000871 lr 0x00000f43 faultmask 0x00
r7 0x00000010 pc 0x000006cc control 0x00
### Source #####################################################################
9
10 }
11 int main(void)
12 {
13 /* Initializes MCU, drivers and middleware */
14 atmel_start_init();
15 project_init();
16 p_i2c_scan();
17
18 /* Replace with your application code */
19 while (1) {
20 }
21 }
~
~
~
~
~
~
~
### Stack ######################################################################
[0] from 0x000006cc in main+24 at ../main.c:19
### Threads ####################################################################
[1] id 0 from 0x000006cc in main+24 at ../main.c:19
### Variables ##################################################################
################################################################################
Loading section .text, size 0x8838 lma 0x0
Loading section .relocate, size 0x99c lma 0x8838
Start address 0x00000000, load size 37332
Transfer rate: 38 KB/sec, 9333 bytes/write.
SWD DPIDR 0x2ba01477
A debugging session is active.
Inferior 1 [Remote target] will be detached.
Quit anyway? (y or n) [answered Y; input not from terminal]
[Inferior 1 (Remote target) detached]
0x000006c6 in main () at ../main.c:16
16 PDEBUG("--- I2C Detect ----\n\n");
### Assembly ###################################################################
0x000006bc main+8 blx r3
0x000006be main+10 ldr r3, [pc, #16] ; (0x6d0 <main+28>)
0x000006c0 main+12 blx r3
0x000006c2 main+14 ldr r3, [pc, #16] ; (0x6d4 <main+32>)
0x000006c4 main+16 blx r3
0x000006c6 main+18 b.n 0x6c6 <main+18>
0x000006c8 main+20 lsrs r1, r4, #24
0x000006ca main+22 movs r0, r0
0x000006cc main+24 lsrs r1, r5, #24
0x000006ce main+26 movs r0, r0
### Breakpoints ################################################################
### Expressions ################################################################
### History ####################################################################
### Memory #####################################################################
### Registers ##################################################################
r0 0x00000000 r8 0xf7e2d6ef xPSR 0x61000000
r1 0x0000000a r9 0xffffff7d fpscr 0x00000000
r2 0x000000f1 r10 0xfff7a7cf msp 0x20010a20
r3 0x0000049d r11 0xaf9faffe psp 0xfff7df7c
r4 0x1ffffffd r12 0xffffffff primask 0x00
r5 0x00000004 sp 0x20010a20 basepri 0x00
r6 0x00000861 lr 0x00000f1f faultmask 0x00
r7 0x00000010 pc 0x000006c6 control 0x00
### Source #####################################################################
6 {
7 p_usart_init();
8 p_i2c_init();
9
10 }
11 int main(void)
12 {
13 /* Initializes MCU, drivers and middleware */
14 atmel_start_init();
15 project_init();
16 PDEBUG("--- I2C Detect ----\n\n");
17 p_i2c_scan();
18
19 /* Replace with your application code */
20 while (1) {
21 }
22 }
~
~
~
### Stack ######################################################################
[0] from 0x000006c6 in main+18 at ../main.c:16
### Threads ####################################################################
[1] id 0 from 0x000006c6 in main+18 at ../main.c:16
### Variables ##################################################################
################################################################################
Loading section .text, size 0x8890 lma 0x0
Loading section .relocate, size 0x99c lma 0x8890
Start address 0x00000000, load size 37420
Transfer rate: 38 KB/sec, 9355 bytes/write.
SWD DPIDR 0x2ba01477
A debugging session is active.
Inferior 1 [Remote target] will be detached.
Quit anyway? (y or n) [answered Y; input not from terminal]
[Inferior 1 (Remote target) detached]
0x000006cc in main () at ../main.c:18
18 PDEBUG("%c[2K", 27);
### Assembly ###################################################################
0x000006c2 main+14 ldr r3, [pc, #24] ; (0x6dc <main+40>)
0x000006c4 main+16 ldr r0, [pc, #24] ; (0x6e0 <main+44>)
0x000006c6 main+18 blx r3
0x000006c8 main+20 ldr r3, [pc, #24] ; (0x6e4 <main+48>)
0x000006ca main+22 blx r3
0x000006cc main+24 b.n 0x6cc <main+24>
0x000006ce main+26 nop
0x000006d0 main+28 lsrs r1, r6, #24
0x000006d2 main+30 movs r0, r0
0x000006d4 main+32 lsrs r1, r7, #24
### Breakpoints ################################################################
### Expressions ################################################################
### History ####################################################################
### Memory #####################################################################
### Registers ##################################################################
r0 0x00000000 r8 0xf7e2d6ef xPSR 0x61000000
r1 0x0000000a r9 0xffffff7d fpscr 0x00000000
r2 0x000000f1 r10 0xfff7a7cf msp 0x20010a20
r3 0x0000049d r11 0xaf9faffe psp 0xfff7df7c
r4 0x1ffffffd r12 0xffffffff primask 0x00
r5 0x00000004 sp 0x20010a20 basepri 0x00
r6 0x00000871 lr 0x00000f2f faultmask 0x00
r7 0x00000010 pc 0x000006cc control 0x00
### Source #####################################################################
8 p_i2c_init();
9
10 }
11 int main(void)
12 {
13 /* Initializes MCU, drivers and middleware */
14 atmel_start_init();
15 project_init();
16 PDEBUG("--- I2C Detect ----\n\n");
17 // clear line
18 PDEBUG("%c[2K", 27);
19 // reset cursor pos
20 PDEBUG("%c[u", 27);
21 // moves cursor one down
22 PDEBUG("%c[1B", 27);
23 p_i2c_scan();
24
25 /* Replace with your application code */
26 while (1) {
27 }
### Stack ######################################################################
[0] from 0x000006cc in main+24 at ../main.c:18
### Threads ####################################################################
[1] id 0 from 0x000006cc in main+24 at ../main.c:18
### Variables ##################################################################
################################################################################
Loading section .text, size 0x88a0 lma 0x0
Loading section .relocate, size 0x99c lma 0x88a0
Start address 0x00000000, load size 37436
Transfer rate: 38 KB/sec, 9359 bytes/write.
SWD DPIDR 0x2ba01477
A debugging session is active.
Inferior 1 [Remote target] will be detached.
Quit anyway? (y or n) [answered Y; input not from terminal]
[Inferior 1 (Remote target) detached]
main () at ../main.c:26
26 while (1) {
### Assembly ###################################################################
0x000006d4 main+32 ldr r0, [pc, #36] ; (0x6fc <main+72>)
0x000006d6 main+34 movs r1, #27
0x000006d8 main+36 blx r4
0x000006da main+38 ldr r3, [pc, #36] ; (0x700 <main+76>)
0x000006dc main+40 blx r3
0x000006de main+42 b.n 0x6de <main+42>
0x000006e0 main+44 lsrs r5, r1, #25
0x000006e2 main+46 movs r0, r0
0x000006e4 main+48 lsrs r5, r4, #25
0x000006e6 main+50 movs r0, r0
### Breakpoints ################################################################
### Expressions ################################################################
### History ####################################################################
### Memory #####################################################################
### Registers ##################################################################
r0 0x00000000 r8 0xf7e2d6ef xPSR 0x61000000
r1 0x0000000a r9 0xffffff7d fpscr 0x00000000
r2 0x000000f1 r10 0xfff7a7cf msp 0x20010a20
r3 0x0000049d r11 0xaf9faffe psp 0xfff7df7c
r4 0x00000e65 r12 0xffffffff primask 0x00
r5 0x00000004 sp 0x20010a20 basepri 0x00
r6 0x0000088d lr 0x00000f4b faultmask 0x00
r7 0x00000010 pc 0x000006de control 0x00
### Source #####################################################################
16 PDEBUG("--- I2C Detect ----\n\n");
17 // clear line
18 PDEBUG("%c[2K", 27);
19 // reset cursor pos
20 PDEBUG("%c[u", 27);
21 // moves cursor one down
22 PDEBUG("%c[1B", 27);
23 p_i2c_scan();
24
25 /* Replace with your application code */
26 while (1) {
27 }
28 }
~
~
~
~
~
~
~
### Stack ######################################################################
[0] from 0x000006de in main+42 at ../main.c:26
### Threads ####################################################################
[1] id 0 from 0x000006de in main+42 at ../main.c:26
### Variables ##################################################################
################################################################################
Loading section .text, size 0x88a0 lma 0x0
Loading section .relocate, size 0x99c lma 0x88a0
Start address 0x00000000, load size 37436
Transfer rate: 38 KB/sec, 9359 bytes/write.
SWD DPIDR 0x2ba01477
A debugging session is active.
Inferior 1 [Remote target] will be detached.
Quit anyway? (y or n) [answered Y; input not from terminal]
[Inferior 1 (Remote target) detached]
main () at ../main.c:26
26 while (1) {
### Assembly ###################################################################
0x000006d4 main+32 ldr r0, [pc, #36] ; (0x6fc <main+72>)
0x000006d6 main+34 movs r1, #27
0x000006d8 main+36 blx r4
0x000006da main+38 ldr r3, [pc, #36] ; (0x700 <main+76>)
0x000006dc main+40 blx r3
0x000006de main+42 b.n 0x6de <main+42>
0x000006e0 main+44 lsrs r5, r1, #25
0x000006e2 main+46 movs r0, r0
0x000006e4 main+48 lsrs r5, r4, #25
0x000006e6 main+50 movs r0, r0
### Breakpoints ################################################################
### Expressions ################################################################
### History ####################################################################
### Memory #####################################################################
### Registers ##################################################################
r0 0x00000000 r8 0xf7e2d6ef xPSR 0x61000000
r1 0x0000000a r9 0xffffff7d fpscr 0x00000000
r2 0x000000f1 r10 0xfff7a7cf msp 0x20010a20
r3 0x0000049d r11 0xaf9faffe psp 0xfff7df7c
r4 0x00000e65 r12 0xffffffff primask 0x00
r5 0x00000004 sp 0x20010a20 basepri 0x00
r6 0x0000088d lr 0x00000f4b faultmask 0x00
r7 0x00000010 pc 0x000006de control 0x00
### Source #####################################################################
16 PDEBUG("--- I2C Detect ----\r\n\r\n");
17 // clear line
18 PDEBUG("%c[2K", 27);
19 // reset cursor pos
20 PDEBUG("%c[u", 27);
21 // moves cursor one down
22 PDEBUG("%c[1B", 27);
23 p_i2c_scan();
24
25 /* Replace with your application code */
26 while (1) {
27 }
28 }
~
~
~
~
~
~
~
### Stack ######################################################################
[0] from 0x000006de in main+42 at ../main.c:26
### Threads ####################################################################
[1] id 0 from 0x000006de in main+42 at ../main.c:26
### Variables ##################################################################
################################################################################
Loading section .text, size 0x88a8 lma 0x0
Loading section .relocate, size 0x99c lma 0x88a8
Start address 0x00000000, load size 37444
Transfer rate: 38 KB/sec, 9361 bytes/write.
SWD DPIDR 0x2ba01477
A debugging session is active.
Inferior 1 [Remote target] will be detached.
Quit anyway? (y or n) [answered Y; input not from terminal]
[Inferior 1 (Remote target) detached]
main () at ../main.c:26
26 while (1) {
### Assembly ###################################################################
0x000006d4 main+32 ldr r0, [pc, #36] ; (0x6fc <main+72>)
0x000006d6 main+34 movs r1, #27
0x000006d8 main+36 blx r4
0x000006da main+38 ldr r3, [pc, #36] ; (0x700 <main+76>)
0x000006dc main+40 blx r3
0x000006de main+42 b.n 0x6de <main+42>
0x000006e0 main+44 lsrs r5, r1, #25
0x000006e2 main+46 movs r0, r0
0x000006e4 main+48 lsrs r5, r4, #25
0x000006e6 main+50 movs r0, r0
### Breakpoints ################################################################
### Expressions ################################################################
### History ####################################################################
### Memory #####################################################################
### Registers ##################################################################
r0 0x00000000 r8 0xf7e2d6ef xPSR 0x61000000
r1 0x0000000a r9 0xffffff7d fpscr 0x00000000
r2 0x000000f1 r10 0xfff7a7cf msp 0x20010a20
r3 0x0000049d r11 0xaf9faffe psp 0xfff7df7c
r4 0x00000e65 r12 0xffffffff primask 0x00
r5 0x00000004 sp 0x20010a20 basepri 0x00
r6 0x0000088d lr 0x00000f4b faultmask 0x00
r7 0x00000010 pc 0x000006de control 0x00
### Source #####################################################################
16 PDEBUG("--- I2C Detect ----\r\n\r\n");
17 // clear line
18 PDEBUG("%c[2K", 27);
19 // reset cursor pos
20 PDEBUG("%c[u", 27);
21 // moves cursor one down
22 PDEBUG("%c[1B", 27);
23 p_i2c_scan();
24
25 /* Replace with your application code */
26 while (1) {
27 }
28 }
~
~
~
~
~
~
~
### Stack ######################################################################
[0] from 0x000006de in main+42 at ../main.c:26
### Threads ####################################################################
[1] id 0 from 0x000006de in main+42 at ../main.c:26
### Variables ##################################################################
################################################################################
Loading section .text, size 0x88a8 lma 0x0
Loading section .relocate, size 0x99c lma 0x88a8
Start address 0x00000000, load size 37444
Transfer rate: 38 KB/sec, 9361 bytes/write.
SWD DPIDR 0x2ba01477
A debugging session is active.
Inferior 1 [Remote target] will be detached.
Quit anyway? (y or n) [answered Y; input not from terminal]
[Inferior 1 (Remote target) detached]