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

I2C SCL operating frequency is very low. I configured the I2C2 Interface of my STM32F103 to have a clock frequency of 100 KHz (standard Mode) but it turns out to only be around 4 kHz. Can you point me in the right direction as why this could happen?

I am using the STM32F103C8T6 Microcontroller to read a sensor via I2C. I am using the stm32Cubemx to generate the initialisation code and Visual Studio and VisualGDB for debugging. My STM32CubeMX setup reads as follows:and my clock configuration:But ...

0690X00000DBuO8QAL.png 0690X00000DBuOwQAL.png 0690X00000DBuPzQAL.png
TKöhl.1 by Associate II
  • 2287 Views
  • 4 replies
  • 0 kudos

BUG: The __HAL_LOCK(x) macro needs a lock.

I can only imagine that __HAL_LOCK(x) is designed to make access to the HAL drivers thread safe. However, since the lock itself is not thread safe, the driver it's trying to protect is not thread safe either.I've spent a day trying to work out how t...

DOsbo by Senior
  • 1743 Views
  • 1 replies
  • 0 kudos

Resolved! Setting VREF voltage in CubeMX not working for STM32G4

I'd like to report 2 bugs/errors in CubeMx and the documentation in the stm32g4xx LL driver file:Setting the "Internal Voltage reference scale" in the "SYS" menu of CubeMX to SCALE2 (2.9V), won't take effect and the selected value always falls back t...

MScho.1 by Associate III
  • 1744 Views
  • 6 replies
  • 0 kudos