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

We are pleased to announce that the version 6.15.0 of STM32CubeMX is available. What is new in 6.15.0: Enhanced microprocessor support: Added the STM32MP21-A35-TD, STM32MP21-M33-TD, STM32MP25-M33-TD, and STM32MP23-M33-TD trusted domains for the STM32...

CubeMX: 0-Pointer access in generated MX_ETH_Init code

Hi!I've opened an issue on Github for the STM32H7 Cube HAL:https://github.com/STMicroelectronics/STM32CubeH7/issues/33Because the bug is in the CubeMX generated code, I hope this is the right Forum to report the bug.Best regards,Thomas

mail_st by Associate II
  • 826 Views
  • 2 replies
  • 1 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
  • 806 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
  • 569 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
  • 853 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
  • 1324 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
  • 1474 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