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

STM32F302C8T6: CubeMX generated custom HID can only receive two packets if "USBD_CUSTOM_HID_SendReport" is used to send data back

I have a custom board with STM32F302C8T6. I generated a custom HID project by CubeMX(STM32Cube_FW_F3_V1.11.3), and found that only two packets could be received if "USBD_CUSTOM_HID_SendReport" is used to send data back to host.Here are some more deta...

14545714 by Associate II
  • 1253 Views
  • 2 replies
  • 1 kudos

Resolved! BUG in CubeMX code generation for STM32G050K6Tx

Enable both USART1 and USART2.The code generated for initialization of the GPIO looks like this:void HAL_UART_MspInit(UART_HandleTypeDef* uartHandle) {   GPIO_InitTypeDef GPIO_InitStruct = {0}; RCC_PeriphCLKInitTypeDef PeriphClkInit = {0}; if(u...

Resolved! X-CUBE-IRREMOTE for stm32g030f6p6

 Hey,I am trying to include X-CUBE-IRREMOTE for stm32g030f6p6 but it doesnt show up in software packs in cubeMXif i try to manually install it it gives an error of invalid packet

Ashja .S by Associate II
  • 1080 Views
  • 3 replies
  • 0 kudos

Resolved! Can't configure USB FS on STM32F429ZI

When I set up the USB_OTG_FS peripheral in CubeMX I get the following error: Looking at CubeMX I can't see anything wrong. The only thing I noticed is that I can't enable VBUS Sensing. The only option is "disabled". It has a pin assigned for it, the ...

0693W00000NqZGUQA3.png 0693W00000NqZGZQA3.png
qua by Associate III
  • 1233 Views
  • 5 replies
  • 0 kudos

Resolved! LwIP problems from code generated via STM32CubeMX (SMT32H7)

Hello,I seem to be having some problems with the code generated via STM32CubeMX on the NUCLEO-H743ZI development board. I want to configure it to run on LwIP/RAW API. I can create such a configuration for its close relative: the NUCLEO F767ZI develop...

0690X000006C7VhQAK.png
KR1 by Associate III
  • 8984 Views
  • 23 replies
  • 1 kudos

LPTIM4 init stuck at REPOK on NUCLEO-U575ZI-Q

Hello together,Aim:Learn how to use the LPTIM on STM32CubeU5 low level device drivers, such that it consumes least possible energy.Write a program that blinks the on board red LED every 1 s (forground loop) using the interrupt mechanism of the LPTIM,...

NNir by Associate II
  • 2247 Views
  • 9 replies
  • 0 kudos

SPI "Receive Only Master" doesn't work with DMA

In STM32CubeMX, version 6.3.0, using STM32CubeF4 v1.25.2, when a SPI port is set to mode "Receive Only Master", it sets `hspi#.Init.Direction = SPI_DIRECTION_2LINES_RXONLY;` in generated code, as (I think) it should. However, the generated code doesn...

BMcDo.3 by Associate III
  • 2273 Views
  • 4 replies
  • 1 kudos