-
Not sure if this is a real zephyr issue, a hardware issue with my cheapo board, or a simple PEBKAC, so posting a discussion. The board is very similar to the
The red LED (which is configured as open-drain, one side connected to VCC) turns on, but does not blink. There is a second open-drain GPIO on this board, which supplies the camera (via a P-FET), and it would appear that the camera supply also will not turn on (I see no voltage on pin 10 of the camera connector when I try to turn it on, and all i2c requests result in Error -14 -EFAULT). (I am using zephyr-v3.5.0-1182-g26002b060708 i.e. 'main' as of a few days ago) |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
I think you need to set extra flag as (GPIO_OUTPUT | GPIO_OPEN_DRAIN) when setup the pin by this function Also please refer to underly driver function gpio_esp32_config in gpio_esp32.c for more information. |
Beta Was this translation helpful? Give feedback.
-
After I take a look at gpio_esp32.c (gpio_esp32_config)
Let's see if you change BIT(pin) -> BIT64(pin) instead. Sorry, after checking with reference manual you should define GPIO33 as &gpio1 1 instead. |
Beta Was this translation helpful? Give feedback.
After I take a look at gpio_esp32.c (gpio_esp32_config)
May be the problem come from which only can check up to (0 ~ 31)
Let's see if you change BIT(pin) -> BIT64(pin) instead.
Sorry, after checking with reference manual you should define GPIO33 as &gpio1 1 instead.