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

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

Jump to solution
1,379 Views
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 Kudos
1 Solution
866 Views
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

 

 

 

View solution in original post

0 Kudos
2 Replies
867 Views
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 Kudos
866 Views
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 Kudos