-
Notifications
You must be signed in to change notification settings - Fork 170
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
ESP32C3 unmapped GPIOs #8
Comments
https://docs.espressif.com/projects/esp-idf/en/latest/esp32c3/api-reference/peripherals/gpio.html |
I have some changes that I'll be PRing soon making a few small small corrections in the GPIO module. During my time digging through the various datasheets, I realized that all of the chips have a range of GPIO with the same recommendation made: "The pins used for embedded flash are not recommended for other uses.". I have listed the applicable pins below:
* When using Octal Flash and/or Octal PSRAM Presently these pins are unmapped when using the ESP32-C3, but for the remaining chips some or all of these pins are mapped. So my question is, do we want to:
There also seem to be a number of unmapped GPIOs already for the ESP32, ESP32-S2, and ESP32-S3. I have not been able to find much information on why these are presently unmapped. Is there a specific reference which was used for these, or can they be added in as well? |
I've just used a few sample boards as a reference without digging into the ESP32 data sheets These pins were unmapped for that boards. Given that modeling specific board layouts is not realistic, we should just map all of these missing pins. Now, regarding what to do with the pins used for flash, I guess either (1) or (2), but definitely not (3). I have a preference for (1) because if somebody wants to use those, I guess we should allow that, despite the strings attached? |
Sounds good, I will add all pins covered in the Pin Description sections of each datasheet.
I tend to agree, I don't feel it's our responsibility to hold people's hands too much. Breaking rules is fun sometimes :) I have added comments in the source indicating the recommendations, and will add a note in the README as well. At least we'll have mentioned it. |
https://github.com/esp-rs/esp-idf-hal/blob/fb2c9f7657a302600494c44fc1c1073f62c49248/src/gpio.rs#L909..L924
Here the GPIOs 11-17 for the ESP32C3 are unmapped. Is this intentional?
The text was updated successfully, but these errors were encountered: