Mentor 发表于 2012-3-8 12:30:17

亲!帮忙解决下困扰我三天的问题 搞不定了! 精神快崩溃了! 看后四行!

Wed Mar 07, 2012 21:09:46: JLINK command: ProjectFile = D:\Software\IAR\MyPrj\SmartARM2220\Prj1\settings\first_Debug.jlink, return = 0
Wed Mar 07, 2012 21:09:46: JLINK command: device = LPC2220, return = 0
Wed Mar 07, 2012 21:09:46: DLL version: V4.28c, compiled Jul1 2011 14:23:12
Wed Mar 07, 2012 21:09:46: Firmware: J-Link ARM V8 compiled Jul1 2011 12:02:49
Wed Mar 07, 2012 21:09:46: JTAG speed is initially set to: 32 kHz
Wed Mar 07, 2012 21:09:46: Initial reset was performed
Wed Mar 07, 2012 21:09:46: TotalIRLen = 4, IRPrint = 0x01
Wed Mar 07, 2012 21:09:46: Found 1 JTAG device, Total IRLen = 4:
Wed Mar 07, 2012 21:09:46:#0 Id: 0x4F1F0F0F, IRLen:4, IRPrint: 0x1 ARM7TDMI-S Core
Wed Mar 07, 2012 21:09:46: J-Link found 1 JTAG device(s). ARM core Id: 4F1F0F0F ARM7
Wed Mar 07, 2012 21:09:46: Device at TAP0 selected
Wed Mar 07, 2012 21:09:46: ETM V1.2
Wed Mar 07, 2012 21:09:46: RTCK reaction time is approx. 252ns
Wed Mar 07, 2012 21:09:46: Auto JTAG speed: Adaptive
Wed Mar 07, 2012 21:09:46: 388 bytes downloaded (6.11 Kbytes/sec)
Wed Mar 07, 2012 21:09:46: Loaded debugee: D:\Software\IAR\MyPrj\SmartARM2220\Prj1\Debug\Exe\first.out
Wed Mar 07, 2012 21:09:46: Target reset
Wed Mar 07, 2012 21:09:46: The stack pointer for stack 'CSTACK' (currently 0x9120142B) is outside the stack range (0x00100000 to 0x00102000)
Wed Mar 07, 2012 21:09:46: The stack pointer for stack 'IRQ_STACK' (currently 0x8904502A) is outside the stack range (0x00102000 to 0x00102100)
Wed Mar 07, 2012 21:09:46: The stack pointer for stack 'FIQ_STACK' (currently 0x08E4022B) is outside the stack range (0x00102100 to 0x00102200)

xivisi 发表于 2012-3-8 12:47:47

内存地址没设置好

Mentor 发表于 2012-3-8 12:49:35

回复【1楼】xivisi LiYong
内存地址没设置好
-----------------------------------------------------------------------

/*###ICF### Section handled by ICF editor, don't touch! ****/
/*-Editor annotation file-*/
/* IcfEditorFile="$TOOLKIT_DIR$\config\ide\IcfEditor\a_v1_0.xml" */
/*-Specials-*/
define symbol __ICFEDIT_intvec_start__ = 0x80000000;
/*-Memory Regions-*/
define symbol __ICFEDIT_region_ROM_start__ = 0x80;
define symbol __ICFEDIT_region_ROM_end__   = 0x7FFFF;
define symbol __ICFEDIT_region_RAM_start__ = 0x100000;
define symbol __ICFEDIT_region_RAM_end__   = 0x1FFFFF;
/*-Sizes-*/
define symbol __ICFEDIT_size_cstack__   = 0x2000;
define symbol __ICFEDIT_size_svcstack__ = 0x100;
define symbol __ICFEDIT_size_irqstack__ = 0x100;
define symbol __ICFEDIT_size_fiqstack__ = 0x100;
define symbol __ICFEDIT_size_undstack__ = 0x100;
define symbol __ICFEDIT_size_abtstack__ = 0x100;
define symbol __ICFEDIT_size_heap__   = 0x8000;
/**** End of ICF editor section. ###ICF###*/


define memory mem with size = 4G;
define region ROM_region   = mem:;
define region RAM_region   = mem:;

define block CSTACK    with alignment = 8, size = __ICFEDIT_size_cstack__   { };
define block SVC_STACK with alignment = 8, size = __ICFEDIT_size_svcstack__ { };
define block IRQ_STACK with alignment = 8, size = __ICFEDIT_size_irqstack__ { };
define block FIQ_STACK with alignment = 8, size = __ICFEDIT_size_fiqstack__ { };
define block UND_STACK with alignment = 8, size = __ICFEDIT_size_undstack__ { };
define block ABT_STACK with alignment = 8, size = __ICFEDIT_size_abtstack__ { };
define block HEAP      with alignment = 8, size = __ICFEDIT_size_heap__   { };

initialize by copy { readwrite };
//initialize by copy with packing = none { section __DLIB_PERTHREAD }; // Required in a multi-threaded application
do not initialize{ section .noinit };

place at address mem:__ICFEDIT_intvec_start__ { readonly section .intvec };

place in ROM_region   { readonly };
place in RAM_region   { readwrite,
                        block CSTACK, block SVC_STACK, block IRQ_STACK, block FIQ_STACK,
                        block UND_STACK, block ABT_STACK, block HEAP };

这样设置有问题么?

Mentor 发表于 2012-3-8 12:50:10

环境JLink IAR NXP2220

Mentor 发表于 2012-3-8 15:56:15

顶!

Mentor 发表于 2012-3-8 20:54:09

问题没解决,得顶!

chinabn 发表于 2012-3-8 20:58:07

先解锁!

Mentor 发表于 2012-3-8 21:10:43

回复【6楼】chinabn GonBoy
先解锁!
-----------------------------------------------------------------------
请教 如何解锁呢? 

Mentor 发表于 2012-3-8 22:56:03

http://cache.amobbs.com/bbs_upload782111/files_53/ourdev_725053V7O23O.jpg
奇怪,第二项取消了就好了! (原文件名:未命名.jpg)

Mentor 发表于 2012-3-9 14:56:36

继续!

Mentor 发表于 2012-3-9 22:31:05

学习ARM 不容易!
页: [1]
查看完整版本: 亲!帮忙解决下困扰我三天的问题 搞不定了! 精神快崩溃了! 看后四行!