We are running FreeRTOS on the PCA10028 development board. We have bumped into an issue where the code asserts if we turn on the FreeRTOS configASSERT functionality. It is asserting when the scheduler is turned on. The relevant code is:
BaseType_t xPortStartScheduler( void ) {
/* This port can be used on all revisions of the Cortex-M7 core other than
the r0p1 parts. r0p1 parts should use the port from the
/source/portable/GCC/ARM_CM7/r0p1 directory. */
configASSERT( SCB->CPUID != portCORTEX_M0_r0p0_ID );
Since this is a portCORTEX_M0_r0P0_ID processor we trigger. The comment indicates this code was intended for an M7 rather than an M0. Are we using the wrong port file, or is the assert invalid?