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! change default value of pins (gpio) in cubeMX

Hello,I searched in cubemx where to change the default value of gpio pins, but couldn't find it.Does anyone knows ? In generated code, all output gpio are set to 0, for example :HAL_GPIO_WritePin(GPIOK, SW_LED1_Pin, GPIO_PIN_RESET);Thanks,ranran

ranran by Senior II
  • 2805 Views
  • 1 replies
  • 0 kudos

CubeMX RTC Code Generated Not Working

Hi,I'm new STM32L072 (Discovery Kit) and I had generated a code to run the RTC using the LSI Clock and displaying the values via UART2 but the RTC values are not incremented even if rest button is pressed, Then I deactivated the calendar and observed...

0690X000006DFmvQAG.jpg

Understanding external clock configurations

For my CubeMX application on the STM32F091RC we are trying to setup an active external clock source. We do this by selection 'BYPASS Clock Source' for 'High Speed Clock (HSE) Mode', correct?Seems confusingly simple, I wanted to ask here before resear...

Justin1 by Senior
  • 492 Views
  • 1 replies
  • 0 kudos

Resolved! RCC Mode Definitions

I could not find direct definition for the RCC mode options in CubeMX, are these correct?RCC Mode Options:'Disable' - External oscillator disconnected'BYPASS Clock Source' -  External active clock source'Crystal/Ceramic Resonator' -  External passive...

Justin1 by Senior
  • 822 Views
  • 2 replies
  • 0 kudos

Problems with SMT32F427ZTGx and USB HID

Hello.I´m using a SMT32F427ZTGx. I have generated the code with CubeMX and compiled it with Keil 5.USB communications from the PC to the board work correctly but vice versa no. Some of the messages from the board to the PC are lost. Using a port sni...

SAlva.17 by Associate
  • 341 Views
  • 0 replies
  • 0 kudos

Problem with SPI Master / Slave Communication

We have a new board with seven STM32H743 onboard. One is used as SPI-master, the other 6 are SPI-slaves. Clock speed is set to 25MHz. When communicating to the slaves, 3 of them return wrong data after a few seconds. The initialisation code for the S...

GS1 by Senior III
  • 674 Views
  • 4 replies
  • 0 kudos

STM32F030K6 LL Driver - Missing Line

Hi,I am using version 1.9.0 of the STM32F0 package in cube.I have chosen DMA1CH4 for USART1TX and the following line was autogenerated as expected: LL_SYSCFG_SetRemapDMA_USART(LL_SYSCFG_USART1TX_RMP_DMA1CH4);However, the following line is missing: ...