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 Reply Children
No Data
Related