How to configure NORFASH when using JLINK to download uboot to MINI2440?

Publisher:Meiren520Latest update time:2022-05-12 Source: eefocusKeywords:JLINK  uboot  MINI2440  configuration Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

Note: The following settings are applicable to downloading an empty board (i.e. no program in the chip) using JLINK, and are downloaded to NORFALSH.


1.Target Interface (as shown below):

2.CPU settings:


CPU settings include 3 parts:


2.1 Select CPU (S3C2440A is ARM920T core)


 

2.2 Set RAM address and size (S3C2440 has built-in RAM)


Using the on-chip RAM to assist in downloading the code will make it download very quickly, otherwise the download speed will be very slow.

2.3Init steps (here is to set the internal registers of the CPU. If the internal registers are not set initially, the download will fail)

As shown in the figure above, there are multiple data in the text file, which are write operations to the internal registers of the CPU to set the initial values ​​of the registers. Click "ADD" below to add commands. A total of 17 commands need to be added. The commands that need to be added are as follows:


     1- Disable MMU                                 


     2-Write 32bit           0x53000000    0x00000000          pWTCON,Watchdog disable


     3-Write 32bit           0x4A000008    0xFFFFFFFF        INTMSK,Disable interrupts


     4-Write 32bit           0x4A00001C    0xFFFFFFFF       INTSUBMSK,disable interrupts


     5-Write 32bit           0x48000000    0x22111120          Bus width & wait status


     6-Write 32bit           0x48000004    0x00000F40          Boot ROM control


     7-Write 32bit           0x48000008    0x00002E50          BANK1 control


     8-Write 32bit           0x4800000C    0x00002E50         BANK2 control


     9-Write 32bit           0x48000010    0x00002E50          BANK3 control


     10-Write 32bit          0x48000014    0x00002E50         BANK4 control


     11-Write 32bit          0x48000018    0x00002E50         BANK5 control


     12-Write 32bit          0x4800001C   0x00018005          BANK6 control


     13-Write 32bit          0x48000020    0x00018005          BANK7 control


     14-Write 32bit          0x48000024    0x00960542          DRAM/SDRAM refresh


     15-Write 32bit          0x48000028    0x00000032          Flexible Bank Size


     16-Write 32bit          0x4800002C    0x00000030         Mode register set for SDRAM


     17-Write 32bit          0x48000030    0x00000030          Mode register set for SDRAM


3. FLASH settings

Uncheck "Automatically detect" and select the NOR FLASH model manually. Select according to the NOR Flash on the development board. Here, select the SST39VF1601 model from SST manufacturer.


Conclusion:


After the above key settings, JLINK can download uboot to NOR FLASH to the development board. The following operations are to open uboot.bin: file->open data file; then connect the development board: Target->connect; burn uboot to norfalsh: Target->Program&Verify.


Keywords:JLINK  uboot  MINI2440  configuration Reference address:How to configure NORFASH when using JLINK to download uboot to MINI2440?

Previous article:Learn S3C2440 bare metal development under Keil from 0 - 2 Using external SDRAM
Next article:Introduction to command parameters for generating uImage for mini2440

Recommended ReadingLatest update time:2024-11-23 08:25

Learn mini2440 bare metal development together (Part 7) -- UART advanced experiment, variable parameter function
Overview: In C language, it is very convenient to use printf() for formatted output. For example, printf("%dn",a) can output the value of a in decimal format and then wrap. The prototype of the printff() function is: int printf(const char *format,...). The "..." in the function parameter indicates a variable parameter
[Microcontroller]
Learn mini2440 bare metal development together (Part 7) -- UART advanced experiment, variable parameter function
How to debug uboot using JLink+ADS1.2
At first, I wanted to use the "Download & Run function" of supervivi+DNW in Nor Flash to download uboot.bin to SDRAM for debugging. However, since the laptop has been installed as ubuntu + Virtualbox (Windows XP), after allocating the USB download device in the supervivi stage to Virtualbox (Windows XP), it prompts "C
[Microcontroller]
Problems that may occur during the installation and use of mini2440 cross-compilation tools
1. After executing arm-linux-gcc -v, it prompts.../.arm-none-linux-gnueabi-gcc not found I recently started learning embedded linux . I installed the cross-compilation tool and set the PATH according to the instructions. However, when I executed arm-linux-gcc -v, I got the following error message: .../.arm-none-linux-
[Microcontroller]
Mini2440 bare metal MMU experiment
.text .global _start _start:     ldr sp, =4096 @ Set the stack pointer. The following are all C functions. You need to set the stack before calling them     bl disable_watch_dog @ Turn off WATCHDOG, otherwise the CPU will restart continuously     bl memsetup @ Set up the memory controller to use SDRAM     bl copy_2th_
[Microcontroller]
AD resistance conversion --- those years we played with mini2440 (arm9) bare metal
ADC driver design ADC: Analog-to-digital converter. A device that converts analog signals into digital signals; DAC: Digital to Analog Converter. A device that converts digital signals into analog signals. Steps to convert analog signal into digital signal: 1. Get the value;
[Microcontroller]
AD resistance conversion --- those years we played with mini2440 (arm9) bare metal
eCos network function test in mini2440 Qemu
Finally, I can conveniently use the network function of mini2440 qemu. Please refer to Xuesong's post "Network Configuration of QEMU MINI2440 under Linux Fedora 8" http://www.linuxidc.com/Linux/2011-09/42195.htm Since it can be used like this, I reorganized the redboot of mini2440 1. According to the
[Microcontroller]
eCos network function test in mini2440 Qemu
Let's learn mini2440 bare metal development (XI) -- mini2440 timer 0 interrupt experiment
When explaining the system clock and timer earlier, an experiment was given. The function implemented was: using the function of timer 0 to make the LED flash once per second. At that time, it was implemented using the query method, and now the interrupt method is used to implement the above function. The following
[Microcontroller]
Let's learn mini2440 bare metal development (XI) -- mini2440 timer 0 interrupt experiment
Linux2.6.32 ported to MINI2440 (2) Add Nand Flash driver and modify partitions
Development Environment:     Host: fedora 14     Virtual machine: vmware workstation 10     Cross-compilation tool: arm-linux-gcc 4.3.2     Development board: mini2440 (2m nor, 64m sdram, 256m nand) 1. Add header file     In /arch/arm/mach-s3c2440/mach-mini2440.c     vim mach_mini2440.c     Add the fol
[Microcontroller]
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号