xTimerHandle xTimerCreate( const signed char *pcTimerName, portTickType xTimerPeriodInTicks, unsigned portBASE_TYPE uxAutoReload, void *pvTimerID, tmrTIMER_CALLBACK pxCallbackFunction )
{
xTIMER *pxNewTimer;
/* Allocate the timer structure. */
if( xTimerPeriodInTicks == ( portTickType ) 0U )
{
pxNewTimer = NULL;
configASSERT( ( xTimerPeriodInTicks > 0 ) );
}
else
{
pxNewTimer = ( xTIMER * ) pvPortMalloc( sizeof( xTIMER ) );
it seems that this allocation is not replaced by the “MPU_” variant which causes a protection fault…
Problems creating a timer with MPU enabled
Hello,
Problems creating a timer with MPU enabled
It doesn’t look any any timer functions are in FreeRTOS/source/include/mpu_wrappers.h – not just that one. The header file will have to be updated.
Regards.