cancel
Showing results for 
Search instead for 
Did you mean: 

ThreadX code generation is not creating at one ThreadX Main Entry

GreenGuy
Lead

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)

1 ACCEPTED SOLUTION

Accepted Solutions
GreenGuy
Lead

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

View solution in original post

1 REPLY 1
GreenGuy
Lead

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