STM32CubeMX (MCUs)

Ask questions on STM32CubeMX. Discuss code generation and configuration challenges, among other topics.

cancel
Showing results for 
Search instead for 
Did you mean: 

Forum Posts

STM32CubeMX 6.15.0 released

We are pleased to announce that the version 6.15.0 of STM32CubeMX is available. What is new in 6.15.0: Enhanced microprocessor support: Added the STM32MP21-A35-TD, STM32MP21-M33-TD, STM32MP25-M33-TD, and STM32MP23-M33-TD trusted domains for the STM32...

How do I change the initialization order to avoid a race condition (ISR vs. FreeRTOS init) during initialization?

CubeMX generates the main.c like this:int main(void){... MX_GPIO_Init(); MX_RTC_Init(); MX_NVIC_Init(); MX_FREERTOS_Init();...}We observe a sporadic crash during boot which we traced to an GPIO interrupt whose ISR calls into the FreeRTOS API (xQueueS...

Resolved! USB CDC not working with STM32CubeMX5.2.1 and stm32l151

I would like to migrate an older projekt based on stm32l151.I created a new config with STM32CubeMX5.2.1 with firmware package STM32Cube FW_L1 V1.9.0. I used USB CDC to create a virtual COM. But I don't get any device listed on my Host PC.I compared ...

Tulan by Associate
  • 840 Views
  • 1 replies
  • 0 kudos

Re-org files and folder structure, which is generated by CubeMx.

Hi,I would like to Re-org files and folder structure, which is generated by CubeMx.Re-org means a totally different files and folder structure.Can it be done?Can you please share a detailed example for such a template? Would be better if your example...

AFink by Associate III
  • 1735 Views
  • 0 replies
  • 0 kudos

STM32F4 CAN Rx Interrupt not servicing

void HAL_CAN_MspInit(CAN_HandleTypeDef* hcan) { GPIO_InitTypeDef GPIO_InitStruct = {0}; if(hcan->Instance==CAN1) { /* USER CODE BEGIN CAN1_MspInit 0 */   /* USER CODE END CAN1_MspInit 0 */ /* Peripheral clock enable */ __HAL_RCC_CAN...

RPann by Associate
  • 780 Views
  • 1 replies
  • 0 kudos

Generate adjustable single short pulse (using timer ?)

Hello,I want to generate a single short pulse (adjustable between 100 ns to 1ms). What is the best way ?I think we should use timers, but which mode ? (which CubeMX configuration ?)Moreover I tried to configure one-pulse mode but I can't find documen...