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,I’m facing an issue when I’m trying to modify multiple Option Bytes on the STM32G473 with one call to STM32_Programmer_CLI.The issue seems to occur whenever the BOOT_LOCK-parameter is part of the call.The call looks like this:STM32_Programmer_CLI --connect port=SWD --optionbytes BOR_LEV=0x3 nRST_STOP=0x0 nRST_STDBY=0x0 nRST_SHDW=0x0 IWDG_SW=0x1 IWDG_STOP=0x1 IWDG_STDBY=0x1 WWDG_SW=0x1 BFB2=0x0 DBANK=0x1 nBOOT1=0x1 SRAM_PE=0x1 CCMSRAM_RST=0x1 nSWBOOT0=0x0 nBOOT0=0x1 NRST_MODE=0x3 IRHEN=0x1 PCROP1_STRT=0x7FFF PCROP1_END=0x0 PCROP_RDP=0x0 WRP1A_STRT=0x7F WRP1A_END=0x0 WRP1B_STRT=0x7F WRP1B_END=0x0 PCROP2_STRT=0x7FFF PCROP2_END=0x0 WRP2A_STRT=0x7F WRP2A_END=0x0 WRP2B_STRT=0x7F WRP2B_END=0x0 SEC_SIZE1=0x0 SEC_SIZE2=0x0 BOOT_LOCK=0x1When BOOT_LOCK is part of it, the execution stops with the error “Unable to get core ID” .When it’s not, everything works fine.The issue is also reproducible when it’s just one other parameter besides BOOT_LOCK, eg. STM32_Programmer_CLI --connect port=SWD --op
Hi, we are enhancing our certified Flexible Safety RTOS (written in C) with a Rust wrapper for application code. We have a working prototype on STM32 and are looking for a pilot customer. If you are evaluating RTOS options for a real project, we would be glad to talk.
Hello ST team,In a previous discussion, @Jocelyn RICARD confirmed that X-CUBE-CRYPTOLIB V4.x was not reentrant, partly due to its use of the CRC hardware peripheral.I understand that V5.0.0 no longer depends on the CRC peripheral, but I could not find an explicit statement in the documentation regarding thread safety or reentrancy.Could you please clarify the following? Is X-CUBE-CRYPTOLIB V5.0.0 fully reentrant and thread-safe when called concurrently from different RTOS tasks, provided that each task uses independent contexts and buffers? Does this also apply to single-call APIs such as cmox_hash_compute() and cmox_cipher_encrypt(), which do not expose an explicit context? Can ST confirm that V5.0.0 does not use any shared mutable internal state that could prevent concurrent execution? Is any external synchronization (e.g., an RTOS mutex) required when calling CMOX APIs from multiple tasks? We would like to determine whether a global mutex, previously necessary with V4.x, can
While using CubeMX Memory Management Tool (MMT) to create an SRAM4 region as shown in the image: Error configurationThere appears to be an error on the Pinout & Configuration tab, the error is:Error on FLASHI think that the error happens because of the end page configurated by default. The MAX value is 127, but when I´m using MMT the value goes to 255. I found a work around of this problem by reducing the FLASH size, from 2MB to 1MB, luckily I don´t need all the available FLASH memory to run my firmware. But I was wondering if this is a bug or I´m doing something wrong.Work aroundProblem fixedThe only reason I´m using MMT is because I´m in VScode and there was no way to auto generate the SRAM4 region in the Linker File. I´ve got it working with some AI assistance, but I wanted the “safety” of using the official Linker File config.Best regards, Mariano
I am trying to configure IEEE 802.15.4 packet sniffing on a NUCLEO-WB55 using STM32CubeMonitor-RF and Wireshark.I flashed the following firmware: Wireless coprocessor (M0+): stm32wb5x_Mac_802_15_4_fw.bin from STM32Cube_FW_WB_V1.24.0 Application (M4): Mac_802_15_4_Sniffer_Nucleo.bin from STM32CubeMonitor-RF IssueThe sniffer is detected successfully as a USB Virtual COM Port, and Wireshark recognizes it as an STM32CubeMonitor-RF 802.15.4 sniffer.However, no packets are captured, even when transmitting IEEE 802.15.4 frames from another STM32WB board.Troubleshooting Performed Tested both USB and ST-LINK/SWD connections. Verified USB device and serial port detection. Verified Python, PySerial, and Wireshark compatibility. Confirmed Wireshark recognizes the sniffer interface through extcap. Tested direct capture using stm32cubeMonRf_sniffer.py. Tested capturing through Wireshark and STM32CubeMonitor-RF. Configured matching IEEE 802.15.4 channels. Verified that the transmitter
I have ordered the Nucleo-C542C board. I am waiting on the board to arrive so I thought I would setup a blinky project to test on the board. i used MX2 to setup the GPIO, clock, etc. I then imported the project int CubeIDE using the CMAKE option.Apparently there is no way to build a release file. This means I will not be able to program the board. The build hammer only shows the debug build option.Also, I do not see the .ioc file in the project tree. Apparently I don’t understand how MX2 and CubeIDE link together. If I am able to ever find the .ioc file, will it be updated if I make changes in MX2? The old version of CubeMX linked the.ioc files together. If changes were made by CubeMX, those changes were reflected in CubeIDE.As a side note, there is one aggravating minor issue with CUBEMX2. Why are all the screens so washed out and difficult to see?. Everything that should be solid black is a barely visible light colored grey. This is particularly annoying in the GPIO chip pinout view.
Title: STM32L431 debug launch fails every other time depending on odd/even number of Flash pagesHello,I would like to report a reproducible issue with STM32CubeIDE and an STM32L431 device.Environment MCU: STM32L431CBT6 STM32CubeIDE: Version 2.2.0 Build: 29186_20260626_0934 Debugger: ST-LINK / SWD Flash page size: 2 KB SymptomFor a long time, I had an intermittent problem when starting a debug session.Approximately every second debug launch failed.Depending on the failed attempt, I observed one of the following: The program appeared not to be loaded correctly. The CPU ended up somewhere in System Memory, for example at an address around 0x1FFFxxxx. The program started, but did not stop at the configured breakpoint. In some failed sessions, peripheral registers could no longer be read from the debugger. Initially, I suspected BOOT0, reset timing, SWD speed, or hardware noise.However, the same physical PCB worked reliably when I programmed another firmware project into exact
Hello ST Community & ST Engineers, I am building a field Over-The-Air (OTA) firmware update system on the STM32H7S78-DK discovery board. The system uses an ESP32 connected over high-speed UART to transfer the updated firmware binary (2.4MB containing the application and TouchGFX GUI assets). Because the STM32H7S7 is a BootFlash MCU with only 64 KB internal flash and executes the application from the external 128 MB Octo-SPI NOR Flash there is no direct out-of-the-box dual-bank OTA example in the STM32Cube_FW_H7S7 package for this board. Background Streaming while TouchGFX is Active: The running application Appli receives 1024-byte chunks from the ESP32 over UART and stages the full 2.4 MB binary directly into external Hexa-SPI PSRAM at (on XSPI1).Note : Since the binary file i use is only 2.4MB is use PSRAM to store it but actually i wanted to do in NOR flash since the excepted binary is around 40-50MB(so PSRAM can’t be used in final application binary file). Safety In
I’m trying to get two threads running, one that changes audio volume based on a rotary encoder input and one that actually pipes the music to the speaker. I am able to get both working independently with good audio on the audio thread, but I cannot get BOTH threads to work at the same time. I’ve been tweaking the thread priority, preemption priority, time slice/no time slice, and thread sleep parameters (the sleep not being a parameter but just a tx_thread_sleep() call and the end of the thread while loop). My last iteration had the following params and still didnt work:Volume thread:Priority: 16 Preempt: 0 Time slice: 1 sleep: 100USB Audio thread:Priority 15 Preempt: 15 Time slice: 200 sleep: 1 Would love to get direction in getting BOTH working with clear audio.
Hello,is it possible to get markdown format of the Reference Manual instead of the PDF version? I do not mean the converted PDF into markdown by MarkItDown or Panda, etc. These tools usually fail when the huge document is processed. They cannot keep the formatting.Why I need it? I want to generate list of typos, misleading information, statements, etc. that should normally be fixed by ST but probably the documentary department is out of the tokens :). E.g. in the sentence in the ADC4 chapter:the end of sequence (EOCSEQ) occurs once the sequence of oversampledcompleted (i.e. after N x sequence length conversions total)I spent time searching for EOCSEQ flag to detect that there is no such a flag and to discover that people writing chapter 34.4.26 were not the same as those writing 34.7 to unify the names EOCSEQ = EOS. Cheers,Martin
I am using custom board that only has STM32WBA65CIU6 and IIS3DWB. I am using STM32CubeIDE v2.2.0, STM32CubeMX v6.18.1, and STM32Cube FW_WBA V1.10.0.I generated a project from CubeMX with the default configurations without changing or enabling anything except1) Enable ICACHE 2-way2) Enable HSE and LSE, use SMPS and turn off prefetch3) Enable SRAM1 and SRAM2to match the conditions mentioned in the datasheet for the current charactersticsI tried in an empty code, just the generated initialization from CubeMx and empty while(1)1) Using HSE + PLL to have 100MHz HCLK and read 3.39 mA which is fine2) Using HSE only to have 32MHz HCLK and read 2.27 mA which is above the 1.7 mA3) Using HSI only to have 16MHz HCLK and read 1.53 mA which is above the 0.46 mAWhen I try entering any low power mode, I read 0.87 mA which is much higher than expected.I tried disabling the RAMs and the ICACHE, disabling the HSE and the LSE, set ULPMEN to 1 and leave it, and other many cases and still get the same 0.87
I am doing a academic research project working with PLC for 24 VAC HVAC application, CENELEC Band B. We have previously used TI AFE031 with F28379D with single-carrier FSK modulation targeting ~38k baud, but ran into bandwidth/aliasing and noise immunity bottlenecks near 150 kHz due to analog filter. To solve this issue, we are looking into OFDM. Would it be possible to make EVLKSTCOMET10-1 work for this application? I am a student and have little experience with communications, so apologies for any inconsistencies.
Hello,I generated a project using STM32CubeMX2 for Nucleo-C5A3ZG and I imported the project using the 'STM32CubeMX2 Project' option into STM32CubeIDE. I can compile and link the code without any issues however I noticed that there is only one build configuration (debug_GCC_NUCLEO-C5A3ZG for my project). Can STM32CubeMX2 also create a release build configuration?My second related question what is the best way to add compile flags? I managed to add a -DDEBUG flag to the flags.cmake file and it works fine. Is this the right way to do it? Would project regeneration be troubled by this change?Finally, if I opted in for 'Assert checks on function parameters' and 'Assert checks on module state' in STM32CubeMX2 HAL System Init is there a way to only have this functionality enabled only for a debug build? Thank you,Gil
Hello, I noticed that when showing differences between the current and the previous generated source code the width of the source code window does not even show 80 characters even though there is plenty of room in the application window (see screenshot attached). I spent quite a bit of time looking at the HAL source code when debugging and the source code is not formatted to 80 character lines anyway. Sometimes it exceeds 80 by a wide margin. Would it make sense to show the source code window as a popup or as wide as the application window allows?Thank you,Gil
Hello ST Community,I am writing to report a serious regression in STM32CubeMX 6.16.0 running on Arch Linux (KDE Plasma) with a 1920x1080 resolution.Environment:OS: Arch Linux (Rolling)Java: OpenJDK 25Desktop: KDE Plasma (Wayland/X11)Screen Resolution: 1920x1080The Regression (Comparison):1. STM32CubeMX 6.15.0 (Previous Version):Status: Works perfectly out-of-the-box.Details: I did not need to modify any configuration files or set any environment variables. The application launched correctly, the UI was usable, and the window could be resized and maximized without issues.2. STM32CubeMX 6.16.0 (Current Version):Status: Unusable / Broken.Details:The default UI rendering has issues (fonts are tiny or behavior is inconsistent).When trying to fix it using standard scaling methods (e.g., _JAVA_OPTIONS="-Dsun.java2d.uiScale=2" or GDK_SCALE=2), the window management breaks.The window refuses to maximize, enter full screen, or resize properly. It seems internal window constraints have been chang
Is there a way to halt a position control move? It seems that issuing the stop and then reissuing the start will not clear the previous position control command and the controller will still attempt to achieve the position after the stop. Issuing another position move request does not seem to stop the process either as the code seems to reject move requests until they are complete.Here’s the code in question from the MCSDK 6.4.2case MC_REG_POSITION_RAMP: { FloatToU32 Position; FloatToU32 Duration; /* 32 bits access are split into 2x16 bits access */ Position.U32_Val = ((int32_t)(*(int16_t *)&rawData[2]))<<16 | *(uint16_t *)rawData; /* 32 bits access are split into 2x16 bits access */ Duration.U32_Val = ((int32_t)(*(int16_t *)&rawData[6]))<<16 | *(uint16_t *)&rawData[4]; MCI_ExecPositionCommand(pMCIN, Position.Float_Val, Duration.Float_Val); break; }__weak vo
Hello,I would design a PCB a compatible with both STM32MP23x and STM32MP25x series, using VFBGA424 package.I would support both 16x and 32x DDR4 controller configuration, so I will use fly-by routing to avoid stubs. STM => DDR4A => DDR4B => termination The question is:in the case we use 16x configuration, it is better to have the only memory chip near o far with respect to the STM32?I mean, the only populated chip shall be DDR4A or DDR4B? ThanksAndrea
Finally was able to test STM32CubeMX2 with a NUCLEO-C562RE board.Simple LED blinking project, and here's what I found out. Project bloat:STM32CubeMX2: 26.2 MB of generated data and when compiled 41.1 MB (NUCLEO-C562RE)STM32CubeMX: 4.6 MB generated and compiled 15.7 MB (NUCLEO-C031C6, same functionality) The old STM32CubeMX included only the HAL libraries actually used.The new one dumps everything in.That's a 5.7x increase for a blink LED. Missing Release configuration:Generated CMake project contains only Debug configuration - No Release.Interesting, because the official "MOOC STM32CubeMX2" video at 4:53 clearly shows both configurations.Either something changed or the video is misleading. Creating Release configuration manually requires editing multiple CMake files, including inside the cmake folder — supposedly overwritten on regeneration (in practice, changed only at project creation).Not trivial if you're not a CMake expert.I did it once manually, but then ended up using Claud
Hello,I have generated a project with STM32CubeMX2 for NUCLEO-C5A3ZG. Now I made changes to the MX project and try to generate the project again. But during the generation a list pops up, that asks for overwrite approval. I can not interact with the list properly. (I can’t scroll and pressing ENTER does nothing)Is this a known error or is there a workaround?
Here on Opensuse Tumbleweed with fvwm2 the installation starts with a small window where the "Continue" button is not visible on startup. The window is can only be resized a little smaller but not larher. Only by scrolling the "Continue" button gets visible.This is unexpected.The follwing stages the presented window still can not be sized to a sensible size. MX2 was installed before on that PC and was still accessible. I do not know how the window size behaved during the first installation.Screen size is 3840x2160.
Trying to build a NUCLEO-C562RE project under IAR 9.60.4. Included with the output is an folder, IDEs_patches/EWARM and a readme,md outlining how to add support for the new MPU. But the patch file referenced in it is no where to be found. Searched my local drives, ST’s site, ST’s Community, ST’s github but can’t find “STMicroelectronics.stm32c5xx.2.1.0.iar.zip”I’m glad ST has decide to distribute a patch so I don’t have to upgrade to the latest IAR every time a new CPU comes out (my company tries to use a consistent version across projects) but without the patch file, IAR does not recognize the C564 as a target.
Hey,I have some questions. First, why does the installer install the app below ~/Library/Application Support?This location is for the support files of an app, not the app itself. The installer, however, puts everything there, including the .app BundleImprovement: Please move the .app Bundle install location to /Applications or ~/Applications. Supporting files then belong in the aforementioned path. Second, why can the .app Bundle not be started on it’s own? When I open it, it loads a splash screen with a progress bar, but when the app windows comes up all it shows is a loading circle. To really start CubeMX2 you HAVE TO use the startup binary which the installer also provides, but there is currently no way to just start the app from the launcher.This is very bad as it goes completely against the way 99% of how Mac users launch apps. CubeMX1 does this correctly, why is that such a step backwards with CubeMX2 ? Because currently, after installing the app there is no way to start it from
Hi,I found the new c562 chip and for that I needed to install the latest IDE, v2.1.1I am running Debian linux (testing) kernel 7.0.10 on an AMD cpu with nvidia, driver 595.80When I installed IDE 1.19 it installed mx1 automagically if I am correct, now with 2.1.1 mx1 or mx2 is no longer automagically installed anymore. Trying to install mx1 from the command line throws an error that I do not have JRE 17 installed even though versions 17/21/25 are installed.rth@castle:~$ uname -aLinux castle 7.0.10+deb14-amd64 #1 SMP PREEMPT_DYNAMIC Debian 7.0.10-1 (2026-05-27) x86_64 GNU/Linuxrth@castle:~$ java --versionopenjdk 25.0.3 2026-04-21OpenJDK Runtime Environment (build 25.0.3+9-2-Debian)OpenJDK 64-Bit Server VM (build 25.0.3+9-2-Debian, mixed mode, sharing)rth@castle:~$ dpkg -l | grep jreii default-jre 2:1.25-77 amd64 Standard Java or Java compatible Runtimeii default-jre-headless 2:1.25-77 am
Hi what is the crrent state of agentic programming with cub ide? Like I want Claude code to add an EMMC driver to my existing project. Is this possible?
HiSetup: LIS2DW12 in I2C mode, with CS and SA0 tied to VDD_IO and RES (pin 7) to GND. VDD and VDD_IO are always on. An ST25DV shares the bus. With the original 100 kΩ pull-ups we measured t_HIGH(SCL) = 3.2 µs, below the 4.0 µs minimum, and edges of about 2.2 µs.The firmware sets SOFT_RESET by read-modify-write on CTRL2 on every sleep cycle, then sets BDU by read-modify-write.Symptom: after some time the sensor stops acknowledging at any address. The ST25DV on the same bus still works. MCU reset and 9 SCL clocks + STOP do not help.Bus already fixed: we replaced the external pull-ups with 10 kΩ, as in Figure 4, and adjusted the I2C timing register. t_HIGH is now about 7 µs and f(SCL) is about 67 kHz, within Table 7.Questions:1. Apart from I2C_DISABLE = 1, what can make the sensor stop responding on I2C until power is removed? Could the previous out-of-spec timing have caused a wrong register write?2. Is a read-modify-write of CTRL2 right after SOFT_RESET safe? Is there a minimum wait tim
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.