-
Notifications
You must be signed in to change notification settings - Fork 221
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ESP32: Some pins are not properly configured #594
Comments
Even with ESP-IDF (e.g. with a changed i2c_simple_main.c example) I don't get I2C to work on these pins without external pull-ups |
This even fails for simple gpio input with pull up (at least with #![no_std]
#![no_main]
use esp_backtrace as _;
use esp_println::println;
use hal::{clock::ClockControl, peripherals::Peripherals, prelude::*, Delay, IO};
#[entry]
fn main() -> ! {
let peripherals = Peripherals::take();
let system = peripherals.SYSTEM.split();
let clocks = ClockControl::max(system.clock_control).freeze();
let io = IO::new(peripherals.GPIO, peripherals.IO_MUX);
let input = io.pins.gpio33.into_pull_up_input();
let mut delay = Delay::new(&clocks);
loop {
println!("wait for high...");
while input.is_low().unwrap() {
delay.delay_ms(10u32);
}
println!("wait for low...");
while input.is_high().unwrap() {
delay.delay_ms(10u32);
}
}
} |
I found that for |
PR added #1053 |
Closed by #1053 |
See errata 3.6, we currently have a fix for this (
esp-hal/esp-hal-common/src/soc/esp32/gpio.rs
Lines 575 to 658 in f315d2b
The text was updated successfully, but these errors were encountered: