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

We are pleased to announce that the minor version 6.14.1 of STM32CubeMX is available. What is new in 6.14.1: SAI settings not displayed in the configuration tab of STM32H7Bxxx devices: After upgrading to STM32CubeMX 6.14.0, the SAI tab configuration ...

STM32CubeMX 6.14.0 released

We are pleased to announce that the release 6.14.0 of STM32CubeMX is available. What is new in 6.14.0: Added the support for the STM32WBA6xxx microcontrollers and:Added the support for USBX multi-instanceAdded the support for the memory management to...

STM32 General Purpose Timer: Interrupt-Enable

Hello,on a STM32G474 I use "Basic timers" (TIM6, TIM7), as well as a "General Purpose Timer"(TIM4). For the "Basic Timers" I setup I2C devices an then enable the "Basic Timer"-Interrupt by calling HAL_TIM_Base_Start_IT . That works and the HAL_TIM_Pe...

0693W00000HoTzVQAV.png 0693W00000HoTzaQAF.png

Resolved! STM32CUBEMX code generation and pin configuration clarification

I noticed that some of the pins are configured in MX_GPIO_init() while others are not. They seem to have been configured somewhere else, so I'm not sure where to check if my pins were set properly. Also, some of the pin configurations are not updated...

JTurn.2 by Senior
  • 1606 Views
  • 5 replies
  • 0 kudos

I2C communication in ISR

Hello everybody,     I would need to use the HAL_I2C_Master_Transmit function in an ISR, in particular I would like to use it in the HAL_ADC_ConvCpltCallback function.I have seen that the HAL_I2C_Master_Transmit function calls HAL_GetTick() so I set ...

0693W00000Ho96fQAB.png

One shot pulse on different channels - same timer

I am trying to get both PWM CH1 and PWM CH2 to fire independently with TIM15.However, both are enabled at the same time.Using CubeMX to generate initialization function:void MX_TIM15_Init(void) {   /* USER CODE BEGIN TIM15_Init 0 */   /* USER COD...

Resolved! Request for documentation on CubeMX. There's a new item Project settings: Thread-safe settings, but it is not mentioned anywhere except for Release notes

In the release notes of CubeMX 6.3.0 it says:Added thread-safe locking support. It can be enabled or disabled in [Project manager]>[Project] Thread-safe SettingsIn the Project settings tab there's a new item: But it is not mentioned anywhere else. Ca...

0693W00000FDdshQAD.png

Just found out about CubeMX, was doing it the hard way before this..... I have not found a way in MX to create a complete thread based program.

I cannot find anything in the code generation which allows for me to easily, being the operative word, create threads from the generated code. I have not been able to find any examples either to this nature.What is the best way to go from a standard ...

BEppe.1 by Associate II
  • 1991 Views
  • 8 replies
  • 0 kudos

Resolved! USB not working when MCO2 enabled and driven by PLLI2SCLK

The image shows my clock configuration for the STM32F469IIT. I want a 12MHz output from MCO2 and I found that I could theoretically achieve this using the PLLI2SCLK input. However, when I use this configuration, the device is not recognised by the PC...

0693W00000Hnmc4QAB.png
C.East2 by Associate III
  • 1436 Views
  • 7 replies
  • 1 kudos