AnsweredAssumed Answered

STM32CubeMX 4.12.0 Bug - usbd_cdc_if.c

Question asked by Kolomaznik.Petr.001 on Jan 25, 2016
Latest reply on Jan 25, 2016 by STM32Cube-T
Hello,
my private variables in usbd_cdc_if.c are deleted after the new code generation:
/* USER CODE BEGIN PRIVATE_VARIABLES  */

uint8_t    u8_cdc_initialized = 0;
uint8_t    u8_cdc_connected = 0;
uint8_t    u8_rx_len;
uint8_t    u8_received;

/* USER CODE END  PRIVATE VARIABLES */

Please check another user sections as PRIVATE_MACRO, PRIVATE TYPES, EXPORTED_VARIABLES, PRIVATE DEFINES and more. Other sections are also deleted.

I use STM32CubeMX 4.12.0, STM32CubeF4 1.10.1.

Petr

Outcomes