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

We are pleased to announce that the minor version 6.14.1 of STM32CubeMX is available. What is new in 6.14.1: SAI settings not displayed in the configuration tab of STM32H7Bxxx devices: After upgrading to STM32CubeMX 6.14.0, the SAI tab configuration ...

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

Resolved! CubeIDE 1.7.0 programming Nucleo-H723ZG to respond to UART input using DMA receive. Code generated by MX results in received data ec as all zeros. Is this a known MX-generated code error?

The MX generated C code issues the USART initiation call before the DMA initiation call. My code simply echoes back any text received by the USART. Unfortunately the echoed data (correct length) is all zeros. The UART read buffer is initialised with ...

MKidd.1 by Associate II
  • 3001 Views
  • 16 replies
  • 0 kudos

STM32H747XI Timer Input Capture Not Working

Hello,I'm trying to use a timer to measure the frequency of an input signal using the callback function:HAL_TIM_IC_CaptureCallBack(TIM_HandleTypeDef*htim)The function never seems to be called when a voltage is applied to the input pin. Here is the ti...

AWats.4 by Associate II
  • 1436 Views
  • 3 replies
  • 0 kudos

Possible CubeMX I2C timing config bug (STM32L0x and other)

I try to complete standard I2C 100kHz setup for STM32L041 with 16MHz clock (I2C1CLK). Here are CubeMX setting:Timing registry value is 0x00A03D53 which, according to RM0377, 23.7.5 Timing register (I2C_TIMINGR), translates to:PRESC=0SCLDEL=10SDADEL=0...

0693W00000Dq1KcQAJ.png 0693W00000Dq1LpQAJ.png
TDJ by Lead
  • 1146 Views
  • 2 replies
  • 0 kudos

Invalid usbd_conf.c generated by STM32Cube v6.3.0

Output in the usbd_conf.c file when generating code for a CDC device. Code is using USE_HAL_PCD_REGISTER_CALLBACK for HAL_PCD_MspInit and HAL_PCD_MspDeInit instead of USE_HAL_PCD_REGISTER_CALLBACKS (note the final 'S'), which was there in previous ve...

0693W00000DqNvGQAV.png
pbk by Associate
  • 857 Views
  • 4 replies
  • 0 kudos

Is it possible to use the internal OPAMP from the STM32G4 series with only the VINPx pin assigned to a physical pin? Configured as non-inverting, negative feedback with a gain.

I would like to implement a current sensing using a grounded shunt resistor. Therefore I would like to use the build-in OPAMP from the STM32G491 Series. But I'm not satisfied with the CubeMX configuration.In AN5306 I found a configuration under 4.4.1...

MWält.2 by Associate II
  • 1106 Views
  • 3 replies
  • 1 kudos

Resolved! How do I report an error in Cube initialization code?

I am using stm32L412CBU microcontroller and I am using both ADC units. The code generation generates this line of code:PeriphClkInit.AdcClockSelection = ADCCLockSelection; which is incorrect according to the structure RCC_PeriphCLKInitTypeDef for th...

MKass.1 by Associate II
  • 745 Views
  • 2 replies
  • 0 kudos

Same pin as timer input and GPIO input

If I configure a pin as a timer input capture channel input, can I also read the state of that pin as a GPIO input?I'd like configure the timer channel as an input capture channel, and I'd like to capture both rising and falling edges. But when the e...

AJame.1 by Associate II
  • 2290 Views
  • 3 replies
  • 1 kudos