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

Resolved! STM32G474 DAC with DMA doesnt work

I have trying DAC with DMA from STM32G474 eval board. I can see the values being updated to the DOR register and the DAC EN is set to 1. However, the output of the DAC is stuck at 0.I have attached the cubeide settings.

0693W00000JMOdcQAH.png 0693W00000JMP2lQAH.png 0693W00000JMP2gQAH.png 0693W00000JMP0lQAH.png
JHari.1 by Associate II
  • 1327 Views
  • 2 replies
  • 0 kudos

Resolved! CubeMX: ADC and DMA initialized in the wrong order

STM32L010C6TxSTM32CubeMX V 5.4.0FW_L0 V1.11.2When creating a new project that used the ADC with the DMA and some unrelated peripherals, cubeMX will generate the following initialization list in main: /* Initialize all configured peripherals */ MX_...

DWann by Associate III
  • 2596 Views
  • 8 replies
  • 0 kudos

Would like to understand why, when CubeMX is used to configure the USART2 the project is set up to ENABLE the UART module as set in the conf.h and not the USART.

CubeMX version 6.3.0CubeIDE version 1.7.0STM32Cube_FW_H7_V1.9.0The code section in the conf.h file to enable the USART (line 79) is block commented out and line 78 is not commented out which reads:#define HAL_UART_MODULE_ENABLEDAlso I have ENABLED th...

Resolved! Found a bug in the CubeMX Code Generation

There is a bug in the CubeMX Code Generation in STM32CubeIDE Code Generation (Version 1.7.0 updated to 1.8.0) for the STM32F767ZI. (STM32Cube FW_F7 V1.16.2)The bug was found by debugging a not working auto generated code that is using a DMA circular ...

PKrem.1 by Associate II
  • 926 Views
  • 2 replies
  • 1 kudos

Resolved! Cube32MX_IDE and STM32L562VET6Q FMC does not support SRAM, nor properly support LCD memory mapped controller. Data sheet says yes, FMC mode in IDE says no. Which is right?

Working on a hardware design for the STM32L562VET6Q (because that's all that's left with enough memory!)Want to add an S1D13517 (Epson) display controller. Said controller is memory mapped, 16 data bits, needs CS, etc, and one address line to select...

Resolved! STM32L151:HAL_UART_RxCpltCallback called only one time

HiI want to use a program i made before with the new IDE 1.8. It should reveive som data with the UART2 until EOL is received. It works on time and after it throws an interrupt (loops in the void USART2_IRQHandler(void)) but doesn't call the HAL_UART...

packmers by Associate II
  • 2684 Views
  • 9 replies
  • 0 kudos

CubeIDE/CubeMX Timer Configuration (Slave Mode / Gated Mode)

I am trying to test Slave Mode / Gated Mode on TIM10 on my NUCLEO-STM32F401RE EVK.RM0368 describes this mode as:"Slave mode: Gated mode The counter can be enabled depending on the level of a selected input."I am trying to use CubeIDE to generate the ...

0693W00000JMFGsQAP.png
SS13 by Associate II
  • 1980 Views
  • 4 replies
  • 0 kudos

No ST-LINK/V2 debug probe found connected to the USB port I am using stm32CudeMX to generate a FW on a NUCLEO-G431RB board with the IAR workbench for ARM. IAR workbench version is 9.10.1.36323. The code was built without error, but the download failed.

Step1: Start My project from ST Board:Step 2: Selected the board and Start Project:Step 3: In Project Manager, chose EWARM as Toolchain/IDE:Step 4: Generate Code and Open Project:Step 5: Built the code without errors:Step 6: Downloaded the code and g...

0693W00000JM2j3QAD.png 0693W00000JM2jSQAT.png 0693W00000JM2jXQAT.png 0693W00000JM2jmQAD.png
CZhen.1 by Associate II
  • 3627 Views
  • 7 replies
  • 1 kudos