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

We are pleased to announce that the minor version 6.16.1 of STM32CubeMX is available. What is new in 6.16.1: This release addresses and resolves the issues outlined below: Users of STM32CubeMX version 6.13.0 and later may encounter a HardFault except...

Aimen1 by ST Employee
  • 1003 Views
  • 0 replies
  • 1 kudos

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
  • 1794 Views
  • 5 replies
  • 7 kudos

Clock configuration for USB on STM32F746ZE

Hi all,I'm using an STM32F746ZE in my application that uses USB OTG HS with internal FS Phy in Host only configuration.Originally, I have setup the clock in the following manner:in order to have 48MHz clock for USB. With this configuration, any devic...

0690X00000DC0BFQA1.png 0690X00000DC0CcQAL.png
EBris.1 by Associate
  • 1233 Views
  • 0 replies
  • 0 kudos

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
  • 2866 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
  • 2045 Views
  • 1 replies
  • 0 kudos