Jlink + ads + mini2440 Configuration

Source: Internet
Author: User
Tags jlink

Jlink + ads + mini2440 Configuration

//// Configure J-link as the mini2440 burning bootloader favorites
When ads1.2 is used, "the session file cocould not be loaded" is returned when you enter the axd debugging environment"

Solution: 1. Place the project file in a directory that does not contain a Chinese path.

2: Set the SAVE and load default session option in general in axd-> confing interface to remove it.

1. Load the initialization file in session file in axd-> options-> Configure interface, as shown in the following figure:

Setmem 0x53000000 0x00000000 32

Setmem 0x4a000008 0 xffffffff 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 0x481_1c 0x00018005 32

Setmem 0x48000020 0x00018005 32

Setmem 0x48000024 0x008e0459 32

Setmem 0x48000028 0x00000032 32

Setmem 0x481_2c 0x00000030 32

Setmem 0x48000030 0x00000030 32

2. In axd --> options-> initialize ate processor, remove the options on semihosting and Click Clear all.

3: When using ads for the first time, you need to configure the J-LINK in axd, in axd> Option> Configure target select the jlinkrdi under the installation directory of the J-LING. DLL, and then click Configure configuration to set the chip reset time to MS for normal debugging.

######################################## #################################

Configure J-link to write bootloader for mini2440

J-link can be burned without configuration, but the speed is too slow.

Because it does not run in the memory of the Board.

Beginners may not configure J-flash. You can refer to my configuration file (with caution, it is easy to burn BIOS problems ).

[Downurl] writes the mini2440 BIOS configuration file through J-link.

Bytes -----------------------------------------------------------------------------------------------------------------

The basic configuration is as follows: refer to the init script on the disc and fill in the initialization options.

The configuration process is as follows:

Menu: [Options] --> [option settings]

1. gneral: connectioin to J-link --> USB: device 0

2. Target Interface: retain the default settings without any changes

3. CPU:

Core --> auto, little endian

Use target RAM (faster) --> ADDR: 40000000 64kb)

The initialization sequence (init sequence) is extracted from the script of H-JTAG according to the following field. I made a simple comment.

# ------- Action ----- value0 ------ value1
Setmem 32-Bit 0x53000000 0x00000000; pwtcon, watchdog timer control register
Setmem 32-bit 0x4a000008 0 xffffffff; intmsk, interrupt shielding 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 0 0x00000007; clkdivn, CPU clock division control register
Setmem 32-bit 0x4c000000 0x00ffffff; locktime, lock 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 0x481_1c 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 0x481_2c 0x00000030; Mode register set for SDRAM
Setmem 32-Bit 0x48000030 0x00000030; Mode register set for SDRAM

4. Flash

Cancel "automatically detect flash memory" and then "select flash device ".

The Flash model of mini2440 is sst39vf1601. Do not rewrite any value after selection.

5. Production

Erase, program and verify enable.

This article from the csdn blog, reproduced please indicate the source: http://blog.csdn.net/zhulizhen/archive/2009/11/16/4818463.aspx

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.