Linker Command File and Interrupt Vector Table in CW10.1 Project

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

Linker Command File and Interrupt Vector Table in CW10.1 Project

跳至解决方案
2,299 次查看
Thommi_Tulpe
Contributor IV

Hello,

were can I find and edit the Linker Command File in a K40 Project.

 

I have to find the ___VECTOR_RAM declaration. Because I get an error.

 

Undefind:  ___VECTOR_RAM;

In my projekt ___VECTOR_RAM; is declared extern: 

extern uint_32 ___VECTOR_RAM[ ];       /* declared in P2.c */

 

 

0 项奖励
回复
1 解答
1,786 次查看
mjbcswitzerland
Specialist V

Hi

 

Open the project settings and look in "C/C++ Build | Settings | ARM Linker | Input".

This will show you the "Linker Command File" with a path and the name of the *.lcf being used for the present target.

 

By default this will be in a directory high up in the project hierarchy. By adding new location defines the exact location can be changed if required:

eg. "${APPLICATION_LOC}"/Project_Settings/Linker_Files/MK60N512VMD100_ram.lcf

where the path variable APPLICATION_LOC is added as a path variable in the "Linked resources" register in the project properties.

 

Regards

 

Mark

 

 

 

在原帖中查看解决方案

0 项奖励
回复
2 回复数
1,787 次查看
mjbcswitzerland
Specialist V

Hi

 

Open the project settings and look in "C/C++ Build | Settings | ARM Linker | Input".

This will show you the "Linker Command File" with a path and the name of the *.lcf being used for the present target.

 

By default this will be in a directory high up in the project hierarchy. By adding new location defines the exact location can be changed if required:

eg. "${APPLICATION_LOC}"/Project_Settings/Linker_Files/MK60N512VMD100_ram.lcf

where the path variable APPLICATION_LOC is added as a path variable in the "Linked resources" register in the project properties.

 

Regards

 

Mark

 

 

 

0 项奖励
回复
1,786 次查看
Thommi_Tulpe
Contributor IV

Hi Mark,

thank you, this helps.

I also solved my problem with the  vector table.

In my project it has another name. I renamed it ant it works.

 

Thank You

0 项奖励
回复