2019-07-31 04:41 AM
Hello there,
I don't know if I can call this a bug, but it shouldn't happen at all.
Thing goes like this:
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.
2019-08-01 06:40 AM
Hello,
in your question there are 2 different points :
This fact can occur if you change the FREERTOS from "CMSIS V1" to "CMSIS V2" - because USBPD in actual CubeFW version is not compatible with the FREERTOS CMSIS V2, only CMSIS V1
/* USER CODE BEGIN Private_Typedef */
Private_Typedef;
/* USER CODE END Private_Typedef */
This code is never modified by CubeMX generation - except when IP or MW disabling. This is the protection level defined by CubeMX ( to allow new release of CubeMX & CubeFW incorporated in your code ).
Regards
2019-08-01 07:12 AM
Hello Frederic,
Best Regards,
John