GPIO remapping issue (peripheral doesnt work on certain pins)

newsettler_AI
Posts: 121
Joined: Wed Apr 05, 2017 12:49 pm

GPIO remapping issue (peripheral doesnt work on certain pins)

Postby newsettler_AI » Thu Sep 07, 2017 8:21 am

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.

ESP_Sprite
Posts: 9761
Joined: Thu Nov 26, 2015 4:08 am

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

Postby ESP_Sprite » Thu Sep 07, 2017 10:25 am

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.

Who is online

Users browsing this forum: Bing [Bot] and 111 guests