2025-06-18 10:09 AM
I don't know we are going where with this software. after update i was tried some pin name changes and pressed generate code.. and my USB CDC IF file gone.. with my codes.. how do i trust this software.. where do we go.. and now no where to config usb cdc and nothing work instead no usb descriptor error. how to recover? can i go back to old version? why is this software like this?
2025-06-18 10:43 AM - edited 2025-06-18 10:43 AM
Please don't repost.
Normal USB CDC Cannot Define after update. - STMicroelectronics Community
While this may not be the exact same issue, it's clearly heavily related and should be in the same thread.
2025-06-18 12:09 PM
You might try recovering older instances of a file via File Manager
2025-06-18 1:38 PM
If you have a Windows machine, you can use the Quick Assist app to request help from a remote expert.
Do you remember which version of CubeMX or IDE or libraries you had before update?
2025-06-18 1:43 PM
I know this is not any help for your current situation, but for the future:
2025-06-18 3:12 PM
Been there, done that. 1 hour of coding in main.c and generating code, then the program crashed. Puff, main.c file was gone.
So now you know what could possibly happen when writing your code within ST's file. Lesson learned. So moving forward, you train yourself to write your code in your own files that ST code generation tool can't touch.