(xQueueGenericReceive)- assert failed! -Issues after upgrading to latest toolchain version.
Posted: Fri Sep 08, 2017 5:20 am
Just upgraded to the latest toolchain version and am facing several issues.
For instance I am getting:
This is the code that I believe is causing the issue:
It used to work fine on the older version of the toolchain.
Does anybody know what changes I have to make to get it working on the new version?
For instance I am getting:
Code: Select all
(xQueueGenericReceive)- assert failed!
Code: Select all
...
static xQueueHandle DRDY_evt_queue = NULL;
static void IRAM_ATTR gpio_isr_handler(void *arg)
{
gpio_num_t gpio_num = (gpio_num_t) arg;
xQueueSendFromISR(DRDY_evt_queue, &gpio_num, NULL);
}
...
while(1)
{
if(xQueueReceive(DRDY_evt_queue, &io_num, portMAX_DELAY))
{
antal++;
voltage = Measure(spi2);
ave_voltage += (voltage - ave_voltage)/antal;
printf("Volt = %.7f Ave = %.7f\n", voltage, ave_voltage);
}
}
Does anybody know what changes I have to make to get it working on the new version?