Hello ESP32 Community,
I'm working on a minimal ESP32 project using the ESP-IDF, specifically the "hello_world" example. However, I've noticed that many unnecessary components are being compiled, and I'd like to limit the compilation to only the essential components required for my project.
I dont understatnd one thing
To run a simple hello world why should we run 27 componets
I have tried this option by adding it in the CMakeLists.txt but no use.
set(COMPONENTS "esp_system" "esptool_py" "unity")
This is overkilling me.
Is there any way to reduce these componets form the build procress?
How to Limit Components in ESP-IDF Compilation for Minimal Project?
-
- Posts: 4
- Joined: Mon Jul 17, 2023 4:41 pm
How to Limit Components in ESP-IDF Compilation for Minimal Project?
- Attachments
-
- size-componets.PNG (90.35 KiB) Viewed 1165 times
-
- Posts: 9764
- Joined: Thu Nov 26, 2015 4:08 am
Re: How to Limit Components in ESP-IDF Compilation for Minimal Project?
This actually is the minimum components. ESP-IDF includes a RTOS, so it needs that plus the supporting libraries. It has partition support, which needs the flash API. Your 'hello world' is an app, so it needs libraries to parse those. Your app is written in C and uses the Newlib API, so it needs those and supporting components. Your app uses the hardware (UART, timer for RTOS, memory mapping for flash) so it needs drivers and supporting libraries for that.
-
- Posts: 4
- Joined: Mon Jul 17, 2023 4:41 pm
Re: How to Limit Components in ESP-IDF Compilation for Minimal Project?
thanks for the information
Who is online
Users browsing this forum: No registered users and 126 guests