1. Warning command in makefile: Use -Wall, not all uppercase or lowercase. If all lowercase, the following error message will appear:
arm-none-linux-gnueabi-gcc: unrecognized option '-wall'
2. The main function in the c file must be of int type, not void type, otherwise:
warning: return type of 'main' is not 'int'
3. The = sign is required for addresses in assembly statements:
ldr r0,=0x56000000 //If there is no equal sign, this error will occur
crt0.s: Assembler messages:crt0.s:8: Error: bad immediate value for offset (1442840568) //crt0.s is the name of my assembly file
4. When using immediate numbers in assembly, add a # sign before the immediate number: mov r1,#0x0 Otherwise, the following error will occur:
crt0.s:8: Error: internal_relocation (type: OFFSET_IMM) not fixed up
.equ mem_ctl_base, 0x48000000
mov r1,#mem_ctl_base is equivalent to ldr r1,=mem_ctl_base
5. The registers and wiring diagrams corresponding to the LED and key of mini2440 are as follows:
Previous article:ARM study notes 020 explanation of mov pc, lr
Next article:Using ADS1.2 and JLINK V8 to build ARM7 development platform
- Popular Resources
- Popular amplifiers
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- LED chemical incompatibility test to see which chemicals LEDs can be used with
- Application of ARM9 hardware coprocessor on WinCE embedded motherboard
- What are the key points for selecting rotor flowmeter?
- LM317 high power charger circuit
- A brief analysis of Embest's application and development of embedded medical devices
- Single-phase RC protection circuit
- stm32 PVD programmable voltage monitor
- Introduction and measurement of edge trigger and level trigger of 51 single chip microcomputer
- Improved design of Linux system software shell protection technology
- What to do if the ABB robot protection device stops
- Huawei's Strategic Department Director Gai Gang: The cumulative installed base of open source Euler operating system exceeds 10 million sets
- Download from the Internet--ARM Getting Started Notes
- Learn ARM development(22)
- Learn ARM development(21)
- Learn ARM development(20)
- Learn ARM development(19)
- Learn ARM development(14)
- Learn ARM development(15)
- Analysis of the application of several common contact parts in high-voltage connectors of new energy vehicles
- Wiring harness durability test and contact voltage drop test method
- Switching power supply testing "Five rules"
- Source Insight Open Issues
- STM Arduion cannot download firmware?
- An article explains the function and principle of Via hole
- NUCLEO's ST-LINK is changed to 1.8V and the computer cannot recognize the hardware
- What programming method should be used for the M9S8AC16CG chip?
- DSP IIR digital filter implementation program source code
- Where can I download the device data sheet of Taiwan REALTEK (Realtek)?
- NXP Rapid IoT Review] +③ NXP Rapid IoT online compilation and operation of various demos
- iis3dwb three-axis acceleration sensor driver code PCB package