Skip to main content
September 11, 2020
Solved

Bug report STM32CUBEMX and Touchgfx designer

  • September 11, 2020
  • 2 replies
  • 2279 views

Hello,

I dont know what is the problem, but when USB is configured in CDC mode in CUBEMX (maybe other modes also can generate the same problem, havent tested yet.) and the code is generated with CUBEMX, touchgfx code genereation will result in file omition from KEIL. There is no matter with STM32CUBEIDE since folders and files are not touched.

One suggestion: Touchgfx designer consider some standard place for user code like stm32cubemx so in the regeneration of code, user code remain untouched.

The IOC file to ease the problem regeneration is attached.

This topic has been closed for replies.
Best answer by Alexandre RENOUX

Thank you for the precision.

I was able to reproduce and indeed the generation deletes links to usbd_x files in the .uvprojx file.

I will investigate and transmit to the right persons. I will come back to you when a fix has been done.

Thank you for letting us know.

/Alexandre

2 replies

Alexandre RENOUX
Visitor II
September 14, 2020

Hello,

Can you elaborate what file is missing exactly ? What kind of error do you encounter ?

Also when checking the .ioc file, I noticed that the FATFS IP settings are incomplete (missing something in the Platform Settings tab).

/Alexandre

September 14, 2020

Thank you for your attention.

To reproduce the matter, first of all one most use keil 5.27 or above with stm32cubemx 6.0.0 and touchgfx 4.14.

Then one should produce project with stm32cubemx while usb in cdc mode and touch gfx is activated. Then generating the gui with touchgfx will remove usb cdc from project since both of them are under middleware folder. Then for fixing the issue one must regenerate the code with cubemx to solve ommition of USB_CDC middleware from project file.

The matter doesnt exist with cubeide since the files arent ommited from their directory.

Alexandre RENOUX
Visitor II
September 14, 2020

I took your ioc file and everything is working.

Here are the steps I did :

  • Open .ioc with CubeMX 6.0.1
  • Generate code from CubeMX
  • Verify that STM32_USB_Device_Library is still in Middleware (yes)
  • Open .touchgfx.part with TouchGFX Designer 4.14.0
  • Generate code from Designer
  • Verify that STM32_USB_Device_Library is still in Middleware (yes)
  • Open project in Keil 5.31
  • The USB files are in the project
  • Compile - No errors

Could you try again ?

/Alexandre

December 13, 2020

Hello dear @Martin KJELDSEN (ST Employee)​

I found that if I remove old generated files and regenerate the code with Cubemx 6.1.0 and Touchgfx 4.15, There will be two separate sections, one for USB and one for the graphic library which is desired since regeneration and recompilation of total code was really undesirable and took a long time.

I wonder when will the problem with Cubeide would be solved, I have Cubeide 1.4 Installed. Has it been solved with Cubeide 1.5?

Martin KJELDSEN
Principal III
December 14, 2020

What do you mean by "seperate sections" ?

December 14, 2020

Before the omission of old files and regeneration of code with Cubemx and Touchgfx designer, the library file was put into the USB device library folder, but after regeneration, it seems that the problem has been solved, don't know which version has solved it.

Now I ask if the problem is solved with CUBEIDE? The compilation fails in Cubeide while Touchgfx is added.

0693W000006FhVQQA0.jpg