-
Notifications
You must be signed in to change notification settings - Fork 7k
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
Allow the ESP32-C6 to read lp_timer values (IDFGH-12036) #13101
Comments
Hello @txf- , Which target and version of IDF are you using? |
Target? I'm currently using v5.2-beta2-190-g4ecc978bd6, but it is also like that in master. |
@txf- I mean which ESP32 SoC are you using? ESP32-S3, ESP32-C6, ...? In fact, not all targets have the LP timer that you saw defined in the |
@o-marshmallow I'm using the C6, sorry. I thought you were asking for something else given the title. These functions and source files I mention only pertain to the lpcore on the C6. I hope I'm being exact in terms of nomenclature. The FSM ulp is only found in ESP32-Sx, the RISCV ulp is found in other devices like the C3 or S3. Finally, the LP core which is currently only in the C6. |
@txf- My bad, indeed the title contains it, how could I miss it 😄 I opened an internal MR to make this LP timer function public. A bit more info about the low power cores:
|
Is your feature request related to a problem?
I need to measure time deltas on the lp_core.
Describe the solution you'd like.
I believe the lp_timer is accessible, and there are functions already written for the lp_core to access this value, but they're not currently exposed in the headers.
Describe alternatives you've considered.
something like this presumably works:
But surely there is no reason why one couldn't use a proper timer, I don't know how inaccurate this method is. It would also be helpful to keep running between wakeup cycles.
Additional context.
I noticed that in ulp_lp_core_lp_timer_shared.c
there is this:
but it is currently static and is not found in the header file. Is there a reason this function is not exposed? It is being called any time one sets ulp_lp_core_lp_timer_set_wakeup_time()
The text was updated successfully, but these errors were encountered: