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
Mini2440 use jlink to burn superboot to norflash