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

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
  • 902 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
  • 657 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
  • 958 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
  • 1620 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
  • 1695 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

USB OTG High-Speed data corruption in STM32F746-Disco Board

HiI'm very new to STM32. I create a project with STM32CubeMX for the STM32F746-Disco board and I need to use USB OTG HS for sending data to PC through VCP. The data size which I need to send to PC is 24576 Bytes. The USB connected properly but after ...

A_R by Associate II
  • 610 Views
  • 1 replies
  • 0 kudos