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 have the NUCLEO-H753ZI example running on my board. All works fine without the security features. When I enable both the SFU_MPU_PROTECT_ENABLE and SFU_IWDG_PROTECT_ENABLE. I keep having a watchdog when it tries to execute the firmware. I commented the #define SFU_IWDG_PROTECT_ENABLE and enable the SFU_VERBOSE_DEBUG_MODE. It gets stuck at verifying the user FW as shown below.= [SBOOT] SECURE ENGINE INITIALIZATION SUCCESSFUL= [SBOOT] STATE: CHECK STATUS ON RESETINFO: A Reboot has been triggered by a Hardware reset!= [SBOOT] STATE: CHECK NEW FIRMWARE TO DOWNLOAD= [SBOOT] STATE: CHECK USER FW STATUSA FW is detected in the slot SLOT_ACTIVE_1= [SBOOT] STATE: VERIFY USER FW SIGNATUREWhen I breakpoint I can see that it is stuck at this as USB stops running after the first SFU_LL_SECU_SetProtectionMPU call which is the SFU_INITIAL_CONFIGURATION.TRACE(" @%d:%x size:%x sub:%x perm:%x exec:%x\r\n",MPU_InitStruct.Number, MPU_InitStruct.BaseAddress, MPU_InitStr
Hey Devs, I migrated my V2 extension to V3 (3.6.4) on Dec 11 2025 (just before the v3.7.0 release), updated my debug workflow / launch.json etc, my STM32H745I discovery board was running my TouchGFX application (basically stock TouchGFX Designer generated app w/ CMake) fine with Dual Core debugging (new shared debugger / simplified Launch/Tasks.json is a massive improvement on my old/convoluted tasks/launcher workflow, my sincere thanks).Just tried to re-run the same code stack with my code with the new 3.7.0 extensions, hit a launch error relating to my launch.json:Extension seems to have lost context of my ide.store.json files in the project subfolders:{ // 'CM4/.settings/ide.store.json' - This line not in actual file "device": "STM32H745XIH3", "core": "Cortex-M4", "order": 0, "toolchain": "GCC" }(Similar for the CM7 version targeting the M7 core)Re-running the STM32Cube Project setup configuration didn't seem to fix it, so I just added 'deviceName' and 'deviceCore' manuall
Hi,I'm trying to write custom firmware for the MKI109D. I am currently using an MKI251A adapter board with it for evaluation. How do I set VDD_DUT and VDDIO_DUT to 3.3V on the MKI109D board without using MEMS Studio?
I'm using the STM32H747 DCMI peripheral to capture video from an OV5640 camera, and I've encountered a confusing situation regarding synchronization signal polarity.Development EnvironmentBoard: STM32H747I-DISCOCamera Module: B-CAMS-OMV (OV5640)Firmware: Official example projectSTM32CubeH7/Projects/STM32H747I-DISCO/Examples/DCMI/DCMI_CaptureMode/CM7/Src/main.cOV5640 ConfigurationIn the OV5640 register 0x4740 (POLARITY CTRL00), I configure:{OV5640_POLARITY_CTRL, 0x22}According to the datasheet, this means:Bit[5] = 1 → PCLK polarity: Active highBit[1] = 1 → HREF polarity: Active highBit[0] = 0 → VSYNC polarity: Active lowSo the camera outputs:HREF high during valid line dataVSYNC low during valid frame dataPCLK rising edge for pixel samplingSTM32 DCMI ConfigurationIn the STM32H747 DCMI_CR register, I configure:DCMI->CR |= (1 << 7) | (1 << 6); // VSPOL = 1, HSPOL = 1According to the STM32 reference manual:VSPOL = 1 → VSYNC high = invalid f
Can you help with new research on secure boot? I am a cyber security researcher at the University of Bristol in the UK. I would like to your views on Secure boot. My area of interest is developer-centred security, specifically in the issues that developers face when trying to build secure IoT devices. If you have ever looked at implementing secure boot, or used it in your current development, or maybe think it to complicated, then I would really like to hear from you. Please take just 8 to 10 minutes to do this short survey on secure boot. https://universityofbristol.eu.qualtrics.com/jfe/form/SV_06xKUNve9ioJ5T8 If you have any questions, you can contact the researchers directly at fe23957@bristol.ac.uk
I have a problem, where there's simply no error, but the output, is not showing on the screen. The system has detected the board, and all the correct steps are followed, even though, my hello world code is not been printed. I am using stm32cubeide version 2.0.0 and im using a nucleo-h723zg. Also, the board is first showing a static red light when plugegd in to the laptop, and then a patternt that repeats ----> red, green red,green and then green for 1 second and then it keeps on going. I even flashed my whole baord and erased everything, despite that, it is showing the same behaviour. So far, I haven't recieved any error, the only thing is that i am not able to see the output on the screen of the ide that im using. Here's a link for the led problem(chatgpt says its a firware issue evn though i downlaoded the correct firmware) Video link: https://youtube.com/shorts/vETuGu5Kbfg?feature=share
Hello,We are currently working with the NUCLEO-WL55JC1 board for LoRa communication and have a few technical queries. 1. STM32WL as Gateway / P2P ReceiverWe are planning to use two NUCLEO-WL55JC1 boards, where: One board will act as a LoRa end node The other board will act as a gateway or P2P receiver Is there any gateway or P2P receiver firmware example available in the STM32WL SDK for the NUCLEO-WL55JC1 board? 2. LoRaWAN Gateway Capacity We would also like to understand the theoretical number of end nodes that can be supported by a single LoRaWAN gateway under the following conditions: Payload size: 16 bytes Spreading Factor: SF10 Uplink transmission interval: 1 hour per nodeAny calculation method, reference document, or guideline from your side would be very helpful.
Hi,This might be a bit of a noobish question but despite my best efforts at searching I could not find a suitable answer. This forum may also be the wrong place for this question but since it is related to the new "cube" Swiss knife tool I thought this might be the right place to start. Feel free to move this question elsewhere if appropriate.I have a VS Code project that uses STM's extensions and bundles, and thus I can use "cube programmer" to invoke the STM32CubeProgrammer binary. In VS Code side I have a launch.json which allows me to build, flash and start debugging the application I've built on an STM32F0 series microcontroller. It works completely fine. Device appears in Windows, enumerates as a USB device, and everything just works as expected.What I want to do now is execute the build and flash steps, and then instruct the MCU to begin executing the program. I tried to do this by invoking the "cube programmer" with the following litany: cube programmer -c port=SWD mode=UR
HelloIm developing a CAN Bus node and with space constrains, so i ve looked in stm32 products and a qnf32 packages looked perfect for example stm32G0B1 has FDCAN. The problem...These QFN32 dont expose HSE pins. I just can use HSI with 16 MHz +- 1% wich is not reliable for FDCAN, especially for industrial applications with many nodes. I dont understand why the mcu hás 2 FDCAN peripherals if theres no reliable clock to Run them.Im i missing some thing here? At are my alternatives? I now that QFN48 hás HSE, but i dont need só much io and the packages is bigger.Help here
I normally use the CMake Tools extension (by Microsoft) for compiling cmake projects in visual studio code. After installing the STM32CubeIDE extension, the CMake Tools extension stopped working. Presumably to do with the stm extension changing to using cube-cmake. After uninstalling all STM32CubeIDE extensions, reinstalling CMake Tools, restaring VS code, the CMake Tools extension is still still broken. Trying to configure a project through the IDE gives the following output:[cmakeExecutable] CMake executable not found in cache. Checking again.[proc] Executing command: cube-cmake --version[proc] The command: cube-cmake --version failed with error: Error: spawn cube-cmake ENOENT[proc] Executing command: cube-cmake -E capabilities[proc] The command: cube-cmake -E capabilities failed with error: Error: spawn cube-cmake ENOENT[main] Building folder: core2-firmware [cmakeExecutable] CMake executable not found in cache. Checking again.[proc] Executing command: cube-c
Hello, I am getting really frustrated with this issue for almost a week.I am trying to read PA1 and PA4 in DMA but I get only the reading of one channel and not the other one! I tried everything and I also looked at all the example online. Please help.
Hi, In the datasheet of the gyroscope I3G4250D, page 21:CS: 0: SPI communication mode / I2C disabledMy question is: I have to configure the CS pin PE3 as Low at the beginning to make the gyroscope understands that I wants to use SPI? (PE3 is CS in the KIT STM32F411 Discovery) Wating for your response,Thank you very much.
Greetings,Being rather new to designing/connecting electronics components, I got some questions regarding battery monitoring.Setup:NUCLEO-L432KC, driven by regular AA NiMH batteries in 3S configuration. Voltage is regulated by a small board based on a TI TPS63802 buck-boost-converter, which ensures a stable 3.3V output for the Nucleo board. The MCU is running stable with this power supply, everythings works out so far.Task:Now there's monitoring of the individual battery cells on the table. With three cells, three ADC inputs are required (if you don't do some switching outside of the MCU). The NiMH cells in question are rated at 1.2V nominal, with close to 1.4V when at full charge. Thus, if you measure the voltage after each cell, it would result to 1.2V, 2.4V and 3.6V nominal (or 1.4V, 2.8V and 4.2V max).Gathered intel:I understand that the ADC can only measure voltages between 0 and VREF, which equals to the 3.3V input voltage.Regarding the measurement of <3.3V battery pack nodes,
Hi, I found a small bug in STM32CubeMX for STM32WL55:Enabling the option "MSI Auto Calibration" for section "RCC" does nothing, i.e. generated code doesn't change.I think it should add a call to HAL_RCCEx_EnableMSIPLLMode() or LL_RCC_MSI_EnablePLLMode () in SystemClock_Config() - same as it does for STM32U0. This enables RCC_CR_MSIPLLEN.
Hi,I wonder how the motor control unit should behave if a speed ramp is programmed right after a torque ramp?Following code snippet shows this setup:// Set Torque/Iq limit MC_ProgramTorqueRampMotor1(iqLimit, 0); // Programm speed ramp MC_ProgramSpeedRampMotor1(speed, 500); // Start motor MC_StartMotor1();Do I understand correctly that this code should lead to the following behavior?the motor starts in speed modeif the load driven by the motor increases the speed will decreaseif the load increases further the motor will run with decreasing speed until it reaches the torque/iq limit set by the MC_ProgramTorqueRampMotor1() functionthe motor will stop and deliver a constant torque - the torque programmed with MC_ProgramTorqueRampMotor1() Best regardsB0bbyR4y
Hi there!i start one of my new project with STM32cubeide 2.0. First i start with configure mu MCU in STM32CUBEMX in this casa STM32G031K8T6 afther i configurate all pin i create a poject . So afther i import my project in STM32CubeIde 2.0 and i build gave me this error:Core\inc\main.h: fatal error: stm32g0xx_hal.h: No such file or directory #include "stm32g0xx_hal.h" but i check with F3 and this file exist , so please someone can help me ? Thank youSergio
Summary:HDMI output on STM32MP257F-DK board does not function with 800x480 HDMI display. The ADV7535 DSI-to-HDMI bridge driver loads and binds successfully, but the probe() function never executes, leaving the bridge in powered-down state. Display shows only backlight, no image.Hardware Configuration:Board: STM32MP257F-DK Discovery BoardFirmware: OpenSTLinux v25.06.11 (latest as of Jan 2026)Display: 800x480 HDMI display (Raspberry Pi compatible)EDID: Acer G50 (110x60mm)Native resolution: 800x480 @ 60HzHDMI cable: Standard HDMI-to-HDMConnection: HDMI port (CN14) → Display via HDMI cableSoftware Configuration:Images tested:FlashLayout_emmc_stm32mp257f-dk-fastboot.tsv (eMMC)FlashLayout_sdcard_stm32mp257f-dk-optee.tsv (microSD)DTB variants tested:stm32mp257f-dk-ca35tdcid-ostl-m33-examples.dtb (default)stm32mp257f-dk.dtb (standard)Result: Same behavior with all combinationsKernel: 6.6.78OS: ST OpenSTLinux - Weston - v5.0.8-openstlinux-6.6-yocto-scarthgap-mpu-v25.06.11Problem Description:Obs
I'm developing a power bus manager where I monitor current and voltage drop across a shunt resistor. I chose the STM32G484 as the MCU because it has enough OpAmps and ADCs for my project.However, I have a question that might only be related to electronics, but I'd like to be sure it won't affect the MCU.The bus is supplied by a DC-DC switched-mode power supply where the highest voltage is 12V. We know the voltage drop across the shunt resistor is minimal. So, could I connect the "plus" and "minus" inputs directly to the shunt resistor? Is it necessary to define the gain loop? Or can I work without it? In this case, the question is whether the MCU allows parameterizing the input where "plus" and "minus" are connected directly to the GPIO without any internal interference.Thank you for your support.ps: The project is being developed under CC-By 4.0 license and is available at https://kepr.rapport.tec.br
Hi!Was hit by a non-obvious difference between the ARM and ST GCC toolchains.I installed the following toolchains (from the official ARM and ST websites) in two separate Docker containers.Their --version outputs are:ST toolchainarm-none-eabi-gcc (GNU Tools for STM32 13.3.rel1.20240926-1715) 13.3.1 20240614 ARM toolchainarm-none-eabi-gcc (Arm GNU Toolchain 13.3.Rel1 (Build arm-13.24)) 13.3.1 20240614 Then I compiled a simple main.c using the cyclomatic complexity option:arm-none-eabi-gcc -c main.c -fcyclomatic-complexity -o build/main.o Results:ARM GCC 13 reports:arm-none-eabi-gcc: error: unrecognized command-line option '-fcyclomatic-complexity' ST GCC 13 accepts the option without any error.So even though both toolchains report the same GCC version, the ST build includes this option while the ARM reference toolchain does not.This suggests that there may be additional differences between the two toolchains.When using both toolchains - or migrating from one to the other - be careful.Jus
Hello,I would like to get information about the availability of the following devices:STM32H562IGK6 UFBGA 144 package (10 × 10 mm, 0.8 mm pitch)STM32H562IGT6Could you please clarify:Are these devices currently available in stock for production volumes (~1,000 pieces)?If they are out of stock, what is the reason and what is the expected availability / product longevity?Are there any devices available now for prototyping, in quantities of about 50 pieces?Thank you for your support.Best regards,Aymen
I am working bare-metal on an STM32L433RCT6 (no HAL). I am seeing a precise data bus fault whenever I access a GPIO register.Fault details from the debugger:Fault type: Precise data bus faultBFAR: 0x48000000From RM0394, 0x48000000 is the GPIOA base address, so the fault occurs exactly on GPIO access.The faulting instruction is a normal GPIO register read/write (e.g. ODR access). The GPIO struct layout and offsets are correct, and the compiler generates correct code.I understand that on STM32, a precise bus fault on a valid peripheral address usually means the peripheral clock is disabled.However, I explicitly enable the GPIO clock before accessing it:*(volatile uint32_t*)0x4002104C |= (1 << 0); // RCC_AHB2ENR, GPIOAENAdditional context:Custom register definitions for GPIO/RCC (not HAL)Fault occurs before/at first GPIO accessProgram resets and lands back in Reset_HandlerBFAR(via Fault Analyzer) consistently reports 0x48000000I will also attach the stm32l433xx.h, stm32l433xx_gpio_d
Hi,i'm playing around with the VL53L4CX after putting it on my own pcb (yay).The user guide states that for the SPAD caliberation, NO target should be placed. The crosstalk requires a 600mm target.Do i understand correctly that the SPAD caliberation therefor is best performed outside and upwards to the sky? Or maybe in a room that is at least 6 meter long?It confuses me because i wonder how this is done in a factory where space is a premium :) Kind regards, Ruben
Posted on July 25, 2013 at 11:26 Hi ! When running the VCP USB Stack (STM32_USB-Host-Device_Lib_V2.1.0) on my STM32F4 i got an error code on my Win7 x64 sytem. ''This device cannot start(code 10)'' I'm using the USB HS Port on PORTB in FS mode. Finally i found a solution for it. The source code of the file usbd_conf.h must be changed in the following way: Old: /* CDC Endpoints parameters: you can fine tune these values depending on the needed baudrates and performance. */ #ifdef USE_USB_OTG_HS #define CDC_DATA_MAX_PACKET_SIZE 512 /* Endpoint IN & OUT Packet size */ #define CDC_CMD_PACKET_SZE 8 /* Control Endpoint Packet size */ New /* CDC Endpoints parameters: you can fine tune these values depending on the needed baudrates and performance. */ #ifdef USE_USB_OTG_HS #define CDC_DATA_MAX_PACKET_SIZE 64 /* Endpoint IN & OUT Packet size */ #define CDC_CMD_PACKET_SZE 8 /* Control Endpoint Packet size */ This change is only necessary when using t
I have a PCBA design that uses a Molex Picoblade connector instead of RJ45 due to enclosure height restrictions. The PHY IC is a LAN8742A and the MCU is STM32H743VIT6, the ethernet is also POE.I have spliced, a ethernet and 8pin Picoblade connector together to make a 6in cable that plugs into a router. I figured with such a short distance and being 10/100 that while not ideal should still work. I maintained the RJ45 pinout. There is also a POE circuit using a small Silvertel AG9905 module, that is working as expected.Of the 10 boards 3 seem to work but not without some issues. They refuse to work off cold boots (from off to powered) they only seem to work after a warm boot. Also they arent fully stable, sometimes connecting or disconnecting the cable can crash the system or pinging the system can also crash the working boards.For the remaining 7 I am able to assign them a static IP and random MAC, and I can confirm this by seeing the device connected on the router UI, but when I ping
Hello. I am experimenting with securing a STM32H503 using password authentication, which will ultimately be an automated process.I created a simple password for testing and created the password hash in board_password.bin and da_password.bin(just for comparison, I also used Segger's advice and tried certutil and the resulting board_password.bin file is identical, so I'm pretty sure the password hash worked).I set the chip to PRODUCT_STATE provisioning and programmed the chip with the password using the following:STM32_Programmer_CLI.exe -c port=SWD speed=fast ap=1 mode=Hotplug -ob PRODUCT_STATE=0x17STM32_Programmer_CLI.exe -c port=SWD speed=fast ap=1 mode=Hotplug -w board_password.bin 0x8FFF000Both of these commands succeeded with no errorsAs recommended, I locked the OTP so I wouldn't accidentally damage it by overwriting by:STM32_Programmer_CLI.exe -c port=SWD speed=fast ap=1 mode=Hotplug -ob LOCKBL=0x1Again, no errorsFinally I set PRODUCT_STATE to PROVISIONED and aga
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.