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

I2C timing setup for STM32L552MEYxP

Hello all,  I have a STM32L552MEY6P. I am using it as a slave and setting an address. Using the MX cube set the speed for 400kHz. I have a Rasberry pi trying to do an address detect. Whenever I turn on the clock stretch, I get a read at address 0x50....

0693W00000LzWINQA3.png 0693W00000LzWIXQA3.png
VThan.2 by Associate III
  • 750 Views
  • 1 replies
  • 0 kudos

If I activate the LSE for the RTC instead of the LCI, using version 6.4 of stm32cubemx , the "SystemClock_Config()" function generates an error. is there a solution to solve the problem using version 6.4 of stm32cubemx.

Initially I used version 6.5 of stm32cubemx to generate my project for stm32h743 and as I use the ADC module which I cannot get to work with this version, I switched to version 6.4, I So the problem of the ADC is solved, it works very well except tha...

Resolved! STM32CubeIDE modify HAL code

We have to make minimal changes to parts of the HAL code, which would be overwritten by code generation.Is there a recommended way to implement such changes, such that they don't get reverted by generation?The two ways I can think of both have their ...

JKut by Associate II
  • 801 Views
  • 1 replies
  • 0 kudos

Why don't I have HAL_CAN_Transmit in the generated CubeMX code?

I setup a project in CubeMX (STM32F302C6), activated CAN (and other peripherals) and did everything. I generated the code and opened it in eclipse. However, in the HAL_CAN library the functions like HAL_CAN_Transmit are missing. I have these control ...

YFric by Associate II
  • 3603 Views
  • 6 replies
  • 0 kudos

Resolved! How to set DIVN2 and DIVP2 of PLL2 in code

I have set the clock for the ADC to 51.2MHz by PLL2P with the DIV set as seen below. Without reprogramming the STM32H7A3 I would like to change DIVN2 to x16 and DIVP2 to /32 to give me 4MHz clock to the ADC, but I can not seem to find where these are...

0693W00000NqiT8QAJ.png
KSOdin2 by Associate III
  • 2642 Views
  • 11 replies
  • 0 kudos

[STM32F303] Internal connection of COMP1 and COMP2 to TIM3IC1

Hi,I am using a TIM3 configured in OPM mode, trigger source set to TI1FP1.The COMP1 and COMP2 outputs are configured as internal connection to TIM3IC1. If I turn on only one comparator everything works, if both are on, it doesn't work. Configuration ...

PKurz.1 by Associate III
  • 1241 Views
  • 3 replies
  • 0 kudos