Cool that no one from espressif responded you.
I also have the same doubt.
Search found 468 matches
- Mon Nov 18, 2024 10:35 pm
- Forum: General Discussion
- Topic: Application configuration file
- Replies: 2
- Views: 1830
- Tue Nov 12, 2024 1:46 am
- Forum: ESP-IDF
- Topic: Crash at "mcpwm_soft_sync_activate()" function inside mcpwm isr capture callback
- Replies: 1
- Views: 278
Re: Crash at "mcpwm_soft_sync_activate()" function inside mcpwm isr capture callback
Solved, the handle was null.
it was just initializing the capture timer last.
it was just initializing the capture timer last.
- Tue Nov 12, 2024 1:01 am
- Forum: ESP-IDF
- Topic: Crash at "mcpwm_soft_sync_activate()" function inside mcpwm isr capture callback
- Replies: 1
- Views: 278
Crash at "mcpwm_soft_sync_activate()" function inside mcpwm isr capture callback
Hi, I can't call this function( mcpwm_soft_sync_activate(soft_sync_source); ) within the mcpwm capture callback ? I'm following this example: https://github.com/espressif/esp-idf/blob/v5.3.1/examples/peripherals/mcpwm/mcpwm_sync/main/mcpwm_sync_example_main.c static mcpwm_sync_handle_t soft_sync_sou...
- Fri Nov 08, 2024 1:50 am
- Forum: ESP-IDF
- Topic: GP_timer not working properly
- Replies: 22
- Views: 4178
Re: GP_timer not working properly
@MicroController,
Do you think that mcpwm can work ?
Can i generate "one shot" like signals with mcpwm ?
The capture module already is working.
If the mcpwm signals is not generated by hardware, i think i will need to increase the isr priority of mcpwm above 3 too.
Thank's.
Do you think that mcpwm can work ?
Can i generate "one shot" like signals with mcpwm ?
The capture module already is working.
If the mcpwm signals is not generated by hardware, i think i will need to increase the isr priority of mcpwm above 3 too.
Thank's.
- Fri Oct 25, 2024 10:04 pm
- Forum: ESP-IDF
- Topic: GP_timer not working properly
- Replies: 22
- Views: 4178
Re: GP_timer not working properly
Not sure what your video shows. Are you seeing pulses of 5ms+ being generated where they should be ~100us? I think this shouldn't happen. Looks like something may be blocking interrupts for an abnormally long time, milliseconds instead of microseconds. - Or there's another bug in your pulse-generat...
- Fri Oct 25, 2024 5:27 pm
- Forum: ESP-IDF
- Topic: GP_timer not working properly
- Replies: 22
- Views: 4178
Re: GP_timer not working properly
Thank's.
- Fri Oct 25, 2024 5:01 pm
- Forum: ESP-IDF
- Topic: GP_timer not working properly
- Replies: 22
- Views: 4178
Re: GP_timer not working properly
I need that the rising edge interrupt and gptimer interrupt have the high highest isr priority within the system Interrupt priority is almost never the problem or solution in these cases. I'm thinking I'll have to use some hardware module to do this, maybe mcpwm or rmt or whatever. I need to contro...
- Fri Oct 25, 2024 2:45 am
- Forum: ESP-IDF
- Topic: GP_timer not working properly
- Replies: 22
- Views: 4178
Re: GP_timer not working properly
As per the docs gptimer_set_alarm_action() is not allowed to be used in an ISR. How about initially (once) setting up the alarm to some high value, like 1000000, and then only adjust the count value appropriately? Like static const uint32_t ALARM_VALUE = 1000000; static void isr() { ... gp_timer_st...
- Wed Oct 23, 2024 10:02 pm
- Forum: ESP-IDF
- Topic: GP_timer not working properly
- Replies: 22
- Views: 4178
- Wed Oct 23, 2024 7:37 pm
- Forum: ESP-IDF
- Topic: GP_timer not working properly
- Replies: 22
- Views: 4178