esp-idf-hal icon indicating copy to clipboard operation
esp-idf-hal copied to clipboard

ESP32-C3-FH4 How to use gpio12 - 17

Open cyhuajuan opened this issue 1 year ago • 5 comments
trafficstars

I know it's not recommended, but I need to use it.

cyhuajuan avatar Sep 15 '24 10:09 cyhuajuan

Then just use it? esp-idf-* does not differentiate between the individual c3 variants.

ivmarkov avatar Sep 15 '24 10:09 ivmarkov

Then just use it? esp-idf-* does not differentiate between the individual c3 variants.

Using PinDriver::input(peripherals.pins.gpio14) will cause an infinite reboot.

cyhuajuan avatar Sep 15 '24 10:09 cyhuajuan

Then just use it? esp-idf-* does not differentiate between the individual c3 variants.

Using PinDriver::input(peripherals.pins.gpio14) will cause an infinite reboot.

OK. Show me how you would use gpio14 with ESP IDF C calls (or unsafe calls into esp_idf_sys) and then we can think how to implement this with PinDriver.

In other words, is what you asking for even possible, with ESP IDF, let alone with its Rust wrappers?

ivmarkov avatar Sep 15 '24 12:09 ivmarkov

Then just use it? esp-idf-* does not differentiate between the individual c3 variants.

Using PinDriver::input(peripherals.pins.gpio14) will cause an infinite reboot.

OK. Show me how you would use gpio14 with ESP IDF C calls (or unsafe calls into esp_idf_sys) and then we can think how to implement this with PinDriver.

In other words, is what you asking for even possible, with ESP IDF, let alone with its Rust wrappers?

I'm also experiencing infinite reboots with esp_idf_sys. As a newcomer, I understand that the datasheet states it's not recommended. I believe there should be a way to use it, so I've raised this issue to inquire.

cyhuajuan avatar Sep 15 '24 16:09 cyhuajuan

You might have better luck asking in the Matrix channel.

ivmarkov avatar Sep 15 '24 16:09 ivmarkov