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

Resolved! [STM32L151] STM32CUBEIDE 1.9.0, FW_L1 V1.10.3 SPI1 and SPI2 are missing options to set Clock Polarity (CPOL) and Clock Phase (CPHA)

 I was able to resolve by adding to SPI2_Init  /* USER CODE BEGIN SPI2_Init 1 */ hspi2.Init.CLKPolarity = SPI_POLARITY_HIGH; hspi2.Init.CLKPhase = SPI_PHASE_2EDGE;But STM32CubeIDE 1.8.0 with same version FW_L1 V1.10.3 does have the options as below ...

0693W00000NpjEqQAJ.png 0693W00000NpjhnQAB.png

Custom board with STM32G431 behaves weird

I've done a simple board with a STM32G431, the idea is to be a remote control that drives an infrared led. It has 8 buttons and the MCU should sleep until a button is pressed, then transmit the code and sleep again.Right now I'm just trying to make t...

0693W00000NsneZQAR.png
BRapo.1 by Associate II
  • 1036 Views
  • 1 replies
  • 0 kudos

What fastest way to change the size of the DMA addressed by a peripheral. In particular the DAC? Stopping and starting the DAC using HAL_DAC_Stop_DMA and HAL_DAC_Start_DMA with a new Data Length takes up a lot of cycles if I use the CubeMX functions. I

I tried DMA_SetConfig after __HAL_DMA_DISABLE and clearly it is not enough.Incidentally my intention is not change the size of the DMA allocated area - rather the size of this region accessed by a peripheral

Documentation for ST scheduler

HelloFor a project that I am working on I need a simple scheduler, a full RTOS is more complex than I need. My first idea was to build one myself but I noticed that when using STM32Cube to generate code to for example run bluetooth a scheduler is inc...

OTern.1 by Associate
  • 1121 Views
  • 1 replies
  • 0 kudos

I can't generate code from stm32cubemx

The first time I generate code, it works.But by the second time I clicked the GENERATE CODE, the progress bar is not moving anymore after 'generating user source code'.I have tried to remove the file '.mxproject' , but it didn't work. The Application...

0693W00000NsliKQAR.png
Lkid by Associate
  • 802 Views
  • 2 replies
  • 0 kudos

how to stop output compare channel at only 8 pulses?

I have used output compare to send data at two pins simultaneously. the data is variable. however, I need only 8 clk pulses and on each rising and falling pulse edge data transfer to the output pin.I am unable to stop pulses and data at only 8 edges ...

0693W00000NsrrhQAB.png 0693W00000NsrpbQAB.png 0693W00000NsrpgQAB.png 0693W00000NsrwXQAR.png
SAMIN.1 by Associate III
  • 477 Views
  • 0 replies
  • 0 kudos

Resolved! Is the STM32H747 code directly portable to the STM32H757?

I'm using the STM32H757i Eval board. In STMCube repository for H7 v1.10.0, there is not a project folder for the STM32H757i eval board. I'd like to use the BSP LED/Touch drivers from the STM32H747i-EVAL project found in the cubeMX repository and pote...

jmorganj by Associate III
  • 748 Views
  • 1 replies
  • 0 kudos