Hi Naven, I hope you're doing well!
The minimum FLASH and RAM requirements for each of the Bluetooth Low Energy examples are provided in chapter 8 of the KW36's Bluetooth Low Energy Release Notes, included with the SDK for the KW36, in the following path <\SDK_2.2.0_FRDM-KW36\docs\wireless\Bluetooth>.
This section contains information depending on IDE toolchain for the BLE examples. For example, the heart rate example for MCU has the following requirements for both FLASH and RAM to run:
Note: These calculations exclude application code, as that may change depending on development. The red square represents the minimum bytes required to run.
Please let me know if you have any further questions.
From your above comment, I infer that the minimum requirements for wireless UART are as shown below, but I have memory constraint in my project.
Currently I am loading this "lib_ble_5-0_host_cm0p.a" but I use KW36 as slave(GAP Peripheral) only, I know that I can load only this "lib_ble_5-0_host_peripheral_cm0p.a" for my requirement, but I am still loading this "lib_ble_5-0_host_cm0p.a" because of two reasons:
1. I need to use some of the central APIs in peripheral mode(KW36), For example I need to use very few Central API's like "GattClient_WriteCharacteristicValue" and also few according to my requirement.
2. Even though I load "lib_ble_5-0_host_peripheral_cm0p.a" instead of "lib_ble_5-0_host_cm0p.a" I could not see much difference in memory especially.
From the application perspective, I can reduce my code but is there any feasibility that NXP can give us the optimized/customized host lib based on my requirements?
Unfortunately, the optimizations you mention are the ones that we have available.
I'm sorry for any inconveniences this may cause you.