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

After power-up and before using the usb, the STM32L4R9AI processor on our board goes to sleep and the current draw is as expected. But after using usb and removing cable, current consumption does not return to previous level.

As some background information, we used STM32CubeMX version 6.5.0 to generate the drivers for a custom hid device that runs on a STM32L4R9AI processor. When the usb cable is inserted, MX_USB_DEVICE_Init() is called which is stm’s code in a file calle...

dmc by Associate
  • 1222 Views
  • 3 replies
  • 0 kudos

Resolved! How to enable USART driver in CubeMX?

The code generated by the STM32CubeMX is using the UART rather than the USART.How do we generate the code using the USART driver lib via the CubeMX?

HF.Wang by Associate II
  • 3133 Views
  • 4 replies
  • 0 kudos

RS485 Driver Enable - DEAT and DEDT no effect

Hi Guys,STM32L475RGTXI have a device whith USART2 (PA2 and PA3) connected to a RS485 transceivers and i would like use the PA1 pin as DE, as below: This works correctly and the DE PIN is toggoled correctly.From the reference manual, I have seen that ...

0693W00000Y7wulQAB.png 0693W00000Y7wvUQAR.png 0693W00000Y7ww8QAB.png
PVero.1 by Associate
  • 1241 Views
  • 1 replies
  • 0 kudos

bug in HAL_UART_Transmit_DMA

I wrote an application configuring the USART for DMA transmission. The first call to HAL_UART_Transmit_DMA works correctly and the expected bytes are sent. However, every subsequent call fails with HAL_UART_STATE_BUSY.It appears that the uart state i...

MScha.8 by Associate II
  • 2388 Views
  • 4 replies
  • 0 kudos

STM32CubeMx warning when using 4 UARTs

Dear allI'm using STM32G070KBT in my product, as it has 4 UARTs.I want to use the 4 UARTs in asynchronous mode, no HW control, UARTs 1 and 2 use RX/TX, while UARTs 3 and 4 use only RX.When defining all those UARTs in STM32CubeMx, I've some warnings t...

jerome2 by Associate II
  • 2166 Views
  • 6 replies
  • 0 kudos

Resolved! CubeMX Generated Code: Build Option Greyed Out

Hello,I am using the NUCLEO-F401RE with the NUCLEO-IDB05A2 bluetooth low energy expansion board. I am trying to run the sample demo code that is part of the X-CUBE-BLE1 software package (SensorDemoBLE). I followed the instructions in this video below...

0693W00000Y7P7WQAV.png
KMew by Senior III
  • 2883 Views
  • 2 replies
  • 0 kudos

Resolved! RTC losing fractions of second on uP reset - how to solve?

My code initialises the RTC using the standard CubeMX code but before setting the clock it tests for a valid year > 2018. This works perfectly and the time and date are preserved through resets of the uP. However, it appear that either the reset or t...