Solved
[CubeMX feature request]Please add an user section after the HAL_Init()
Posted on January 27, 2017 at 10:05
Dear STM32 Cube MX developers!
I am facing with the following problem, and I have not been able to find a proper solution:
I am using a STM32F103 with CDC stack via USB.
I have to add a code snippet to force the re-enumeration between the debug sessions.
Here is the generated code:
/* USER CODE BEGIN 1 */
uint8_t i, checksum; /* USER CODE END 1 */ /* MCU Configuration----------------------------------------------------------*/ /* Reset of all peripherals, Initializes the Flash interface and the Systick. */ HAL_Init(); /* Configure the system clock */ SystemClock_Config(); /* Initialize all configured peripherals */ MX_GPIO_Init(); MX_USART1_UART_Init(); MX_USB_DEVICE_Init(); /* USER CODE BEGIN 2 */ /* USER CODE END 2 */ /* Infinite loop */ /* USER CODE BEGIN WHILE */�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�? */I need to add my code after the
SystemClock_Config();
but before the
MX_USB_DEVICE_Init();
I have not found any user generated sections between these two sections.
