Search found 73 matches

by pataga
Fri Feb 09, 2018 5:09 am
Forum: General Discussion
Topic: need to understand source of crash : "Cache disabled but cached memory region accessed"
Replies: 2
Views: 5647

need to understand source of crash : "Cache disabled but cached memory region accessed"

Hi, I seem to have introduced a problem in my code recently and can't figure out why. As per the trace, the panic is from the external gpio interrupt handler, but I have no idea how to resolve it ... so if anyone can explain what i'm doing wrong here, would appreciate it ! --- idf_monitor on /dev/tt...
by pataga
Mon Jan 15, 2018 1:55 pm
Forum: Report Bugs
Topic: binary semaphore doesn't work if created in task that uses it ?
Replies: 13
Views: 18837

Re: binary semaphore doesn't work if created in task that uses it ?

Please don't forget to pass 2nd BOOL* argument to xSemaphoreGiveFromISR and call portYIELD_FROM_ISR if it gets set to pdTRUE. If you don't do that, preemption will only happen on the next FreeRTOS tick. Ah ... so i was using it wrong all this time ! I found a correct example of semaphore usage, and...
by pataga
Mon Jan 15, 2018 11:16 am
Forum: Report Bugs
Topic: binary semaphore doesn't work if created in task that uses it ?
Replies: 13
Views: 18837

Re: binary semaphore doesn't work if created in task that uses it ?

Do you get the same weird behaviour if you pin the task to CPU 0 instead of 1? OK, this is even stranger. If I pin the task to cpu 0, then the notification doesn't work correctly whether I create the semaphore and register the handler in app_main or in the task initialization code. In both cases, I...
by pataga
Mon Jan 15, 2018 5:21 am
Forum: Report Bugs
Topic: binary semaphore doesn't work if created in task that uses it ?
Replies: 13
Views: 18837

binary semaphore doesn't work if created in task that uses it ?

I am using a binary semaphore given from an isr that notifies a task to read new data from a device. The device generates data ready interrupts at approximately 400Hz, so the task should be also getting notifications from the semaphore at the same rate. If i create the global semaphore in the task t...
by pataga
Mon Nov 20, 2017 1:05 pm
Forum: ESP-IDF
Topic: mismatch vTaskDelay and cycle count using XTHAL_GET_CCOUNT() ?
Replies: 4
Views: 7694

Re: mismatch vTaskDelay and cycle count using XTHAL_GET_CCOUNT() ?

OK ESP_Sprite, thanks for the explanation.
by pataga
Mon Nov 20, 2017 10:53 am
Forum: ESP-IDF
Topic: mismatch vTaskDelay and cycle count using XTHAL_GET_CCOUNT() ?
Replies: 4
Views: 7694

mismatch vTaskDelay and cycle count using XTHAL_GET_CCOUNT() ?

I just ran some test code to find out how much time elapsed after a call to vTaskDelay using the XTHAL_GET_CCOUNT() macro and am confused by the result. FreeRTOS tickrate set to 250, CPU clock frequency set to 80MHZ in 'make menuconfig' #include "common.h" #include "xtensa/core-macros.h" #include "c...
by pataga
Sun Nov 19, 2017 6:46 am
Forum: General Discussion
Topic: vTaskDelayUntil hangs
Replies: 11
Views: 16157

Re: vTaskDelayUntil hangs

I built my code with the latest esp-idf (Nov 19) and the problem went away. Thanks Gfast2. Sorry for the false alarm.
by pataga
Sat Nov 18, 2017 5:41 am
Forum: General Discussion
Topic: vTaskDelayUntil hangs
Replies: 11
Views: 16157

Re: vTaskDelayUntil hangs

I'm also having trouble with this function. I set the FreeRTOS tick rate to 250 in 'make menuconfig', and called vTaskDelayUntil with a period of 4mS. Resulted in a panic/reboot. vTaskDelay works, but it doesn't give me the uniform sampling period that i need. This is with an esp-idf downloaded on O...
by pataga
Sun Nov 12, 2017 6:34 am
Forum: General Discussion
Topic: How to Visually Tell New from Old Silicon?
Replies: 19
Views: 39929

Re: How to Visually Tell New from Old Silicon?

I purchased a WROOM32 module a month ago after reading some reviews from buyers that mentioned they had received a rev 1 chip. Looking for code to check the revision, I found Arduino code on instructables (and the same in a youtube video series on the ESP32) http://www.instructables.com/id/How-to-Ch...