Skip to main content
Visitor II
March 13, 2023
Solved

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

  • March 13, 2023
  • 3 replies
  • 1731 views

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.
    Best answer by Ghofrane GSOURI

    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

    3 replies

    Technical Moderator
    March 13, 2023

    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

    HDøss.1Author
    Visitor II
    March 13, 2023

    Hi @Ghofrane GSOURI​ 

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

    Technical Moderator
    March 13, 2023

    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

    HDøss.1Author
    Visitor II
    March 14, 2023

    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?