Skip to content
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

Is there a way to quickly notify a Core 0 FreeRTOS task from ulp? (IDFGH-9362) #10737

Closed
Rainbow-Cai opened this issue Feb 9, 2023 · 1 comment
Assignees
Labels
Resolution: Done Issue is done internally Status: Done Issue is done internally Type: Feature Request Feature request for IDF

Comments

@Rainbow-Cai
Copy link

Is your feature request related to a problem?

Hi @ESP-Marius Could you please gaveme some help?

Since release 5.0 of esp idf, driver/rtc_cntl.h has been moved to esp_private/rtc_cntl.h.
Does ESP IDF 5.0 offer an alternative (of rtc_isr_register()) in order to raise an ISR from ulp coprocessor and handle it in the main C program on CP0?

I tried ETS_RTC_CORE_INTR_SOURCE, but the esp_intr_alloc() call failed.
Is there a way to quickly notify a Core 0 FreeRTOS task from ulp?

I couldn’t find any definition of “RTC_CNTL_RTC_SW_CPU_INT” in the esp-idf-v5.0 folder.
Do you have an example of triggering this interrupt from ulp assembly code ?
Do you have an example of handling this interrupt in core 0 C code ?
For memory I use ESP IDF V5 framework, on a ESP32-U4WDH chip.

Describe the solution you'd like.

No response

Describe alternatives you've considered.

No response

Additional context.

No response

@Rainbow-Cai Rainbow-Cai added the Type: Feature Request Feature request for IDF label Feb 9, 2023
@espressif-bot espressif-bot added the Status: Opened Issue is new label Feb 9, 2023
@github-actions github-actions bot changed the title Is there a way to quickly notify a Core 0 FreeRTOS task from ulp? Is there a way to quickly notify a Core 0 FreeRTOS task from ulp? (IDFGH-9362) Feb 9, 2023
@ESP-Marius
Copy link
Collaborator

Hi,

On ESP32 it seems like ULP_CP_INT would be usable for this purpose. As of now there is no ULP API wrapper for this interrupt, so you still need to use rtc_isr_register.

But I agree that we should provide a wrapper for this, as ideally #include "esp_private/rtc_ctrl.h" shouldn't be used in user code.

How about changing this issue to be a generic feature request for this feature?

@espressif-bot espressif-bot added Status: Selected for Development Issue is selected for development and removed Status: Opened Issue is new labels Feb 15, 2023
@espressif-bot espressif-bot added Status: In Progress Work is in progress Resolution: NA Issue resolution is unavailable Status: Done Issue is done internally Resolution: Done Issue is done internally and removed Status: Selected for Development Issue is selected for development Status: In Progress Work is in progress Resolution: NA Issue resolution is unavailable labels Feb 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Resolution: Done Issue is done internally Status: Done Issue is done internally Type: Feature Request Feature request for IDF
Projects
None yet
Development

No branches or pull requests

4 participants