Question
CubeMX deleted my usbpd_dpm_user.c
Hello there,
I don't know if I can call this a bug, but it shouldn't happen at all.
Thing goes like this:
- I have a STM32G071, I enabled UCPD1 and 2, also CMSIS, USBPD library in CubeMX
- I generated code for SW4STM32, I write my custom board code in usbpd_dpm_user.c
- I touched CubeMX again, but for some reason due to conflicts USBPD library is disabled, without noticing it I regenerated the project files
- BOOM, usbpd related files are deleted, including all my custom code in usbpd_dpm_user.c
Fortunately we have internal Git and therefore not all code is gone, but I guess this shouldn't happen at the very first, I don't know other toolchains, and I don't know if this happens to other library (say USBD), but because SW4STM32/eclipse has an "exclude file from build" option, I guess CubeMX should use this option instead of deleting files that potentially containing user codes.
