With regards to you comment about code size of a blank project, we have noticed that there is an issue with the MCUXpresso IDE v10.1.1 new project wizard for SDK-based MCUs, such that the default compiler options are not being set correctly. This causes unused code from the various source files in your project not to be discarded by the linker
Can you please try the following
- Right click on your project in the Project Explorer view
- Select Properties
- Open up C/C++ Build -> Settings on the left hand side
- Now in the Tool Settings tab, open up MCU C Compiler -> Miscellaneous
- Change the value in the Other Flags from:
-c -fmessage-length=0
to
-c -ffunction-sections -fdata-sections -ffreestanding -fno-builtin
- Now change the Configuration at the top of the page from "Debug" to "Release" and repeat the change.
Now click "OK", then try rebuilding your project. This should make a noticeable difference to the size of the linked application.
[We will be fixing this issue with the new project wizard in the next IDE release.]
With regard's to SEGGER's RTT mechanism : No, the IDE has no built in support for making use of this.
Regards,
MCUXpresso IDE Support