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
Hello!I am working on a project using the STM32U375CGUx MCU, and I am trying to implement a Stereo Audio Acquisition system using two omnidirectional digital PDM MEMS microphones.Hardware Setup: Microphone L: L/R pin tied to GND (Rising Edge data output). Microphone R: L/R pin tied to VDD (Falling Edge data output). Both microphones share the same lines connected to the MCU: PB4 (ADF1_SDI0) for the clock and PB3 (ADF1_CCK0) for the data stream. The Issue:When configuring the peripheral through STM32CubeMX, I am unable to set up a true Stereo configuration. I can only make it work in Mono.Looking at the generated HAL initialization code, I am forced to choose either MDF_BITSTREAM0_FALLING or MDF_BITSTREAM0_RISING for the FilterBistream parameter. There is no option/macro to sample both edges (interleaved) simultaneously on the same filter instance:AdfHandle0.Instance = ADF1_Filter0;AdfHandle0.Init.CommonParam.ProcClockDivider = 6;AdfHandle0.Init.CommonParam.OutputClock.Activation =
Hello,I’m working with custom board STM32F767BITX, trying to interface Standalone USB Host MSC, with no Free RTOS.Tried different reference, below is one reference which I followed As soon as connected USB, it shows connected but after that it loop between this two calls alternatively, USBH_LL_PortDisabled() and USBH_LL_PortEnabled() which disconnect USB and connect again and continue to do that.So I dont understand the root cause of this, what trigger this to behave like this?Please guide me to fix this issue. void SystemClock_Config(void){ RCC_OscInitTypeDef RCC_OscInitStruct = {0}; RCC_ClkInitTypeDef RCC_ClkInitStruct = {0}; /** Configure the main internal regulator output voltage */ __HAL_RCC_PWR_CLK_ENABLE(); __HAL_PWR_VOLTAGESCALING_CONFIG(PWR_REGULATOR_VOLTAGE_SCALE3); /** Initializes the RCC Oscillators according to the specified parameters * in the RCC_OscInitTypeDef structure. */ RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_HSI|RCC_OSCILLATORTYPE_HSE; RCC
Hi ST!I’ve been having some difficulty trying to integrate my UART project inside the architecture outlined in your OEMiRoT_Appli_TrustZone example for the NUCLEO-U385RG-Q. Note this example is incompatible with CubeMX and therefore I’m somewhat on my own when it comes to setting up additional peripherals (like USART3).I’m currently able to send in a string to uart3 using HAL_UART_Transmit, however am not able to trigger an interrupt when attempting to input to uart3 - code below: char *msg = "USART3 TEST 3\r\n"; HAL_UART_Transmit(HUART, (uint8_t*)msg, strlen(msg), HAL_MAX_DELAY); HAL_UART_Receive_IT(HUART, &uart_rx_byte, 1);I’ve tried using VSCodes compare functionality to mirror a CubeMX generated TrustZone example with uart enabled, so far adjusting sections of stm32u3xx_it.h/c, stm32u3xx_hal_conf.h/c and partition_stm32u385xx.h, with some nudging from this forum question https://community.st.com/stm32-mcus-embedded-software-32/stm32h563-trustzone-usart3-interrupts-not-working
Hi everyone,I'm working on a project using **STM32H753ZIT6** (Cortex-M7 @ 480MHz) to drive an **Alientek ATK-MD0430** 4.3" TFTLCD with **NT35510** controller via **FMC 16-bit 8080 parallel bus**.**Symptom: Screen is completely dead — no backlight, no image, NT35510 ID read returns 0x0000 or 0xFFFF.**I've been debugging this for two weeks and would appreciate any guidance.---### Hardware Configuration| LCD Signal | STM32 Pin | FMC Function ||-----------|-----------|--------------|| CS | PD7 | FMC_NE1 (Bank1) || RS | PD13 | FMC_A18 || WR | PD5 | FMC_NWE || RD | PD4 | FMC_NOE || RST | PG9 | GPIO Output || BL | PA8 | TIM1_CH1 PWM || D0-D15 | Standard FMC data bus pins | FMC_D0~D15 |### System ClockHSE=25MHz → PLL1 /5×192/2 = 480MHz SYSCLKPLL2 /5×120/3 = 200MHz → FMC (HCLK=240MHz)VOS Scale 0### What I've Tried (all failed)1. Copied NT35510 init sequence from Alientek's official MiniSTM32H750 example2. Fixed CMD/DATA addresses: CMD=0x6007FFFE, DATA=0x60080000 (RS on A18)3. MPU configured for
Hello, I'm using an STM32U5G7VJTx MCU with a 480x320 display, connected to the FMC in 16-bit mode, and everything works fine using the GPU2D. I'm not using an existing GUI framework.The pixel format used by the display is RGB565 (16bpp), so for gradients, I want to use dithering to soften the banding. I found this definition in the 'nema_graphics.h' file:#define NEMA_DITHER 0x80U /**< Nema Dithering */However, it seems undocumented. How do I make use of it?Kind regerds, Jack.
Title edited to indicate that this is specific to J-Link.Hi,After updating to STM32CubeIDE 2.1.0 I get the following message after starting a debug session. Live expressions do not work.From the console:SEGGER J-Link GDB Server V9.14a Command Line Version JLinkARM.dll V9.14a (DLL compiled Jan 28 2026 17:11:52) Command line: -port 2331 -s -device STM32F769NI -endian little -speed 4000 -if swd -swoport 2332 -vd -rtos C:\ST\STM32CubeIDE_1.11.2\STM32CubeIDE\plugins\com.st.stm32cube.ide.mcu.externaltools.jlink.win32_2.5.200.202601091506\tools\bin\GDBServer\RTOSPlugin_FreeRTOS.dll -----GDB Server start settings----- GDBInit file: none GDB Server Listening port: 2331 SWO raw output listening port: 2332 Terminal I/O port: 2333 Accept remote connection: localhost only Generate logfile: off Verify download: on Init regs on start: off Silent mode: off Single run mode: on Target connection timeout: 0 ms ------J-Link related settings------ J-Link Host interface: USB J-Link script: none J-Lin
I am using an STM32F401RET with the Simulink STM32 support package.My problem is that I am measuring a pure sine wave from a voltage sensor. I verified the sensor output using an oscilloscope, and the waveform is clean. However, the ADC readings on the STM32 show a very low-quality signal that appears as a stepped waveform rather than a smooth sine wave.I have already tried increasing the sampling rate, running the ADC at its maximum clock speed, and using a timer as an external trigger source for the ADC, but none of these solutions improved the result.I would appreciate any suggestions on what could be causing this issue.
Hi, my team works with STM32CubeIDE and shares projects via github. We've been running into somewhat frequent errors where projects settings don't get shared properly when pulling the files down from github. On the flipside, there are a bunch of automatically generated files that change frequently with builds, code generation, etc, that bloat the git log unnecessarily if they are shared.Is there a standard gitignore that we should be using for STM32CubeIDE projects. Are there any rules of thumb for how to set up stuff like project folder structure, project variables, etc, such that they get properly shared?
Hi,I have a problem with my custom container. I made a custom keyboard container in my project (4.26.1 compile is ok). I would like use this in another project.I exported this container which works.In the another project i import the widget, but compiler get unexpected error.What is the problem with widget?Thank you!These are the designer logs:2026-06-19 09:15:01,186 [1] ERROR TouchGFXDesigner.App: Object reference not set to an instance of an object.System.NullReferenceException: Object reference not set to an instance of an object. at TouchGFXDomainModel.LoadSave.Serial.ToSerial.Convert(TriggerCustom t) at TouchGFXDomainModel.LoadSave.Serial.ToSerial.Convert(Interaction i) at System.Linq.Enumerable.IListSelectIterator`2.ToList() at TouchGFXDomainModel.LoadSave.Serial.ToSerial.Convert(CustomContainerDefinition c) at System.Linq.Enumerable.IListSelectIterator`2.ToList() at TouchGFXDomainModel.LoadSave.Serial.ToSerial.Convert(Application a) at TouchGFXDomainModel.LoadSave.
Hello ST Team,I am evaluating the STM32MP215F-DK with the recommended M.2 Wi-Fi/BT module (Embedded Artists EAR00409 / Murata 2EL). I have encountered two critical issues that prevent the Wi-Fi features from working out-of-the-box with the standard Starter Package.I believe these are bugs in the current hardware/software release.1. Critical Software Configuration Issue: SDMMC2 Access Blocked by RIFThe STM32MP215F-DK Data Brief explicitly states that the board features an "M.2 E-Key connector to support Wi-Fi® and Bluetooth® SDIO modules". However, with the default Starter Package (OpenSTLinux 6.6), the Linux kernel fails to probe the Wi-Fi module on SDMMC2.Symptoms:• Linux kernel log shows no response from mmc1 (SDMMC2).• Attempting to access the SDMMC2 registers manually via devmem 0x48230000 results in a Bus Error.• OP-TEE console reports a firewall exception: SERC exception ID: 77 (SDMMC2 Illegal Access).Root Cause Analysis: It appears that the Trusted Firmware-A (TF-A) device tree
Hello STM32 Community,I am developing a custom board based on the STM32F302R8T6 MCU. My schematic is largely derived from the MB1136 evaluation board reference design, and I would appreciate a review from experienced STM32 users before PCB fabrication.I would like feedback on the following areas:Power Supply Design VDD, VDDA, VBAT, VSS, and VSSA connections Decoupling capacitor placement and values Analog supply filtering Clock Circuit Main crystal oscillator connections 32.768 kHz RTC crystal circuit Load capacitor values and recommendations Boot and Reset Circuit BOOT0 configuration NRST pull-up and reset button circuit Any missing protection or filtering components Programming and Debugging SWD interface (SWDIO, SWCLK, NRST, SWO) Compatibility with ST-LINK Ability to program and debug reliably GPIO Connections Review of user button, status LEDs, buzzer, and external interfaces Any pins that should not be used for GPIO due to boot/debug functions General Design Review A
Are there plans to update CubeMX to support MacOS 27 and later? I have just installed 6.17.0 under MacOS 26 and I get a warning to say the installer will not work with later versions:This is because support for the Intel translation layer will be removed (M series Macs are now into their 5th year).Note the CubeMX app itself does not get this - just the installer.
Hello. I’m facing strange issue in my design with STM32U575RGT6, revision “U”.Finally I discovered what is going on, but I don’t have ideas how to fix this.I’m using electronic switch to power ON and OFF the device:VBATT is 4.2V Li-Ion battery.One half of BAV70 diode is controlled by manual SWITCH (to power ON), second one by IO pin from uC (to maintain ON, and to OFF).Problem is that my program often hangs up in this function (I added LED blinks inside): if (HAL_PWREx_ControlVoltageScaling(PWR_REGULATOR_VOLTAGE_SCALE1) != HAL_OK) { while (1) { HAL_GPIO_WritePin(POWER_ON_GPIO_Port, POWER_ON_Pin, GPIO_PIN_SET); HAL_Delay(100); HAL_GPIO_WritePin(POWER_ON_GPIO_Port, POWER_ON_Pin, GPIO_PIN_RESET); HAL_Delay(1000); } Error_Handler(); }Voltage on VCAP pins is 0.9 V, and often freezes in this level. Rarely steps up to 1.2V and program normally continues.I finally discovered that is caused by slow rising of VDD voltage. This is from my electronic switch:I can bypass the
Hello.I have a project created earlier in CubeIDE 1.9.x, which I imported into the new CubeIDE 2.1.1. However, due to some issues with the project/code, I want to revert to the basics and create a fresh new project.There are some issues:In CubeMX 6.17.0, when configuring GPIO pins, nothing appears in the GPIO window:Additionally, there are problems with ICACHE:I cannot generate code without warnings.These problems occur when creating the project.Closing the IOC file and CubeMX, then reopening the IOC file a second time, resolves the issue. I can live with this workaround, but I’m reporting it.The second problem is in CubeIDE: when importing a project, the “C/C++ Index” tab is missing:Also some tabs missing in Properties:What I’m doing wrong?I followed the instructions exactly as in the video from this topic: PS. Sorry, there are mistake in title: CubeMX 6.17.0, not 1.67.0.
I read a couple of topics that discussed having to use the external xtal to drive the 48 Mhz as opposed to HSI48. When I run cube mx, the clock mux is greyed out and I cannot change the clock source.Am I chasing the right issue here and if so, how do I ungrey the clock mux?My IOC file is attached.
Hi, Can I Migrate a project from IAR to Cube IDE, It also Has third party Libraries Like, Threadx.
Hi team,i’m using a SensorTile.Box Pro and want to increase the Bluetooth RF power of the STM32WB07KC (BlueNRG-LP) with an external Power Amplifier and external Antenna. So, i appreciate to be able to modify the code of this chip, BlueNRG-LP, not the one of the STM32U585.Can ST provide the source project corresponding to:FP-SNS-STBOX1/Utilities/DTM_BlueNRG-LP/SensorTile.Box_PRO_R20_DTM_SPI.binThe image reports:DTM 1.2.0DTM Variant 0x02 (SPI)BLE Stack 3.1.1Build 49063The firmware has been successfully dumped and compared against the distributed binary, confirming that the running image matches the official ST binary.I would like to: Understand how aci_hal_set_tx_power_level() is handled in this firmware and whether RF output power is intentionally limited on STEVAL-MKBOXPRO. Determine whether TX_SEQUENCE / RX_SEQUENCE GPIO alternate functions can be enabled in this project. Drive an external 2.4 GHz PA/LNA front-end (e.g. SKY66118-11) using a dedicated TX control signal. Identify
Hello,I am trying to obtain the old STM32CubeExpansion_LRWAN_V2.0.0 package (I-CUBE-LRWAN v2.0.0), but I can only find the current versions on the ST website.I specifically need version 2.0.0 for compatibility with an existing project based on the original LoRaWAN stack provided by ST.I have already checked:The current I-CUBE-LRWAN page on st.com STM32Cube repositories and mirrors on GitHub Archived documentation and release notesUnfortunately, I have not been able to locate the original archive (STM32CubeExpansion_LRWAN_V2.0.0.zip).Does anyone know:Where this version can still be downloaded? Whether ST keeps an archive of legacy expansion packages? If there is an official replacement package fully compatible with v2.0.0?Any help or archived download link would be greatly appreciated.Thank you.
Hello STM32CubeMX Support Team,I am writing to request a quality-of-life feature for STM32CubeMX: the ability to choose the line ending format (LF vs. CRLF) for generated project files.Currently, STM32CubeMX aggressively generates files using Windows-style CRLF line endings, regardless of the host operating system. As a developer using Git in a cross-platform environment (specifically Linux), this creates constant and unnecessary friction in version control.Whenever I regenerate code via CubeMX, Git immediately flags dozens of files as modified purely because the line endings were forced back to CRLF. While this can be partially mitigated using .gitattributes or core.autocrlf settings, these workarounds are prone to breaking across different team members' machines, resulting in messy diffs, ruined commit histories, and broken CI/CD pipelines.Proposed Solution: Could you please add a simple toggle or dropdown in the Project Manager > Code Generator settings tab allowing users to sel
Dear Sir/Madam,We use ADC1283IPT in our unit. This IC has operating temperature range -40C...125C and storage temperature range -65...150C. Our unit must start operating at -55C. Will ADC1283IPT operate at -55C without being damaged and which parameters may deteriorate?Thank you,Alex
Hello, I have an application that set up TIM2 as a input capture timer that worked fine with HAL 2.0.0. After upgrading to HAL/template 2.1.0 I regenerated the code with MX2 but the code does not compile. The error occurs when compiling this line of code in LPDMA1_CH1_IRQHandler() mx_tim2.c: HAL_DMA_IRQHandler(&hLPDMA1_CH1);A different DMA channel variable is defined earlier in the file and MX2 also displays LPDMA1_CH2 as the DMA used for TIM2.static hal_dma_handle_t hLPDMA1_CH2;To make the code work I changed code in this file I had to replace LPDMA1_CH1 with LPDMA1_CH2 in several places in this file. Here is the new code:/** ****************************************************************************** * @file : mx_tim2.c * @brief : Peripheral initialization ****************************************************************************** * @attention * * Copyright (c) 2026 STMicroelectronics. * All rights reserved. * * This software is licensed under t
Hi all, we have developed a video capture application and are field-testing this right now. In order to optimize perceptual quality, we are tuning the quality parameters to find a good trade-off.I saw in the h263encapi.h some features mentioned that are interesting to our application but could not find out if the VENC hardware actually supports it, likeRegion of interest cyclic intra refresh Video stabilization (although I fear that memory bandwidth is a limit here)I have read the Hantro Software Integration Guide in the github repository but that does not go into detail on what is available on the STM32N6.It seems that there has been an earlier discussion in this topic mentioning an Internal ticket number: 209269Could we have a feature map on what the IP block actually supports and the related software documentation?Thanks a lot Simon
I am debug project for DMA, I want looking for interrupt vector related information, Copilot suggested use “Call Stack”.I did try “Reset ALL perspectives”, “Window → Perspective → Customize Perspective”, I can’t find this function.
Hello Team,We are developing a custom board based on the STM32N657 MCU. Kindly suggest a method to program the external flash using both SWD and USB1 interfaces. Additionally, please provide the required configuration for the BOOT0 and BOOT1 pins.Thanks
Good morning everyone,I need to drive an external pump using DAC out pheriperal.I am working with an STM32H562ZI microcontroller and have followed the guide available at the following link: Getting started with DACBelow is my current configuration:/** * @brief DAC1 Initialization Function * @param None * @retval None */static void MX_DAC1_Init(void){ /* USER CODE BEGIN DAC1_Init 0 */ /* USER CODE END DAC1_Init 0 */ DAC_ChannelConfTypeDef sConfig = {0}; /* USER CODE BEGIN DAC1_Init 1 */ /* USER CODE END DAC1_Init 1 */ /** DAC Initialization */ hdac1.Instance = DAC1; if (HAL_DAC_Init(&hdac1) != HAL_OK) { Error_Handler(); } /** DAC channel OUT1 config */ sConfig.DAC_HighFrequency = DAC_HIGH_FREQUENCY_INTERFACE_MODE_ABOVE_80MHZ; sConfig.DAC_DMADoubleDataMode = DISABLE; sConfig.DAC_SignedFormat = DISABLE; sConfig.DAC_SampleAndHold = DAC_SAMPLEANDHOLD_DISABLE; sConfig.DAC_Trigger = DAC_TRIGGER_NONE; sConfig.DAC_OutputBuffer = DAC_OUTPUTBUFFER_ENABLE; sConfig.DA
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.