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

We are pleased to announce that STM32CubeMX 6.16.0 release is available. What is new in 6.16.0: Added support for new microcontrollers across the STM32WBA, STM32N6 and STM32H5 series and the STM32WL3x product line. The related new boards include the...

Aimen1 by ST Employee
  • 880 Views
  • 5 replies
  • 7 kudos

Unable to set up SPI between 2 stm32 devices

I am trying to get 2 stm32f411's to communicate via SPI. From my understanding, there should be 1 master device while the others should be its slaves. For my master device, I am using full-duplex master and I have disabled NSS and enabled the NSS pin...

0693W00000Hoa0tQAB.png 0693W00000Hoa1DQAR.png 0693W00000Hoa3nQAB.png
JTurn.2 by Senior
  • 1166 Views
  • 4 replies
  • 0 kudos

SAI I2S Mono Mode Not An Option

When using SAI for I2S, STM32CubeIDE does not give you the option to choose Mono mode. It's only option is Stereo Mode. However, STM32 SAI HAL supports both SAI_STEREOMODE as well as SAI_MONOMODE, so I think this should be an option.

SHamm.18 by Associate II
  • 4003 Views
  • 14 replies
  • 0 kudos

How to add core features of FreeRTOS

Hi everyone,Is there a preferred way of adding "core features" of FreeRTOS in a FreeRTOS application created by CubeMX? Do i have to add the respective files manually by copying them into my project?Unfortunately I found no built-in option in CubeMX....

CA_SUS by Associate II
  • 842 Views
  • 1 replies
  • 0 kudos

Resolved! CubeMX 6.4.0 STM32H750 Clock Issue

There seems to be a bug in the clock configuration for STM32H750XBHx. D1CPRE clock should be able to go up to 480MHz, but Cube won't take anything higher than 200MHz. HCLK is affected as well, can't set it to anything higher than 100MHzAndy

svcguy by Associate III
  • 1327 Views
  • 2 replies
  • 0 kudos

STM32 General Purpose Timer: Interrupt-Enable

Hello,on a STM32G474 I use "Basic timers" (TIM6, TIM7), as well as a "General Purpose Timer"(TIM4). For the "Basic Timers" I setup I2C devices an then enable the "Basic Timer"-Interrupt by calling HAL_TIM_Base_Start_IT . That works and the HAL_TIM_Pe...

0693W00000HoTzVQAV.png 0693W00000HoTzaQAF.png

Resolved! STM32CUBEMX code generation and pin configuration clarification

I noticed that some of the pins are configured in MX_GPIO_init() while others are not. They seem to have been configured somewhere else, so I'm not sure where to check if my pins were set properly. Also, some of the pin configurations are not updated...

JTurn.2 by Senior
  • 1969 Views
  • 5 replies
  • 0 kudos

I2C communication in ISR

Hello everybody,     I would need to use the HAL_I2C_Master_Transmit function in an ISR, in particular I would like to use it in the HAL_ADC_ConvCpltCallback function.I have seen that the HAL_I2C_Master_Transmit function calls HAL_GetTick() so I set ...

0693W00000Ho96fQAB.png