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

USB HS - USB_TIMEOUT in stm32h7r3z8t6

Hello,I am working on a custom board with stm32h7r3z8t6. After the definition of the USB HS in Cube MX, the USB initialization is stuck on USB_TIMEOUT: USB HS connection on the board:  Here is the clock config:  void SystemClock_Config(void){RCC_OscI...

MihavinVin_2-1736260768989.png MihavinVin_3-1736260959083.png MihavinVin_4-1736261000481.png MihavinVin_0-1736260554509.png

Can't seem to start SPI1 on Nucleo-F401RE

I've been struggling for a while now to start the SPI1 protocol on the Nucleo-401RE. According to the datasheet, SPI1 is connected as follows, I generated the code in CubeMX and without adding a single line of code, compiled it without any failures a...

0690X00000ARHqoQAH.png
malehakim by Associate III
  • 1609 Views
  • 4 replies
  • 0 kudos

Resolved! Problems with CAN on STM32H753 after migration to CubeMX 6.13

Hi everyone!I've migrated my STM32H753 project to the new CubeMX version, and after that, something went wrong with the CAN bus communication (everything worked fine before the update). The CAN functions return no errors, and messages are being sent,...

tuo by Associate II
  • 1245 Views
  • 9 replies
  • 1 kudos

TIM8 STM32H745 PWM mode 1

I am using the STM32H745i_DISCO board. I can't seem to get TIM8 to output on PK0. I sure the GPIO is be setup correctly, but there must be something in one of the TIM8 registers. I am attempting to use TIM8 to adjust the brightness on the LCD screen,...

eadboston_0-1736199838299.png eadboston_1-1736199886380.png eadboston_2-1736200071656.png

Resolved! Modifying USB descriptor values in CubeMX

Hi,I am working on USB Device Middleware on STM32F469NI using STM32CubeMX. For our use case we have to modify the PRODUCT_STRING descriptor value (default is "STM32 Virtual ComPort"). Is it recommended to perform this, or are there any STM standards ...

nagahimanshu7_0-1736169522474.png

STM32U5 FreeRTOS MPU Support

Versions:STM32CubeMX 6.12.0FreeRTOS X-Cube-FREERTOS 1.1.10 (FreeRTOS Kernel 10.5.1)STM32U5 MCU Package 1.6.0Although STM32CubeMX now has support for FreeRTOS, it does not appear to recognise the FreeRTOS support (https://www.freertos.org/Security/04-...

BCowp1_1-1724423362897.png
BCowp.1 by Associate II
  • 1658 Views
  • 3 replies
  • 1 kudos

STM32H755: Wrong RCC clock auto configuration

Hi, @Amel NASRI    By the way, RCC clock auto configuration is also wrong.   but result showing:   which will mess up UART baud rate ( I have to chage UART clock source to HSI to get correct UART output, the old is PCLK1), same issue as the post yo...

Peter3718_3-1735755169613.png Peter3718_2-1735754928579.png
Peter3718 by Associate III
  • 1035 Views
  • 5 replies
  • 1 kudos

Resolved! Virtual COM Port Not Working on NUCLEO-H755?

I installed the latest CubeIDE hosted on a Mac to demo a NUCLEO-H755 board over USB.  Starting from a clean CubeMX code generation, I've managed to successfully create a basic application to blink the user LEDs and use the pushbutton  (along with bas...

paatx by Associate II
  • 1290 Views
  • 3 replies
  • 0 kudos