Error: 'GPIO_PIN_MUX_REG' was not declared in this scope

Hi. I recently upgraded ESP32 boards from IDF 4 to IDF 5. Using GPIO_PIN_MUX_REG was OK back then, but IDF 5 doesn't want to know anything about it. Does anyone know something about this?

You might be better off asking about this on an Espressif forum as it appears to relate to the ESP-IDF compiler

I note from ESP-IDF Release v5.0 Is a Major Update | Espressif Systems

Release v5.0 is mostly compatible with apps written for ESP-IDF v4.x, but there are some breaking changes and removal of deprecated functionality, which will require some code changes when updating projects.

Thank you. I have searched about it for a few days and now I have just found (and tested) the solution here: ESP-IDF 5.x · Issue #5 · junkfix/esp32-ds18b20 · GitHub. Basically, you have to #include "soc/gpio_periph.h".

I am glad that you found a solution

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.