Replies: 1 comment 2 replies
-
|
missing sysbuild! |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to use the ESP32C6 ULP lp-gpio and lp-i2c ports for driving a sensor. I started modifying the INTERRUPT_LP example but it did not work. The main for the HP core was not changed but the ULP main includes a GPIO toggle at every interrupt, as follows:
#include <stdio.h>
#include "ulp_lp_core_utils.h"
#include "ulp_lp_core_interrupts.h"
#include "ulp_lp_core_gpio.h"
volatile uint32_t lp_core_pmu_intr_count, out_state = 0;
void ulp_lp_core_lp_pmu_intr_handler(void)
{
out_state ^= 0x01
ulp_lp_core_sw_intr_clear();
lp_core_pmu_intr_count++;
printf("LP PMU interrupt received: %d\n", lp_core_pmu_intr_count);
ulp_lp_core_gpio_set_level(LP_IO_NUM_5, out_state);
}
int main(void)
{
lp_core_pmu_intr_count = 0;
ulp_lp_core_intr_enable();
ulp_lp_core_sw_intr_enable(true);
}
it did not work, even if I create syntax errors in the main above, it compiles correctly, of course it did not work. Is there a guide for the ULP configuration/use?
Regards
Beta Was this translation helpful? Give feedback.
All reactions