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

Problem understanding program size built by Keil

Hi, I am using Keil to build programs less than 32 KB in size. All the example program from the SDKs work and I have read that should be the case because they are all under 32 KB when compiled.

I learned the size of the program is given in the uVision build output window.

For the 14.2.0 SDK BLE peripheral the ouptut is: "Program Size: Code=22128 RO-data=3284 RW-data=324 ZI-data=12204"

This adds up to more than 32 KB. How is the size of the program in regards to the 32 KB limit determined?

Related