Problems creating a timer with MPU enabled

tamirmichael wrote on Friday, July 06, 2012:

Hello,

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…

rtel wrote on Friday, July 06, 2012:

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.