Search found 468 matches

by Baldhead
Mon Nov 18, 2024 10:35 pm
Forum: General Discussion
Topic: Application configuration file
Replies: 2
Views: 1830

Re: Application configuration file

Cool that no one from espressif responded you.

I also have the same doubt.
by Baldhead
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.
by Baldhead
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...
by Baldhead
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.
by Baldhead
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...
by Baldhead
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

by Baldhead
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...
by Baldhead
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...
by Baldhead
Wed Oct 23, 2024 7:37 pm
Forum: ESP-IDF
Topic: GP_timer not working properly
Replies: 22
Views: 4178

Re: GP_timer not working properly

Baldhead wrote:
Wed Oct 23, 2024 7:04 pm
@MicroController,

There is some order to set gptimer_set_alarm_action inside isr ?

I need do disable or stop the timer first ?

And then reenable or start the timer.

Thank's.
I tried here, but without success.