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

Failed to use STM32CubeMX+H743+SDMMC+DMA+FATFS

Hello. I am using CubeMX to generate project and code. Without using DMA I can write SD card successfully, while I enable DMA f_open will wait for 30 seconds ( timeout) and fail with an Error 1 output.The CubeMX project is in the attachment.I need yo...

wjiac.1 by Associate II
  • 743 Views
  • 3 replies
  • 0 kudos

USB_OTG_HS Mass storage using internal DMA does not work

Hi all,I am implementing Mass Storage class device with USB_OTG_HS. The implementation is configured from CubeMX and works perfectly until I enable USB_OTG_HS internal DMA. As soon I do this everythig stops, and no functions from usbd_storage_if.c ar...

DmRozhd by Associate III
  • 514 Views
  • 2 replies
  • 0 kudos

I am new of the bluetooth argument. My application is based on STM32F411. I need to communicate with an external HCI bluetooth board via UART, but I do not find the correct stack for doing that.

I try to configure my project by Cube MX enabling additional software X-CUBE-BLE2 as start point. When I try to compile I get the error "hci.h not found". I think something is missing, but all the code is Cube generated,Is there a ready to use HCI st...

GGuer.1 by Associate II
  • 759 Views
  • 5 replies
  • 0 kudos

Bug in stm32l4xx_hal_conf.h template file

Hi, I just noticed that if Enable Full Assert option is enabled in the Project Manager, the generated stm32l4xx_hal_conf.h file has the following definition for assert failed:void assert_failed(char *file, uint32_t line);Which conflicts with the othe...

MVigni by Associate II
  • 1130 Views
  • 7 replies
  • 0 kudos

Adding Peripheral Comment Field to CubeMX:

Could you consider adding the following feature to CubeMX:Provide a free text comment field for each peripheral to be printed in the PDF and to appear as a C Language comment above the peripheral initialization code block and DMA code block.This woul...

Problem using 3 Output Compare Channels for Center Aligned PWM

Hello,i am using the STM32F103C6 MCU and i would like to produce 3 different Center Aligned PWM signals with 16KHz frequency and Duty Cycle 1 to 99%. I would like to change the duty cycle on fly using the CCR registers.I am configuring the 3 of TIM1'...

0693W000000W0o7QAC.png 0693W000000W0o8QAC.png 0693W000000W0phQAC.png 0693W000000W0sWQAS.png
SKokk.1 by Associate II
  • 1293 Views
  • 6 replies
  • 0 kudos

Resolved! How to use MCO at PG10/NREST Pin with STM32G474RE? Init. code from STM32CubeMX always works at PA8 Pin as MCO function.

I am working with a STM32G474RE and I want to use a MCO as an output of HSE(27MHz).I used STM32CubeMX Ver.5.6.1 for generate simplest init. code, which would work only for MCO function at PG10 Pin. ​here's my setup.I builded the init. code by SW4STM...

0693W000000VyoIQAS.jpg 0693W000000VyoXQAS.jpg

Bug? CubeMX 5.5.0 and SDMMC1

HiAlthough I configure in the cube that no external transceiver is used the define is set in the file (stm32h7xx_hal_conf.h).Any idea?Regards Jakob