1. Development Preparation
Development board: mini2440, NorFlash: SST39VF1601 2MByte size, CPU: S3C2440A.
Development environment: MDK5.13
Emulator: Jlink v8
2. Development Process
First, let me introduce how to download the program to Nor Flash:
Write the scatter loading file RuninFlash.sct
;****************************************************************
; *** Scatter-Loading Description File generated by uVision
; ************************************************************
;Run in Flash
LR_ROM1 0x00000000 { ; load region
ER_ROM1 0x00000000 0x0200000 { ; load address = execution address
*.o (RESET, +First)
*(InRoot$$Sections)
.ANY (+RO)
}
RW_RAM1 0x30000000 0x4000000 { ; RW data
.ANY (+RW +ZI)
}
RW_IRAM1 0x40000000 0x00001000 {
.ANY (+RW +ZI)
}
}
Configure the file in MDK, add RuninFlash.sct in linker, and configure as follows:
Next, you need to add the Nor Flash model on your development board in Utilities->Settings->Programming Algorithm.
Use Jlink for debugging, select j-Link in Debug, and set the following in settings.
After the settings are completed, you can use the Download button in the MDK toolbar to directly download the program to Nor Flash.
The program still runs.
Next, we will introduce how to download the program to SRAM and run it. If the program is burned into SRAM, it will be lost after power failure.
Also configure and add the corresponding loading files in MDK, and add the Ext_RAM.ini file in Debug.
Configure the Scatter File file in Linker and add the written RuninRAM.sct here.
Download the program and run it. There is a difference between downloading it to SRAM and Nor Flash. When downloading it to SRAM, you can only use the debug button to test it.
After entering the debugging interface, click Run at full speed and the program will start running.
To download the project code, click this link: http://download.csdn.net/download/guohengsheng3882/10247050
The project contains the above loading files. According to the above configuration, the program can be run directly on mini2440.
Previous article:TQ2440 Study Notes - 16. Volatile Keyword
Next article:[Bonus] Mini2440 bare metal development - scatter loading file scatter
- Popular Resources
- Popular amplifiers
- Learn ARM development(16)
- Learn ARM development(17)
- Learn ARM development(18)
- Embedded system debugging simulation tool
- A small question that has been bothering me recently has finally been solved~~
- Learn ARM development (1)
- Learn ARM development (2)
- Learn ARM development (4)
- Learn ARM development (6)
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
- Wiring harness durability test and contact voltage drop test method
- From probes to power supplies, Tektronix is leading the way in comprehensive innovation in power electronics testing
- From probes to power supplies, Tektronix is leading the way in comprehensive innovation in power electronics testing
- Sn-doped CuO nanostructure-based ethanol gas sensor for real-time drunk driving detection in vehicles
- Design considerations for automotive battery wiring harness
- Do you know all the various motors commonly used in automotive electronics?
- What are the functions of the Internet of Vehicles? What are the uses and benefits of the Internet of Vehicles?
- Power Inverter - A critical safety system for electric vehicles
- Analysis of the information security mechanism of AUTOSAR, the automotive embedded software framework
- Brief Analysis of Automotive Ethernet Test Content and Test Methods
- C2000 power-on boot mode analysis------[TI FAE experience sharing]
- The last week of 2020 review information~
- The problem of starting success rate of sensorless BLDC motor
- Electric Vehicle Electric Drive Theory and Design (2nd Edition)
- The document issued by the Ministry of Industry and Information Technology is expected to drive new demand for new energy vehicle related testing instruments
- Chengdu is raging again. When will it end?
- CircuitPython Application Menu Launcher
- LC resonance
- Tektronix Jianghu Ling: Complaining and sharing the development of USB Type-C, collecting energy and growing together
- Raspberry Pi LED Cube Kit LumiCube in crowdfunding