JLINK+ADS+mini2440 configuration
////Configure J-Link to burn bootloader for mini2440.
When using ADS1.2 and entering AXD debugging environment, "the session file could not be loaded" will appear
Solution: 1: Place the project file in a directory that does not contain Chinese paths.
2: In AXD->confing Interface, remove the option in front of save and load default session in general.
1: Load the initialization file in the session file in AXD->options->configure interface. The specific content is as follows:
Setmem 0x53000000 0x00000000 32
Setmem 0x4A000008 0xFFFFFFFF 32
Setmem 0x4A00001C 0x000007FF 32
Setmem 0x53000000 0x00000000 32
Setmem 0x56000050 0x000055AA 32
Setmem 0x4C000014 0x00000007 32
Setmem 0x4C000000 0x00FFFFFF 32
Setmem 0x4C000004 0x00061012 32
Setmem 0x4C000008 0x00040042 32
Setmem 0x48000000 0x22111120 32
Setmem 0x48000004 0x00002F50 32
Setmem 0x48000008 0x00000700 32
Setmem 0x4800000C 0x00000700 32
Setmem 0x48000010 0x00000700 32
Setmem 0x48000014 0x00000700 32
Setmem 0x48000018 0x0007FFFC 32
Setmem 0x4800001C 0x00018005 32
Setmem 0x48000020 0x00018005 32
Setmem 0x48000024 0x008E0459 32
Setmem 0x48000028 0x00000032 32
Setmem 0x4800002C 0x00000030 32
Setmem 0x48000030 0x00000030 32
2. In AXD --> options --> configure processor, remove the option for semihosting and click clear all.
3. When using ADS for the first time, you need to configure J-LINK in AXD. Select JLinkRDI.dll in the installation directory of J-LING in AXD>OPTION>CONFIGURE TARGET, then click CONFIGURE configuration, and select the chip reset time as 2000ms to debug normally.
################################################ #######################
Configure J-Link to burn bootloader to mini2440
Using J-Link can actually burn without configuration, but the speed is very slow
Why? Because it is not running in the board's memory.
Beginners may not know how to configure J-Flash, so you can refer to my configuration file (use with caution, burning BIOS may easily cause problems).
【DownUrl】 J-Link burns mini2440 BIOS configuration file
-------------------------------------------------- -------------------------------------------------- -------------
If you configure it yourself, the basic configuration is as follows. You should refer to the init script included in the CD and fill in the initialization options yourself.
The main configuration process is as follows:
Menu: [Options]-->[option settings]
1. Gneral: Connectioin to J-link --> USB: Device 0
2. Target Interface: Keep the default settings.
3. CPU:
Core --> Auto, Little endian
Use target RAM (faster) --> Addr: 40000000 64KB (mainly this, it will be too slow if not used)
Fill in the initialization sequence as shown below. It is also copied from the H-Jtag script. I have simply commented on it.
##-------Action-----Value0------Value1
Setmem 32-Bit 0x53000000 0x00000000 ; pWTCON , Watchdog timer control register
Setmem 32-Bit 0x4A000008 0xFFFFFFFF ; INTMSK , Interrupt mask register
Setmem 32-Bit 0x4A00001C 0x000007FF ; INTSUBMSK , an interrupt request mask register for INTMAK
Setmem 32-Bit 0x53000000 0x00000000 ; pWTCON , Watchdog timer control register
Setmem 32-Bit 0x56000050 0x000055AA ; rGPFCON , Port F control
Setmem 32-Bit 0x4C000014 0x00000007 ; CLKDIVN , CPU clock division control register
Setmem 32-Bit 0x4C000000 0x00FFFFFF ; LOCKTIME , lock time count register
Setmem 32-Bit 0x4C000004 0x00061012 ; MPLLCON , MPLL register
Setmem 32-Bit 0x4C000008 0x00040042 ; UPLLCON , UPLL register
Setmem 32-Bit 0x48000000 0x22111120 ; Bus width & wait status
Setmem 32-Bit 0x48000004 0x00002F50 ; Boot ROM control
Setmem 32-Bit 0x48000008 0x00000700 ; BANK1 control
Setmem 32-Bit 0x4800000C 0x00000700 ; BANK2 control
Setmem 32-Bit 0x48000010 0x00000700 ; BANK3 control Setmem 32-Bit 0x48000014 0x0 0000700;
BANK4
control Setmem 32-Bit 0x48000018 0x0007FFFC; BANK5 control
Setmem 32-Bit 0x4800001C 0x00018005
; BANK7 control
Setmem 32-Bit 0x48000024 0x008E0459; DRAM/SDRAM refresh
Setmem 32-Bit 0x48000028 0x00000032; Flexible Bank Size
Setmem 32-Bit 0x4800002C 0x00000030; Mode register set for SDRAM
Setmem 32- Bit 0x48000030 0x00000030 ; Mode register set for SDRAM
4. Flash
Uncheck "Automatically detect flash memory" and then "Select Flash Device".
The Flash model of mini2440 is: SST39VF1601. Do not rewrite any values after selecting it.
5. Production
Erase, Program and Verify enable.
Previous article:lwIP+ucos2 transplantation process to S3C2440
Next article:NBOOT Analysis - S3C244xInit.s (1)
- 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
- MSP430 FRAM Microcontrollers Enable Energy Harvesting
- Lesson 3: Exploring the Cellular Communication Module OpenCPU
- MSP-EXP430F5529LPPWM library function + clock configuration
- Design of ESD protection structure for CMOS circuits
- AD sampling input problem?
- Recruiting brushless motor controller hardware development engineer
- Analysis of the phenomenon after nmos is broken down
- Optimizing DSP Power Budget
- Discussion: Internet of Vehicles: Who will dominate the world?
- Read the good book "Operational Amplifier Parameter Analysis and LTspice Application Simulation" 03 Bias Current Case Analysis