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

Bug with choice legacy library and new CubeMx?

I’m using:CubeMX v5.0STM32F105RCTxHAL_API_version 1.6.1And I have a compilation errors.This happens because CubeMX generates a CAN_InitTypeDef structure for new libraries (version 1.7.0).See what should be the structure for libraries 1.6.1I noticed s...

0690X000008AX7cQAG.jpg 0690X000008AX8BQAW.jpg

Resolved! using SPI to read register value

Hello GuysI am asking you kindly your help.I am trying to read register data from the LSM6DS3 IMU sensor from STM using SPI. I succeeded reading the value 0x69 from register WHO_AM_I using Arduino.Now I am stuck when trying to do it with STM32 micro-...

0690X0000089wYGQAY.jpg 0690X0000089wYQQAY.jpg
moha by Associate II
  • 4350 Views
  • 4 replies
  • 0 kudos

Double signal on PWM driven by DMA

Just trying to set PWM with DMABuffer which I try to use as duty cycleuint16_t BUF_DMA[6] = {3, 4, 2, 7, 9, 1}; PWM is started by buttonHAL_TIM_PWM_Start_DMA(&htim1,TIM_CHANNEL_4,(uint32_t*)&BUF_DMA, 6);Output I getI can't understand why BUF_DMA[3] ...

0690X000008AUpHQAW.png

Mounting USB using fatfs

Hi all,I am having troubles mounting a USB using the "f_mount" function in the fatfs library. My usb does mount but only after many attempts, using a simple counter I have found it to be 81, every single time I run the code it is the same amount of a...

Usb otg conflict with i2c on stm32f4 board?

I have the stm32f429 discovery board and I'm experiencing a conflict between the usb otg hs and the i2c3. I use the cdc usb library which when initialized on it's own works fine as a virtual com port and I can communicate in windows. When any other c...

KGon by Associate
  • 649 Views
  • 1 replies
  • 0 kudos

Wave generation of particular frequency.

By using timer I want to generate a wave of 27Mhz frequency. Present time I can generate only 13.48khz frequency wave. My timer settings are below please tell me how can I generate it.static void MX_TIM2_Init(void){ TIM_ClockConfigTypeDef sClockSourc...

LACTIC by Associate II
  • 1442 Views
  • 8 replies
  • 0 kudos

Unable to getting interrupt on rising edge

I am using STM32F103C8T6 and STM32CubeMX and TrueSTUDIO for development purpose.I am trying to get interrupt on rising edge and in ISR I wrote LED blinking code.I gave high input for rising edge detection but not getting LED blink.My code as follows...

JPanc.1 by Associate II
  • 1032 Views
  • 5 replies
  • 0 kudos

Resolved! DS3231 with STM32F103C8T6 using I2C

I was unable to retrive data from RTC DS3231 using I2C.And I am perfectly getting from ADXl325 accelerometer using I2C.RTC DS3231 works perfectly with arduino mega 2560 but problem getting data for STM32F103C8T6.Dont know why?I am using STM32CubeMX a...

JPanc.1 by Associate II
  • 721 Views
  • 1 replies
  • 0 kudos

STM32CubeMX configuration limitation (greyed out options)

Hello, friends!I configured the project for STM32L011 Nucleo board for read ADC input and I noticed that some of frequency devider options were greyed out for some reason).However I tried to change this setting in the c file with 100% success:At leas...

0690X0000087wAFQAY.png 0690X0000087wAZQAY.png
RMatv by Associate II
  • 1831 Views
  • 4 replies
  • 0 kudos