FreeRTOS FAT SL, Demo project, PSoC 5 Dev Kit

labianco wrote on Thursday, September 24, 2015:

Hi,

My end goal is to implement the FreeRTOS FAT SL file system on a PSoC5LP Dev Kit (CY8CKIT-050).

Do I actually need to integrate there real time kernel with the FAT SL file system files in my project or can the FAT SL file system code stand alone?

To do this, I took the advice presented on FreeRTOS.org and tried to get a demo project up and running. I chose to test out the CORTEX_CY8C5588_PSoC_Creator_GCC project for FreeRTOSv8.2.2. I opened up the project in PSoC Creator 3.2 in the original project directory. I updated the device from the original device to the CY8C5868AXI-LP035 TQFP100, which is the processor on the PSoC5LP development kit. The PSoC Creator prompted me to update the components wihtin the project as the originals were out of date. I performed that updated and then built the project. The project errored out before it could be completely built and displayed the following error:

prj.M0120:Build error: FreeRTOS.h: no such file or directory, BlockQ.c, Line 97

I did not want to start modifying the code and hoped there was a simple fix for this. What do I need to do to fix this issue?

Once I get the demo project working, how do I integrate the FAT SL functionality into the project and remove the functions that are not necessary? How do I identify what parts of the project aren’t needed for the FAT SL functionality?

All help and advice is greatly appreciated!

rtel wrote on Thursday, September 24, 2015:

I think you can use the file system without any OS if you set F_FS_THREAD_AWARE to 0.
http://www.freertos.org/FreeRTOS-Plus/FreeRTOS_Plus_FAT_SL/embedded-file-system-configuration.shtml

That demo was created some time ago and presumably the tools have changed a lot since.

prj.M0120:Build error: FreeRTOS.h: no such file or directory, BlockQ.c, Line 97
I did not want to start modifying the code

This is simply telling you it can’t find a header file. No need to modify the code, just ensure FreeRTOS/source/include is in the compiler’s include path.

labianco wrote on Thursday, September 24, 2015:

Thanks, I will try implementing the FAT SL stand alone and see if I can get that working.

labianco wrote on Monday, September 28, 2015:

I am having trouble getting the FAT SL integrated into my microprocessor project. I have added the following paths to my compiler include directories list:

…\FreeRTOS-Plus-FAT-SL\api;
…\FreeRTOS-Plus-FAT-SL\config;
…\FreeRTOS-Plus-FAT-SL\fat_sl\common;
…\FreeRTOS-Plus-FAT-SL\fat_sl\test;
…\FreeRTOS-Plus-FAT-SL\media-drv\ram;
…\FreeRTOS-Plus-FAT-SL\psp\include;
…\FreeRTOS-Plus-FAT-SL\psp\target\fat_sl;
…\FreeRTOS-Plus-FAT-SL\psp\target\rtc;
…\FreeRTOS-Plus-FAT-SL\version

I know that I need to #include at least one of the source/header files in my main code file, but I am not sure which ones. Can someone help me with this?

edwards3 wrote on Monday, September 28, 2015:

Open one of the example projects and copy the list of include files from that. You can compile, run and copy the windows project without any special hardware or compilers.

labianco wrote on Monday, September 28, 2015:

I couldn’t find a FAT SL example project. Can you send a link for one?

rtel wrote on Monday, September 28, 2015:

There was a link in the post you just replied to.

labianco wrote on Monday, September 28, 2015:

That page is a link to an informational page about the header and not about an FAT SL example project.

rtel wrote on Monday, September 28, 2015:

I just clicked the link and it took me to a page titled “Example FreeRTOS+FAT SL Project”. Seems to be the right place.

labianco wrote on Tuesday, September 29, 2015:

My apologies, I glossed over that post since my icon and MEdwards’ icons are identical. Thanks for your patience.