JLINK+ADS+mini2440 configuration

Publisher:devilcoreLatest update time:2016-12-31 Source: eefocusKeywords:JLINK Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

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.


Keywords:JLINK Reference address:JLINK+ADS+mini2440 configuration

Previous article:lwIP+ucos2 transplantation process to S3C2440
Next article:NBOOT Analysis - S3C244xInit.s (1)

Latest Microcontroller Articles
  • Download from the Internet--ARM Getting Started Notes
    A brief introduction: From today on, the ARM notebook of the rookie is open, and it can be regarded as a place to store these notes. Why publish it? Maybe you are interested in it. In fact, the reason for these notes is ...
  • Learn ARM development(22)
    Turning off and on interrupts Interrupts are an efficient dialogue mechanism, but sometimes you don't want to interrupt the program while it is running. For example, when you are printing something, the program suddenly interrupts and another ...
  • Learn ARM development(21)
    First, declare the task pointer, because it will be used later. Task pointer volatile TASK_TCB* volatile g_pCurrentTask = NULL;volatile TASK_TCB* vol ...
  • Learn ARM development(20)
    With the previous Tick interrupt, the basic task switching conditions are ready. However, this "easterly" is also difficult to understand. Only through continuous practice can we understand it. ...
  • Learn ARM development(19)
    After many days of hard work, I finally got the interrupt working. But in order to allow RTOS to use timer interrupts, what kind of interrupts can be implemented in S3C44B0? There are two methods in S3C44B0. ...
  • Learn ARM development(14)
  • Learn ARM development(15)
  • Learn ARM development(16)
  • Learn ARM development(17)
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号