stll some issues
This commit is contained in:
parent
58eb3f84ee
commit
cd6d749a15
6
memory.x
6
memory.x
@ -1,9 +1,9 @@
|
|||||||
MEMORY
|
MEMORY
|
||||||
{
|
{
|
||||||
FLASH : ORIGIN = 0x00000000, LENGTH = 0x40000 /* 256K */
|
FLASH : ORIGIN = 0x00000000, LENGTH = 256K
|
||||||
/* RAM is a mandatory region. This RAM refers to the SRAM_0 */
|
/* RAM is a mandatory region. This RAM refers to the SRAM_0 */
|
||||||
RAM : ORIGIN = 0x1FFF8000, LENGTH = 0x08000 /* 32K */
|
RAM : ORIGIN = 0x1FFF8000, LENGTH = 32K
|
||||||
SRAM_1 : ORIGIN = 0x20000000, LENGTH = 0x08000 /* 32K */
|
SRAM_1 : ORIGIN = 0x20000000, LENGTH = 32K
|
||||||
}
|
}
|
||||||
|
|
||||||
/* This is where the call stack will be allocated. */
|
/* This is where the call stack will be allocated. */
|
||||||
|
221
sections.txt
Normal file
221
sections.txt
Normal file
@ -0,0 +1,221 @@
|
|||||||
|
warning: unused import: `va416xx_hal::pac`
|
||||||
|
--> va416xx-hal/examples/blinky.rs:7:5
|
||||||
|
|
|
||||||
|
7 | use va416xx_hal::pac;
|
||||||
|
| ^^^^^^^^^^^^^^^^
|
||||||
|
|
|
||||||
|
= note: `#[warn(unused_imports)]` on by default
|
||||||
|
|
||||||
|
warning: 1 warning emitted
|
||||||
|
|
||||||
|
|
||||||
|
blinky: file format elf32-littlearm
|
||||||
|
|
||||||
|
Disassembly of section .text:
|
||||||
|
|
||||||
|
00000400 <__stext>:
|
||||||
|
400: mov.w r4, #0xffffffff
|
||||||
|
404: mov lr, r4
|
||||||
|
406: bl 0x486 <__pre_init> @ imm = #0x7c
|
||||||
|
40a: mov lr, r4
|
||||||
|
40c: ldr r0, [pc, #0x38] <$d>
|
||||||
|
40e: ldr r1, [pc, #0x3c] <$d+0x6>
|
||||||
|
410: movs r2, #0x0
|
||||||
|
412: cmp r1, r0
|
||||||
|
414: beq 0x41a <__stext+0x1a> @ imm = #0x2
|
||||||
|
416: stm r0!, {r2}
|
||||||
|
418: b 0x412 <__stext+0x12> @ imm = #-0xa
|
||||||
|
41a: ldr r0, [pc, #0x34] <$d+0xa>
|
||||||
|
41c: ldr r1, [pc, #0x34] <$d+0xc>
|
||||||
|
41e: ldr r2, [pc, #0x38] <$d+0x12>
|
||||||
|
420: cmp r1, r0
|
||||||
|
422: beq 0x42a <__stext+0x2a> @ imm = #0x4
|
||||||
|
424: ldm r2!, {r3}
|
||||||
|
426: stm r0!, {r3}
|
||||||
|
428: b 0x420 <__stext+0x20> @ imm = #-0xc
|
||||||
|
42a: ldr r0, [pc, #0x30] <$d+0x16>
|
||||||
|
42c: mov.w r1, #0xf00000
|
||||||
|
430: ldr r2, [r0]
|
||||||
|
432: orrs r2, r1
|
||||||
|
434: str r2, [r0]
|
||||||
|
436: dsb sy
|
||||||
|
43a: isb sy
|
||||||
|
43e: push {lr}
|
||||||
|
440: bl 0x460 <main> @ imm = #0x1c
|
||||||
|
444: udf #0x0
|
||||||
|
|
||||||
|
00000446 <$d>:
|
||||||
|
446: 00 00 .short 0x0000
|
||||||
|
|
||||||
|
00000448 <$d>:
|
||||||
|
448: 00 80 ff 1f .word 0x1fff8000
|
||||||
|
44c: 00 80 ff 1f .word 0x1fff8000
|
||||||
|
450: 00 80 ff 1f .word 0x1fff8000
|
||||||
|
454: 00 80 ff 1f .word 0x1fff8000
|
||||||
|
458: f8 06 00 00 .word 0x000006f8
|
||||||
|
45c: 88 ed 00 e0 .word 0xe000ed88
|
||||||
|
|
||||||
|
00000460 <main>:
|
||||||
|
460: push {r7, lr}
|
||||||
|
462: mov r7, sp
|
||||||
|
464: bl 0x46a <blinky::__cortex_m_rt_main::h60a0f30b8bbf2630> @ imm = #0x2
|
||||||
|
468: trap
|
||||||
|
|
||||||
|
0000046a <blinky::__cortex_m_rt_main::h60a0f30b8bbf2630>:
|
||||||
|
46a: b 0x46c <blinky::__cortex_m_rt_main::h60a0f30b8bbf2630+0x2> @ imm = #-0x2
|
||||||
|
46c: b 0x46c <blinky::__cortex_m_rt_main::h60a0f30b8bbf2630+0x2> @ imm = #-0x4
|
||||||
|
|
||||||
|
0000046e <UsageFault>:
|
||||||
|
46e: push {r7, lr}
|
||||||
|
470: mov r7, sp
|
||||||
|
472: sub sp, #0x8
|
||||||
|
474: b 0x476 <UsageFault+0x8> @ imm = #-0x2
|
||||||
|
476: movs r0, #0x4
|
||||||
|
478: strb r0, [r7, #-1]
|
||||||
|
47c: ldrb r0, [r7, #-1]
|
||||||
|
480: bl 0x488 <core::sync::atomic::compiler_fence::h8583214d70adb371> @ imm = #0x4
|
||||||
|
484: b 0x476 <UsageFault+0x8> @ imm = #-0x12
|
||||||
|
|
||||||
|
00000486 <__pre_init>:
|
||||||
|
486: bx lr
|
||||||
|
|
||||||
|
00000488 <core::sync::atomic::compiler_fence::h8583214d70adb371>:
|
||||||
|
488: push {r7, lr}
|
||||||
|
48a: mov r7, sp
|
||||||
|
48c: sub sp, #0x8
|
||||||
|
48e: strb r0, [r7, #-1]
|
||||||
|
492: ldrb r0, [r7, #-1]
|
||||||
|
496: str r0, [sp]
|
||||||
|
498: ldr r1, [sp]
|
||||||
|
49a: tbb [pc, r1]
|
||||||
|
|
||||||
|
0000049e <$d.1>:
|
||||||
|
49e: 04 10 11 12 .word 0x12111004
|
||||||
|
4a2: 13 00 .short 0x0013
|
||||||
|
|
||||||
|
000004a4 <$t.2>:
|
||||||
|
4a4: trap
|
||||||
|
4a6: movw r0, #0x5c0
|
||||||
|
4aa: movt r0, #0x0
|
||||||
|
4ae: movw r2, #0x644
|
||||||
|
4b2: movt r2, #0x0
|
||||||
|
4b6: movs r1, #0x32
|
||||||
|
4b8: bl 0x4de <core::panicking::panic::hd499c3017018cd48> @ imm = #0x22
|
||||||
|
4bc: trap
|
||||||
|
4be: b 0x4c6 <$t.2+0x22> @ imm = #0x4
|
||||||
|
4c0: b 0x4c6 <$t.2+0x22> @ imm = #0x2
|
||||||
|
4c2: b 0x4c6 <$t.2+0x22> @ imm = #0x0
|
||||||
|
4c4: b 0x4c6 <$t.2+0x22> @ imm = #-0x2
|
||||||
|
4c6: add sp, #0x8
|
||||||
|
4c8: pop {r7, pc}
|
||||||
|
|
||||||
|
000004ca <core::ptr::drop_in_place<&core::iter::adapters::copied::Copied<core::slice::iter::Iter<u8>>>::hda90baf15865d9c4>:
|
||||||
|
4ca: bx lr
|
||||||
|
|
||||||
|
000004cc <<T as core::any::Any>::type_id::h73579ccd4cb5b209>:
|
||||||
|
4cc: movw r0, #0x208f
|
||||||
|
4d0: movw r1, #0x70d7
|
||||||
|
4d4: movt r0, #0x9257
|
||||||
|
4d8: movt r1, #0xefa8
|
||||||
|
4dc: bx lr
|
||||||
|
|
||||||
|
000004de <core::panicking::panic::hd499c3017018cd48>:
|
||||||
|
4de: push {r7, lr}
|
||||||
|
4e0: mov r7, sp
|
||||||
|
4e2: sub sp, #0x20
|
||||||
|
4e4: mov r12, r2
|
||||||
|
4e6: movw r2, #0x654
|
||||||
|
4ea: movt r2, #0x0
|
||||||
|
4ee: movs r3, #0x0
|
||||||
|
4f0: strd r0, r1, [sp, #24]
|
||||||
|
4f4: mov r0, sp
|
||||||
|
4f6: str r2, [sp, #0x10]
|
||||||
|
4f8: movs r2, #0x1
|
||||||
|
4fa: mov r1, r12
|
||||||
|
4fc: str r2, [sp, #0x4]
|
||||||
|
4fe: add r2, sp, #0x18
|
||||||
|
500: str r3, [sp, #0x14]
|
||||||
|
502: strd r3, r3, [sp, #8]
|
||||||
|
506: str r2, [sp]
|
||||||
|
508: bl 0x50e <core::panicking::panic_fmt::h46301c7d62ff248a> @ imm = #0x2
|
||||||
|
50c: trap
|
||||||
|
|
||||||
|
0000050e <core::panicking::panic_fmt::h46301c7d62ff248a>:
|
||||||
|
50e: push {r7, lr}
|
||||||
|
510: mov r7, sp
|
||||||
|
512: sub sp, #0x10
|
||||||
|
514: strd r0, r1, [sp, #8]
|
||||||
|
518: movw r0, #0x654
|
||||||
|
51c: movt r0, #0x0
|
||||||
|
520: str r0, [sp, #0x4]
|
||||||
|
522: movw r0, #0x654
|
||||||
|
526: movt r0, #0x0
|
||||||
|
52a: str r0, [sp]
|
||||||
|
52c: mov r0, sp
|
||||||
|
52e: bl 0x534 <rust_begin_unwind> @ imm = #0x2
|
||||||
|
532: trap
|
||||||
|
|
||||||
|
00000534 <rust_begin_unwind>:
|
||||||
|
534: push {r7, lr}
|
||||||
|
536: mov r7, sp
|
||||||
|
538: sub sp, #0x8
|
||||||
|
53a: str r0, [sp, #0x4]
|
||||||
|
53c: b 0x53e <rust_begin_unwind+0xa> @ imm = #-0x2
|
||||||
|
53e: movs r0, #0x4
|
||||||
|
540: strb r0, [r7, #-5]
|
||||||
|
544: ldrb r0, [r7, #-5]
|
||||||
|
548: bl 0x550 <core::sync::atomic::compiler_fence::h2d8c0970839de2dc> @ imm = #0x4
|
||||||
|
54c: b 0x53e <rust_begin_unwind+0xa> @ imm = #-0x12
|
||||||
|
54e: bmi 0x4fa <core::panicking::panic::hd499c3017018cd48+0x1c> @ imm = #-0x58
|
||||||
|
|
||||||
|
00000550 <core::sync::atomic::compiler_fence::h2d8c0970839de2dc>:
|
||||||
|
550: push {r7, lr}
|
||||||
|
552: mov r7, sp
|
||||||
|
554: sub sp, #0x8
|
||||||
|
556: strb r0, [r7, #-1]
|
||||||
|
55a: ldrb r0, [r7, #-1]
|
||||||
|
55e: str r0, [sp]
|
||||||
|
560: ldr r1, [sp]
|
||||||
|
562: tbb [pc, r1]
|
||||||
|
|
||||||
|
00000566 <$d.1>:
|
||||||
|
566: 04 10 11 12 .word 0x12111004
|
||||||
|
56a: 13 00 .short 0x0013
|
||||||
|
|
||||||
|
0000056c <$t.2>:
|
||||||
|
56c: trap
|
||||||
|
56e: movw r0, #0x664
|
||||||
|
572: movt r0, #0x0
|
||||||
|
576: movw r2, #0x6e8
|
||||||
|
57a: movt r2, #0x0
|
||||||
|
57e: movs r1, #0x32
|
||||||
|
580: bl 0x4de <core::panicking::panic::hd499c3017018cd48> @ imm = #-0xa6
|
||||||
|
584: trap
|
||||||
|
586: b 0x58e <$t.2+0x22> @ imm = #0x4
|
||||||
|
588: b 0x58e <$t.2+0x22> @ imm = #0x2
|
||||||
|
58a: b 0x58e <$t.2+0x22> @ imm = #0x0
|
||||||
|
58c: b 0x58e <$t.2+0x22> @ imm = #-0x2
|
||||||
|
58e: add sp, #0x8
|
||||||
|
590: pop {r7, pc}
|
||||||
|
|
||||||
|
00000592 <HardFaultTrampoline>:
|
||||||
|
592: mov r0, lr
|
||||||
|
594: movs r1, #0x4
|
||||||
|
596: tst r0, r1
|
||||||
|
598: bne 0x5a0 <HardFaultTrampoline+0xe> @ imm = #0x4
|
||||||
|
59a: mrs r0, msp
|
||||||
|
59e: b 0x5a6 <HardFault_> @ imm = #0x4
|
||||||
|
5a0: mrs r0, psp
|
||||||
|
5a4: b 0x5a6 <HardFault_> @ imm = #-0x2
|
||||||
|
|
||||||
|
000005a6 <HardFault_>:
|
||||||
|
5a6: push {r7, lr}
|
||||||
|
5a8: mov r7, sp
|
||||||
|
5aa: sub sp, #0x8
|
||||||
|
5ac: str r0, [sp, #0x4]
|
||||||
|
5ae: b 0x5b0 <HardFault_+0xa> @ imm = #-0x2
|
||||||
|
5b0: movs r0, #0x4
|
||||||
|
5b2: strb r0, [r7, #-5]
|
||||||
|
5b6: ldrb r0, [r7, #-5]
|
||||||
|
5ba: bl 0x488 <core::sync::atomic::compiler_fence::h8583214d70adb371> @ imm = #-0x136
|
||||||
|
5be: b 0x5b0 <HardFault_+0xa> @ imm = #-0x12
|
@ -1 +1 @@
|
|||||||
Subproject commit d59bd2b41d0c38de187f1e59e410cb0e60953a1f
|
Subproject commit 7bd571d539919d36dc53f4aa6132cfab927c1272
|
18
valid_gdb_output
Normal file
18
valid_gdb_output
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
(gdb) file blinky
|
||||||
|
A program is being debugged already.
|
||||||
|
Are you sure you want to change the file? (y or n) y
|
||||||
|
Reading symbols from blinky...
|
||||||
|
(gdb) load
|
||||||
|
Loading section .vector_table, size 0xc0 lma 0x0
|
||||||
|
Loading section .text, size 0x289c lma 0xc0
|
||||||
|
Loading section .rodata, size 0x334 lma 0x2960
|
||||||
|
Start address 0x000000c0, load size 11408
|
||||||
|
Transfer rate: 139 KB/sec, 3802 bytes/write.
|
||||||
|
(gdb) break main
|
||||||
|
Breakpoint 1 at 0x1fd8: file va108xx-hal/examples/blinky.rs, line 14.
|
||||||
|
(gdb) c
|
||||||
|
Continuing.
|
||||||
|
|
||||||
|
Breakpoint 1, blinky::__cortex_m_rt_main_trampoline () at va108xx-hal/examples/blinky.rs:14
|
||||||
|
14 #[entry]
|
||||||
|
(gdb)
|
Loading…
Reference in New Issue
Block a user