[Alpha record] [001] SB problems encountered lighting

[Alpha record] [001] SB problems encountered lighting

Received atom alpha development board more than a month, these two days have to play a handful of empty, wrote an assembly point LED code, then finished compiling, programmed into the SD card, how to run also point off the LED, daytime to go to work, toss the day on Sunday and the two places, or failed, SD cards replaced during replaced compiler is never doubted their own code problem ha ha ha ha ~ ~
today is really what the problem is found, the test an official at the source code and found that the official source is possible. Dichotomised replaced with the source code official, and finally locked in question:

@我的写法:
ldr r1,=0x00000101
@官方源码的写法:
ldr r1, =0X5

At first glance than on the two lines of code, wonder: 0x00000101 0X5 is not it?
Looked for a long time come to understand, severely he scolded himself a sb, it is not binary hexadecimal 0101 of 0101! ! ! !

Released two original articles · won praise 1 · views 83

Guess you like

Origin blog.csdn.net/wan0807/article/details/103980571