Search found 16 matches

by Derf Jagged
Sat Mar 13, 2021 9:14 pm
Forum: ESP-IDF
Topic: Is there a way to disable FreeRTOS ticks on one core?
Replies: 9
Views: 9615

Re: Is there a way to disable FreeRTOS ticks on one core?

Derf jagged I've got the same requirement to allocate one core to a continuously looping task. Please could you share the code you used to create the critical task and lock it to a CPU Many thanks Sorry for the extremely late reply, I just dug this up in my open tabs. Hopefully this might help you ...
by Derf Jagged
Thu Jan 14, 2021 8:13 pm
Forum: ESP-IDF
Topic: Bluetooth HID Host Getting Duplicate Events and Extra Event
Replies: 3
Views: 4231

Re: Bluetooth HID Host Getting Duplicate Events and Extra Event

Thanks for the reply. Looking through the pages you linked (and some pages linked there), the regular wireless protocol is a bit different from the Bluetooth one; the Bluetooth one doesn't have a counter for instance and the duplicate events may be Bluetooth only. The esp_hid_host sample filters out...
by Derf Jagged
Fri Jan 08, 2021 2:49 am
Forum: ESP-IDF
Topic: Bluetooth HID Host Getting Duplicate Events and Extra Event
Replies: 3
Views: 4231

Re: Bluetooth HID Host Getting Duplicate Events and Extra Event

Still haven't found a solution for this.
by Derf Jagged
Sun Jan 03, 2021 11:42 pm
Forum: ESP-IDF
Topic: Bluetooth HID Host Getting Duplicate Events and Extra Event
Replies: 3
Views: 4231

Bluetooth HID Host Getting Duplicate Events and Extra Event

Hello! I have connected my Xbox One S controller to the ESP32 via Bluetooth and can see and parse button press and release events. However, it looks like every time I press a button on the controller, it fires three events instead of just one, and occasionally one of the three events is completely d...
by Derf Jagged
Wed Oct 14, 2020 2:29 am
Forum: ESP-IDF
Topic: Is there a way to disable FreeRTOS ticks on one core?
Replies: 9
Views: 9615

Re: Is there a way to disable FreeRTOS ticks on one core?

In the end, after experimenting a lot with vTaskEndScheduler() and others, I found that just spawning my critical task on cpu1 and calling portENTER_CRITICAL() at the start worked so long as I turned off the Task Watchdog for cpu1. Works great, I can do GPIO manipulation in an infinite loop.
by Derf Jagged
Thu Oct 08, 2020 1:22 pm
Forum: ESP-IDF
Topic: Is there a way to disable FreeRTOS ticks on one core?
Replies: 9
Views: 9615

Re: Is there a way to disable FreeRTOS ticks on one core?

ESP_Sprite wrote:
Wed Oct 07, 2020 2:33 pm
(snip)
While I look into that, do you know any of the answers for the questions in the first post? It's so close to working perfectly!
by Derf Jagged
Wed Oct 07, 2020 2:56 pm
Forum: ESP-IDF
Topic: Is there a way to disable FreeRTOS ticks on one core?
Replies: 9
Views: 9615

Re: Is there a way to disable FreeRTOS ticks on one core?

You can possibly adjust the I2S parallel (LCD) mode to do that. There's no real driver in ESP-IDF for that though, although there are a fair few projects that use that mode out there. In general, what are you trying to do; what are you writing to? Hmm, I'll look into that.. My project is emulating ...
by Derf Jagged
Wed Oct 07, 2020 1:20 pm
Forum: ESP-IDF
Topic: Is there a way to disable FreeRTOS ticks on one core?
Replies: 9
Views: 9615

Re: Is there a way to disable FreeRTOS ticks on one core?

General advice: Don't bitbang GPIOs on the ESP32. The FreeRTOS tick timer isn't the only thing leading to jitter there: shared buses, RPC calls because of flashing etc, they can all influence timing. Rather, try to see if there's a hardware device that can generate the signal you need. For instance...
by Derf Jagged
Wed Oct 07, 2020 2:21 am
Forum: ESP-IDF
Topic: Is there a way to disable FreeRTOS ticks on one core?
Replies: 9
Views: 9615

Is there a way to disable FreeRTOS ticks on one core?

I have a task running on the second core that flips GPIOs on and off and takes between 900ns and 1500ns about 4 times per second. Unfortunately, the FreeRTOS scheduler preempts this task every 1ms and causes a large delay and making it take too long. Is there a way that I can either: - Disable the F...
by Derf Jagged
Mon Jul 27, 2020 1:38 pm
Forum: General Discussion
Topic: Turning off interrupts on core 1
Replies: 13
Views: 20128

Re: Turning off interrupts on core 1

Well, after some hours during last days studying, setting up esp-idf and using code from Mr. Weber Github repo, It seems that it works. It starts core 0 normally, and set a task to run only on core 1, it ius running an endless testing loop that does a frequency sweep on a GPIO out, I wired it up to...