ESPels
ESPels copied to clipboard
Migrate to ESP_IDF
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.
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.
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.
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.