Strange Assert on queue.c

Hi I am getting the next Assert fail: configASSERT( !( ( pvItemToQueue == NULL ) && ( pxQueue->uxItemSize != ( UBaseType_t ) 0U ) ) ); on function: BaseTypet xQueueGenericSend( QueueHandlet xQueue, const void * const pvItemToQueue, TickTypet xTicksToWait, const BaseTypet xCopyPosition ) when executing this line: bPass &= xQueueSendToBack(fxBtQueue,(void *)0,50 / portTICKRATE_MS); SW works well but it seems i can’t pass a zero to the queue without getting this assert, does it make sense? Thank you & Best Regards, Ran

Strange Assert on queue.c

Hi, you should pass an address of variable in the xQueueSendToBack. The xQueueSendToBack will copy the data from your variable to the internal Queue buffer. ex: bPass &= xQueueSendToBack(fxBtQueue,(void *)0,50 / portTICKRATE_MS); should lokk like this: char value = 0; bPass &= xQueueSendToBack(fxBtQueue,&value,50 / portTICKRATE_MS); regards Jonathan

Strange Assert on queue.c

OK. Thanks!