烧些裸机代码后led不亮
首先呢,我在uboot下直接加载到内存中,然后bootm0xc0008000灯是可以亮的,可是我在uboot下nand erase然后nand write到nand flash的0地址中,等就不亮了。。代码和编译后的汇编如下所示,请大牛帮助分析下下,谢谢led_on.elf: file format elf32-littlearm
Disassembly of section .text:
00000000 <_start>:
0: e59f0014 ldr r0, ; 1c <MAIN_LOOP+0x4>
4: e3a01001 mov r1, #1; 0x1
8: e5801000 str r1,
c: e59f000c ldr r0, ; 20 <MAIN_LOOP+0x8>
10: e3a01000 mov r1, #0; 0x0
14: e5801000 str r1,
00000018 <MAIN_LOOP>:
18: eafffff8 b 0 <_start>
1c: 7f008820 .word 0x7f008820
20: 7f008824 .word 0x7f008824
Disassembly of section .ARM.attributes:
00000000 <.ARM.attributes>:
0: 00001741 andeq r1, r0, r1, asr #14
4: 61656100 cmnvs r5, r0, lsl #2
8: 01006962 tsteq r0, r2, ror #18
c: 0000000d andeq r0, r0, sp
10: 00543405 subseqr3, r4, r5, lsl #8
14: 01080206 tsteq r8, r6, lsl #4
.text
.global _start
_start:
//设置GPMCON
ldr r0, =0x7F008820
mov r1, # 0x00000001
str r1,
//设置GPMDAT
ldr r0, =0x7F008824
mov r1,# 0x0
str r1,
MAIN_LOOP:
B _start
页:
[1]