ESPels icon indicating copy to clipboard operation
ESPels copied to clipboard

Migrate to ESP_IDF

Open digiexchris opened this issue 2 years ago • 3 comments

In order to ease debugging and warning of unexpected behaviour, I think turning these on in the sdkconfig will help.

Heap Poisoning Stack Smashing Protection Mode UBSAN should help too with extra compile time checks and is probably generally useful for preventing bugs including divide by zero bugs. https://docs.espressif.com/projects/esp-idf/en/latest/esp32c3/api-guides/fatal-errors.html

There is performance implications for these, but might not be much. We can always turn them off for a full release.

digiexchris avatar Mar 07 '23 20:03 digiexchris

platform IO in the current setup does not provide access to sdkconfig, however you can run arduino as an IDF component and perhaps we should switch to esp-idf with most things setup as an arduino component. This also would get us access to task stats and some other RTOS goodies.

jschoch avatar Mar 08 '23 17:03 jschoch

yeah it seems it's not a pio problem, it's the arduino framework problem. Yes I'd like esp-idf instead. I've used the arduino component in an Espressif project and it works well.

The other upside is then you can use any ide or toolchain you want, since it's just cmake. It's not bound to pio.

digiexchris avatar Mar 08 '23 17:03 digiexchris

renaming this, espressif and platformIO seem to have ended partnership and there is no offical support for IDF 5.0.1+

Also, RMT api used is depricated and needs to be updated but platformio does not yet support the new API.

jschoch avatar Jan 16 '24 13:01 jschoch