Skip to main content
Graduate
May 18, 2023
Solved

ThreadX code generation is not creating at one ThreadX Main Entry

  • May 18, 2023
  • 1 reply
  • 932 views

I have a project using ThreadX, NetX, and FileX. The NetX and FileX code generation is initializing at least one instance but nothing in ThreadX. I can create it but it is a little concerning that in the init there is only:

UINT App_ThreadX_Init(VOID *memory_ptr)
{
 UINT ret = TX_SUCCESS;
 /* USER CODE BEGIN App_ThreadX_MEM_POOL */
 
 /* USER CODE END App_ThreadX_MEM_POOL */
 
 /* USER CODE BEGIN App_ThreadX_Init */
 
 /* USER CODE END App_ThreadX_Init */
 
 return ret;
}

where in the other filex and netx sections there is significant initialization. My fear is that I have not checked off something correctly in cubeMX, and later on it may decide to create code that duplicates my efforts.

Did I miss something?

Using:

STM32CubeIDEVersion: 1.12.1Build: 16088_20230420_1057 (UTC)

with embedded STM32CubeMX   6.8.1.202304191431

OS: Linux (LMint 21 - Cinnamon)

    This topic has been closed for replies.
    Best answer by GreenGuy

    Oh Wow. Forest for the trees and I am going blind. The check box for Generate Init code was unchecked. Unexpected.

    1 reply

    GreenGuyAuthorAnswer
    Graduate
    May 18, 2023

    Oh Wow. Forest for the trees and I am going blind. The check box for Generate Init code was unchecked. Unexpected.