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

We are pleased to announce that version 6.17.0 of STM32CubeMX is available. What is new in 6.17.0: Added support for new microcontrollers across the STM32WBA, STM32H5, and STM32U3 seriesAdded support for new boards: NUCLEO-WBA25CE1, NUCLEO-H5E5ZJ, ST...

Aimen1 by ST Employee
  • 1249 Views
  • 0 replies
  • 2 kudos

Resolved! STM32CubeIDE generates bad DMA init code for UCPD on G0B1

I'm using STM32CubeIDE to configure UCPD1 on STM32G0B1KET6N.  My firmware package is FW_G0 V1.6.2I enable DMA: UCPD1_RX = DMA2 Channel 1, UCPD1_TX = DMA2 Channel 2The generated code in MX_UCPD1_Init can't compile because the DMA init code is bad.  Th...

GrahamAU by Associate II
  • 2679 Views
  • 5 replies
  • 4 kudos

Potential overflow in HAL_Delay

I *think* that the check on line 7 below is to make sure that wait doesn't overflow when adding uwTickFreq. This isn't guaranteed to work unless uwTickFreq is 1.  __weak void HAL_Delay(uint32_t Delay) { uint32_t tickstart = HAL_GetTick(); uint32_...

abellia by Associate
  • 1297 Views
  • 2 replies
  • 3 kudos

Resolved! CubeMX doesnt generate any code

Hello,I am new to programming STM MCUs and currently working with an STM32H745I-DISCO board.I am trying to implement a simple blink project. In CubeMX, I created a new project and configured pin PJ2 as an output push-pull. Then, in the Project Manage...

RafaelS by Associate III
  • 2223 Views
  • 4 replies
  • 0 kudos

Hey everybody, is it possible to convert code for the STM32F103C8T6 so it works on the NUCLEO F446RE? Or can I just use the same code and use in STM32CubeMX?

I'm trying to do a Project with the MAX30102. I can read out the raw data of the sensor but I am unable to understand the algorithm to calculate the Heartrate and SPO2 out of the raw data. The only examples I can find are for Arduino Boards but that'...

FEnis.1 by Associate
  • 8802 Views
  • 5 replies
  • 0 kudos

Resolved! Adding User Label in CubeMX, and regenerating code, CubeIDE doesn't add appropriate #define resulting in undeclared errors. Is this the design behavior?

Shouldn't CubeMX 6.01 create the #defines that coorespond to newly added User Labels in an existing project ? Of course it works if I add the User Labels as #defines manually. If this is the expected design behavior, please let me know...Thanks,Heath...

HGran.1 by Associate II
  • 3499 Views
  • 4 replies
  • 0 kudos