Use jlink to burn uboot and mini2440uboot on mini2440

Source: Internet
Author: User
Tags jlink

Use jlink to burn uboot and mini2440uboot on mini2440

First, attach the installation of the jlink DRIVER:

Http://download.csdn.net/detail/zzmno1/3776716#comment

And the uboot. binfile I used:

Http://blog.chinaunix.net/uid-20543672-id-94368.html

After successful installation, there are two things: jlink and jflash.

 

I failed to connect with j-link, but it was successfully installed in j-flash.

However, there are prerequisites for successful connection in jflash:

Click file open project S3C2440. jflash (if there is no such file, the http://download.csdn.net/detail/shaellancelot/5138635)

Click option, project settings, CPU (ARM), and make the following changes:

 

CPU:
Core --> ARM9. Little endian

Use target RAM (faster) --> Addr: 40000000 4KB (not selected very slowly; the address and size of the internal Boot SRAM when the Nor flash is started, refer to the S3C2440A chip manual)

Modify the following content on this page.

 

 

The modification content is as follows:

# ------- Action ----- Value0 ------ Value1

Halt

Disable MMU

Write 32bit 0x53000000 0x00000000; pWTCON, watchdog timer control register

Write 32bit 0x4A000008 0 xFFFFFFFF; INTMSK, interrupt shielding register

Write 32bit 0x4A00001C 0x000007FF; INTSUBMSK, an interrupt request mask register specific to INTMAK

Write 32bit 0x53000000 0x00000000; pWTCON, watchdog timer control register

Write 32bit 0x56000050 0x000055AA; rGPFCON, Port F control

Write 32bit 0x4C000014 0x00000007; CLKDIVN, CPU clock division control register

Write 32bit 0x4C000000 0x00FFFFFF; LOCKTIME, lock count register

Write 32bit 0x4C000004 0x00061012; MPLLCON, MPLL register

Write 32 bit 0x4C000008 0x00040042; UPLLCON, UPLL register

Write 32bit 0x48000000 0x22111120; Bus width & wait status

Write 32bit 0x48000004 0x00002F50; Boot ROM control

Write 32bit 0x48000008 0x00000700; BANK1 control

Write 32bit 0x4800000C 0x00000700; BANK2 control

Write 32bit 0x48000010 0x00000700; BANK3 control

Write 32bit 0x48000014 0x00000700; BANK4 control

Write 32bit 0x48000018 0x0007FFFC; BANK5 control

Write 32bit 0x481_1c 0x00018005; BANK6 control

Write 32bit 0x48000020 0x00018005; BANK7 control

Write 32bit 0x48000024 0x008E0459; DRAM/SDRAM refresh

Write 32bit 0x48000028 0x00000032; Flexible Bank Size

Write 32bit 0x481_2c 0x00000030; Mode register set for SDRAM

Write 32bit 0x48000030 0x00000030; Mode register set for SDRAM


After the modification, go to another tab page flash:

 

The settings are as follows:

 

Cancel "Automatically detect flash memory" and then "Select Flash Device ".
The Flash model of mini2440 is SST39VF1601. Do not rewrite any value after selection.

If there is no corresponding Flash model, select Automatically detect flash memory

 

After completing the above content, the preparation is complete!

Click "OK" and then click "target" program ". uboot will be able to run the program successfully !!!

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.