Developer support experience survey - We value your feedback
Join discussions in the Product Forums. Ask questions, learn from your peers, and share insights on ST solutions to accelerate your design journey.
Most recent activity
When configuring multiple FDCAN instances in CubeMx, the clock divider settings are not synchronised and are generated twice. For me, FDCAN1 clock divider has the drop down box with multiple options.FDCAN2 only has the "Divide kernel clock by 1" option. This should match FDCAN1 as one common clock divider value. "The clock is common to all FDCAN instances. This parameter is applied only at initialisation of first FDCAN instance." from UM2570.The first issue is within CubeMx, this clock divider value is then used for the indicator calculations:- Nominal Time Quantum- Nominal Time for One Bit- Nominal Baud RateIf the clock values are wrong, these values will be wrong.Second issue is the Init.ClockDivider code is generated twice, one per instance instead of just once.If these values are the same, there'll be no issue. If different then the latter will overwrite the former. In main.c MX_FDCAN1_Init(); MX_FDCAN2_Init(); in fdcan.c void MX_FDCAN1_Init(void) { /* USER CODE END FDCAN1_Init 1
When enabling USB_OTG_FS peripheral in Device_Only mode for STM32H743VIT6, CubeMX generates usb_otg.c with incorrect HAL macros:Generated (wrong) Should be (H7-native) GPIO_AF10_OTG1_FS GPIO_AF10_OTG2_FS __HAL_RCC_USB_OTG_FS_CLK_ENABLE __HAL_RCC_USB2_OTG_FS_CLK_ENABLE __HAL_RCC_USB_OTG_FS_CLK_DISABLE __HAL_RCC_USB2_OTG_FS_CLK_DISABLE Root cause: On STM32H7, the FS USB peripheral is USB2_OTG_FS, not USB1_OTG_FS. The H7 HAL defines GPIO_AF10_OTG2_FS for the FS port and GPIO_AF10_OTG1_HS for the HS port. CubeMX, however, generates F4/F7-style macro names (e.g. GPIO_AF10_OTG1_FS) which are only valid for MCUs with a single USB OTG peripheral. Moreover, GPIO_AF10_OTG1_FS is conditionally defined in stm32h7xx_hal_gpio_ex.h only when USB2_OTG_FS is not defined. Since STM32H743 does define USB2_OTG_FS, the macro is absent at compile time. The legacy compatibility aliases in stm32_hal_legacy.h could resolve this, but CubeMX does not include that header in the generated code.No
I discovered some strange behavior in the STM32CubeMX code generation for Keil µVision.I created a project with STM32CubeMX that I compile using Keil µVision. In Keil µVision, I configured two user commands in the "Options for Target" dialog under "User" in the "After Build/Rebuild" section. These commands must be executed after the software has been compiled.Whenever I regenerate the project in CubeMX due to configuration changes, the "After Build/Rebuild Run #2" command is always removed.I then tested all commands and was able to narrow the issue down exclusively to "After Build/Rebuild Run #2".Is this a bug in CubeMX, or do I need to change a setting somewhere to ensure that these commands are preserved?Please also refer to the attached screenshots.Best regards,Kai RiekBefore running CubeMX:After running CubeMX:
Dear community and STMicroelectronics representativesI'm having strange problem in both STMCubeProg v2.22.0 and v2.23.0. I tried many older versions (even pretty ancient ones) and these works without problem. Problem is that in v2.22.0 and v2.23.0 when I select a file to be programmed to device (device uses custom DFU implementation - inspired by DFU example code), then I set address and click “Start programming”, almost nothing happens (only progress bar resets to 0% so click is “handled”). No “Opening and parsing file”, no “erase sector command” comes to my device, no error in console or GUI, no timeout - just nothing. I would typically suspect that my DFU implementation on my STM32L452RE MCU is no longer compatible with current versions of STMCubeProg, but as there is not even this “Opening and parsing file” message (it is displayed by older versions of STMCubeProg) nor any error or timeout is reported, I'm suspecting that something even before attempting to communicate over DFU pro
Setup: STM32H757 (device ID 0x450, rev V), ST-LINK/V2 firmware V2J48S7 over SWD, STM32CubeProgrammer v2.23.0 CLI on Windows 11.Problem 1: the CM4 boot address can't be set.STM32_Programmer_CLI -c port=SWD mode=UR -ob BOOT_CM4_ADD0=0x080E BOOT_CM4_ADD1=0x080Eprints "Warning: Option Byte: boot_cm4_add0, does not exist" (and the same for add1), and exits with code 0, so scripts don't notice. "-ob displ" shows only the single-core BOOT_ADD0/BOOT_ADD1, with no BCM4/BCM7. The silicon is dual-core: FLASH_BOOT4_CUR (0x52002048) reads correctly, and BCM4/BCM7 are set in FLASH_OPTSR_CUR.Cause, as far as I can tell: in Data_Base/STM32_Prog_DB_0x450.xml the H757 matches configuration 0 ("Security extension available && multi-core"). In v2.23.0, every dual-core field leaves out config 0, while the single-core BOOT_ADD0/1 does include it:BCM4 (FOPTSR_CUR): config "1"BCM7 (FOPTSR_CUR): config "1,4,5"BCM4, BCM7 (FOPTSR_PRG): config "1,4,5"BOOT_CM4_ADD0/1 (FBOOT4_CUR and _PRG): config "1,4,5"BO
https://dev.st.com/stm32cube-docs/stm32cubemx2/1.2.0/en/docs/markup/STM32CubeMX2_How_To_Start/STM32CubeMX2_How_To_Start_From_Example.html#how-to-start-from-example-projects At the end of the article:That link is:https://community.st.com/t5/stm32-mcus/how-to-use-the-stm32cubemx2-examples/ta-p/872665But clicking it just opens the forum home page. I guess it should be:https://community.st.com/stm32-mcus-60/how-to-create-a-new-project-with-stm32cubemx2-161886Which is:
EnvironmentSTM32CubeProgrammer: 2.23.0 (latest version at the time of writing) The same issue was also present in the previous release and is still reproducible after updating to 2.23.0, which is why I am reporting it now. Platform: macOS Tahoe 26.5.1 Architecture: Apple Silicon (M4 Pro, arm64) System proxy: Enabled Proxy software: Clash Verge Rev (running continuously in the background) TUN mode: Enabled The proxy itself works normally for all other applications.Issue DescriptionI noticed that simply leaving STM32CubeProgrammer running causes the file ~/.STM32CubeProgrammer/Updater_Gui_Log.txt to grow continuously at a very high rate. The file increases by hundreds of megabytes within minutes and can easily reach multiple gigabytes if STM32CubeProgrammer is left open. In my case, I have already experienced the log file completely filling my macOS system disk overnight, which caused abnormal system behavior due to the disk running out of free space.Log OutputThe updater repeatedly writ
It would be nice if the further versions could be running on case sensitive file system on macOS.Currently I need to use an USB key formatted APFS only. Then i can run the installer and install the programmer on this USB stick. As I most of the time only need the command line tools (*CLI) I copied the binaries and some folders with data on my case sensitive disk. They work fine. Only the GUI is not possible on the case-sensitive file system.
I want to upgrade the FUS (at the moment it is FUS version 1.2.0) to upload next version 2.2.0, the FTD thread stack. But when I upload the stm32wb5x_FUS_fw.bin with SMT32CubeProgrammer, I got the following eror: "Error: FUS_AUTH_TAG_CUST_NOTFOUND".
Just posting this incase it helps someone with this problem that I encountered recently.I just update to new windows 11 laptop so I started going through the laborious process of installing all my tools including the latest STM32Cube programmer v2.22. Figured this would be a good time to update everything since I'm installing everything fresh anyway.The issue I encountered is that v2.22 will connect and program the STM32 MCUs just fine but if I try to run the Serial Wire Viewer SWV I get no print outs. I tried a lot of things like reinstalling windows drivers and reinstalling the software but none of that worked, slowing clocks down and other stuff. In the end I removed v2.22 and installed v2.20 and that fixed the issue immediately. #bug-report
Hello, This is a pretty straightforward bug report. For F767 Devices, when trying to configure dual boot mode over UART, the nDBOOT Option byte doesnt appear for Cubeprogrammer versions greater than v2.14 The typically workflow is1) uncheck nDBANK2) apply3) restart/reconnect4) nDBOOT option byte appears5) uncheck nDBOOT6) apply.This works on all versions of Cubeprogrammer using an STlink - good! But when executing this same sequence using the UART Bootloader on version v2.15 to v2.22, the nDBOOT option bytes never appears after step 3. This regression is preventing us from using newer versions of CubeProgrammer. Best,Daniel
Hi,We are using STM32L496, BOR level shows, BOR Level 0's falling threshold can be as low as 1.60 V, while the STM32L496 minimum specified operating voltage is 1.71 V. So from 1.71V to 1.60V if its a large enough time, will the MCU functions normally? /Anurag
Hello, I hope everyone is doing well. My STM32Cube AI Studio forced an update. I am looking at the new version in a disbelief. Inside this working directory here for example: .stm32cubeaistudio\workspace\project_epoch_300a\runs\run-1 there are two files: c-info_run-1.zip log_run-1.zip I am searching for the generated project. It would’ve been there in earlier versions. The logs show where it is: 2026-11-18 11:40:19,087 cube-ai.software INFO [ST Edge AI Core] workspace dir : ..etc..\AppData\Local\Temp\tmpw6gfol1v\st_ai_workspace But that is a temporary folder that is removed. How can I view the generated project? Best Regards, R
Hi all,I’m developing a simulation environment that connects real STM32 firmware to simulated electronics and robot mechanics, and I’d like to hear whether this would be useful in your development workflow.The idea is to load a compiled firmware ELF (from stm32cubeide) into an emulated STM32 and simulate real world robot behaviour.Firmware sets PWM → a motor driver powers a motor → the motor moves a robot → encoders and other sensors feed signals back into the firmware. This flow is viewable in an optional 3D-rendering of the robot (gazebo-style).Motor loads, inertia, and sensor behaviour would affect the system, allowing the firmware to respond as it would on a physical machine.I’d like to bring firmware debugging, peripheral signals, and a 3D representation of the machine into one simulation environment.Would you use something like this?
/* Feed-forward parameters */#define FEED_FORWARD_CURRENT_REG_ENABLING ENABLE#define M1_CONSTANT1_Q 52857#define M1_CONSTANT1_D 52857#define M1_CONSTANT2_QD 1019Follow stm reference, these 3 parameter is calculated base on motor parameters such as: b_emf constant, inductance,…But what is the formula for these 3 parameters ?
the web selector(Spotted by @SToma )JW
I cannot obtain a valid register response from our new STEVAL-MKI253A board (IIS3DWB10IS). WHO_AM_I consistently returns 0x00 instead of the expected 0x50.As a comparison, our STEVAL-MKI208V1 board (IIS3DWB) returns the correct WHO_AM_I value, 0x7B, using the same identification firmware, host board, adapter and ribbon cable. Only one sensor board is connected at a time.Our setup is: Host: P-NUCLEO-WB55. VDD and VDDIO: 3.3 V, with a common GND. Four-wire SPI, 8-bit transfers, MSB first, CS active low. Both SPI mode 0 and mode 3 tested at approximately 500 kHz. TCK/DBG1 connected directly to GND. We have checked continuity between the adapter and the sensor board’s J1 connector for the SPI signals, power and GND.We have also tested ST’s iis3dwb10is_read_data.c example, adapted to the STM32WB55, using the official IIS3DWB10IS register driver. The new board still returns 0x00.Are there any additional board connections, interface settings or startup requirements needed before readi
The current version on the Product Page is Rev 51: CubeMX no longer covers the whole STM32 portfolio, and that had been the case for a couple of months at the release of this revision.
The old CubeMX had this: So why not MX2 ?
Hello, I'm trying to do a quick test with the STM32F412G-Discovery kit and the analogue microphone input.I use this example https://github.com/STMicroelectronics/STM32CubeF4/tree/master/Projects/STM32F412G-Discovery/Examples/BSPwith the menu #### AUDIO REC ANALOG ####.The problem is that the firmware crashes at the line BSP_AUDIO_IN_Record(internal_buffer, AUDIO_BLOCK_SIZE); void AudioRecAnalog_demo (void) { AudioRec_SetHint(); /* Initialize Audio Recorder */ if (BSP_AUDIO_IN_InitEx(INPUT_DEVICE_ANALOG_MIC, DEFAULT_AUDIO_IN_FREQ, DEFAULT_AUDIO_IN_BIT_RESOLUTION, DEFAULT_AUDIO_IN_CHANNEL_NBR) == AUDIO_OK) { BSP_LCD_SetBackColor(LCD_COLOR_WHITE); BSP_LCD_SetTextColor(LCD_COLOR_GREEN); BSP_LCD_DisplayStringAt(0, BSP_LCD_GetYSize() - 95, (uint8_t *)" AUDIO RECORD INIT OK ", CENTER_MODE); } else { BSP_LCD_SetBackColor(LCD_COLOR_WHITE); BSP_LCD_SetTextColor(LCD_COLOR_RED); BSP_LCD_DisplayStringAt(0, BSP_LCD_GetYSize() - 95, (uint8_t *)" AUDIO RECORD INIT FAIL", C
Dear Sir,We are evaluating the VN9E30F, a 6-channel automotive high-side driver with a 24-bit SPI interface. Kindly clarify whether the IC provides real-time switching status or feedback through a register that can be read via SPI.Also, please confirm the current availability and supply status of this IC.Thank you.
Hi I was not able to find any available stocks for ISM6HGK256. Is there any plans to make it available soon ?
Hello ST Team and Community,I am working with the SR5E1E7 MCU (Core 1 / Cortex-M7, evbe7000s board profile, StellarESDK-1.7.0, SR5E1_MCTK-1.3.0).I have successfully flashed and verified my application binary into internal Flash at 0x08000000 using StellarLINK / OpenOCD. However, upon power-cycle or standalone reset, the CPU remains stuck in the BAF (Boot Assist Flash) (PC = 0x1FFxxxxx, VTOR = 0x1FF00100) instead of jumping to the application in Flash.Current Register & Memory Observations: Flash Vector Table (0x08000000): 0x24004798 (valid initial MSP) Reset Vector (0x08000004): 0x08000401 (valid Reset_Handler) C1_APPLI_ADDR_REG (0x4400030C): 0x00000000 (application address not yet registered) C1_VTOR_INIT_REG (0x44000304): 0x1FF00100 (currently pointing to BAF) Current Workaround: When debugging via OpenOCD/GDB, manually overriding SP, PC, and VTOR allows the application (an LED blink test) to execute properly: set $sp = 0x24004798 set $pc = 0x08000401
Hello,I believe I have identified a bug in STM32CubeMX 6.18 on STM32H563ZIT6.## Context- MCU: STM32H563ZIT6- Tool: STM32CubeMX 6.18- Firmware package: STM32CubeH5 1.7.0- Configuration: basic project, with no specific configuration other than: - TrustZone enabled - FreeRTOS enabled - CMSIS-RTOS2 enabled in both Secure and Non-Secure contextsMy goal is simply to run FreeRTOS with one task for now, and then set up proper memory management and access control, which requires using CMSIS-RTOS2 in the Non-Secure project.## Observed behaviorWhen the project is created for the first time, everything works correctly:- the project is generated successfully;- the CMSIS-RTOS2 configuration on the Non-Secure side is accessible in the interface;- the FreeRTOS / CMSIS-RTOS2 settings are correctly present in the `.ioc` file.However, after saving and reopening the project in STM32CubeMX:- the CMSIS checkbox on the Non-Secure side is still visible;- but the CMSIS-RTOS2 Non-Secure configuration menu is
I'm having problems creating a basic project..… I am using a nucleo-f411RE microcontroller. The projects window does not display. When I can get something to run I get this kind of errors:An internal error occurred during: "C/C++ Indexer".class org.eclipse.cdt.internal.core.pdom.PDOMProxy cannot be cast to class org.eclipse.cdt.internal.core.index.IWritableIndexFragment (org.eclipse.cdt.internal.core.pdom.PDOMProxy and org.eclipse.cdt.internal.core.index.IWritableIndexFragment are in unnamed module of loader org.eclipse.osgi.internal.loader.EquinoxClassLoader @4f3fec43)An internal error occurred during: "C/C++ Indexer".class org.eclipse.cdt.internal.core.pdom.PDOMProxy cannot be cast to class org.eclipse.cdt.internal.core.index.IWritableIndexFragment (org.eclipse.cdt.internal.core.pdom.PDOMProxy and org.eclipse.cdt.internal.core.index.IWritableIndexFragment are in unnamed module of loader org.eclipse.osgi.internal.loader.EquinoxClassLoader @4f3fec43)Program g++ not found in PATHProgra
WATCH ON-DEMAND | STM32 Summit 2026
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.