Search found 184 matches

by ESP_Dazz
Wed Dec 12, 2018 7:47 am
Forum: Report Bugs
Topic: vTaskDelay
Replies: 18
Views: 9028

Re: vTaskDelay

Hi davdav, The easiest way to track down which task(s) are calling SPI flash functions would be to add an assert(0); at the first line of spi_flash_op_block_func() and spi_flash_disable_interrupts_caches_and_other_cpu() . This should cause a back trace to be printed when either functions are called....
by ESP_Dazz
Wed Dec 05, 2018 2:29 pm
Forum: Report Bugs
Topic: vTaskDelay
Replies: 18
Views: 9028

Re: vTaskDelay

Hi @davdav I'm looking at the core dump output and I see the following. #0 0x400838bc in spi_flash_op_block_func (arg=0x0) at C:/msys32/home/Davide/esp/esp-idf/components/spi_flash/cache_utils.c:82 #1 0x40081cb0 in ipc_task (arg=<optimized out>) at C:/msys32/home/Davide/esp/esp-idf/components/esp32/...
by ESP_Dazz
Mon Nov 26, 2018 1:03 pm
Forum: Report Bugs
Topic: vTaskDelay
Replies: 18
Views: 9028

Re: vTaskDelay

Hi @davdav I don't source of the problem is due to the delay duration or the number of tasks. If your application doesn't call vTaskSuspendAll() , I see two possibilities that can cause this issue. 1) Bug with IDF functions that internally call vTaskSuspendAll() The assert in vTaskDelay() checks to ...
by ESP_Dazz
Fri Nov 23, 2018 8:24 am
Forum: Report Bugs
Topic: vTaskDelay
Replies: 18
Views: 9028

Re: vTaskDelay

Generally, scheduler suspension is supposed to guarantee that a task on a particular core runs without being preempted. And because preemption is not disabled, FreeRTOS prohibits any blocking function from being called within that whilst the scheduler is suspended (i.e. Task delays or Queue send/rec...
by ESP_Dazz
Mon Nov 19, 2018 1:28 pm
Forum: General Discussion
Topic: (xQueueGenericReceive)- assert failed!
Replies: 6
Views: 3577

Re: (xQueueGenericReceive)- assert failed!

The only places where the scheduler currently gets suspended are in FreeRTOS timers/event groups and SPI Flash. Since NVS uses SPI Flash, I suspect this may be the source of the problem. Could you provide the following: - Log output with backtrace - Description of what each task was doing, and their...
by ESP_Dazz
Mon Nov 19, 2018 10:42 am
Forum: General Discussion
Topic: (xQueueGenericReceive)- assert failed!
Replies: 6
Views: 3577

Re: (xQueueGenericReceive)- assert failed!

Assert checks to see if the scheduler is suspended.

Code: Select all

configASSERT( !( ( xTaskGetSchedulerState() == taskSCHEDULER_SUSPENDED ) && ( xTicksToWait != 0 ) ) );
Do any of your tasks suspend the scheduler by calling vTaskSuspendAll()?
by ESP_Dazz
Thu Nov 15, 2018 1:48 am
Forum: Hardware
Topic: ESP32-SOLO-1 ADC clarification
Replies: 7
Views: 2614

Re: ESP32-SOLO-1 ADC clarification

This is very disorganized especially now that major distributors are stocking modules. There has to be something like "##% of TYPE modules produced after ##/#### have VREF calibration, ...". I'm afraid date codes are only applicable to chips. VREF calibration has been applied to ESP32-D0WD and ESP3...
by ESP_Dazz
Tue Nov 13, 2018 3:07 pm
Forum: Hardware
Topic: ESP32-SOLO-1 ADC clarification
Replies: 7
Views: 2614

Re: ESP32-SOLO-1 ADC clarification

cmorgan wrote:how can we tell which modules have been calibrated vs. not?
I suggest you contact sales@espressif.com about this. They should be able to track down which chips have which type of calibration.
by ESP_Dazz
Wed Oct 31, 2018 12:50 pm
Forum: ESP32 IDF
Topic: Avoid Early LOG "Pro cpu up" "App cpu up"
Replies: 4
Views: 1270

Re: Avoid Early LOG "Pro cpu up" "App cpu up"

Unfortunately, I think the only way to disable ESP_EARLY_LOGx calls are to lower your log level in sdkconfig. However this will mean that the rest of your application will also be restricted to the sdkconfig level or below as esp_log_level_set() can only lower the log level and not raise it.
by ESP_Dazz
Wed Oct 31, 2018 11:16 am
Forum: Report Bugs
Topic: vTaskDelay
Replies: 18
Views: 9028

Re: vTaskDelay

vTaskDelay() cannot be called whilst the scheduler is disabled (i.e. in between calls of vTaskSuspendAll() and vTaskResumeAll()). The assertion failure you see is vTaskDelay() checking if it was called whilst the scheduler is disabled.

Go to advanced search