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

We are pleased to announce that the minor version 6.16.1 of STM32CubeMX is available. What is new in 6.16.1: This release addresses and resolves the issues outlined below: Users of STM32CubeMX version 6.13.0 and later may encounter a HardFault except...

Aimen1 by ST Employee
  • 194 Views
  • 0 replies
  • 1 kudos

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

Resolved! Need HELP :( A proven procedure (not trial and error) to add drivers to a core project created by MXCube.

I am designing a sensor board from scratch. It will be similar to evaluation board ..\STM32Cube\Repository\STM32Cube_FW_L4_V1.16.0\Projects\B-L475E-IOT01A.I have tried example projects, they work great. Since ST do not have .ioc files for the this bo...

0693W000007EXaIQAW.jpg 0693W000007EXtyQAG.jpg
Shaun.t by Associate III
  • 990 Views
  • 3 replies
  • 0 kudos

Updating DAC stm32f407 cubemx with timer interrupt went wrong

Hello, i am trying to add timer interrupt delay function to my DAC code shown bellow.At first i used CUBE MX to define dac and used HAL delay and it worked great as shownin the scope photo bellow.But then i tried to update the code with timer interru...

Nbkjh.1 by Associate II
  • 925 Views
  • 2 replies
  • 0 kudos

Resolved! I have a Discovery 32F412ZGT6 dev board and I'm trying to use the FSMC peripheral. The ioc file assigns pins PC11 and PC12 to D2 & D3 respectively. These pins are not available on the pin headers on the board and I cannot re-assign them.

So MX assigns the following pins for FSMCNWE -> PC2NOE -> PC5NE1 -> PD7RST -> PD11FMC addr A18 - PD13D0 -> PB14D1 -> PD15D2 -> PC11 (Assigned to micro sd card)D3 -> PC12 (Assigned of micro sd card)D4 -> PA2D5 -> PA3D6 -> PA4D7 -> PA5 Can you help wit...

EPate.1 by Associate
  • 822 Views
  • 2 replies
  • 0 kudos

Resolved! Compile error in OctoSPI on STM32H733

Hello,when generating code from CubeMX for STM32H733ZGTx setting PB13 as OCTOSPIM_P1_IO2, the following code is output:GPIO_InitStruct.Alternate = GPIO_AF4_OCTOSPIM;This won't compile as the correct definition is GPIO_AF4_OCTOSPIM_P1CubeMX v. 6.1.1FW...

CubeMX BUG STM32H7 VREFBUF

STM32CubeMX Version: 6.1.0-RC2 Build: 20201112-1557 (UTC)STM32CubeIDE Version: 1.5.0 Build: 8698_20201117_1050 (UTC) CubeMX generated code missing clock enable command before VREFBUF configuration.cube configuration: Generated code:missing "__HAL_RCC...

0693W000007ErlaQAC.jpg 0693W000007Erm9QAC.jpg

How to set up SPI? STM32h743ZI

I'm still beginner to programming STM32. I haven't been able to configure SPI for two weeks and don't understand what I am doing wrong. I dug up all the forums looking for an answer, but nothing helped to solve my problem. I checked the MOSI and SCK ...

VVlas.1 by Associate II
  • 1972 Views
  • 6 replies
  • 0 kudos

I am using STM32F779I-EVAL board.In this board UART, CAN is working fine. but the ethernet is not woring . I have configured lwip and wants to ping board from PC. but " destination host unreachable " message i am getting.

I have configured the board as mentioned below and written code in STM32CUBEIDE 1.4. PC IP ADRRESS : 192.168.0.14stm board ip : 192.168.0.10subnet mask : 255.255.255.0Default Gateway : 192.168.0.1and used a direct cross ethernet cable. if anyone know...

Rkant.1 by Associate
  • 743 Views
  • 0 replies
  • 0 kudos

STM32CubeMX STM32H7 Ethernet MAC Initialization is Broken

STM32Cube MX Version 6.1.1, STM32Cube MCU Package for STM32H7 Series V1.8.0eth.c is generated with the following code. It sets the MAC address assuming it is an array of bytes./* ETH init function */ void MX_ETH_Init(void) {   heth.Instance = ETH;...

ADunc.1 by Senior
  • 1118 Views
  • 0 replies
  • 2 kudos