Quantcast
Channel: MSP 低功耗微控制器论坛 - 最近的话题
Viewing all articles
Browse latest Browse all 3634

怎样才能从MSP432P401的icf文件找到程序RESET时中断向量指向的地址?

$
0
0

怎样才能从MSP432P401的icf文件找到程序RESET时中断向量指向的地址?

MSP430F5438A的xcl文件

// ---------------------------

// Code

//

-Z(CODE)CSTART,ISR_CODE=5C00-FF7F

// ---------------------------

// Constant data

//

-Z(CONST)DATA16_C,DATA16_ID,DIFUNCT,CHECKSUM=5C00-FF7F

// -------------------------------------

// All memory 0-FFFFF

//

// ---------------------------

// Code

//

-P(CODE)CODE=5C00-FF7F,10000-45BFF

-Z(CODE)CODE_ID

// ---------------------------

// Constant data

//

-Z(CONST)DATA20_C,DATA20_ID=5C00-FF7F,10000-45BFF

// -------------------------------------

// Interrupt vectors

//

-Z(CODE)INTVEC=FF80-FFFF

-Z(CODE)RESET=FFFE-FFFF    //复位时中断向量指向的地址

 

 

MSP432P401的icf文件

/*###ICF### Section handled by ICF editor, don't touch! ****/

/*-Editor annotation file-*/

/* IcfEditorFile="$TOOLKIT_DIR$\config\ide\IcfEditor\cortex_v1_0.xml" */

/*-Specials-*/

define symbol __ICFEDIT_intvec_start__ = 0x00000000;

/*-Memory Regions-*/

define symbol __ICFEDIT_region_ROM_start__ = 0x00000000;

define symbol __ICFEDIT_region_ROM_end__   = 0x0003FFFF;

define symbol __ICFEDIT_region_RAM_start__ = 0x20000000;

define symbol __ICFEDIT_region_RAM_end__   = 0x2000FFFF;

/*-Sizes-*/

define symbol __ICFEDIT_size_cstack__ = 0x1000;

define symbol __ICFEDIT_size_heap__   = 0x2000;

/**** End of ICF editor section. ###ICF###*/

 

define memory mem with size = 4G;

define region ROM_region   = mem:[from __ICFEDIT_region_ROM_start__   to __ICFEDIT_region_ROM_end__];

define region RAM_region   = mem:[from __ICFEDIT_region_RAM_start__   to __ICFEDIT_region_RAM_end__];

 

define block CSTACK    with alignment = 8, size = __ICFEDIT_size_cstack__   { };

define block HEAP      with alignment = 8, size = __ICFEDIT_size_heap__     { };

 

initialize by copy { readwrite };

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 HEAP };

 

 

 

问题:在MSP430F5438A的xcl文件中可以看到程序RESET时中断向量指向“FFFE-FFFF”。但在MSP432P401的icf文件中却没有程序RESET时指向的地址,怎样才能确定MSP432P401程序RESET时中断向量指向的地址?


Viewing all articles
Browse latest Browse all 3634

Trending Articles