cancel
Showing results for 
Search instead for 
Did you mean: 

STM32CubeMX inconsistent indentation for MX_TouchGFX_Process()

 

If I enable USB host and TouchGFX without OS I get the following generated code:

  /* USER CODE BEGIN WHILE */
  while (1)
  {
    /* USER CODE END WHILE */
    MX_USB_HOST_Process();

  MX_TouchGFX_Process();
    /* USER CODE BEGIN 3 */
  }
  /* USER CODE END 3 */

As you can see MX_TouchGFX_Process() isn't indented properly.

I want this:

  /* USER CODE BEGIN WHILE */
  while (1)
  {
    /* USER CODE END WHILE */
    MX_USB_HOST_Process();
    MX_TouchGFX_Process();
    /* USER CODE BEGIN 3 */
  }
  /* USER CODE END 3 */

 

Kudo posts if you have the same problem and kudo replies if the solution works.
Click "Accept as Solution" if a reply solved your problem. If no solution was posted please answer with your own.
3 REPLIES 3
Souhaib MAZHOUD
ST Employee

Hello @unsigned_char_array 

Could you share the project or the name of the MCU that occur this issue ?

Thanks

Souhaib

STM32H735

Kudo posts if you have the same problem and kudo replies if the solution works.
Click "Accept as Solution" if a reply solved your problem. If no solution was posted please answer with your own.

I've attached an ioc file to reproduce the problem. I just created a fresh project for the STM32H735G-DK
with everything set to default and enabled TouchGFX and USB host.

Result:

 

  /* USER CODE BEGIN WHILE */
  while (1)
  {
    /* USER CODE END WHILE */
    MX_USB_HOST_Process();

  MX_TouchGFX_Process();
    /* USER CODE BEGIN 3 */
  }
  /* USER CODE END 3 */

 


Edit: still not fixed in STM32CubeMX V6.12.1

Kudo posts if you have the same problem and kudo replies if the solution works.
Click "Accept as Solution" if a reply solved your problem. If no solution was posted please answer with your own.