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

When I setup the RANK for the ADC I want to read TemperatureSensor, VRef, IN0, IN1. But the order appears IN1, TemperatureSensor, Vref, IN0

In the MX program I set up the rank. to scan 4 values. TemperatureSensor, VRefint, IN0, IN1.I Initially saw this in DMA mode, But see it also happens in Discontinuous Mode. But when read the order is off by 1 position. It looks like it is reading IN1...

0693W00000NrLM9QAN.png
KiptonM by Lead
  • 1002 Views
  • 3 replies
  • 0 kudos

ADC do not work with 1.10 after migration.

The clock "to ADC (MHz)" is grey in clock configuration. Don't see prescaler field in configuration. Plus it remove PLL **** configuration in main.c. /* Configure the system clock */ SystemClock_Config();   //****** This below have been remove fro...

GerHebert by Associate II
  • 1865 Views
  • 9 replies
  • 0 kudos

STM32L4R9 HAL_TIMEOUT in HAL_RCC_OscConfig

Hello, At code start-up, the function HAL_RCC_OscConfig return error HAL_TIMEOUT. I configured code with STM32CubeIDE. I am attaching clock configuration and code. Error is not repeatable, so it does not happen any time. Does anyone have an idea on h...

0693W00000Nre2jQAB.png
lukin by Associate III
  • 1636 Views
  • 4 replies
  • 0 kudos

Resolved! Error on MMC_PowerON() on STM32H7. Why?

I have SDMMC1 configured for my H7 as follows: The card is inserted. I call generated init, and set debug to the HAL_MMC_InitCard of stm32h7xx_hal_mmc.c file, line:/* Identify card operating voltage */ errorstate = MMC_PowerON(hmmc); if (errorsta...

0693W00000NrcaKQAR.png 0693W00000NrcZCQAZ.png 0693W00000NrcZRQAZ.png
HTD by Senior III
  • 903 Views
  • 1 replies
  • 0 kudos

Resolved! UART reconnection issue

Hello!I'm receving data in UART rx, using DMA and ring buffer with idle detection, but when I disconnect and reconnect the cable in Rx the communication stops and my buffer fills up with '\0'. So, I need to resume the UART communication, how can I do...

0693W00000NrXpyQAF.png
SGonz.2 by Associate II
  • 1260 Views
  • 5 replies
  • 0 kudos

i was trying interrupt on PA0 and PB5 pins on stm32f103c8 board(with cubemx generated code),but when triggered square wave impulse on B5 the along with ISR of EXTI9_5_IRQHandler the isr of A0 also getting executed EXTI0_IRQHandler.

.No jumper wires are involved direct probe connection from signal generator is used(siganls are generating fine cross verified with oscilloscope).Tried checking up with oscilloscope on A0 pin,while giving trigger wave to B5,no changes are seen on A0 ...

Sjose.2 by Associate II
  • 818 Views
  • 1 replies
  • 0 kudos

Cant open ioc file anymore - Invalid Input: Must be project's active .ioc file. Project's 'mipcontrol' active one is 'mipcontrol.ioc' file

Hello,i can't no longer open my ioc file. In my case its name is MIPControl. My projectname is mipcontrol. I know to change the name of the problem should fix it. But in my .project file the name is already set to MIPControl. When i rightclick on my ...

Resolved! In CubeMX program for the ADC I want 4 ADC channels, but the MX program only lets me enter data for 3. How do I put in data for Rank 1?

I am trying to setup an ADC to read 4 different inputs. TempSensor, VRefint, Channel 0 and Channel 1. When I tell it number of conversions = 4 It lets me Fill in Rank 2, 3, and 4, but not Rank 1. I thought this worked before. I uninstalled the ST IDE...

0693W00000NrGcxQAF.png
KiptonM by Lead
  • 3072 Views
  • 11 replies
  • 1 kudos

Is it possible to configure Software interrupts in QubeMX?

We rely on QubeMX to generate our boilerplate and initialization code as much as possible. Currently we configure a Software interrupt programatically viaHAL_EXTI_SetConfigLine(...); HAL_NVIC_SetPriority(...); HAL_EXTI_RegisterCallback(...); HAL_NVIC...

MGeri.1 by Associate II
  • 1422 Views
  • 3 replies
  • 0 kudos