Hello All,
I have created a simple FreeRTOS MPU project by modifying "FreeRTOS_Toggle_Led_Example_S32K344" and added DIO MCAL to toggle on board LED.
My modified ReceiveTask task looks like this now:
void ReceiveTask( void *pvParameters )
{
(void)pvParameters;
BaseType_t operation_status;
BaseType_t count = 0;
uint8_t currentLevel = STD_HIGH;
for( ;; )
{
operation_status = xSemaphoreTake(sem_handle, portMAX_DELAY);
configASSERT(operation_status == pdPASS);
Dio_WriteChannel(DioConf_DioChannel_RED_LED, currentLevel);
currentLevel =~currentLevel & 0x1;
if(count++ > 10)
{
//testResult = 0x5AU;
}
}
}
But as soon as it try to execute "Dio_WriteChannel(DioConf_DioChannel_RED_LED, currentLevel);", I get memory exception
But no issue is seen if I comment above line of code.
In short can you please guide me as how I can use MCAL with FreeRTOS using MPU.
Regards,
Hemant Kapoor
Hello @HemantK,
Can you please post the project here, so that I can easily reproduce it?
Thank you,
BR, Daniel
Hi HemantK,
what is the FreeRTOS package's name you are using?
Best regards,
Dan