Search found 47 matches
- Tue Aug 28, 2018 3:16 am
- Forum: ESP-IDF
- Topic: My long path to configuring the RMT and PCNT to share GPIO
- Replies: 14
- Views: 21908
Re: My long path to configuring the RMT and PCNT to share GPIO
Hello Paul Nothing I did was to improve throughput. I was using the RMT and PCNT send pulses to a stepper motor and to count those pulses. And I wanted the RMT and PCNT to share GPIO. I did not want to have to utilize two GPIO for the RMT and two GPIO for the PCNT, jumping the IO together, when I su...
- Mon Apr 23, 2018 5:00 pm
- Forum: General Discussion
- Topic: [Q] pp 1 in the log and xTaskCreatePinnedToCore opposite to xTaskCreate
- Replies: 3
- Views: 8160
Re: [Q] pp 1 in the log and xTaskCreatePinnedToCore opposite to xTaskCreate
@ESP_Sprite
Should we still default to pinning to core?
Should we still default to pinning to core?
- Fri Apr 13, 2018 10:10 pm
- Forum: ESP-IDF
- Topic: vTaskDelay hangs
- Replies: 6
- Views: 10027
Re: vTaskDelay hangs
Thanks for the help, guys. Looks like I need to do some study.
How do I do this - "make sure that you have enabled watchdogs to report on stalled tasks"?
How do I do this - "make sure that you have enabled watchdogs to report on stalled tasks"?
- Fri Apr 13, 2018 5:09 pm
- Forum: ESP-IDF
- Topic: vTaskDelay hangs
- Replies: 6
- Views: 10027
Re: vTaskDelay hangs
Thanks for your help, kolban. There are several tasks in my program. Here is a jpg image describing my task architecture. StepperTaskArchitecture.jpg The abs_stepper_run function is called in the run_steppers task. When I comment out the abs_stepper_run calls, the code works normally - all the messa...
- Fri Apr 13, 2018 3:35 am
- Forum: ESP-IDF
- Topic: vTaskDelay hangs
- Replies: 6
- Views: 10027
vTaskDelay hangs
Here is one of the functions I use to test some stepper drivers: abs_stepper_run(STEPPER_0, 10, 45, 8); ESP_LOGE(STEPPER_TAG, "1st command sent"); vTaskDelay(1000 / portTICK_PERIOD_MS); ESP_LOGE(STEPPER_TAG, "1st delay done"); abs_stepper_run(STEPPER_0, 10, -45, 8); ESP_LOGE(STEPPER_TAG, "2nd comman...
- Fri Apr 06, 2018 10:22 pm
- Forum: ESP-IDF
- Topic: How change PCNT threshold value?
- Replies: 9
- Views: 16486
Re: How change PCNT threshold value?
Thanks for looking into this. This behavior will make it harder to properly control the PCNT.
Is it possible to fix it so you don't have to reset the counter to update the threshold values? I'm guessing this is not in the IDF but rather at a lower level? And doesn't that mean it will be hard to fix?
Is it possible to fix it so you don't have to reset the counter to update the threshold values? I'm guessing this is not in the IDF but rather at a lower level? And doesn't that mean it will be hard to fix?
- Thu Apr 05, 2018 2:19 pm
- Forum: ESP-IDF
- Topic: How change PCNT threshold value?
- Replies: 9
- Views: 16486
Re: How change PCNT threshold value?
I modified the program a bit by removing the task and causing the PCNT threshold to change on the main thread. Now I am getting the same result I see in my program....the change in the threshold is ignored. I'm guessing that trying to change a threshold in another thread is what causes the crash. He...
- Thu Apr 05, 2018 2:29 am
- Forum: ESP-IDF
- Topic: How change PCNT threshold value?
- Replies: 9
- Views: 16486
Re: How change PCNT threshold value?
Here you go... /* Pulse counter module - Example For other examples please check: https://github.com/espressif/esp-idf/tree/master/examples This example code is in the Public Domain (or CC0 licensed, at your option.) Unless required by applicable law or agreed to in writing, this software is distrib...
- Thu Apr 05, 2018 2:00 am
- Forum: ESP-IDF
- Topic: How change PCNT threshold value?
- Replies: 9
- Views: 16486
How change PCNT threshold value?
I need to sometimes change the value for PCNT_EVT_THRES_0. I initially set it when I configure the PCNT and if I try to change it anywhere else in my program I get this crash.... Guru Meditation Error: Core 0 panic'ed (IllegalInstruction) . Exception was unhandled. Core 0 register dump: PC : 0x400d2...
- Thu Apr 05, 2018 1:50 am
- Forum: General Discussion
- Topic: What is the best environment to work with ESP32 projects
- Replies: 5
- Views: 27450
Re: What is the best environment to work with ESP32 projects
I use MacOS with Eclipse. I only develop using the ESP IDF, not Arduino. This works very well for me. Eclipse is a nice environment. Much better than Arduino.
Someday I need to figure out how to use JTAG. I'm weary of inserting print statements.
Someday I need to figure out how to use JTAG. I'm weary of inserting print statements.