Search found 41 matches
- 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: 8122
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...
- 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: 8122
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...
- 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: 8122
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...
- Mon Nov 20, 2017 1:05 pm
- Forum: ESP-IDF
- Topic: mismatch vTaskDelay and cycle count using XTHAL_GET_CCOUNT() ?
- Replies: 4
- Views: 3498
Re: mismatch vTaskDelay and cycle count using XTHAL_GET_CCOUNT() ?
OK ESP_Sprite, thanks for the explanation.
- Mon Nov 20, 2017 10:53 am
- Forum: ESP-IDF
- Topic: mismatch vTaskDelay and cycle count using XTHAL_GET_CCOUNT() ?
- Replies: 4
- Views: 3498
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...
- Sun Nov 19, 2017 6:46 am
- Forum: General Discussion
- Topic: vTaskDelayUntil hangs
- Replies: 11
- Views: 7401
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.
- Sat Nov 18, 2017 5:41 am
- Forum: General Discussion
- Topic: vTaskDelayUntil hangs
- Replies: 11
- Views: 7401
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...
- Sun Nov 12, 2017 6:34 am
- Forum: General Discussion
- Topic: How to Visually Tell New from Old Silicon?
- Replies: 19
- Views: 21751
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...
- Sun Oct 15, 2017 11:27 am
- Forum: ESP-IDF
- Topic: i2s parallel interface to monochrome lcd with 4bit data bus
- Replies: 16
- Views: 12032
Re: i2s parallel interface to monochrome lcd with 4bit data bus
As promised, esp-idf project published on github at https://github.com/har-in-air/ESP32-LCD-I2S
I used a modified version of Chuck Lohr's 3d graphics code to demonstrate the application.
I used a modified version of Chuck Lohr's 3d graphics code to demonstrate the application.
- Fri Oct 13, 2017 7:30 am
- Forum: ESP-IDF
- Topic: i2s parallel interface to monochrome lcd with 4bit data bus
- Replies: 16
- Views: 12032
Re: i2s parallel interface to monochrome lcd with 4bit data bus
Hacked a solution ! I eventually figured that the data packets during which the HS pulse was high were ignored by the LCD, since the HS pulse was a full clock period in width. I ended up padding each row at the end with 4 extra packets (32 bits) with HS high, and it works ! BTW, I had another proble...