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

Return Code in Cube MX's initialization functions

Posted on September 09, 2015 at 14:17When using CubeMX to generate project (e.g. for SW4STM32), the code for SD Card looks like this:void MX_SDIO_SD_Init(void){  hsd.Instance = SDIO;  hsd.Init.ClockEdge = SDIO_CLOCK_EDGE_RISING;  hsd.Init.ClockBypas...

STM32CubeMX Bug: NbrOfDiscConversion not set

Posted on August 24, 2015 at 22:08When Discontinuous Conversion Mode is disabled CubeMX leaves the NbrOfDiscConversion field in ADC_InitTypeDef uninitialized which can cause assert_param(IS_ADC_REGULAR_NB_CONV(hadc->Init.NbrOfConversion)) in  HAL_AD...

greg2399 by Associate
  • 688 Views
  • 2 replies
  • 0 kudos

CubeMx Export info

Posted on March 04, 2015 at 11:41HiWith CubeMx, I can associate the Label for each pin of the MCU or only some of them. Exporting the project to TrueSTUDIO, I have noticed that these customizations remain only in the .ioc file and are not included i...

drake by Associate II
  • 789 Views
  • 4 replies
  • 0 kudos

STM32CubeMX Issues

Posted on October 07, 2015 at 08:19have you ever noticed, that pinout and clock config tabs aren't matching each other?especially if you select Nucleo or Discovery Boards, on pinout Tab you can see pin's selected and marked properly, but Clock confi...

nadiradn by Associate
  • 524 Views
  • 2 replies
  • 0 kudos

STM32Cube I2C HAL Issues with HTU21D and BMP180

Posted on October 07, 2015 at 13:16 I am a beginner to STM So far, I have done a lot of work on NETMF and AVR. Starting out with STM Environment: I have a super tiny board for STM32F103C8 (like this one http://artofcircuits.com/pro...

CubeMX Newbie Question

Posted on October 03, 2015 at 05:00I intend to use SDIO with STM32F103C8 MCU and am trying to generate initialization code from CubeMX.It turns out, SDIO is NOT available for STM32F103C8 MCU in CubeMX.  Is there a good reason why this cannot be done...

ymhsieh by Associate II
  • 908 Views
  • 4 replies
  • 0 kudos

Possible bug in STCubeMX HAL DMA code for F4

Posted on August 13, 2014 at 02:14I do not know enough about the internal workings of the processor to be sure, but I believe there is a bug in the HAL DMA drivers for the F4xx series. Specifically, it seems the De-init method puts the DMA periphera...

Stm32Cube - Simulink - MikroC

Posted on October 01, 2015 at 13:22Hello, I'm new here and i've the problem that i don't know how to get the generated code from simulink and CubeMX to my Microcontroller.My Setup:I use mikroC Pro and an EasyMX Prov7 board with STM32V107VCT6Now I go...

Problem with USB Host CDC class

Posted on July 03, 2014 at 12:01Hello,I'm using STM32CubeMX to generate a project for STM32F207 that uses USB Host. The project compiles without problems. I have a custom USB device that uses CDC to send and receive serial data. When the device is a...

BUG: CAN race condition if HAL_CAN_Receive_IT is used

Posted on April 15, 2015 at 22:27 If you use HAL_CAN_Receive_IT for receive and send messages at same time you can get race condition. Typical callback looks like: void HAL_CAN_RxCpltCallback(CAN_HandleTypeDef* CanHandle) { if ((CanHandle...

vromanov by Associate II
  • 1473 Views
  • 6 replies
  • 0 kudos