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

Changing duty cycle via DMA

Hi,I want to send via DMA different duty cycle to my TIM12 (I am trying to turn on a rgb led strip by using the method TIM+DMA ), but with CubeMx TIM12 don't have access to any DMA, any idea how I can reproduce?I am using STM32H7B3 and can't change t...

aabba.1 by Associate III
  • 598 Views
  • 1 replies
  • 0 kudos

How to set 80MHZ frequency of SPI4 of STM32h745Kii

Hello I am working on stm32h745 controller, I am configuring the DAC SPI . For the DAC minimum frequency is 80 MHz. I want to set that frequency for SPI4 , but uanble to set how I can set the 80 Mhz frequency to SPI4. How can I set that if I set th...

0693W00000WI0IJQA1.png
MDeva.1 by Associate II
  • 880 Views
  • 2 replies
  • 0 kudos

MDK-ARM V5 generator uses the wrong line endings(CRLF and not LF)

I've beenm struggling against some issues related to line-ending (CRLF vs LF) and git repos shared between different developers.And I discovered that MDK-ARM V5 generator in STM32CubeMX 6.6.1 under Windows generates the uvprojx file with the wrong li...

vix by Associate II
  • 1394 Views
  • 1 replies
  • 0 kudos

Cube Interrupts and C++

I am trying to port C libraries I made using LL Libraries generated from STM32CubeMX to C++ under STM32CubeIDE and I am looking for advice on how to accomplish the following:I Created and object wich uses USART_LL Libraries and wanted to have somethi...

VLe R.1 by Associate II
  • 1885 Views
  • 3 replies
  • 1 kudos

tooltips in .ioc file view disappear or appear randomly

When having those yellow /!\-info icons beside entries, like in the picture below,it is hard to catch them by hovering over them. They pop up too short to read them. (macOS BigSur in this case, Apple mouse) How can I read what's in there?

Resolved! Bug STM32L452CEU6 Internal WakeUp using RTC using CubeMX

Hi AllI switched form a STM32L412CBU6 to a STM32L452CEU6 MCU and created therefore a new project. The enable of the Internal Wakeup with RTC is not generated anymore into the rtc.c file using CubeMX Version 6.6.1. (I'm using the option seperte .c/.h ...

michi_22 by Associate
  • 884 Views
  • 2 replies
  • 0 kudos

Resolved! [STM32F446xxx] Synchronise 6 PWM outputs

Hello,I try to synchronise 6 PWM outputs for an BLDC controller.I use 3 timers :My target is STM32F446RET6 and I'm using STM32CubeIDE.I read that I add to use master/slave mode. I'm not sure it is the best way, but I configured TIM2 (slave) as follow...

0693W00000WHjN3QAL.png 0693W00000WHjXRQA1.png 0693W00000WHjQvQAL.png
VGros.3 by Associate III
  • 1039 Views
  • 2 replies
  • 0 kudos

RTC reading wrong value on STM32L4

Hi. I am using STM32L412KB for my application and internal RTC for maintaining time. I get epoch time over UART and then I call the following function to set the time.void set_rtc_time(time_t epoch_time) { rtc_time = epoch_time; struct tm *ti...

SBhon.1 by Associate III
  • 1045 Views
  • 1 replies
  • 0 kudos

Resolved! STM32CubeMX V6.6.1 HAL driver crashes, LL interface works

This is my first STM32 project and I am using an STM32F030C6T as a MODBUS slave device. I used the STM32CubeMX V6.6.1 to create a project template and STM32CubeIDE Version: 1.10.1 Build: 12716_20220707_0928 (UTC), along with an STlink interface.When ...

0693W00000VOIHgQAP.png 0693W00000VOIIjQAP.png
RMurt.3 by Associate III
  • 2986 Views
  • 9 replies
  • 0 kudos