Min Flash size

ChibiOS public support forum for all topics not covered by a specific support forum.

Moderators: RoccoMarco, lbednarz, tfAteba

Post Reply
my64
Posts: 9
Joined: Sun Mar 06, 2011 12:08 am

Min Flash size

Post by my64 »

Hi,
What is the minimum flash size needed to install chibios ?
For instance, the demo application for STM32F100 takes approximately ~25kbytes. Can it be reduced, and fit in a 16kb MCU ?
Thanks,
User avatar
Giovanni
Site Admin
Posts: 14895
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

Re: Min Flash size

Post by Giovanni »

Hi,

The minimum kernel size is about 1.5KB on a Cortex processor, a typical configuration with some device drivers takes 4-6KB. A full kernel with all the device drivers can reach about 12KB.

The demo is so large because it also includes the test code, the test code is only required for the test report generation, if you remove the test code (which is huge) the final size will be less than half.
The demo also includes a full kernel, you can disable most subsystems (Dynamic, Mutexes, allocators) and reduce the size even more.

Giovanni
my64
Posts: 9
Joined: Sun Mar 06, 2011 12:08 am

Re: Min Flash size

Post by my64 »

Great, I will try
Thanks Giovanni.
Post Reply