Search found 111 matches

by eriksl
Fri Sep 06, 2024 6:58 pm
Forum: ESP-IDF
Topic: Selecting "partition.csv" filename in sdkconfig depending on sdkconfig config option
Replies: 0
Views: 326

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...
by eriksl
Fri Aug 23, 2024 11:14 am
Forum: ESP-IDF
Topic: Trimming building unnecessary IDF modules
Replies: 15
Views: 2220

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...
by eriksl
Fri Aug 23, 2024 10:10 am
Forum: ESP-IDF
Topic: Trimming building unnecessary IDF modules
Replies: 15
Views: 2220

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...
by eriksl
Fri Aug 23, 2024 9:43 am
Forum: ESP-IDF
Topic: Trimming building unnecessary IDF modules
Replies: 15
Views: 2220

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.
by eriksl
Fri Aug 23, 2024 9:19 am
Forum: ESP-IDF
Topic: Trimming building unnecessary IDF modules
Replies: 15
Views: 2220

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...
by eriksl
Thu Aug 22, 2024 7:47 pm
Forum: ESP-IDF
Topic: Trimming building unnecessary IDF modules
Replies: 15
Views: 2220

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 ...
by eriksl
Sun Aug 18, 2024 8:44 am
Forum: ESP-IDF
Topic: Trimming building unnecessary IDF modules
Replies: 15
Views: 2220

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.
by eriksl
Sat Aug 17, 2024 7:05 pm
Forum: ESP-IDF
Topic: Trimming building unnecessary IDF modules
Replies: 15
Views: 2220

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...
by eriksl
Sat Aug 17, 2024 4:15 pm
Forum: ESP-IDF
Topic: Trimming building unnecessary IDF modules
Replies: 15
Views: 2220

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...
by eriksl
Fri Aug 16, 2024 10:43 am
Forum: General Discussion
Topic: SigmaDelta (PDM) maximum frequency ESP-S3
Replies: 7
Views: 1108

Re: SigmaDelta (PDM) maximum frequency ESP-S3

I intend to do so, indeed. Knowing whether it all was worth the while ;)