cancel
Showing results for 
Search instead for 
Did you mean: 

FreeRTOS+TCP and FAT Library Problem

Ghada Dhibi
Associate II
Posted on December 26, 2016 at 14:56

Hi, 

I'am working with STM32L4 microcontroler including SDCard and WIFI module. 

I'am trying to implement FreeRTOS tasks to: 

  1. Connect to an FTP server
  2. View the contents of the SD Card under the FTP server. 

As mentionned on FreeRTOS website, FreeRTOS provides a new library, which allow us to use FreeRTOS+TCP and FreeRTOS+FTP, as mentionned in this

http://www.freertos.org/FreeRTOS-Labs/RTOS_labs_download.html

.

As first step, I tried to upgrade FreeRTOS version from V8.2.3 to V9.0.0 by

copying the V9 files over the top of the V8.2.3 files before building. 

As second step, I Added FeeRTOS+ Library in my project workspace that containes: 

  • FreeRTOS+CLI 

  • FreeRTOS+FAT

  • FreeRTOS+TCP 

Unfortunately, Muliples warning and errors occurs while building my project due to this implemntation 

:(

  1. Can someone please help me to use the FreeRTOS+ library ? 

  2. Can

    someone

    please tel me if the next release of cube MX

    will include the the FreeRTOS+ library

    ? (that will contain V9.0.0 FreeRTOS version)
  3. In other case, there are other solution that let me display the content of my SDCard on an FTP server ? 

Thanks. 

Ghada.

#sd-card #freertos #wifi #fatfs #stm32l4 #ftp
7 REPLIES 7
Imen.D
ST Employee
Posted on December 26, 2016 at 18:43

Dear

DHIBI.Ghada

,

Have a look to the'FreeRTOS middleware configuration view' section in the

http://www.st.com/content/ccc/resource/technical/document/user_manual/10/c5/1a/43/3a/70/43/7d/DM001047pdf/files/DM001047pdf/jcr:content/translations/en.DM001047pdf

STM32CubeMx user Manual and in the

http://www.st.com/content/ccc/resource/technical/document/user_manual/2d/60/ff/15/8c/c9/43/77/DM00105pdf/files/DM00105pdf/jcr:content/translations/en.DM00105pdf

,this will help you on

FreeRTOS configuration.

You can start from working example under STM32CubeL4 package, in the context of understanding the tools and you find the needed include parts for your project: STM32Cube_FW_L4_V1.6.0\Projects\STM32L476G_EVAL\Applications\FreeRTOS

so, you can modify the working application depending on your needs.

About the support of FreeRTOS v9, it should come in STM32CubeMX January version, as mentioned by CubeMx team in this

https://community.st.com/thread/15509

Best Regards

Imen

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen
Ghada Dhibi
Associate II
Posted on December 27, 2016 at 09:35

Hi

DAHMEN.IMEN

,

Thank you for your answer,

However, using FreeRTOS V8.x or V9.x is not my problem,

but I'm trying to implement and use FreeRTOS+ library including FreeRTOS+FAT and FreeRTOS+TCP, that allow me to use TCP and FAT under FreeRTOS

So, have you idea if the January CubeMx version will include this library ?

B.R.

Ghada.

Posted on December 27, 2016 at 11:28

Hi

DHIBI.Ghada

‌,

I suggest that you refer tothe working example within STM32cubeL4 firmware package,it may help you:

STM32Cube_FW_L4_V1.6.0\Projects\STM32L476G_EVAL\Applications\FatFs\FatFs_uSD_RTOS

Best Regards

Imen

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen
Barry.Richard
Associate III
Posted on December 27, 2016 at 16:13

You will find a worked example that uses FreeRTOS+TCP and FreeRTOS+FAT running on an STM32F4 on the following link: 

http://www.freertos.org/FreeRTOS-Plus/FreeRTOS_Plus_TCP/TCP-IP_FAT_Examples_ST_STM32F407.html

 
Posted on December 27, 2016 at 17:20

Hi

Barry.Richard

‌,

Thank you for your answer

I already downloaded this example, and It seems that is the solution of my project

unfortunately, I would like the EWARM version of this project because I have to work with IAR Embedded Workbensh.

Have you idea how to migratethis project to EWARM version ?

Thank you

Ghada.

Posted on December 27, 2016 at 18:01

You will need to use the port files from the FreeRTOS/Source/portable/IAR/ARM_CMx directory instead of the GCC equivalents.  The following links might help:

http://www.freertos.org/Creating-a-new-FreeRTOS-project.html

 

http://www.freertos.org/porting-a-freertos-demo-to-different-hardware.html

 
Posted on December 27, 2016 at 18:07

thank you  

I will try it ! 

B.R.

Ghada.