freeRTOS + MPLAB + HARMONY

kibi3 wrote on Thursday, November 22, 2018:

Hello,

In freeRTOS and MPLAB and HARMONY.
freeRTOS and SDCARD race condition.
Is there a way to avoid?

Thank you.

rtel wrote on Thursday, November 22, 2018:

I’m afraid your question is a bit vague and seems to relate to
Microchip’s Harmony implementation rather than FreeRTOS, as FreeRTOS
itself does not have SD card support (FreeRTOS+FAT, also open source
does include some media drivers) and I have no idea which file system
Harmony uses - best best would be to check the documentation for
Harmony. Some file systems need particular constants to be defined at
compile time to make them thread safe.

However, perhaps this is just a more generic question about mutual
exclusion to any resource, and the SD card is just an example? If that
is the case then you have several options - and rather than list them
here I would suggest having a look through the free book:
https://www.freertos.org/Documentation/RTOS_book.html

kibi3 wrote on Thursday, November 22, 2018:

Busy place gratefulness.
Does Freertos use timer? When using timer1 and 2, is it possible to set it as timer3 and 4 may be used?

Thanks.

rtel wrote on Friday, November 23, 2018:

All FreeRTOS ports use a timer. The PIC32 port, if that is what we are
talking about, can use any peripheral time. Unfortunately I don’t know
which timer your port is configured to use.