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, PCNT cannot be used due to linking problem #6489
Comments
Why is pcnt.h present in the c3 core then? is there another way, for example with ledc or timer capture? |
is there a way to do it with an RMT RX channel? my need is to count pulses occuring between fixed intervals. Pulses frequency is 1 to 4MHz. I will count at 100ms interval at first. If the RMT does not allow this maybe it can trig an interrupt after a defined number of pulses? |
Indeed there is no PCNT in the ESP32-C3. There are also no LCD and Camera interfaces. Our documentation team is now aware of this issue and will fix the diagram in the next version of the datasheet. Regarding the RMT — yes, you can do this. RMT works by recording time intervals between low and high values in a memory buffer. So you can't exactly count for 100ms, you can count up to a certain number of low/high transitions. Please check the ESP32 technical reference manual and https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-reference/peripherals/rmt.html#receive-data and see if RMT can meet your requirements. |
Hello, can I consider this as solved @0x0fe? |
Closing as expired, if needed please reopen the issue. |
Board
ESP32-C3 dev module
Device Description
dna
Hardware Configuration
dna
Version
latest master
IDE Name
arduino IDE
Operating System
windows 10
Flash frequency
80M
PSRAM enabled
no
Upload speed
CDC
Description
I append to need the PCNT peripheral for an application where a very high number of pulse, at high rate has to be achieved, this cannot be done by interrupt of other means. When trying to compile anything using PCNT functions on C3, the linking fails, if i select another target such as esp32s2 or the legacy esp32 no problem.
The sketch below does not include everything required to use PCNT, it only calls a function from PCNT which should not lead to any failure compilation, on ESP32C it fails to compile, on other cores it compiles fine.
Sketch
Debug Message
Other Steps to Reproduce
No response
I have checked existing issues, online documentation and the Troubleshooting Guide
The text was updated successfully, but these errors were encountered: