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
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
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!..