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...

I2S microphone and sampling frequency in CubeMX

Hello,Configuring the I2S on CubeMX on STM32G431, for which I've connected a microphone in PDM, I want a sampling frequency of 48KHz@16bit.Typically, this requires a PDM frequency of 3.072MHz and a decimation of 64.I wonder why I need to tell CubeMX ...

PCu1 by Senior
  • 316 Views
  • 0 replies
  • 0 kudos

sysmem.c build error in clang

When building an STM32CubeMX generated cmake project with clang there are two files that generate errors:sysmem.cthe linker script (STM32L431RCTX_FLASH.ld and stm32l476rgtx_flash.ld)sysmem.c produces the following error:Core/Src/sysmem.c:30:35: error...

CubeMX generates bad code for UART in half duplex

hello,I am working on a design using MB1684 with STM32C011 as target. I configured UART2 as half duplex, TX only, so that I could use it for debugging, and I discovered that CubMX generates code which causes the board to hang, because it waits for bo...

danmcb by Associate III
  • 332 Views
  • 2 replies
  • 4 kudos

Resolved! STM32H563 DAC1

I used CubeMX 6.12 to generate code and DAC output works as intended.I cloned that project, migrated to CubeMX 6.13 and generated code. DAC output doesn't work. Migration to 6.13 also used FW H5 1.4 instead of 1.3.Comparing stm32h5xx_hal_msp.c I see ...

STM32CubeMX stuck at "Copying Library files"

Hi,I am trying to "generate code" using an existing .ioc file. When I click on "generate code" , it is stuck. I am not able to close the window. I had to restart my laptop. I uninstalled and installed again. Tried the same process. But it didn't work...

uthraj_0-1698337612070.png
uthraj by Associate II
  • 2562 Views
  • 7 replies
  • 2 kudos

STM32cubeMX generate wrong makefile

Hi, I'm using the last version of STM32cubeMX. When trying to generate a makefile project for the STM32L073RZ microcontroller. The resulting makefile is wrong. Build target are nonsense: ###############################################################...

CubeMX Projects Are Not Completely Generating

I'm experiencing complete failure in generation of new projects.  Using either CubeMX or CubeIDE it is the same behavior.Generate a new project like I've done for 10+ years, only to find the folder structure missing almost everything required to buil...

Screenshot From 2025-02-16 17-35-55.png Screenshot From 2025-02-16 17-37-17.png Screenshot From 2025-02-16 18-12-32.png

Resolved! Pin PB4 is pulled high during reset for a stm32F103

I am using an stm32F103 and have configured PB4 as a output pin and this works correctly. However when the chip is reset, this pin is automatically pulled high. It appears that this behavior exists because of the pin's dual use as NJTRST. Is there a ...

JGaby.1 by Associate III
  • 671 Views
  • 8 replies
  • 6 kudos