在线时间128 小时
UID2091686
注册时间2014-5-7
NXP金币0
TA的每日心情 | 开心 2017-4-27 08:44 |
---|
签到天数: 64 天 连续签到: 1 天 [LV.6]常住居民II
金牌会员
 
- 积分
- 1703
- 最后登录
- 1970-1-1
|
KL02Z的mcu使用IAR6.70+J-Link单步debug,工程中点击Download and Debug时,弹出Driver对话框,提示如下:
Waring:__vector_table symbol not found.
e_entry value:0x00002F90 does not match resrt vector value:0x00000410 Intitial SP_main value:0x200005F8 uncertain.
点击确定,然后Stack Warning对话框提示:The stack plug-in failed to set a breakpoint on "main".The Stack window wil not be able to display stack contents.(You can change this setting in the Tool>Options dialog box.)最后进不了main函数调试。是设置哪里有问题吗?为什么另一份工程设置和这个一样,可以单步,而这个工程不行呢?icf文件配置如下:/*###ICF### Section handled by ICF editor, don't touch! ****//*-Editor annotation file-*//* IcfEditorFile="$TOOLKIT_DIR$\config\ide\IcfEditor\cortex_v1_0.xml" *//*-Memory Regions-*/define symbol __ICFEDIT_region_ROM_start__ = 0x0;define symbol __ICFEDIT_region_ROM_end__ = (16*1024); //********0x0;define symbol __ICFEDIT_region_RAM_end__ = 0x20000000;define symbol __ICFEDIT_region_RAM_start__ = __ICFEDIT_region_RAM_end__ - (2*1024)/4; //********/*-Specials-*/define symbol __ICFEDIT_intvec_start__ = __ICFEDIT_region_ROM_start__ + 0x1400; //app start address/*-Sizes-*/define symbol __ICFEDIT_size_cstack__ = (0x200); //********define symbol __ICFEDIT_size_heap__ = (0x200); //********/**** End of ICF editor section. ###ICF###*/define symbol __region_RAM2_start__ = 0x20000000;define symbol __region_RAM2_end__ = __region_RAM2_start__ + ((2*1024)*3)/4;//********/*boot and app devide*/define symbol __region_BOOT_start__ = __ICFEDIT_region_ROM_start__;define symbol __region_BOOT_end__ = 0x00000FFF;define symbol __region_APP_start__ = 0x00001400;define symbol __region_APP_end__ = __ICFEDIT_region_ROM_end__;define symbol __region_BOOT_VECTOR_start__ = __ICFEDIT_region_ROM_start__; define symbol __region_APP_VECTOR_start__ = __region_APP_start__; define exported symbol __VECTOR_TABLE = __region_APP_VECTOR_start__;define exported symbol __VECTOR_RAM = __ICFEDIT_region_RAM_start__ - 0x410;define exported symbol __BOOT_STACK_ADDRESS = __region_RAM2_end__ - 8;define symbol __code_start__ = __region_APP_start__ + 0x410;//********define memory mem with size = 4G;//define region ROM_region = mem:[from __ICFEDIT_region_ROM_start__ to __ICFEDIT_region_ROM_end__];// | mem:[from __region_FlexNVM_start__ to __region_FlexNVM_end__];//********define region ROM_region = mem:[from __ICFEDIT_intvec_start__ to __ICFEDIT_region_ROM_end__];define region RAM_region = mem:[from __ICFEDIT_region_RAM_start__ to __region_RAM2_end__] | mem:[from __region_RAM2_start__ to __region_RAM2_end__];define block CSTACK with alignment = 8, size = __ICFEDIT_size_cstack__ { };define block HEAP with alignment = 8, size = __ICFEDIT_size_heap__ { };//define region FlashConfig_region = mem:[from __FlashConfig_start__ to __FlashConfig_end__];initialize manually { readwrite };initialize manually { section .data};initialize manually { section .textrw };do not initialize { section .noinit };define block CodeRelocate { section .textrw_init };define block CodeRelocateRam { section .textrw };place at address mem:__ICFEDIT_intvec_start__ { readonly section .intvec };place at address mem:__code_start__ { readonly section .noinit };place in ROM_region { readonly, block CodeRelocate};place in RAM_region { readwrite, block CodeRelocateRam, block CSTACK, block HEAP };
__VECTOR_TABLE 从0x00001400开始,__code_start__ 从0x00001810开始。急!在线等!盼答复!!!
|
|