Wei Dongshan write study notes embedded first phase of a program DAY_4--8_3 lit LED

Author: GWD Time: 2019.7.5

First, the course content:
1, less than perfect configuration (will destroy the other bit register)
Here Insert Picture Description
2, Q: Several commonly used ARM assembly instructions?
Here Insert Picture Description
3, Q: LDR difference with the MOVE?
A: LDR directive, the execution time is split into multiple assembly instructions, the MOVE instruction can not be directly copied 4-byte data, move instruction itself accounts for a number of bytes in the 32-bit instruction so can not transfer 32 bit data.
Here Insert Picture Description
4, the first instruction must be developed bare assembly code (start code configured to stack address).

.text
.global _start

_start:

ldr r1,=0x56000050
ldr r0,=0x100
str r0,[r1]

ldr r1,=0x56000054
ldr r0,=0
str r0,[r1]

halt:
	b halt

5, windows and linux virtual machine remote login, the SI editor's code uploaded to the Linux compiler.
. 1), FileZilla upload code to the linux
Here Insert Picture Description
2), using software-controlled mobaXterm linux virtual machine, compiled code uploaded to linux
Here Insert Picture Description
3), connected with FileZilla downloaded file into the generated bin Windows;
Here Insert Picture Description
. 4), the bin file burn oflash development board to
5), a phenomenon observed
Here Insert Picture Description
two, learning points:
three, Code no :()

Guess you like

Origin blog.csdn.net/gongweidi/article/details/94761288