mirror of
https://github.com/FreeRTOS/FreeRTOS.git
synced 2026-08-07 05:33:50 +00:00
* Add the memory estimator tool This tool helps in determining the memory estimates for FreeRTOS libraries. Signed-off-by: Gaurav Aggarwal <aggarg@amazon.com> * Address review feedback 1. Make the tool python3 compatible - The output read from a process is bytes array and needs to be decoded as 'utf-8' before doing any string like operations. 2. Make the script runnable from any directory. Signed-off-by: Gaurav Aggarwal <aggarg@amazon.com>
MemoryEstimator
This utility helps in determining the memory estimates for FreeRTOS libraries.
Usage
python memory_estimator.py -p <path_to_freertos_lts_directory> -o <optimization> -l <library_name>
Where:
<path_to_freertos_lts_directory>is the path to the directory containing FreeRTOS LTS source code.<optimization>is the compiler optimization level (O0, Os etc).<library_name>is the library to calculate the memory estimates for.
Options
| Short Name | Long Name | Default | Description |
|---|---|---|---|
| -p | --lts-path | Path to the directory containing FreeRTOS LTS code. | |
| -o | --optimization | O0 | Compiler optimization level (O0, Os etc). |
| -l | --lib | mqtt |
The library to calculate the memory estimates for. Currently supported libraries are: mqtt, light-mqtt, https, shadow, jobs, ota, kernel |
| -c | --compiler | arm-none-eabi-gcc | Compiler to use. |
| -s | --sizetool | arm-none-eabi-size | Size tool to use. |
| -d | --dontclean | The generated artifacts, which include the generated Makefile and built object files, are deleted by default. Pass -d to ensure that the generated artifacts are not deleted. |