This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Code size on nRF52810 with ble_app_template example

Hi all,

I'm starting developping code with SES, on an nRF52810 (192kB of Flash), with the BLE stack S112.

Because my project include BLE and custom UUID, I started with the code example ble_app_template, but this code, compiled, take 147kB of Flash with Optimization level set to "Optimize for Size. For debugging, if I compile without optimization, the code size is 187,8kB (97% of the Flash), for a code controlling a LED, a button and advertising one characteristic.

I know that the BLE stack S112 is taking account in this size evaluation, but it is about 100kB, but I don't understand why a code as light can take near 90kB

So my questions are:

Why this code take so much space ?

Is there any other example I can start with ?

Tank you for your help

Parents
  • Finally, I restart the firmware development from the project Ble_App_Blinky.

    This example is more "light" (43kB without optimization for size), and suitable for what I want to do. Moreover, in this example, the LBS service is an custom UUID, so I can change easily to mine.

    I just regret the fact there is not enough explaination or documentation on Ble_App_Template project, because I can not see what is the difference between this 2 projects on BLE management, and what is missing on Ble_App_Blinky example. 

Reply
  • Finally, I restart the firmware development from the project Ble_App_Blinky.

    This example is more "light" (43kB without optimization for size), and suitable for what I want to do. Moreover, in this example, the LBS service is an custom UUID, so I can change easily to mine.

    I just regret the fact there is not enough explaination or documentation on Ble_App_Template project, because I can not see what is the difference between this 2 projects on BLE management, and what is missing on Ble_App_Blinky example. 

Children
Related