cpp project: "cannot find entry symbol Reset_Handler"

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

cpp project: "cannot find entry symbol Reset_Handler"

3,890 Views
maximkhomutov
Contributor I

I am using Kinetis Design Studio 3.0.0 IDE. I made cpp project and try to build it. And I see the following message:

 

...kds_3.0.0/toolchain/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/bin/ld.exe: warning: cannot find entry symbol Reset_Handler; defaulting to 00004400

 

My project has file startup.S with function Reset_Handler and with ISR vector table which use this function. I see that compiler created object file from my .S file and use it while try to link project.

The C project with the same startup.S file build fine and work.

 

What I am missing for cpp project?

 

BR,

Maxim

Labels (1)
0 Kudos
Reply
2 Replies

2,505 Views
BlackNight
NXP Employee
NXP Employee

It sounds like you have not used extern "C" for the header file declaration of Reset_Handler()?

Keep in mind that .c Files are compiled in C++ mode too.

An article related to that topic is here (written for an earlier version of KDS, but many things still apply):

C++ with Kinetis Design Studio | MCU on Eclipse

I hope this helps,

Erich

0 Kudos
Reply

2,505 Views
maximkhomutov
Contributor I

My Reset_Handler() is described in the same startup.S as ISR vector table which use this function. Where should I use extern "C"?

I made another experiment - removed Reset_Handler() from ISR table. And I got the same error!..

0 Kudos
Reply