Page 1 of 1

GPIO remapping issue (peripheral doesnt work on certain pins)

Posted: Thu Sep 07, 2017 8:21 am
by newsettler_AI
Hi,

I have issue with GPIO pins remapping.

I tried official idf example of i2c peripheral on ESP32 DevKit:
https://github.com/espressif/esp-idf/tr ... herals/i2c

It works fine, but when I tried to change to another GPIO pin

(i.e:
in this section

Code: Select all

#define I2C_EXAMPLE_MASTER_SCL_IO    19    /*!< gpio number for I2C master clock */
#define I2C_EXAMPLE_MASTER_SDA_IO    18    /*!< gpio number for I2C master data  */
I changed
19 to 35
)

I got next message on terminal window:
"i2c: E:/Projects/ESP32/esp-idf/components/driver/i2c.c:610 (i2c_set_pin):scl gpio number error[0m".

I noticed this problem at IO_pins 34, 35 (IO 12,13 also wouldnt work with i2c for some reason, nothing appear at log).
Please advice.

Re: GPIO remapping issue (peripheral doesnt work on certain pins)

Posted: Thu Sep 07, 2017 10:25 am
by ESP_Sprite
No idea why 12, 13 don't work (maybe a hw issue in your setup?) but 34 and 35 do not work because those pins do not have output drivers. See the datasheet/TRM for more information.