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

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
  • 986 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
  • 1006 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
  • 2835 Views
  • 9 replies
  • 0 kudos

STM32G4 comparator output can‘t disable the PWM outputs when I want to use the fault protection mechanism。Is there something wrong in STM32CubeIDE configuration?

I tried to do a lot of changes of configuration,but it didn’t work. when I use comparator output as FLT input pin,fault protection works,however it‘s used as FLT_Int signal,it always doesn’t work.Hope your kind help,Thanks!

0693W00000AOITxQAP.jpg 0693W00000AOITsQAP.jpg 0693W00000AOITiQAP.jpg 0693W00000AOITYQA5.jpg
lshan.1 by Associate II
  • 1098 Views
  • 1 replies
  • 0 kudos

Resolved! Is there a bug in auto-generated CubeMX code that means DMA channels are not configured correctly for UARTS in STM32F407?

CubeMX (version 6.6.1 and others) generates this code. /* Initialize all configured peripherals */ MX_GPIO_Init(); MX_USART3_UART_Init(); MX_I2C1_Init(); MX_UART4_Init(); MX_UART5_Init(); MX_USART1_UART_Init(); MX_DMA_Init(); MX_USAR...

REdmo.1 by Associate III
  • 933 Views
  • 2 replies
  • 0 kudos

Resolved! NUCLEO-U575ZI-Q boad - CubeMX Conflicts in default project

New to STM32. I've ordered a NUCLEO-U575ZI-Q development board and have been playing with CubeMX in preparation for board arrival. In creating a project for the board I'm starting the project using the board selector and selecting the NUCLEO-U575Z...

ShawnP by Associate III
  • 1258 Views
  • 1 replies
  • 0 kudos

Resolved! CubeMX: problem when using "user constant" for FreeRTOS parameters

Hi,I'm using CubeIDE: V1.10.1 (CubeMX v6.6.1).To configure my project in (internal) CubeMX, I have created a "user constant":Name: USER_01Value: 7In FreeFRTOS Config parameters -> LIBRARY_MAX_SYSCALL_INTERRUPT_PRIORITY,I have entered this "USER_01" W...

0693W00000UoBf0QAF.png 0693W00000UoBfFQAV.png 0693W00000UoBfjQAF.png
Syn_BE by Associate III
  • 1178 Views
  • 2 replies
  • 1 kudos

Resolved! What is the version of HAL we are using?

Hi,We have selected Firmware Package STM32Cube FW_H7 V1.9.0 from CubeMX. However, the HAL Driver source file has following line:/** * @brief STM32H7xx HAL Driver version number V1.10.0 */Are the Firmware Package and HAL Driver versions different thin...

sute by Associate III
  • 2945 Views
  • 2 replies
  • 0 kudos

SIM800L doesn't respond to AT commands.

Hi there,I'm using a stm32f401re with stm32cubemx and keil uVision5. I'm trying to interface the mcu with the gsm module. I'm sure that the module works fine. I tested it with arduino and it worked without any issues. When I try to send any AT comman...

Scusi by Associate II
  • 6059 Views
  • 9 replies
  • 0 kudos