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
Hi, Here i post a driver for SSD1306 128X64 Oled Display. You must enable I2C configuration void I2C_ConfigurationMaster(void) { GPIO_InitType GPIO_InitStructure; I2C_InitType I2C_InitStruct; /* Enable I2C and GPIO clocks */ if ((I2C_Type*) SDK_EVAL_I2C== I2C2) { SysCtrl_PeripheralClockCmd(CLOCK_PERIPH_I2C2 | CLOCK_PERIPH_GPIO, ENABLE); } else { SysCtrl_PeripheralClockCmd(CLOCK_PERIPH_I2C1 | CLOCK_PERIPH_GPIO, ENABLE); } /* Configure I2C pins */ GPIO_InitStructure.GPIO_Pin = SDK_EVAL_I2C_CLK_PIN; GPIO_InitStructure.GPIO_Mode = SDK_EVAL_I2C_DATA_MODE; GPIO_InitStructure.GPIO_Pull = DISABLE; GPIO_InitStructure.GPIO_HighPwr = DISABLE; GPIO_Init(&GPIO_InitStructure); GPIO_InitStructure.GPIO_Pin = SDK_EVAL_I2C_DATA_PIN; GPIO_InitStructure.GPIO_Mode = SDK_EVAL_I2C_DATA_MODE; GPIO_Init(&GPIO_InitStructure); /* Configure I2C in master mode */ I2C_StructInit(&I2C_InitStruct); I2C_InitStruct.I2C_OperatingMode = I2C_OperatingMode_Master; I2C_
Moved to CubeMX forum as this is about the CubeMX functionality - even though it's within CubeIDE.hello everyone. I'm trying to code my H7 chip. In the .ioc shen I try to generate code I take this error. (I'm using CubeIDE 1.19.0) then I turn back and look at my Clock configuration, only this HSI button has a issue. and ı dont know how to fix this and is there any problem with the HSI usage. also the other of all the clock config is :I couldtn find same problem in the forum. or a solution.
Hello,STM32CubeMX2 looks good and I started my first STM32C5 Project.But what I miss: The Power Consumption Calculator. It was a helpful and often used tool in STM32CubeMX and I could find it in the new Generation 2.Is it planned to be integrated in future releases?Thanks!Markus
Subject: Performance difference between GCC (-O2) and Keil ARM Compiler in motor control applicationDescription:I am currently developing a motor control application using STM32F303 and comparing the performance of two development environments: STM32CubeIDE (GCC ARM toolchain) and Keil µVision (ARM Compiler).Hardware & Software Environment:MCU: STM32F303STM32CubeIDE Version:2.1.1Keil MDK Version: v5Motor Control SDK Version: X-CUBE-MCSDK v6.4.2Optimization Level: -O2 for both compilersFOC Algorithm: [hall FOC]PWM Frequency: [16 kHz]Test Methodology:I have ported the exact same motor control source code to both environments. Performance is measured by:I noticed that the .hex file generated by Keil (100 KB) is smaller than the one generated by STM32CubeIDE (103 KB). Does this come from the compiler difference?Has anyone performed similar benchmarks between GCC and ARM Compiler for motor control and found strategies to close the gap?
hello everyone, i am a beginner in STM32cube. i was working on board Nucleo wb55rg. and following this tutorial STM32WB Getting Started Series: Part 12a, STM32CubeMX & STM32CubeIDE lab. Introduction, and it said on 2:33 that i need to activate "system core>IPCC and enable both interrupt". i am using STM32CubeIDE 1.5.0 and it does not show IPCC option on it . any help and guidance is appreciated, thank you
I am currently developing CSI using the STM32N6. I would like to study the project at the following link: https://github.com/STMicroelectronics/STM32N6-GettingStarted-ObjectDetection/blob/main/Middlewares/stm32-mw-camera/Release_Notes.mdHowever, the release notes state "Support for the STM32N6570-DK board only." Does this mean it is impossible to develop this project or related CSI projects on the NUCLEO-N657X0-Q?please help me
Hello,We are developing a STLDR to be used with STM32CubeProgrammer and are having what is seemingly random issues when programming hardware.We have already written the XSPI interface which works when executed in FLASH using test calls, but as soon as the interface is placed into the STLDR framework and used with STM32CubeProgrammer we are seeing failures of either the Init or SectorErase functions.Sometimes it will work after a full board reset, but not always.We have tried linking the loader at the undocumented 0x20003004 RAM address but this seemingly does not fix the issue.We have tried using our standard development IDE (not ST) which has been successful in the past, but also following the STM32Cube tutorial and repository here, replacing the QSPI calls with XSPI:https://wiki.st.com/stm32mcu/wiki/Getting_started_with_External_memory_Manager_and_External_memory_loaderhttps://github.com/STMicroelectronics/stm32-external-loaderThe hardware is a custom board using the H573II with
Hi all, I am trying to bring up a new custom board with an STM32H7R7 and external flash as well as external PSRAM. While I managed to get the external flash working after some try and error, the external PSRAM seems to be more stubborn. The board uses a IS66WVO8M8DALL-200BLI from ISSI (https://www.issi.com/WW/pdf/66-67WVO8M8DALL-BLL.pdf) The PSRAM is connected to XSPI1 in OctoSPI mode. The XSPI clock is configured to 133MHz. At the moment the MPU is completely disabled to not having to debug several things at once. The MX_XSPI1_Init() currently looks like this: static void MX_XSPI1_Init(void) { /* USER CODE BEGIN XSPI1_Init 0 */ /* USER CODE END XSPI1_Init 0 */ XSPIM_CfgTypeDef sXspiManagerCfg = {0}; /* USER CODE BEGIN XSPI1_Init 1 */ /* USER CODE END XSPI1_Init 1 */ /* XSPI1 parameter configuration*/ hxspi1.Instance = XSPI1; hxspi1.Init.FifoThresholdByte = 2; hxspi1.Init.MemoryMode = HAL_XSPI_SINGLE_MEM; hxspi1.Init.MemoryType = HAL_XSPI_MEMTYPE_MACRO
Description:In STM32U083 series, when multiple UART/LPUART instances share the same NVIC interrupt vector (e.g., `USART3_LPUART1_IRQn`), STM32CubeMX incorrectly generates `HAL_UART_IRQHandler` for all instances, even if one of them is configured in IrDA mode.This leads to a compilation error because:1. The handle for the IrDA instance is generated as IRDA_HandleTypeDef hirdax; (correct).2. However, in stm32u0xx_it.c, it attempts to call HAL_UART_IRQHandler(&huartx); using an undefined huartx handle.Environment:STM32CubeMX Version: 6.17.0OS: Ubuntu 24.04 LTSMCU: STM32U083RCTxFirmware Package: STM32Cube FW_U0 V1.3.0 Steps to Reproduce:1. Create a new project for STM32U083RCTx.2. Configure USART3 mode as IrDA.3. Configure LPUART1 mode as Asynchronous.4. In the NVIC Settings tab, enable the interrupt for "USART3 + LPUART1 global interrupt".5. Generate the code.6. Check `stm32u0xx_it.c`.Actual Result:The generated ISR code looks like this:/** * @brief This function handles US
I encountered a strange problem while using STM32CubeIDE. After clicking "Debug" and then "Exit," in all subsequent actions (unless I restart the software), when I click "Download" (not "Debug"), the IDE interface redirects to another file (the line `ldr sp, =_estack /* set stack pointer */` in `startup_stm32f407vgtx.s`). While it's not a major issue, it's certainly annoying, like having sand in your shoe. I'm seeking a solution.
Heyho,I'm currently designing a new modular system, with an STMH7 on the base-card. That one's basically up and running, including a self-made bootloader.Now I'm working on some new modules, these will be connected to the "base H7", probably via I2C, 2 extra UART lines might also be possible.The previous system used ATmega-MCUs on the modules, now we'll surely use some STM32 type. These modules will not do any DSP or computing, so a "small" STM32 will do (tending towards L07x because of the EEPROM).To save some dev time I'm thinking about using the internal bootloader for the module MCU, controlled by the base H7.I have checked the application notes (AN2606 and the ANs depending on the BL interface), also found the example source code from ST on Github.So far that looks okay and doable, nevertheless user experience always wins over "reading". :DSo...Anybody using the ST bootloaders in some real-life products ?How did that go and work out ? Documentation and source code examples good en
Hi Everyone,I need your help.I use STM32H573VIT but I can't FATFS in CUBEMX.I checked FILEX, SD interface. But CUBEIDE say fatfs.h : No such file or directory. Please help me out..Thanks,kadekade
HiIf I develop an application using the STM32WBA25 MCU with BLE, ThreadX, and USBX, is the RAM size sufficient?
I have started a CMake project with CubeMX. I can edit, build and debug using VS Code. CubeIDE has some debugging abilities missing in VSCode extension. So I would like to know if there is a way to do all the extensive editing in VSCode and the debugging in the IDE. That would be an ideal scenario because I could combine the best features of both environments.
Hello Team,We are planning to use MCU P/N: STM32N657X0H3Q for our new design. We want to perform thermal simulation. Could you please help us for how to calculate power dissipation?Thanks.
Hi everyone, I am working on a Beacon project using NUCLEO-WB05KN. My goal is to broadcast Eddystone-UID and allow a connected phone to update the Namespace ID and Instance ID via GATT characteristics. The Setup: I have a Custom Service with two characteristics: Namespace (10 bytes) and Instance (6 bytes). The device broadcasts Eddystone-UID correctly in connectable mode. I’ve added the GATT_NOTIFY_ATTRIBUTE_WRITE (0x01) mask to both characteristics. I’m using hci_init(hci_user_evt_proc, NULL); for event handling. The Problem: When I write a value from the nRF Connect app, the write is successful on the phone side, but the aci_gatt_srv_attribute_modified_event callback is never triggered on the MCU side. I have disabled EnterStopMode() to ensure the MCU stays awake. I have tried implementing the callback in both app_stm32wb05n.c and stm32wb05n_events_cb.c (overriding the WEAK function), but still no luck. My Device_Init Code: C /* Namespace Characteristic *
Hello,I am implementing a USB Audio Class 1.0 microphone on an STM32 (Full-Speed only).The device enumerates correctly on Windows and appears as a 4-channel microphone in the Sound Control Panel, but no WASAPI-based application can open the input stream.When using Audacity with WASAPI, the device exposes only 1–2 input channels and recording cannot be started.For USB Audio Class 1.0 Full-Speed microphones on Windows, I have the following questions:Are Sampling Frequency Control requests (GET_CUR / SET_CUR) required even if the device supports only a fixed sample rate of 48 kHz?Is the presence of a Master Feature Unit (Volume and/or Mute control) required for Windows/WASAPI to successfully open the audio stream?Are there any mandatory class-specific control requests that must be implemented (i.e. must not be STALLed) to avoid WASAPI stream open failures?Setup:STM32 USB Device (FS)UAC 1.0, Isochronous IN (microphone)PCM, 48 kHz, 16 bit, 4 channelsIso IN Endpoint: AdaptiveWindows 11
I'm building a (relatively simple) application with STM32C011F6J6 using HAL for managing onboard peripherals. I believe moving some of the I/O code to LL or "bare metal" (direct register manipulation) would help reduce flash demand - 32K byte budget - but would like target these efforts.Is there a way (perhaps using the linker that's part of STM32CubemX) to get a memory map telling me how much flash is occupied by each function call?Thank you
Heyho,I think I need some more info about the internal bootloader ("BL") which I didn't find in AN2606 or AN3155 (UART). a) Are all BL interfaces active / scanned at the same time, and any interface finding any change in level will be "chosen"?From what I have found, it is crucial to keep unused IOs "quiet". b) Does the BL have some "start-up timeout", meaning that it will stop scanning the IOs, and / or jump to the application? Thanks in advance!
I am working with the NUCLEO-U575ZI-Q and I am implementing the ADC GPDMA examples described in this STM32U5 workshop https://community.st.com/t5/stm32-online-courses/stm32u5-workshop/ba-p/774159. Within the project, a GPDMA channel is configured to collect 4 channels of ADC data triggered by a timer in a buffer called data, use 2D addressing to rearrange the channel data in a new buffer called dataGrouped, then transmit the data over UART. The first time I built the project and ran the debugger in STM32CubeIDE, I was able to add the two data buffers being used by the DMA channel to the live expressions view and monitor the data in real time to confirm that the DMA channel is functioning properly. However, after terminating the debugger and relaunching it, even without making any changes to the firmware, the expressions I added no longer update and just display 0. The same expressions are still displayed properly in the Expressions tab once I halt execution. The only way I ha
Hello,I need to sync the stm32n6 system timer to be used as PTP master. According to the Reference Manual there is a PPS input that can generate timestamp and interrupt: ETH_PTP_AUX_TSBut according to the RM it is not in all models, and I can't find which models it exists and how to map it to external IO. Thanks,Noam.
The configuration for include paths in cubeIDE seems horrendous. I have installed CMSIS 5.9 using MX no problems. IDE didnt pick it up. Manually configured the path into cubeIDE..... still cant see the include file ... even though it is right there.I am using exist source files imported into cubeIDE but there is no easy way to make the cubeIDE see the include paths.Bang head .. repeat.Do I have to manually copy the CMSIS DSP files into the project ??I see from the web this problem occurs alot .. with many different "solutions".
Hello everyone,I need to drive up to 11 LPS27HHTW pressure/temperature sensors using an STM32C5 microcontroller. Currently, I'm testing the setup on an NUCLEO-C562RE board with multiple STEVAL-MKI220V1 modules.At first glance, using I3C dynamic addressing seemed to solve the bus conflict issue. However, while testing, I realized that all of these sensors share the exact same 48-bit PID (0x020800B30000). This generates a collision when doing an ENTDAA broadcast.Since the sensors only have 2 possible static I2C addresses (0x5c and 0x5d, depending on the SA0 pin level), I cannot use the SETDASA command for all 11 devices either.I can't split the sensors across different buses since there are too many of them. I would like to know if there are better architectural options than playing with the CS pin levels using 11 dedicated GPIOs to enable/disable communication on each sensor individually.Any advice on how you would drive that many sensor using a STM32C5 mcu?Best regards,Mathias
Hi,I have the STM32H753ZI Nucleo board and have developed firmware around this MCU with this board as my reference platform.On our product, firmware updates will be uploaded via the UART interfaces.So the user will need to enter Bootloader.On the Nucleo board, the LD3 Red LED stays illuminated when in Bootloader.I think this is because the GPIO pin is being pulled up, and this is not intentional as an indicator?An indication to the user that they have successfully reset the MCU into Bootloader is useful.How can you recommend we can do this in a reliable way in the future?Thanks.
The Tsample value doesn't reach the published value (between 0.3 and 0.5 s, and from my measurements between 0.3 and 0.35 s) until Vstore reaches the EOC threshold. Before, it is just around 80 ms. Once EOC is reached and when Vstore decreases again the published range is achieved, but when Vstore decreases below the UVP threshold, the value of 80 ms shows again and it keeps until the EOC threshold is reached again. I tested this with 2 different chips. This behaviour is not stated in the datasheet.
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.