About kinetis K60 vector table address

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

About kinetis K60 vector table address

2,288 次查看
zhangbaolei
Contributor I

how can I determine K60 vector table address. I know it is stored at VTOR registor(0xE000ED08), but what value is it when reset

does it initialized different value for different K60 cpu?

or initialize by some Peripheral device?

or ...

标记 (2)
0 项奖励
回复
4 回复数

1,748 次查看
zhangbaolei
Contributor I

I think the value of VTOR is zero when K60 reset

0 项奖励
回复

1,748 次查看
zhangbaolei
Contributor I

I have read the ARM cortex-M manual:

"On reset, the processor initializes the vector table base address to an IMPLEMENTATION DEFINED address. "

by I can not find "IMPLEMENTATION DEFINED" address in some k60 cpu datasheet(K60P100M100SF2V2RM)

0 项奖励
回复

1,748 次查看
fugrace
Contributor III

It's initialized by the linker command file .like this:

/* Define output sections */

SECTIONS

{

  /* The startup code goes first into Flash */

  .interrupts :

  {

  __vector_table = .;

    . = ALIGN(4);

    KEEP(*(.vectortable)) /* Startup code */

    . = ALIGN(4);

  } > m_interrupts

for more detailed explaination,I guess the FAE will give better answer.

Wish you good

0 项奖励
回复

1,748 次查看
zhangbaolei
Contributor I

where is linker command file in IAR system, is it linker configure file(.icf) , i can not find any code you mentioned

0 项奖励
回复