Mini2440 use jlink to burn superboot to norflash, jlinksuperboot

Source: Internet
Author: User
Tags jlink

Mini2440 use jlink to burn superboot to norflash, jlinksuperboot
Jlink version: J-flash ARM V4.12

J-Flash ARM configuration.


Generally, some configuration files *. jflash can be found in file --> open project and loaded. However, the configuration files suitable for S3C2440 are not found. Therefore, you have created a mini2440.jflash and configured it manually:


J-link settings
1. Open J-Flash ARM and choose Options> Project settings.
2. Set CPU options and Flash options.
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)


The initialization sequence (Init sequence) is simply commented out in the following field.


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


0) Halt
1) Disable MMU
2) Write 32bit 0x53000000 0x00000000; pWTCON, watchdog timer control register
3) Write 32bit 0x4A000008 0 xFFFFFFFF; INTMSK, interrupt shielding register
4) Write 32bit 0x4A00001C 0x000007FF; INTSUBMSK, an interrupt request mask register specific to INTMAK
5) Write 32bit 0x53000000 0x00000000; pWTCON, watchdog timer control register
6) Write 32bit 0x56000050 0x000055AA; rGPFCON, Port F control
7) Write 32bit 0x4C000014 0 0x00000007; CLKDIVN, CPU clock division control register
8) Write 32bit 0x4C000000 0x00FFFFFF; LOCKTIME, lock count register
9) Write 32bit 0x4C000004 0x00061012; MPLLCON, MPLL register
10) Write 32bit 0x4C000008 0x00040042; UPLLCON, UPLL register
11) Write 32 bit 0x48000000 0x22111120; Bus width & wait status
12) Write 32bit 0x48000004 0x00002F50; Boot ROM control
13) Write 32bit 0x48000008 0x00000700; BANK1 control
(14) Write 32bit 0x4800000C 0x00000700; BANK2 control
15) Write 32bit 0x48000010 0x00000700; BANK3 control
16) Write 32bit 0x48000014 0x00000700; BANK4 control
17) Write 32bit 0x48000018 0x0007FFFC; BANK5 control
18) Write 32bit 0x481_1c 0x00018005; BANK6 control
19) Write 32bit 0x48000020 0x00018005; BANK7 control
20) Write 32bit 0x48000024 0x008E0459; DRAM/SDRAM refresh
21) Write 32bit 0x48000028 0x00000032; Flexible Bank Size
22) Write 32bit 0x481_2c 0x00000030; Mode register set for SDRAM
23) Write 32bit 0x48000030 0x00000030; Mode register set for SDRAM


3. Flash


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


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


Set.


4. Burn the. binfile. (if the extension of the binary file is not. bin, change it to xxx. bin)


1) Open the. binfile (bootloader): File-> Open data file


2) Target-> Connect


3) Target-> Erase chip


4) Target-> Program


When connecting the USB interface, you must unplug the Jlink line. Otherwise, minitools cannot connect to the Development Board.


Why did the display fail to display after using JLink to burn Nand and Nor Flash?

You have downloaded Uboot or supervivi, and then loaded the kernel and root files.
We recommend that you first use Jlink to write supervivi to NorFlash, then start the development board under NorFlash, input f to erase the NAND data in the Super Terminal, and then run v to write supervivi to NAND in sequence, k. Burn the kernel, select the kernel based on the W35 or X35 on the screen, input y to burn the root file of QT4, and use the DNW tool to burn the kernel, in this way, you can see the penguin at the start of NAND. Read the mini2440 manual in detail.
 
I wrote supervivi or u_boot to nor flash at mini2440. Why did I use it?

It is also an experiment. The mini2440 can be started in either Nor or Nand. No matter which method you want to start, you need BootLoader. the BootLoader mentioned here is Supervivi and Uboot. I will not repeat the importance of Bootloader because I have a lot of information on the Internet. PS: Supervivi is suitable for beginners, while Uboot is more flexible. It provides download methods such as TFTP, NFS, and serial port.

Related Article

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.