i am trying to get libuavcan working on a stm32f413 on top of stm32cubemx generated code and freertos. The image gets too large after including libuavcan (about 150 kB bigger than without) - like in https://groups.google.com/forum/#!topic/uavcan/18_GhJchWX4. I therefore used the proposed flags, especially -nostdlib -lc -lgcc plus --specs=nano.specs and -lnosys.
arm-none-eabi is version is 7.3.1.
I got errors such as “undefined reference to operator” delete/new. In the build_config i changed the used c++ version for libuavcan from c++11 to c++03 to reduce dynamic memory structures, but following errors remained:
undefined reference to
std::ios_base::Init::~Init()' in line 74, external location: /usr/arm-none-eabi/include/c++/7.3.1/iostream|C/C++ Problem and undefined reference tostd::ios_base::Init::Init()’ in line 74, external location: /usr/arm-none-eabi/include/c++/7.3.1/iostream C/C++ Problem.
I would appreciate any hint! Terminal output or makefile i could post if needed.
Best wishes, Kjell