Skip to main content
HDøss.1
Associate II
Mar 13, 2023 11:33 AM UTC
Solved

"Generate Code" adds ThreadX code when trying to generate FileX standalone project

Setting the FX_STANDALONE_ENABLE flag should disable all ThreadX specific code when building a FileX project. However there is actually some code related to ThreadX timers that is generated within a USER CODE section, defining the FX_STM32_SD_CURRENT_TIME. Does anyone know why that may be, and more importantly what would be the correct definition of this macro without ThreadX?

This topic has been closed for replies.
Ghofrane GSOURI
Ghofrane GSOURIBest answer
ST Technical Moderator
Mar 13, 2023 4:16 PM UTC

Hello @HDøss.1 

Actually I tried to reproduce the issue mentioned above using the latest version of CubeMX 6.8.0 and this is what I got please have a look

0693W00000aIplDQAS.pngThx

Ghofrane

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

4 replies

Ghofrane GSOURI
ST Technical Moderator
Mar 13, 2023 12:22 PM UTC

Hello @Hermund Døssland​ 

First let me thank you for posting.

In order to push further the investigation , could you please provide you ioc file which show the problem.

I will be waiting for your feedback.

Thanks

Ghofrane

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
HDøss.1
HDøss.1Author
Associate II
Mar 13, 2023 1:07 PM UTC

Hi @Ghofrane GSOURI​ 

Thanks for looking into it, I have attached the ioc file to this reply.

Ghofrane GSOURI
Ghofrane GSOURIBest answer
ST Technical Moderator
Mar 13, 2023 4:16 PM UTC

Hello @HDøss.1 

Actually I tried to reproduce the issue mentioned above using the latest version of CubeMX 6.8.0 and this is what I got please have a look

0693W00000aIplDQAS.pngThx

Ghofrane

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
HDøss.1
HDøss.1Author
Associate II
Mar 14, 2023 7:32 AM UTC

Hi @Ghofrane GSOURI​ 

Thank you for your reply, I will try updating to the latest version of CubeMX. Also I can not find the option FX_STANDALONE_ENABLE, is this deprecated?