Hello,
Due to the complexity of our BLE stack, the provided examples are intended to showcase its full capabilities. For best results and to ensure proper functionality, we strongly recommend using one of the SDK examples as a foundation for your project.
If the functionality provided by the SDK examples is not suited for the needs of the application you're developing, you would need to develop a custom implementation, but this is really not recommended or encouraged, as for custom implementations, support is limited.
I apologize for the inconveniences this might cause you and your project.
Something helpful to reduce and optimize RAM size, consider setting the compiler optimization level to -Os, which often reduces RAM and flash usage. You can adjust this setting in MCUXpresso by navigating Project Properties > C/C++ Build > Settings > Tool Settings
Most of the compiler optimization flags for size are already enabled by using the -Os option.
Also to reduce the code size, I suggest you choose NewlibNano as library type when creating a new project. NewlibNano is specifically optimized for minimal footprint.
Please note that we do not recommend the usage of ConfigTools with the Wireless examples, as it could overwrite previous configurations needed for the wireless part.
Best Regards,
Ana Sofia.