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

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
  • 683 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
  • 1516 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
  • 1089 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
  • 773 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
  • 1909 Views
  • 4 replies
  • 0 kudos

Not receiving data on PC com(RS232) port, when transmitting data from STM32F407VG DISCOVERY board (Using Baseboard STM32F4 DIS-BB RS232 port ie COM1)

Hello,I am facing trouble in sending data out from STM32F407VG Discovery board (connected to base board) using UART6 (J1 and J2 jumpers are connected). Connected the Tx pin of RS232 port on baseboard to PC COM port Rx pin and sending data periodicall...

Configuring FATFS-SDMMC1-DMA on STM32L4R5... in STM32CubeMX

Hi guys,I have a question about my project with STM32L4R5ZIT6.I want to use the SDMMC1 peripheral together with the FAT-file system to write some logging data on a sd card.After several failed tries to write a test-file on the sd card with the FAT fu...

FGese by Associate
  • 781 Views
  • 1 replies
  • 0 kudos

I2C bug in CubeMX 5.0.1?

In my code I use I2C. But when I reset the MCU with my debugger (I-jet from IAR) the I2C peripheral indicates BUSY as soon as it is initialized by the MX_I2C1_Init() function.But if I add the following I2C reset in the MX_I2C1_Init() function before ...

sima2 by Associate III
  • 906 Views
  • 1 replies
  • 0 kudos