Chinaunix首页 | 论坛 | 博客
  • 博客访问: 957627
  • 博文数量: 116
  • 博客积分: 3923
  • 博客等级: 中校
  • 技术积分: 1337
  • 用 户 组: 普通用户
  • 注册时间: 2009-04-23 01:22
文章分类

全部博文(116)

文章存档

2013年(1)

2012年(17)

2011年(69)

2009年(29)

分类: WINDOWS

2009-04-23 02:17:09

project   : debugging with Jlink on keil
instuction: jlinker settings for QQ2440 board under keil IDE

(1) Firstly, modify the scatter files as following( locate it start at SDRAM: 0x30000000):

scatter file:
; *************************************************************
; *** Scatter-Loading Description File generated by uVision ***
; *************************************************************

LR_ROM1 0x30000000 {    ; load region size_region
  RO +0  {  ; load address = execution address
   2440init.o (+RO,+First)
   *(InRoot$$Sections)
   .ANY (+RO)
  }
  RW +0  {  ; RW data
   .ANY (+RW)
  }
  ZI +0  {  ; ZI data
   .ANY (+ZI)
  }
}
=================================================================

(2) Do not enable the item "Run to main()", because when the target reset, the PC value is 0x00000000, so will change it to 0x30000000 to run.(if not, it can not change the PC register value.)

(3) enter into "SEGGER J-Link RDI V4.02 Congiuration" Dialog and setting as below.
(3.1) General page: USB --> Device 0
(3.2) Init page: macro file as following:
filename: QQ2440.setup:
===================================================================
/*********************************************************************
*
*    Macro file for J-LINK RDI
*
**********************************************************************
* File:    QQ2440.setup
* Purpose: Setup for S3C2440 chip
**********************************************************************
*/
Write32(0x53000000, 0x00000000);
Write32(0x4A000008, 0xFFFFFFFF);
Write32(0x4A00001C, 0x000007FF);
Write32(0x53000000, 0x00000000);
Write32(0x56000050, 0x000055AA);
Write32(0x4C000014, 0x00000007);
Write32(0x4C000000, 0x00FFFFFF);
Write32(0x4C000004, 0x00061012);
Write32(0x4C000008, 0x00040042);
Write32(0x48000000, 0x22111120);
Write32(0x48000004, 0x00002F50);
Write32(0x48000008, 0x00000700);
Write32(0x4800000C, 0x00000700);
Write32(0x48000010, 0x00000700);
Write32(0x48000014, 0x00000700);
Write32(0x48000018, 0x0007FFFC);
Write32(0x4800001C, 0x00018005);
Write32(0x48000020, 0x00018005);
Write32(0x48000024, 0x008E0459);
Write32(0x48000028, 0x00000032);
Write32(0x4800002C, 0x00000030);
Write32(0x48000030, 0x00000030);

===================================================================



(3.3) JTAG page: JTAG speed --> 12000 kHz
(3.4) Flash page: Disable Flash programming.
(3.5) Breakpoints page: Enable Use software breakpoints.
(3.6) CPU page: Enable Allow instruction set simulation, Little endian. Reset Normal.
(3.7) Log page: None.

4. ADS中J-Link设定

把S3C2440.setup解压后放到D:\sw\SEGGER\JLinkARM_V402\Samples\RDI\SetupFiles目录里,
在AXD的Options->Config Target ... -> 选中 JLinkRDI.dll -> Configure -> J-Link RDI V4.02 Configuration对话框中选中 Init属性页 -> use Macro file 中把S3C2440.setup文件选中,然后就可以在ADS中使用J-Link调试了。

文件:S3C2440.rar
大小:0KB
下载:下载


阅读(2154) | 评论(1) | 转发(0) |
给主人留下些什么吧!~~

chinaunix网友2010-08-23 10:36:12

3q