2024-06-28 01:54 AM
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 */
2024-07-03 09:04 AM
Hello @unsigned_char_array
Could you share the project or the name of the MCU that occur this issue ?
Thanks
Souhaib
2024-07-03 11:52 AM
STM32H735
2024-07-17 02:16 AM - edited 2024-10-08 04:35 AM
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