Ask questions on STM32CubeMX. Discuss code generation and configuration challenges, among other topics.
Most recent activity
..
Editing C:\ST\STM32CubeIDE_1.0.2\STM32CubeIDE\plugins\com.st.stm32cube.common.mx_6.1.1.202012091304\db\templates\fatfs_platform_c.ftl #include "fatfs_platform.h" /* USER CODE BEGIN Includes */ /* USER CODE END Includes */ uint8_t BSP_PlatformIsDetected(void) {Above "USER CODE BEGIN Includes and END" section fixes it ... until new firmware package is available.
At the end of the code generation process a message is produced that includes the text '..but MDK-ARM V5.27 project generation have a problem' (note: does this for all versions of the Keil IDE). It generates one file only; totally wrong. This behaviour occurs on: 1. Macbook Air, running High Sierra. 2. iMac running El Capitan. 3.iMac running Mojave. 4. Windows 10 running in Parallels on the Mijave iMac. However I have no problems with CubeMx v6.1.1 running on Windows 10 on a PC.The issue appears to be related ONLY to the MDK-ARM IDE.
Hello,I am not able to launch STM32PackCreator 3.1.0. The program shows "JavaFX not found" on start. I have already tried multiple versions of JDK on Manjaro Linux and Windows 10 without any success. Tested Java JDK versions on Manjaro Linux:Amazon Corretto 11OpenJDK 15OpenJDK 11OpenJDK 8Oracle JDK 15Oracle JDK 8Installed Java SDK versions on Windows 10:Oracle JDK 15.0.2Oracle JDK 8Console output Manjaro Linux:# java -jar STM32PackCreator.exe 0 [main] DEBUG com.st.configurator.Main - log4j user configuration file not found: /home/pbolte/.configurator/log4j.properties 1 [main] DEBUG com.st.configurator.Main - Configure log4j with default settings from jar:file:/opt/stm32cubemx/utilities/STM32PackCreator/STM32PackCreator.exe!/log4j/log4j.configurator.properties 2021-01-21 08:40:29,621 [INFO] Main:137 - Starting Pack Creator 2021-01-21 08:40:29,622 [INFO] Main:128 - Detected JVM Path = /usr/lib/jvm/java-11-amazon-corretto/bin/ 2021-01-21 08:40:29,622 [INFO] Main:60 - Detected Java Ve
I seem to be unable to get the RTC to start. I can set the time, and read from it, but it doesn't increment.I have tried using the external and internal oscillator, neither have been successful. Everything has been set up with CubeMx, and I have used the RTC before on an STM32L0 micro with no issue, comparing it to my old code I cant see what I am doing differently.I have attached the relevant parts of the code, if you know what I am missing please let me know.Thanks,Lukestatic void MX_RTC_Init(void) { RTC_TimeTypeDef sTime; RTC_DateTypeDef sDate; /**Initialize RTC Only */ hrtc.Instance = RTC; if(HAL_RTCEx_BKUPRead(&hrtc, RTC_BKP_DR0) != 0x32F2){ hrtc.Init.HourFormat = RTC_HOURFORMAT_24; hrtc.Init.AsynchPrediv = 127; hrtc.Init.SynchPrediv = 255; hrtc.Init.OutPut = RTC_OUTPUT_DISABLE; hrtc.Init.OutPutPolarity = RTC_OUTPUT_POLARITY_HIGH; hrtc.Init.OutPutType = RTC_OUTPUT_TYPE_OPENDRAIN; if (HAL_RTC_Init(&hrtc) != HAL_OK) { _Error_Handler(__FILE__, __L
I made a project based on NECLEO STM32L552ZE-Q, when I made it from MX configuration tool, I found there was no "stm32l5xx_hal.h", while it was included in main.c, where could I find it?
MCU selector in CubeMX finds H730VB when i set requirements to USB HS and 2x FDCAN. Unfortunately, it is not possible to select external ULPI PHY in USB_OTG_HS configuration. Only internal PHY is available. When checked against datasheet, H730VB should be able use external ULPI PHY after switching some PC pins. STM32H723VB does not seem to have this issue in CubeMX.What am I doing wrong?
Hi all,In my project with STM32H743 (created with CubeMX version 5.0.1) I have a strange behaviour of f_write when writing data to the file and the amount is not a number which can be devided by 32.In my test I wrote 256, 512 or 4096 Bytes at a time. Everything perfect. Data in File as expected.BUT: When writing e.g. 590 Bytes (which is not dividable by 32) -> Errors appear.I create a test file with following text pattern (590 Bytes) 0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklm0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklm0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklm0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklm0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklm0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklm0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklm0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklm0123456789:;<
Dear professionals, please give me help if possible.I'm just starting to study the F4 series. I can't connect this display and initialize SSD1963. I'm trying to move the project from Keil to CubeIDE and from F103 to F407. I did everything (almost correctly) and the display doesn't work. If you have the time and know how to do it right, please help me. I respect your time and space, but I'm tired of getting mistakes. Thanks for understanding.Attached two projects
Hi everybody, I'm working with a STM32F429VGTx MCU and I just wanted to test a simple Toggle LED program with it, but I'm having trubble when debugging the project. I'm using CubeMX to configure the PE2 pin as GPIO output and I'm also setting up the HSE crystal resonator as the external clock for the system clock. In the clock configuration I'm setting up HCLK to be 180 MHz and I'm not sure if this is relevant, but I have also configured by debug as JTAG with 5 pins under the "SYS" menu. After generating the code for SW4STM32 I have only added the HAL_GPIO_TogglePin() function and a delay to watch the LED blink. My project compiles perfectly and it also runs just fine. The problem comes when starting a debug session. I add a breakpoint right before the HAL_GPIO_TogglePin() function and the debugger frezees inside the SystemClock_Config(void) function. If I click the "Suspend" buttom and then "Reset the chip and restart the debug session", the debug works perfectly. If I use the F6
I found these prompt in my "main.c" of NonSecure generated by MX for NUCLEO L552ZE-Q: /* USER CODE BEGIN WHILE */ while (1) { /* USER CODE END WHILE */ /* USER CODE BEGIN 3 */ } /* USER CODE END 3 */ }should it be this? /* USER CODE BEGIN WHILE */ while (1) { /* USER CODE BEGIN 3 */ /* USER CODE END 3 */ } /* USER CODE END WHILE */ }
we want connect PE64904 device ( e wire SPI compatible interface) to stm32f407 what is the correct interface https://www.psemi.com/pdf/datasheets/pe64102ds.pdf
Hi,I have NUCLEO-G071RB board . How to calculate 1KHz frequency with STM32G071 Output compare ?My System Clock frequency is 64 MHz . --Karan
Configuration tool auto generated code SystemClock_Config() calls HAL_PWREx_ConfigSupply(PWR_DIRECT_SMPS_SUPPLY). For my hardware i need to use PWR_SMPS_1V8_SUPPLIES_LDO with no voltage scaling. I cannot find where to change the power supply configuration.
There is a difference between CubeMx and the datasheet. from Pin48https://community.st.com/s/?t=1610970558389Datasheet - STM32H753xI - 32-bit Arm® Cortex®-M7 400MHz MCUs, up to 2MB Flash, 1MB RAM, 46 com. and analog interfaces, crypto page 56/252Datasheet pin48 = NCCubeMx pin48 = VDDWhat is right ?
Hello,I have just updated to the latest: STMECubeMX to version 6.1.1. and STM32CubeF1 Firmware Package V1.8.3 / 20-October-2020. Part Number: Stm32f103RCTx. And I have found the bug - probably ? When you use SDIO and define it as 1bit, the CubeMX claims that UART4 and UART5 become unavailable. It warns about conflict with SDIO_D2 and so on.But at 1bit mode I do not use SDIO_D2. And with previous version (5.6..?) of CubeMX it was working well. Something went wrong with this new Cube / Package version? I hope :) Best regards.Robert
So, I'm trying to get my project started in anticipation of the arrival of my STM32L562-DK board, and having unusual difficulty.I asked another question about code generation, so will not reiterate here. I upgraded to 1.5.1, and now I'm in a very odd state where it says that ALL the X-CUBE packs are not compatible with the selected MCU.Does this mean that it's not possible to actually use the BTLE peripheral on the Discovery Board, since X-CUBE-BLE1 is incompatible with the MCU? Or am I in some strange state, where the IDE is not just letting me install something that would work just fine.
Why does this happen ? Could this, in part, be due to me not knowing whether to choose "new C project" vs "new C++" project?Using: STM32CubeIDE 1.5.1Build: 9029_20201210_1234 (UTC)OS: Windows 8.1, v.6.3, x86_64 / win32Java version: 1.8.0_272
Hi all,I am using a PWM timer. That is initialized and works fine.Code for init below:static void MX_TIM2_Init(void) { /* USER CODE BEGIN TIM2_Init 0 */ /* USER CODE END TIM2_Init 0 */ TIM_ClockConfigTypeDef sClockSourceConfig = {0}; TIM_MasterConfigTypeDef sMasterConfig = {0}; TIM_OC_InitTypeDef sConfigOC = {0}; /* USER CODE BEGIN TIM2_Init 1 */ /* USER CODE END TIM2_Init 1 */ htim2.Instance = TIM2; htim2.Init.Prescaler = 0; htim2.Init.CounterMode = TIM_COUNTERMODE_UP; htim2.Init.Period = 39; htim2.Init.ClockDivision = TIM_CLOCKDIVISION_DIV1; htim2.Init.AutoReloadPreload = TIM_AUTORELOAD_PRELOAD_DISABLE; if (HAL_TIM_Base_Init(&htim2) != HAL_OK) { Error_Handler(); } sClockSourceConfig.ClockSource = TIM_CLOCKSOURCE_INTERNAL; if (HAL_TIM_ConfigClockSource(&htim2, &sClockSourceConfig) != HAL_OK) { Error_Handler(); } if (HAL_TIM_PWM_Init(&htim2) != HAL_OK) { Error_Handler(); } sMasterConfig.MasterOutputTrigger =
Hello, It's my first try with Usb directly on an MCU, i used stm32cube mx and code generator to make a first test but when i'm running a simple cdc code i get windows throwing me an error about usb bad descriptor.I linked my ioc and my usb schematic, i tried with and without the filter inductance(usb connected is just wired to an exti)
Hi, some year ago i loaded STM32CubeIDE_1.2.0 and the package STM32Cube_FW_F4_V1.24.0 and i make some project (26). Now I load STM32Cube32 1.5.0 and package STM32Cube_FW_F4_V1.25.0.The packages are loaded in the same area (Repository).I try to import in different working area an old project and try open the .ior file.The system say:"The Firmware Package (STM32Cube FW_F4 V1.24.2) or one of its dependecies required by the Project is no available in your STM32CubeMX Repository"you can donload the missing Firmware Package,or you can migrate the project and work the latets version of the Firmware Package.....Download now or Migrate Project ?"Firts I try to download.The system try to download a file "stm32cube_db_v5050.zip" ; the download is executed (24.4MBytes); when teminated, (the blue bar is at extreme right) the system attend some second (10) and say "Error downloading the following file stm32cube_db_v5050.zip (Timeout during download)".Only one Botton "OK". No resp
hii Use stm32f107RC and lan8720.when MX_ETH_Init(); function run i got Hard Fault in This line:How can I solve this problem?
I am attempting to evaluate the X-NUCLEO IHM16M1 board using STM32CubeIDE. MCU board is a NucleoF401RE. I have tried to find a (working) add on package for CubeMX but can only find .zip files with example code for Kiel etc. Is there an add on package available that I can install into CubeMX for developing STSPIN applications?
ST Community highlights – April to June 2026
Already have an account? Login
No account yet? Create an account
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.