Search found 112 matches
- Thu Sep 19, 2024 6:51 am
- Forum: ESP-IDF
- Topic: Selecting "partition.csv" filename in sdkconfig depending on sdkconfig config option
- Replies: 2
- Views: 672
Re: Selecting "partition.csv" filename in sdkconfig depending on sdkconfig config option
Thank you! This is almost exactly as I did it, after a tip from an Espressif employee, see here: https://github.com/espressif/esp-idf/issues/14529#issuecomment-2337608491 Apparently I am not the only one that needs this, after all :) I merged this with a few other board-specific settings, to have "C...
- Fri Sep 06, 2024 6:58 pm
- Forum: ESP-IDF
- Topic: Selecting "partition.csv" filename in sdkconfig depending on sdkconfig config option
- Replies: 2
- Views: 672
Selecting "partition.csv" filename in sdkconfig depending on sdkconfig config option
Hi this may sound a bit complex, but it's not really, I think. At this moment I am doing work on supporting multiple boards with one set of source files. Before I did this with multiple project directories that symlinked to selected source files and therefore each board would have it's own sdkconfig...
- Fri Aug 23, 2024 11:14 am
- Forum: ESP-IDF
- Topic: Trimming building unnecessary IDF modules
- Replies: 15
- Views: 2525
Re: Trimming building unnecessary IDF modules
I already wrote I actually don't even mind the C++ part. As long as they fix the bloating, one way or the another. Sorry but many users are Arduino level. They're entirely happy when it runs their 10 line script (or whatever it's called there). I am coming from a world (a.o. ATTiny and ATMega) where...
- Fri Aug 23, 2024 10:10 am
- Forum: ESP-IDF
- Topic: Trimming building unnecessary IDF modules
- Replies: 15
- Views: 2525
Re: Trimming building unnecessary IDF modules
Yes I know these. But they're not going to make the real difference. I cannot imagine there are so many assertions with so much text, that they may up 500 kB of space, do you? And optimisation (-O3 -> Os) is already set of course. In my experience that makes 15-25% percent difference in code size. T...
- Fri Aug 23, 2024 9:43 am
- Forum: ESP-IDF
- Topic: Trimming building unnecessary IDF modules
- Replies: 15
- Views: 2525
Re: Trimming building unnecessary IDF modules
Understandably and I already turned off a lot of these...
Sometimes I feel like analysing the linker map to find out. That's not so simple, so I don't want to spend much time on it if besides me nobody really cares. And of course I'd rather have Espressif do it themselves.
Sometimes I feel like analysing the linker map to find out. That's not so simple, so I don't want to spend much time on it if besides me nobody really cares. And of course I'd rather have Espressif do it themselves.
- Fri Aug 23, 2024 9:19 am
- Forum: ESP-IDF
- Topic: Trimming building unnecessary IDF modules
- Replies: 15
- Views: 2525
Re: Trimming building unnecessary IDF modules
All of these which are handy an nice if they're facilitated by the compiler. But they're not enabling something you can't do in C (with correct programming, something many peolpe struggle with). And as said, I am a great fan of C++. It's my preference for anything not microcontroller based (when not...
- Thu Aug 22, 2024 7:47 pm
- Forum: ESP-IDF
- Topic: Trimming building unnecessary IDF modules
- Replies: 15
- Views: 2525
Re: Trimming building unnecessary IDF modules
It's not the code, agreed. But why would you want to use C++ if you can't use exceptions and stl containers? For object oriented programming you don't really need C++. And really, as soon as you start using templates, code gets duplicated. As said I really see the advantages of using C++ (including ...
- Sun Aug 18, 2024 8:44 am
- Forum: ESP-IDF
- Topic: Trimming building unnecessary IDF modules
- Replies: 15
- Views: 2525
Re: Trimming building unnecessary IDF modules
Of course I selected "-Os" everywhere.
And yes, that's what I was afraid of. No way to entirely disable C++. Don't get me wrong, I am a great fan of C++. But not on a microcontroller with limited resources. A pity they decided this way.
And yes, that's what I was afraid of. No way to entirely disable C++. Don't get me wrong, I am a great fan of C++. But not on a microcontroller with limited resources. A pity they decided this way.
- Sat Aug 17, 2024 7:05 pm
- Forum: ESP-IDF
- Topic: Trimming building unnecessary IDF modules
- Replies: 15
- Views: 2525
Re: Trimming building unnecessary IDF modules
I am aware of that. But building takes more time than necessary apparently this isn't completely true. The linker cannot always know whether a symbol is really unused. The image now is ridiculously large. On my ESP8266 I had images that did a lot more than this and it all fitted in 500 kB. I now hav...
- Sat Aug 17, 2024 4:15 pm
- Forum: ESP-IDF
- Topic: Trimming building unnecessary IDF modules
- Replies: 15
- Views: 2525
Trimming building unnecessary IDF modules
This is my CMakeLists.txt: # The following lines of boilerplate have to be in your project's # CMakeLists in this exact order for cmake to work correctly cmake_minimum_required(VERSION 3.16) include($ENV{IDF_PATH}/tools/cmake/project.cmake) set(COMPONENTS main bt esp_psram wear_levelling) project(es...