JLINK+ADS+mini2440 configuration ///Configure J-Link to burn bootloader for mini2440

Publisher:心怀感恩Latest update time:2020-06-16 Source: eefocusKeywords:JLINK  ADS  mini2440  J-Link Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

When using ADS1.2 and entering the AXD debugging environment, the message "the session file could not be loaded" appears


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 specific to 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 0x00000700 ; BANK4 control

Setmem 32-Bit 0x48000018 0x0007FFFC ; BANK5 control

Setmem 32-Bit 0x4800001C 0x00018005 ; BANK6 control

Setmem 32-Bit 0x48000020 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  ADS  mini2440  J-Link Reference address:JLINK+ADS+mini2440 configuration ///Configure J-Link to burn bootloader for mini2440

Previous article:ADS1.2+TX2440+Jlink test
Next article:uboot4--Use jlink to burn mini2440 uboot

Latest Microcontroller Articles
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号