1615 views|0 replies

1140

Posts

0

Resources
The OP
 

Burn files to the development board [Copy link]

Software tool preparation: 1. Jlink burning software (Setup_JLinkARM_V410i.exe)

2. TFTP software installation under Windows (tftp32.exe)

3. Remote login software (securecrt or Putty)

4. USB to serial port driver installation (PL-2303)

1. Download the memory initialization program bootstrap to SRAM and run it

1. Open J-Link Commander and switch the fl2440 development board to nand flash boot, that is, press the power
switch.

2. The following are common commands:
speed 12000: set the download speed to 12M.
r: reset, reset command.
h: halt, stop, also has the function of pause.
loadbin <filename> <address>: download filename to address address.
setpc: set the value of PC register.

3. Specific operations

J-Link>speed 12000
J-Link>h
J-Link>loadbin E:\images\bootstrap-s3c2440.bin 0
J-Link>setpc 0
J-Link>g
*************************************************************************************************************************************************
Note:
(1) speed 12000 is used to set the development board frequency, that is, to set the download rate of the development board
(2) Because when booting from nand flash, 0x00000000 is mapped to 4K SRAM. SRAM does not need to be initialized and can run the program directly.
bootstrap-s3c2440.bin is a very simple memory initialization program written by Mr. Guo. In fact, it is the first 4k code of the uboot.bin file. Note that the size must be equal to or less than 4KB.
********************************************************************************************************************************************************
2. Download the u-boot program to SDRAM memory

J-Link>h
J-Link>loadbin E:\images\u-boot-s3c2440.bin 0x33f80000
J-Link>setpc 0x33f80000
J-Link>g
**********************************************************************************************************************************************************
Note: Load this bin file to the memory address 33f80000
**************************************************************************************************************************************************
3. Use u-boot to burn our program to nand flash

1. Set uboot environment variables
u-boot>nand scrub /*Erase all partitions of the entire nandflash, that is, format nandflash*/
u-boot>set ethaddr 00:11:22:33:44:55 /*Set the MAC address of the network card*/
u-boot>set ipaddr 192.168.1.2 /*Set the ip address of the network card, that is, the ip address of the development board*/
u-boot>set serverip 192.168.1.168 /*Set the tftp server address, that is, the ip address of the local Ethernet card*/
u-boot>save /*Save uboot environment variables*/

2. Burn u-boot-s3c2440.bin program
u-boot>tftp 30008000 u-boot-s3c2440.bin /*Download u-boot program to sdram memory*/
u-boot>nand erase 0 100000 /*Erase u-boot to store the corresponding partition*/
u-boot>nand write 30008000 0 60000 /*The three numbers correspond to the first address, offset, and file size. This command is to write u-boot from memory to the corresponding partition of nandflash*/

3. Burn the Linux kernel
u-boot>tftp 30008000 linuxrom-s3c2440.bin /*Download the Linux kernel file to the sdram memory*/
u-boot>nand erase 100000 800000 /*Erase the Linux kernel and the corresponding partition, 100000 is the starting address of the partition, 800000 is the size of the partition, erase is the erase of the entire partition, you cannot erase part of a partition, otherwise it will go wrong*/

u-boot>nand write 30008000 100000 800000 /*Write the Linux kernel from the memory to the corresponding partition of nandflash*/

This post is from DSP and ARM Processors
 

Guess Your Favourite
Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
快速回复 返回顶部 Return list