I just updated to FreeRTOS 7.0.0. and am using the assert functions provided by the RTOS. When running it, following assert fails:
/* Check the alignment of the initialised stack. */ configASSERT( ( ( ( unsigned long ) pxNewTCB->pxTopOfStack & ( unsigned long ) portBYTE_ALIGNMENT_MASK ) == 0UL ) );
When changing the byte alignment of PIC32 in portmacro.h as follows, the error disappears:
/* Hardware specifics. */ #define portBYTE_ALIGNMENT 4 //was 8 before
I read that the port alignment was changed in a previous version of FreeRTOS. Am I doing something wrong here or may the check/assert be wrong?
Thanks a lot for your support.
my assert macro is as follows:
#define configASSERT( x ) \ ((void)((x) ? 0 : (onAssert__(__FILE__, __LINE__))))
, where onAssert__ is my handler function.