From 6d3bd3a48ed0835aeb92c09d156fd5c0c72697e6 Mon Sep 17 00:00:00 2001 From: SalimTerryLi Date: Wed, 14 Jul 2021 15:44:29 +0800 Subject: [PATCH] bugfix by disabling IRAM attr on ISR --- examples/peripherals/wave_gen/main/wave_gen_example_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/peripherals/wave_gen/main/wave_gen_example_main.c b/examples/peripherals/wave_gen/main/wave_gen_example_main.c index 9cead7cc2d..0511b04e6c 100644 --- a/examples/peripherals/wave_gen/main/wave_gen_example_main.c +++ b/examples/peripherals/wave_gen/main/wave_gen_example_main.c @@ -82,7 +82,7 @@ static void example_timer_init(int timer_idx, bool auto_reload) ret = timer_enable_intr(TIMER_GROUP_0, TIMER_0); ESP_ERROR_CHECK(ret); /* Register an ISR handler */ - timer_isr_register(TIMER_GROUP_0, timer_idx, timer0_ISR, (void *)raw_val, ESP_INTR_FLAG_IRAM, NULL); + timer_isr_register(TIMER_GROUP_0, timer_idx, timer0_ISR, (void *)raw_val, 0, NULL); } static void prepare_data(int pnt_num)