I-CUBE-USBD-Composite
I-CUBE-USBD-Composite copied to clipboard
User code is overwritten on CubeMX code generation
When generating code from CubeMX all source files are completely overwritten. Even "user code" sections - like this (from usbd_msc_if.c
:
/* USER CODE BEGIN PV */
/* Private variables ---------------------------------------------------------*/
uint8_t MSC_Storage[32*1024];
/* USER CODE END PV */
(just one example)
CubeMX Templates are not implemented yet.
Sure :) Let me know if you want me to test something when or if you implement it.
for me, the way to solve this problem is make this middleware as yourself's code
once you completed your config, you can try move AL94_USB_Composite/ to root directory out of Middlewares/ and make a copy of Composite/ which in root directory created by I-CUBE-USBD-Composite
then go to the IOC, cancel the I-CUBE-USBD-COMPOSITE
then go to project properties -> C/C++ General -> Paths and Symbols, add AL94_USB_Composite/ and Composite/ path to your compiler
Been doing the same pretty much