Dualcore C++ Project

Discussion created by lpcware Employee on Jun 15, 2016
Latest reply on Jun 15, 2016 by lpcware
Content originally posted in LPCWare by MaSt on Mon Nov 04 00:20:33 MST 2013
setting up a Dualcore C++ project i run into trouble. After sucessfully compiling both projects and linking them together into one binary, the M0 ends in  the hardfault-handler with the calling of __libc_init_array(); in the generated cr_startup_lpc43xx-m0app.cpp-file:

#if defined (__cplusplus)
  // Call C++ library initialisation

If i delete the __libc_init_array() call in the M0 startup-code, the application runs without problems. My assumption is, that the M0 calls the M4 __libc_init_array() and traps due M4-instruction set.

Any ideas?