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 all :)I am designing a board using the STM32WL33CCV6TR, and want to program/debug using the SWD interface. However, there are multiple pins the SWDIO and SWCLK can be mapped to using alternate functions. Usually with STM products, I have seen a footnote saying which pins the SWD interface is mapped to on boot. However, I cannot see this on the STM32WL33xx datasheet. My question is which pins should I use as SWDIO and SWCLK so that I can program the chip out of the box (without having to mess around with the bootloader). And could I have found this information, as I am sure it is somewhere but cannot find it. I am guessing the PA2 and PA3 pins, but not really for any good reason... Many thanks in advance!
I have four quite mature projects which I have developed with STM32CubeIDE 1.19.0 so far. Now I tested these projects with STM32Cube for VS Code using both toolchains.My environment:Debian TrixieVS Code 1.108.2 STM32CubeMX 6.16.1STM32CubeIDE for Visual Studio Code 3.7.0 fresh installed with all STM-Extension Packs and the following bundles in the project (from .settings/bundles.store.json): "name": "cmake", "version": "4.0.1+st.3" "name": "ninja", "version": "1.13.1+st.1" "name": "gnu-tools-for-stm32", "version": "14.3.1+st.2" "name": "st-arm-clangd", "version": "19.1.2+st.3" "name": "programmer", "version": "2.21.0" "name": "stlink-gdbserver", "version": "7.12.0+st.2" "name": "st-arm-clang", "version": "19.1.6+st.10" "name": "st-arm-clang-hybrid", "version": "19.1.6+st.3" I only used the release configuration and flashed the devices either with ST-Link or USB using the bundled programmer.I set up the project as follows:Generate a
Hi, I designed a special board that includes the LSM6DSO32 sensor. I want to get step count data, for testing I am using ESP32-CAM with LSM6DSO32 via I2C. I have followed the basic routine mentioned in application notes. I can get only garbage value. I will attached sample code for reference. Can you check and help me step by step what to do? First code give step count 0 always. For second code I attached screenshot. Please look into it and tell if anything need to change. #include <Wire.h> // LSM6DSO32 I2C address #define LSM6DSO32_ADDR 0x6B // Register addresses #define FUNC_CFG_ACCESS 0x01 #define PAGE_RW 0x17 //0x02 #define PAGE_SEL 0x02 //0x03 #define PAGE_ADDR 0x08 //0x04 #define PAGE_VALUE 0x09 //0x05 #define EMB_FUNC_EN_A 0x04 #define EMB_FUNC_EN_B 0x05 #define EMB_FUNC_INT1 0x0A #define MD1_CFG 0x5E #define CTRL1_XL 0x10 #define WHO_AM_I 0x0F #define STEP_COUNTER_L 0x62 #define STEP_COUNTER_H 0x63 #define EMB_FUNC_SRC 0x64 #define PEDO_CMD_REG 0x83 v
I have a project that builds with no errors but when I "Run as..." the project builds but never enters the upload sequence so doesn't upload.The board in question is a Nucleo F411RE & is communicating fine over UART. A previously loaded project is still sending out its debug messages, so I know the USB is good.Debug is not playing either...
I noticed some options in the CUBE IDE for my H745's ADCs labelled "ADC 12-bit optimized resolution" and likewise for 14 bits. I have searched the references and the internet and find no explanation of how "optimized resolution" differs from the regular resolution. Does anyone know what this means, and where it is documented? Thanks
I am facing an issue with STM32CubeIDE installation where the “STM32 Project” option and CubeMX functionality are missing even after downloading the latest STM32CubeIDE package from the official ST website, extracting the ZIP file, and running the installer as administrator. The IDE opens successfully, but essential features such as MCU/Board selection, CubeMX integration, and embedded software package management are not available, which prevents me from creating a standard STM32 project. I have already tried reinstalling the IDE, but the problem persists. I would appreciate guidance from the community on the correct installation procedure or any additional steps required to enable full STM32CubeIDE and CubeMX support on Windows.
I am using the USB OTG FS on the STM32H7. My MCU is self powered, so I need to use VBUS sensing. Can a 3.3V signal be used for the VBUS sensing on PA9 or must it be 5V? Based on the linked forum, I believe 3.3V would work, but would like to confirm with the STM32H7 series.https://community.st.com/t5/stm32-mcus/management-of-vbus-sensing-for-usb-device-design/ta-p/49485#:~:text=On%20STM32F2/F4/F7/,136): How should I configure OTG_FS_ID PA10 so my MCU is device only? Should I leave it floating, pulled to LOW, or pulled HIGH? Thanks in advance for any help on this topic.
The screen has 4 containers and many widgets. I am interested in keeping the names during the export to save lot of repertitive work
I am using below component tools MCU: STM32H750IBT6 IDE: STM32CubeIDE Version: 1.20.0 GUI: TouchGFX Version: 4.26.0 SDRAM: IS42S32400J-6TLI FLASH: MT25QL512ABB8ESF-0SIT (QUADSPI) QUADSPI With the following pin out: QUADSPI Configuration: Thank you in advance!
Hi all,I’m currently developing a project on the STM32N6 and am looking for advice on the most robust development workflow. Given the complexity of the N6, I’d like to leverage the automation of CubeMX, but I’ve encountered several hurdles. CubeMX frequently freezes and generates wrong code. Moreover, code generation seems to vary between versions, making it difficult to maintain projects over time or follow existing tutorials (such as https://community.st.com/t5/stm32-mcus/how-to-build-an-ai-application-from-scratch-on-the-nucleo-n657x0/ta-p/828502). Also tutorials recommend to change generated code to make the projects running, which goes against the purpose of automatic code generation.I’ve noticed the ST Edge AI Model Zoo examples appear to use a hybrid approach. It looks like some functions where taken from CubeMX, but the examples itself do not rely on the .ioc file generation.What is the best/recommended way to write software for the STM32N6? Use the firmware package:
Recently,I test STM32MP2 with STM32MP257F-EV1 board.I want to debug A35 core with STLINKV3 that on the STM32MP257F-EV1 board,does it support ?And which cores are the STLINK-V3EC can support,except cortex M.
Hi all,I attached my project (CMake using STM32Cube for VSCode) that generates this behavior. I am trying to make a neural network run on the NPU of the STM32N6. I was following this tutorial: https://community.st.com/t5/stm32-mcus/how-to-build-an-ai-application-from-scratch-on-the-nucleo-n657x0/ta-p/828502 , except that I use XIP instead of loading the program to the RAM and use a custom small NN from an .onnx file (also included in the attatched .zip). However, the neural network returns wrong values independent of the inputs and when resetting, the values change.My suspicion is that it has something to do with the cache. However, I am cleaning and invalidating the cache as recommended here: https://community.st.com/t5/edge-ai/the-output-of-a-relative-big-model-is-different-even-if-giving/td-p/811283 (except that I use the function mcu_cache_clean_invalidate_range, which the tutorial recommends)I also save the weights to the flash and not the RAM, which was t
Good day,I came across the "STAR1 reference design". The document is a few years old. I am trying to find components so that I can reproduce the reference design. Can someone please help me to find the component: mirrors, drivers, ST piezo mirror evaluation kit, waveguides. Thank you in advance.URL for STAR1: https://www.st.com/content/dam/ces23/pdf/laser-beam-scanning-presentation-ces-2023.pdf
I'm trying to use dual layers in LTDC of STM32N657X0HxQ controller. In the STM32CubeMX, I tried to set the Secure bit of RISUP for LTDC_L2 in RIF setting view, but the box is in gray color and is not selectable as follows.When I generate code with this box unchecked, my program does not work. So I manually changed the Secure bit in source code, which made LCD display work fine.How can I change the Secure checkbox in STM32CubeMX?My STM32CubeMX is version 6.16.1 for Windows 11.I've attached the ioc file.
Hi,I have a board design with the ST87M01-1301 that I am trying to bring up. The ST87M01 boots and I can control the device from the ST 87Mxx OM GUI tool, no issues with any of that.I am trying to get the GNSS working with a single antenna as shown in the data sheet and the EVKIT. The board is routed with RF_AUX (pin 33) connected to GNSS_ANT (pin 31), all per the guidelines. A passive GPS antenna is connected at the RF_ANT (pin 35)Is there an AT command that switches the RF_AUX On/Off to connect to the GNSS_ANT pin, or is the RF_AUX o/p always available? I have not been able to find this information in any of the ST87M01 documentation.At the moment my board is never able to get a GNSS fix and I want to be sure I have not missed a critical configuration AT command. The GUI continually outputs #GNSSFIX: 5.Thank you in advance for any comments or guidance. JT
I'm currently using an STM32H7S78-DK, and I'm correctly able to run TouchGFX with FreeRTOS and everything. I also an error handler function that, in case of a crash of TouchGFX it writes directly to the framebuffer.Now, I would like to do a similar thing but on the boot code, so basically before the classic jump if (BOOT_OK != BOOT_Application())I have an external RAM mapped at the address 0x90000000 which works correctly in TouchGFX with .icf likedefine symbol __region_EXTRAM_start__ = 0x90000000; define symbol __region_EXTRAM_end__ = 0x91FFFFFF; define region EXTRAM_region = mem:[from __region_EXTRAM_start__ to __region_EXTRAM_end__]; place in EXTRAM_region { first section TouchGFX_Framebuffer , section Video_RGB_Buffer , section Nemagfx_Stencil_Buffer };I wanted to use the same section of memory in the Boot, accessing the framebuffer directly, so I edited the .icf of the boot withdefine symbol __region_EXTRAM_start__ = 0x90000000; define symbol __region_EXTRAM_end_
Hello I am beginning the electrical schematic with the ST25R200. I saw on the datasheet, and here:https://eds.st.com/nfc-tuningcircuit/I saw that there is the single-ended and differential ways / circuits to drive the antenna.The differential circuit is bigger, it has more components.So what I ask here is about these difference (single-ended / differential), if using the single-ended scheme it's possible to reach the same tag distance reading of the differential scheme. Because our PCB is relativelly small in space available. Are there more advantages on using the differential circuit compared to the single-ended circuit?RegardsJeferson Pehls.
Hello,I'm experiencing an issue with the internal LDO regulator on the STSPIN32G4 MCU. The LDO is outputting 4.1V instead of the expected 3.3V, and I've been unable to resolve it despite trying multiple configurations.Problem Details:Target: 3.3V VDD from internal LDOActual output: 4.1V when input voltage > 4VBehavior: When input voltage is 3.33V, output is 3.05V (which seems reasonable given dropout), but when input is >4V, output remains at ~4.1V instead of regulating to 3.3VWhat I've Tried:All configuration options listed in Section 5.1.2 of the datasheetReplicated the three circuit configurations from Figure 9 ("3.3V LDO regulator supplied through VCC")Various register settings without successExpected Behavior: The LDO should regulate the output to 3.3V whenever the input voltage is above 3.3V + dropout voltage, correct?I've attached my schematic and screenshots showing the output voltages. Any insights into what might be causing this behavior or what configuration I might be
I need to use in our application three phase power supply any of the two phase present power supply should work or with respect neutral also work if any of one phase present. required for voltage monitoring three phase or sequence detector. any reference please provide voltage and sequence detection.capacitve power supply.
I am performing a thermal analysis with component M24C04-DRMF3TG/K TSSOP8 package. The datasheet does not contain any of the typical thermal resistance information: thetaJA, thetaJC_bottom, thetaJC_top. Is this information available? Thanks, Andrea
Hi,I just wanted to check if is it dangerous to move the isr_vector inside the text section like this:.text :{. = ALIGN(4);KEEP(*(.isr_vector)). = ALIGN(4);FILL(0x00000000);. = ALIGN(4);*(.text) /* .text sections (code) */*(.text*)*(.glue_7) /* glue arm to thumb code */*(.glue_7t) /* glue thumb to arm code */*(.eh_frame)KEEP (*(.init))KEEP (*(.fini)). = ALIGN(4);_etext = .; /* define a global symbols at end of code */} >FLASHI implemented a CRC32 integrity check and it doesn't work because the gap between the isr_vector and text section is always Fs when I debug with the CubeIDE, but if I download the .elf with CubeProgrammer, the gap is filled with 0s, and in that case it works.TY for your help.
Hi All,GreetingsWe are using STM32U585 on custom board with Trust zone enabled and now facing a connection issue with stm cube programmer in hotplug mode, now unable to connect to the microcontroller and getting ST-LINK error as : DEV_TARGET_CMD_ERROR.When NRST is low continuously(pressing the Reset Switch) the connection to the controller through Cube Programmer is happening, but we are unable to change any option bytes, to revert back to Non Trust Zone Code. Once the reset switch(NRST) is high, it is going back to the same error. Any suggestions for this issue and how can we resolve this?Thanks and RegardsPhilip
Hardware ConfigurationMCU: STM32F469NIH6Custom Board: Pin-to-pin replica of STM32F469I-DISCODisplay: HF-35040-X365-A0 (3.5-inch, 800x480 RGB parallel interface)SDRAM: IS42S32400J/F (16MB, 0xC0000000)Interface: LTDC (NOT DSI - DSI explicitly disabled)Framework: TouchGFX 4.26.0Working ReferenceThe same display works perfectly on STM32F429 with the same LTDC configuration, so the display hardware is confirmed functional.Problem DescriptionThe display continuously shows RGBW color cycling (white → red → green → blue, repeating every ~1 second) instead of rendering the TouchGFX UI.Critical observation: Changing LTDC configuration parameters (e.g., framebuffer width from 800 to 400 pixels) has NO EFFECT on the display output - the same RGBW pattern continues unchanged.Current LTDC Configuration // Clock ConfigurationSystem Clock: 180 MHz (changed from overdrive to voltage scale 3)PLLSAI: N=192, R=5LTDC Clock: ~25 MHz // LTDC Timing (for 800x480 @
STM32CubeMX standalone hangs on File → New Project (infinite loading, no error message). The problem is fully reproducible.I have tried:– reinstalling CubeMX– different CubeMX versions– Java reinstall– offline mode– clearing STM32CubeMX cache/AppData STM32CubeIDE (latest) works normally but I can not generate projects with CubeMX. OS: Windows 11 pro Has anyone experienced this issue recently or knows a workaround / fix?Any advice from ST would be appreciated.
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.