S3C2440 burns program directly into SDRAM via J-Link

Publisher:和谐共存Latest update time:2017-11-27 Source: eefocusKeywords:S3C2440  J-Link  SDRAM Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

       Since the S3C2440 core board and the main board are made in the laboratory, the H-Jtag of the friendly arm cannot be used, so J-Link is used to test whether the soldered core board works normally

. Steps:

1. Connect the core board and turn on the power
. 2. Use the J-Link commander that comes with J-Link (it has been installed when installing J-Link)

Start J-Link commander. If no CPU is detected, execute the usb command to connect JLink. Note that the ID of S3C2440 CPU is: 0x0032409D

5V{CMMI{LOU]4E[INK%CY4F
3. Download and run the special program on J-Link commander

       For S3C2410 and S3C2440 processors, they have 4K SRAM inside. When booting with Nor Flash, the address is 0x40000000; when booting with Nand Flash, the address is 0.

       For S3C2410 and S3C2440, external SDRAM is usually used. Before SDRAM is used, it needs to be initialized, which is done by the init.bin program.

       Assume that init.bin is in the E:/1/init/ directory, and u-boot0.bin and u-boot1.bin are in the E:/1/ directory.

1). Set TCK to 12M, the program will be downloaded very quickly, so you don't need to do this.


J-Link>speed 12000

2). Download and run init.bin, which is used to initialize SDRAM

a. If it is NAND FLASH startup:  
J-Link>loadbin e:/1/init.bin 0       
J-Link>setpc 0  
J-Link>g  
b. If it is NOR FLASH startup:  
J-Link>loadbin e:/1/init.bin 0x40000000       
J-Link>setpc 0x40000000  
J-Link>g //You can see that the running light starts to flash

J-Link>h //Execute this command to stop the running light.
J-Link>g //Execute this command to continue the running light.


Keywords:S3C2440  J-Link  SDRAM Reference address:S3C2440 burns program directly into SDRAM via J-Link

Previous article:Use of S3C2440 timer
Next article:Constants in ARM microprocessors

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号