2023-07-26 06:48 AM - last edited on 2023-08-03 08:01 AM by KDJEM.1
CubeMx version v6.9.0 deleting my folder structure/ Middleware.
I tried to generate code via v6.9.0 and it just deletes my entire middleware files. My all commits are gone.
2023-09-20 07:17 AM
Hello @ANauz.1 ,
Concerning the issue: "STM32CubeMX deletes manually added folders with same folder name reserved by STM32CubeMX". It is not yet fixed in STM32CubeMx6.9.2 (RN0094-Rev 67), I'll let you know when the problem is solved.
Sorry for any inconvenience.
Kaouthar
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2025-01-21 03:32 PM
Hi @ANauz.1
Is there any update regarding this issue?
I have got STM32CubeMX 6.13.0 and I added sub-repos and other folders under Middlewares folder, but whenever I regenerate the code, these folders are deleted completely.
I tried two methods of code generation;
1. Using STM32CubeIDE 1.17.0 and modifying the .ioc file
2. Usin STM32CubeMX 6.13.0 and directly changing the .ioc project file
Kind Regards,
Hani
2025-01-22 01:28 AM
Hello @hakeila,
Are you creating a new folder named Middlewares or Utilities inside a project folder generated by STM32CubeMX?
As mentioned in UM1718 Rev 46 that STM32CubeMX uses reserved folder names. User cannot create new folder named Middlewares or Utilities inside project folder generated by STM32CubeMX, because, after code regeneration, those folders are deleted or modified.
If the issue is not solved, I recommend you to create a new thread.
Thank you.
Kaouthar
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2025-01-22 06:23 PM
Hi @KDJEM.1
Thank you for your quick reply.
I created my own library folder and cloned nanopb repo inside Middlewares folder.
I will create a separate thread for this issue.
Regards,
Hani
2025-01-23 05:35 AM
Hello @hakeila
I had no other news than the ones on this forum.
Personnaly I stopped working with STM32Cube MX and IDE. I'm working with Visual Studio Code. I'm only using STM32CubeMX for the first generation of the project.
And if I really have to regenerate with MX, I make a copy of the IOC file in another directory and using it in there. I got to many strange behavior to risk losing any other work.
Regards