*** This issue was originally posted under CodeWarrior. I wasn't sure which forum was appropriate. ***
I am creating a "C" application for the MK60DN512VMD10 running MQX 4.1.
I cloned the MQX BSP using the BSP Wizard and modified it for my custom hardware. Sample projects were included in the cloning process. I can run "Hello World" with no issues. However, my application immediately dies on startup hitting "__boot_exception()".
I can follow "__boot" to "toolchain_startup()" to "__thumb_startup()" to "__call_static_initializers()" to "__init_cpp()". "__CTOR_LIST__" is identical to "__CTOR_END__" so no constructors are initialized. "__preinit_array_start" is identical to "__preinit_array_end" so no work there. However, there is an entry in "__init_array_start/__init_array_end" that is pointing into ".text 0x000006cc 0x94 c:/freescale/cw mcu v10.6/cross_tools/arm-none-eabi-gcc-4_7_3/bin/../lib/gcc/arm-none-eabi/4.7.3/crtbegin.o". The call to "(*constructor)()" then goes off the rails.
Neither "BSPCFG_ENABLE_CPP" nor "MQX_ENABLE_CPP" are defined in my BSP project header, "mqx_cnfg.h" or any other project file. So, why is this initialization even taking place.
Thanks in advance!
Hi Larry:
Could you please let me know the detail steps to reproduce your issue?
Default settings should be compiled with C. not C++
You can check the project properties for the compiler
Regards
Daniel