Semaphore Usage

cancel
Showing results for 
Search instead for 
Did you mean: 

Semaphore Usage

498 Views
Alexis_A
NXP TechSupport
NXP TechSupport

Hi, 

Looking in the FreeRTOS example from the S32K144 every time I tried to use a semaphore if it's one of the LPUART RTOS handler or one created in the code, every time I need to call for a takeSemaphore the code redirects to the API vPortRaiseBASEPRI, does anyone know the correct usage of semaphores or the reason why this function is being called? 

I use the Freertos example from SDK 3.0.2.

Best Regards,

Alexis Andalon

0 Kudos
1 Reply

396 Views
Alexis_A
NXP TechSupport
NXP TechSupport

I have figured about what was wrong about this error, this happens due to the lack of heap and stack of the task, so to avoid this increment the configMINIMAL_STACK_SIZE and the Total heap size

pastedImage_1.png

Best Regards,

Alexis Andalon

0 Kudos