STM32CubeMX (MCUs)

cancel
Showing results for 
Search instead for 
Did you mean: 

Forum Posts

STM32CubeMX 6.14.0 released

We are pleased to announce that the release 6.14.0 of STM32CubeMX is available. What is new in 6.14.0: Added the support for the STM32WBA6xxx microcontrollers and:Added the support for USBX multi-instanceAdded the support for the memory management to...

The STM32CubeMX code generation is not properly working in case the ADC is triggered by the HRTIM timers and DMA is used to transfer the ADC values to memory.

When the file stm32f3xx_hal_msp.c is created there is a missing line in function void HAL_ADC_MspInit(ADC_HandleTypeDef* hadc) which enables the DMA clock - ( __HAL_RCC_DMA1_CLK_ENABLE(); The STM32CubeMX generates code that enables that clock in mai...

HMay.1 by Associate
  • 600 Views
  • 3 replies
  • 0 kudos

Resolved! Using STM32CubeMX generate code for STM32CubeIDE and than change main.c to main.cpp, and build project will show up undefined reference to 'main' error.

The error message like as:Core/Startup/startup_stm32f765vitx.o: In function `LoopFillZerobss':J:/STM32PRJ/CB_ENV/MS220_F765VI/VIDEOBOARD_V9A/20200520/Debug/../Core/Startup/startup_stm32f765vitx.s:97: undefined reference to `main'​collect2.exe: error:...

jcRuan by Associate II
  • 5378 Views
  • 6 replies
  • 0 kudos

hi guys, I'm trying to define a register range for uint32_t array. I couldn't find a place online that explain in properly. do you know a way to do so?

uint32_t REG_INIT[32];//// i dont think it is necessery that only for explanation #define MainAddr     ((uint64_t)0x801FEC0)#define step 0x8#define BiasRefInit *(uint64_t *)(MainAddr+0*step)#define BiasRefFinal *(uint64_t *)(MainAddr+1*step)#def...

Gbasi.1 by Associate II
  • 2615 Views
  • 14 replies
  • 0 kudos

VREFBUF not working on STM32H743?

The current STM32CubeMX package cannot generate proper code to initialize the VREFBUF in STM32H743 MCU. Modifications to HAL_MspInit() in stm32h7xx_hal_msp.c can fix this: Add "__HAL_RCC_VREF_CLK_ENABLE();" to user code section 0.In user code sectio...

FLiu.11 by Associate II
  • 533 Views
  • 1 replies
  • 1 kudos