Hi,
just installed MCUXpresso IDE 11.8.0 and SDK_2.x_LPC5528.
Then I created a new C/C++ project from the Quickstart Panel:
- On the tab "Operating System", I select "FreeRTOS Kernel".
- Then I click "Finish".
Compiling this project aborts with an error:
In file included from C:\Users\Daniel\Documents\MCUXpressoIDE_11.8.0_1165\workspace\LPC5528_Project_test2\freertos\freertos-kernel\include/FreeRTOS.h:65,
from C:\Users\Daniel\Documents\MCUXpressoIDE_11.8.0_1165\workspace\LPC5528_Project_test2\component\uart/fsl_adapter_uart.h:14,
from C:\Users\Daniel\Documents\MCUXpressoIDE_11.8.0_1165\workspace\LPC5528_Project_test2\component\serial_manager/fsl_component_serial_port_uart.h:12,
from C:\Users\Daniel\Documents\MCUXpressoIDE_11.8.0_1165\workspace\LPC5528_Project_test2\component\serial_manager/fsl_component_serial_manager.h:136,
from C:\Users\Daniel\Documents\MCUXpressoIDE_11.8.0_1165\workspace\LPC5528_Project_test2\utilities/fsl_debug_console.h:26,
from ../source/LPC5528_Project_test2.c:18:
C:\Users\Daniel\Documents\MCUXpressoIDE_11.8.0_1165\workspace\LPC5528_Project_test2\freertos\freertos-kernel\include/portable.h:53:14: fatal error: portmacro.h: No such file or directory
53 | #include "portmacro.h"
| ^~~~~~~~~~~~~
compilation terminated.
Finished building: ../source/semihost_hardfault.c
make[1]: *** [source/subdir.mk:24: source/LPC5528_Project_test2.o] Error 1
Finished building: ../startup/startup_lpc5528.c
Obviously, the "portmacro.h" file is missing.
WHY IS THIS?
To fix this error, I have to "manage SDK components" and go to the tab "Middleware" and from there select "RTOS" and cm33_non_trustzone_port".
I think this should be handled by properly and carefully crafted dependencies between SDK components.
Thanks.