I am trying to use the code generated by Cube including freertos for an STM32F2xx device. I uses the latest tool (cube 4.19 and Firmware package 1.14). After generating the code i changed the compiler setting in IAR to c++ code.
my problem is that I cannot link the code as the function defined in assembly is not defined as extern "C".
extern void vPortStartFirstTask( void );
When I change the code I can link my project but next time I generate my code the file port.c is replaced and my modification are erased.
is there another solution to fix this?