Zephyr and the Memory Footprint: Difference between revisions

From chriesibaum wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
Do you want to use [https://zephyrproject.org/ Zephyr RTOS] on a Microcontroller with only a few bytes of Flash? Let's try it!
Do you want to use [https://zephyrproject.org/ Zephyr RTOS] on a Microcontroller with only a few bytes of Flash? Let's try it!


On the [https://docs.zephyrproject.org/latest/guides/optimizations/footprint.html Optimizing for Footprint] doc site you will find some hints how to reduce the memory footprint. With this I could reduce the kernel to 6872 bytes. Ok, this is just the kernel to have an idea how much flash it needs. But how much does a small hello world application need, for example?
 


* https://docs.zephyrproject.org/latest/guides/optimizations/footprint.html
* https://docs.zephyrproject.org/latest/guides/optimizations/footprint.html
Line 6: Line 10:


* https://docs.zephyrproject.org/latest/guides/optimizations/tools.html
* https://docs.zephyrproject.org/latest/guides/optimizations/tools.html
<syntaxhighlight lang="python">
def quick_sort(arr):
less = []
pivot_list = []
more = []
if len(arr) <= 1:
return arr
else:
pass
</syntaxhighlight>

Revision as of 10:21, 26 January 2021

Do you want to use Zephyr RTOS on a Microcontroller with only a few bytes of Flash? Let's try it!

On the Optimizing for Footprint doc site you will find some hints how to reduce the memory footprint. With this I could reduce the kernel to 6872 bytes. Ok, this is just the kernel to have an idea how much flash it needs. But how much does a small hello world application need, for example?