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
I am trying to create two phase-shifted PWM waves on an STM32L4 TIM1 using asymmetric mode. From what I understand, I have to:enable output on GPIO channels 1 and 3enable output compare 1,2,3,4 and output compare 1,2,3,4 as asymmetric PWM modeThen, I setCCR1 = 0, CCR2 = ARR, and CCR3 and CCR4 to the outputs provided by the function below. Then I only enable channel 1 and channel 3 as outputs..?So output compare 1 and 2 work together to produce the first PWM on channel 1. And output compare 3 and 4 work to produce the second PWM on channel 3.This is what I understand from the graph on page 754 in the RM. But it is not allowing me to change the phase shift while still maintaining 50 % duty cycle on both waves. When I print my CCR3 and CCR4 values, they are exactly ARR apart, which would make me think that they should produce a 50% duty cycle wave. But they don't. I'd appreciate any help!static void tim_phase_shift(uint32_t ARR, float phase_deg, uint32_t *CCR3, uint32_t *CCR4) {
I was following the tutorial in the link: https://www.youtube.com/watch?v=vy1c1LbypuM&list=PLfIJKC1ud8giOsk-C4BCOwSHtbXqTNb1W&index=3 I couldn't gett the upclick to count greater than 9 and below 0. the screenView.hpp and cpp as follows: hpp: #ifndef SCREEN1VIEW_HPP #define SCREEN1VIEW_HPP #include <gui_generated/screen1_screen/Screen1ViewBase.hpp> #include <gui/screen1_screen/Screen1Presenter.hpp> class Screen1View : public Screen1ViewBase { public: Screen1View(); virtual ~Screen1View() {} virtual void setupScreen(); virtual void tearDownScreen(); virtual void downclicked(); virtual void upclicked(); protected: uint16_t counter = 0; }; #endif // SCREEN1VIEW_HPP cpp: #include <gui/screen1_screen/Screen1View.hpp> Screen1View::Screen1View() { } void Screen1View::setupScreen() { Screen1ViewBase::setupScreen(); } void Screen1View::tearDownScr
Hi everyone!I'm trying to figure out what's wrong with my SPI Peripheral continous transmitting/receiving via DMA in Circular Mode. I think I have coded a pretty basic "Hello, World" for working with DMA, I've just generated code from .ioc file and then added a simple logic. This is my main.c: /* USER CODE BEGIN Header */ /** ****************************************************************************** * @file : main.c * @brief : Main program body ****************************************************************************** * @attention * * Copyright (c) 2025 STMicroelectronics. * All rights reserved. * * This software is licensed under terms that can be found in the LICENSE file * in the root directory of this software component. * If no LICENSE file comes with this software, it is provided AS-IS. * ****************************************************************************** */ /* USER CODE END Header */ /* Includes -------------------------------------------
Hello,I have made a custom STM32MP133D board and I am in the process of building the custom bring up. The bringup uses discrete regulators and not a pmic. I have followed the process of building the device tree for the TF-A and build the TF-A .stm32 binary configured for USB. The .stm32 successfully flashes but the code stucks on ASSERT: drivers/st/regulator/regulator_fixed.c:81 and Exception mode=0x00000016 at: 0x00000000 suggesting a null pointer and an underline issue with my dts.I have made the ddr memory tests for the pcb bring up and successfully passes all the memory tests using the tfa.dtsi ddr configuration.I have also attached the the device tree for the tfa.Can anyone help me with this issue?// SPDX-License-Identifier: (GPL-2.0-or-later OR BSD-3-Clause) /* * Copyright (C) 2025, STMicroelectronics - All Rights Reserved * Author: STM32CubeMX code generation for STMicroelectronics. */ /* For more information on Device Tree configuration, please re
Using Ux_Device_Audio2.0_PlayBack as an example for STM32H753, I enabled in the .ioc file, but it doesn't seem to be affected in the project. Any idea why? In the .ioc, I have this `UX_DEVICE_CLASS_AUDIO_FEEDBACK_SUPPORT` enabled... should be affecting ux_user.h But ux_user.h is not being used in the project, so I don't think it's actually being built into the .elf file. I also can't find the file in the STM32CubeIDE project as well, although it is under `USBX/App/ux_user.h` in the system explorer... Here's the Project explorer in the IDE: and even opening each of those *.c files doesn't reveal ux_user.h. Lastly, I do have UX_INCLUDE_USER_DEFINE_FILE in the preprocessor: Am I missing something?
Hi,I am working on an application for the STM32N6 (using zephyr) that streams data from four SPI interfaces (SPI1, SPI2, SPI3 and SPI6) via Ethernet (UDP). I am using full-duplex SPI transfers and GPDMA1.Everything works fine up to SPI clock frequencies of 22MHz on all four SPI interfaces. However, as soon as I increase the SPI clock to beyond 25MHz, I start getting DMA transfer errors and erroneous data in my buffers. Obviously, 22MHz full-duplex on four SPI interfaces is already quite fast, but if possible, I would like to go beyond that.I know that Ethernet is not the bottleneck here, since this happens even if I do not stream all data over Ethernet.I was just wondering: Is this performance expected, e.g., due to the high load on the memory bus? What measured could I take to increase performance further?Thanks for your help!
Hi,We're working on a new open source wildlife camera system and planning to use ST's 1.5 Mp and new 5 Mp image sensors with an STM32N6x7 series MCU for routine MIPI CSI-2 camera interface, ISP, h.264 video encoding, storage and possibly CNN (Convolutional Neural Network) inference with a separate STM32MP25x booting embedded Linux when advanced functionality is needed.We were wondering if it would be a practical possibility at all to use an STM32MP25x series MPU with bare metal for routine MIPI CSI-2 camera interface, ISP, video encoding and storage tasks as well as for running embedded Linux or if this would be a theoretical possibility but potentially practically difficult to implement?Moe about ST image sensors:https://www.st.com/en/imaging-and-photonics-solutions/industrial-consumer-cmos-image-sensors.htmland about our conservation work:https://new-homes-for-old-friends.cairnwater.com/quick-summary-new-homes-for-old-friends-belgium/Thank you for your help! / Mer
Hello,I am having an issue writing the Hardware Config in the HSO Motor Pilot. I was able to do this with my previous set up, but recently upgraded from Windows 10 to Windows 11. Along with the OS upgrade, I also installed the latest releases for all the ST software so MC Workbench went from V6.3.2 to 6.4.1. I am wondering if this is a Win 11 issue or a MC Workbench issue, or possibly a debugger setting issue?Components Used:MC Workbench V6.4.1STM32CubeMX V6.15.0STM32CubeIDE V1.19.0B-G473E-ZEST1S Control BoardSTEVAL-LVLP01 Power BoardProcess:Generate project in MCWB (Sensorless HSO option) - if errors finish generating in CubeMX - Open in CubeIDE - Build / Flash with default debugger settings via USB to onboard USB STLINK - Connect to MotorPilot (Connects fine, can tune, edit values) - Select Hardware Config (either Read / Fill from UI / Import, all with same result) - Click "Write" then the board doesn't reconnect.The errors I get in the connection bar either say "Port Open and try to
Hi!I have an issue with the upgrade process of the X-CUBE-FREERTOS plugin. It happened upgrading to 1.3.0 and to 1.3.1 as well: the list of tasks defined in CubeMX seems to be retained in the CMSIS RTOS2 tab as well as the other settings, but when regenerating the code the definitions disappear, and they have to be entered again,Is there anybody else with this issue? Could this be a bug? Configuration:STM32CubeIDE 1.18.1STM32CubeMX 6.14.1X-CUBE-FREERTOS 1.3.1
Post edited by ST moderator to be inline with the community rules for the code sharing. In next time please use </> button to paste your code. Please read this post: How to insert source code.Hallo,I am trying to measure the frequency of rectangular signals. the borad I am using is stm32f411-discoI used the timer 2 channel 1 for input capture. at every capture the timer value will be sent to memery by uing DMA. The DMA seems working, because I printed the captured value periodically. the DMA-Buffer is two, and it is working in a circular mode.I try to do some calculation in the interruption-function: "void HAL_DMA_XferCpltCallback(DMA_HandleTypeDef *hdma)" like this: void HAL_DMA_XferCpltCallback(DMA_HandleTypeDef *hdma) { if (hdma->Instance == DMA1_Stream5) // MCU-abhängig! { uint32_t first = IC_Values[0]; uint32_t second = IC_Values[1]; if (second >= first) diff = second - first; else diff = (0xFFFFFFFF - first + second); /* Timer läuft mit 1 MHz → 1 µs
Hello,We are using an STM32MP151 on a custom board and facing an issue with USB device connection via EHCI (USB 2.0).Problem description:After issuing a PORT_RESET, the J/K chirp sequence does not start, and we get a timeout error.If we disable EHCI and use OHCI, the device connects successfully.Hardware difference compared to evaluation board:Our design does not include a high-speed hub IC.The USB Type-A connector is directly connected to the STM32MP151.Questions:Has anyone experienced similar behavior on a custom board without a high-speed hub?Are there any hardware design requirements (VBUS, RREF resistor, clock quality) or Device Tree settings that need to be adjusted for EHCI operation?Any recommended debug steps for this issue?Additional info:Kernel logs show timeout after PORT_RESET.OHCI works fine for full-speed devices.Any guidance or suggestions would be greatly appreciated.Thank you!
Hi I am using the STM32N6570 with AI application models. I have seen the STM Model Zoo and STM32 AI Services. In the services, the application code is generated automatically based on the model selected from the Model Zoo. My question is: how do I develop my own AI application from scratch in STM32CubeIDE, without using the Python scripts? I have already run the Python scripts and they work fine, but I want to know how to build the application manually from scratch in CubeIDE.
Dear STEnvironmentItem Version / Details BoardSTM32N6570-DKOSUbuntu 24.04 LTSPythonConda, Python 3.10STM32AI Model Zoostm32ai-modelzoo-services/object_detectionOperation modedeploymentModelyolov8n_256_quant_pc_uf_od_coco-person-st.tfliteSTM32CubeIDE1.19.0ST Edge AI Core / STM32CubeAI10.2.0Local tool/opt/ST/STEdgeAI/2.2/Utilities/linux/stedgeaiDescriptionI am using the STM32AI Model Zoo deployment workflow on Linux to deploy a YOLOv8 object detection model to the STM32N6570-DK.The deployment pipeline reaches the final flashing stage and aborts because no ST-LINK device is connected, even though all previous steps (Neural-Art, code generation, project patching) completed successfully.Console log excerpt building.. Debug flashing.. Debug STM32N6570-DK board programming is SKIPPED! -> No valid STM32 development board is connected (ST-LINK/swd port).. ... raise STMAICToolsError('Board programming failed!') E400: Board programming failed! Expected behaviorEven when
Hi all i used LTDC hardware inside the STM32f429 discovery board to drive an external 24 bit RGB display in 16 bit mode . full GUI is designed in LVGL library , I was able to build it and flash it. I got the output on the display but with few issues . 1.the update speed of the GUI elements are way too slow , so I cant update it real time 2.I am not getting a precise output .some pixels are lost, 3.can I change the horizontal animation happening when changing the screen 4.How to use DMA2D to copy pixel data to framebuffer 5.I'll put the output image so you can see the color issue , i am not getting pure white its like a red/pink tinted screen from my view LVGL ver-8.3.11 the label is white and arc background color is grey, but this is what I am getting
Hello,I’m currently testing the CSI–DCMIPP interface on the Nucleo-N6 board. I’m following various examples, but the variable used in DCMIPP_Start (lcd_bg_buffer) is not receiving any data. Is there something I might have configured incorrectly?At the moment, the buffer is configured to be stored in ARAM2.
Hi,I’m working with the STM32F407VGTX and I am using GPIO PA4 as the SPI chip-select (CS) pin. In my GPIO initialization, I set the PUPDR register to configure PA4 with a pull-up, expecting the CS pin to remain HIGH when idle. However, I observe on my logic analyzer that after initialization PA4 goes HIGH briefly, then returns LOW (its default state) even though the pull-up is set. I am attaching a screenshot of my logic analyzer for reference.Could anyone please explain why the pin doesn’t remain high with the pull-up configuration, and what’s the correct way to configure PA4 so that CS is HIGH when SPI is not active?Thank you!
The above image represents logic analyzer output when HAL_SPI_Receive_DMA is executed. My doubt is regarding the single high pulse at MOSI line. During HAL_SPI_Transmit_DMA , no issues. Is this normal behaviour? STM as Full duplex master, i have disconnected the slave to check if it was responsible for the high pulse.
I’m using HAL_UART_Receive_IT() on an STM32F103 to receive serial data asynchronously. The UART initialization appears correct, and I can send data successfully, but the HAL_UART_RxCpltCallback() function never gets triggered. I’ve confirmed the interrupt is enabled in NVIC and the buffer size is correct.Is there something I might be missing in configuration or code structure that prevents the callback from firing?Any sample code or debugging steps would be greatly appreciated. Thanks!
Hi,I was wondering if there's any guidance on the approximate timeline for rebasing OpenSTLinux from kernel 6.6 to kernel 6.12 (autumn 2024) or to kernel 6.15, 6.16, 6.17 or 6.18?I know that this is an enormous amount of work and a very complex task - the STM32MP25 is an extremely advanced chip and there are some significant changes in the kernel between kernel 6.6 and kernel 6.12 LTS and later kernels so it won't be possible to give any definite timescales for this at this stage.It would be great to have a very approximate rough idea of the planned timelines for this since the advances in the kernel between 6.6 and 6.15 LTS make significant improvements in the kernel's ability to handle advanced functionality on the STM32MP25 and on ST image sensors. :)Thank you very much for your help!Will
Hi,I am working on a preexisting TouchGFX projects, and i am trying to make it multicore so i am trying to build with OpenAMP to test if i didn't tweak wrong settings in CubeMXI added the path in Project > Properties > C/C++ General > Preprocessor Include Paths , but when i try to build the project on CubeIDE it fails saying (the dots are to smoothen reading)..../HMI__stm32/BENCH10/CM7/Core/Src/main.c:35:10: fatal error: openamp.h: No such file or directoryWhen building the first part (gcc) does include it arm-none-eabi-gcc "C:/Users/Max/Downloads/Programmes/Programmes/HMI__stm32/BENCH10/Common/Src/system_stm32h7xx_dualcore_boot_cm4_cm7.c" -mcpu=cortex-m7 -std=gnu11 -g3 -DDEBUG -DCORE_CM7 -DUSE_HAL_DRIVER -DSTM32H757xx -c -I../../../CM7/OPENAMP -I../../../CM7/Core/Inc -I../../../CM7/FATFS/Target -I../../../CM7/FATFS/App -I../../../CM7/TouchGFX/App -I../../../CM7/TouchGFX/target/generated -I../../../CM7/TouchGFX/target -I../../../Drivers/STM32H7xx_HAL_Driver/Inc -I"C:/User
Hi, I’m working with the STM32N6 board and need to configure the FDCAN1 parameters. I’m using the 64 MHz internal clock, and I calculated the bit rate using the Bit Rate Calculator. I want to set a baud rate of 500 kbps, but I’m unable to do so. The configuration always shows a default value of 1000 bps, and it does not change even when I modify Nominal Time Segment 1 & 2 or the Prescaler. In the clock configuration, the FDCAN1 frequency is set to 200 MHz. Here are the steps I have already tried: Changing the APB clock. Changing the FDCAN1 clock frequency to 100 MHz. Checking both the FSBL and application layers. Using the STM32 example code from the repository. Testing on an N6 Nucleo board — the baud rate still does not change I have also attached the project file for the reference. If anyone has encountered this issue before or has any suggestions, please let me know. Thankyou.
The board I'm using is STM32H747I-DISCO, and the tool I installed is STM32CubeIDE 1.19.0.I want to build a static library based on it.Therefore, I run the following steps to create the library.File -> New -> STM32 ProjectAt this time, I got the following WARNING meesage.Does anyone know how to solve this issue? I tried to build the generated project using the following actions.And then, I got the following errors.However, this file already exists, as shown in the image below. Did I make any mistakes in the steps I took to create the library? And how can I resolve these issues?
Hi,I'm running test on the Discovery board H573I-DK.On a 24 hours period, I measure a 340 ppm precision that is far from the 20 ppm of the LSE Quartz.Is it normal ?
We ordered an STM32MP257F-DK evaluation board - DigiKey part number "497-STM32MP257F-DK-ND" - on 25 September 2025 and had it delivered to Zürich.On 15 October 2025 we ordered the same ST STM32MP257F-DK evaluation board with DigiKey part number "497-STM32MP257F-DK-ND" for delivery to one of our developers - Paul - working remotely.Paul booted the ST STM32MP257F-DK board using the SD card that was supplied with it and was able to take it into and out of suspend-to-RAM with no problems however when we try to reproduce this with exactly the same steps with the ST STM32MP257F-DK here in Zürich it fails to waken from suspend-to-RAM.We thought that it could be a difference in the images on the ST cards for the two boards so we copied the image for the SD card on the board delivered to Paul and tested it on the board here with exactly the same results.We also checked that the WakeUp switch on the board is electrically functional - when I press it:[ 290.372530] optee: no desc for optee IT:1We
Hello Experts,I am using an STM32F303VET6 MCU and developing in IAR Embedded Workbench for ARM version 9.40.2.My project compiles correctly, and debugging works perfectly when I use the I-Jet debugger.However, when I switch the debugger interface to ST-LINK V2, I experience several issues:Flash loading errorsDebug session failing to startRandom connection or SWD errorsIn general, the application fails to debug reliablyI have verified the following:The device appears in Device Manager as “STM32 ST-LINK”SWD wiring and connectionsSame board works fine with I-Jet, so hardware seems OKCould you please advise on what additional configuration or driver settings I should check in order to make ST-LINK V2 work properly with IAR?Any guidance would be greatly appreciated as this issue is urgent for my project. Error log.Tue Nov 18, 2025 17:43:52: IAR Embedded Workbench 9.40.2 (armPROC.dll)Tue Nov 18, 2025 17:43:52: Loaded macro file: C:\Program Files\IAR Systems\Embedded Workbench 9.2\arm/co
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.