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
Missing Makefile export capability. Missing option to export only minimum necessary files. Unfortunately this leads to bloated projects. The previous version of STM32CubeMX have these features. Clean and self-contain and not bloated project was the main reason to use STM32 in our company.
Hi,I have a bootloader (0x08000000) jumping to an application (0x0800C000) on an STM32H503CB, everything at 32 MHz HSI, VOS3. The bootloader runs at 1WS flash latency, disables the ICACHE and jumps. About 1 boot in 5, the app dies in the NMI handler right after the jump: FLASH_ECCDETR shows a double ECC error on the very flash line being fetched, at a different address every time. The flash content is intact when read back over SWD - the read just fails transiently. It also depends on the chip: 2 of my 3 boards reproduce it, one never does.If I restore the latency to 3WS (the reset value) in the bootloader just before jumping, the problem disappears completely (200+ reset campaigns, zero failure). My question: why is the H5 sensitive to flash wait states in this situation? 1WS at 32 MHz / VOS3 should be enough on paper, and the bootloader itself runs fine with it. Is there something specific about executing uncached from flash right after a bootloader handover that requires more margin
Hi.I'm trying a simple ping application with my board that contains the H743 microcontroller. I am following the instructions in Adam Berlinger's example. But I can't get ping. I connect my computer to my board via ethernet switch. My computer's IP is 192.168.2.5. But it can't reach to my board. When I try to send UDP packet, I can see the Ip adresses of target and destination(via WireShark software). But I can't see the "Hello UDP message!\n\r". IPs are manually setted. H7 board and computer connected via ethernet switch hub. I added a breakpoint to "void ETH_IRQHandler(void)". After the initial power-on, the system reaches the breakpoint twice even when there is no ping command on the Ethernet port. But when i send ping commands, nothing happens. I can reset LAN8742A PHY via GPIO. /* Initialize all configured peripherals */ MX_GPIO_Init(); /* USER CODE BEGIN 2 */ HAL_GPIO_WritePin(ETH_RESET_GPIO_Port, ETH_RESET_Pin, GPIO_PIN_RESET); HAL_Delay(50); HAL_GPIO_WriteP
Hello ST Community,We are currently developing a custom board using the STM32N657X0H3Q MCU with the internal SMPS configuration.We have assembled 5 prototype boards, and before applying power to any of the boards, we measured the resistance between the VDDCORE_0V8 rail and GND.We observed a relatively low resistance on all 5 boards, with different measured values:Board Measurement Point VDDCORE_0V8 to GNDBoard 1 TP16 / TP24 22.32 ΩBoard 2 TP16 / TP24 25.9 ΩBoard 3 TP16 / TP24 20.9 ΩBoard 4 TP16 / TP24 12.8 ΩBoard 5 TP16 / TP24 16.2 ΩImportant: None of the boards have been powered up yet.The VDDCORE rail is generated using the STM32N657X0H3Q internal SMPS, with an expected VDDCORE voltage of approximately 0.8 V. The VDDCORE pins are connected according to our schematic, and the internal SMPS pins (VDDSMPS, VLXSMPS, VFBSMPS and VSSSMPS) are also connected as shown in the attached schematic.We are concerned about the low resistance readings, particularl
I have some custom STM32G43KB boards that don’t always behave. The firmware starts with the UART in receive mode, 9600 baud, 9B (8 + parity) 2 stop bits, TX and RX inverted to interface with the host device. The device UART line idles low (ground) as expected for inverted logic, and sends a 17-byte poll message that my board will reply to. Out of 25 boards that have been programmed with the same firmware, about 60 percent of them work, the other 40% show a frame error and do not decode the first byte of the message properly. I have been using alternate function push pull for PA9 configuration, with a 10K pull down resistor to create the idle low condition when in receive mode. Some boards work, some don’t. The same boards, when programmed with other versions of the firmware for interface to different external systems are working fine with AF Push/Pull, 8N1, not inverted, baud rates of 100K, 115.2K and 250K with no issues. When configured for 9600 baud 8E2 inverted, some of the b
I have an STM32L4R on a custom PCB. I am able to flash firmware using CubeProgrammer/CubeIDE to it via an ST-LINK SWD connection as well as a DFU Bootloader via a USB D connector. I have a makeshift connection between the USB D connector to a USB C cable to my laptop in order to flash it using USB_DM, USB_DP, and VBUS wires between the D and C connectors. When the PCB is powered, the ST-LINK is connected to my target MCU and my laptop, and my PCB is connected to my device, my laptop is able to recognize the ST-LINK as a VCP and my target MCU as an "STM32 BOOTLOADER", which allows it to be flashed. The ST-LINK connection is critical in the target MCU being recognized by my laptop. I have written CDC initialization code in order to enumerate my target MCU as a VCP and transmit data to my laptop, however, I am having trouble with that...My code works on the NUCLEO that I have for the STM32L4R. I am also able to step through initialization all the way to the CDC_Transmit() function inside
So I left my program running overnight, and when I check it this morning, the debug output had stopped. Thankfully, the IDE was still running, and it actually caught the hard fault, and even better, the call stack was intact. Here’s what I saw:Call stack showing nested interrupts while running ThreadXSo the IP thread was running, it was waiting on an event flag, another small handler popped, then the Ethernet IRQ popped, and before it could finish execution, the CAN handler popped. The CAN handler checks a queue (with TX_NO_WAIT) for items to transmit, but just before it started executing _tx_queue_receive(), a HardFault occurred.This is the view from inside _txe_queue_receive():_txe_queue_receive() contextAnd this is the view from inside _tx_queue_receive():_tx_queue_receive() contextNow, I’m not sure if perhaps the program counter hadn’t gotten far enough to populate/adjust the stack so that the local variables look correct, but I can see that _txe_queue_receive() definitely had v
Hi, I am using the STM32 NUCLEO-H563ZI board and testing the NetX Duo UDP Echo Server example provided by STM32. Setup: - STM32 NUCLEO-H563ZI- NetX Duo UDP Echo Server example- Direct Ethernet LAN cable connection between PC and board- Static IP configured on both PC and STM32 Issue:UDP communication is not working. When I try to ping the STM32 IP address from the PC, I get "Destination Host Unreachable".Since I am using the official UDP Echo Server example, I expected the board to be reachable and respond to UDP packets.Has anyone successfully tested this example on the NUCLEO-H563ZI? Are there any additional Ethernet, PHY, or NetX Duo configurations that need to be checked? Any suggestions would be appreciated.
I have setup STM32 VSCode extension on my PC and it is amazing. The only problem that I have encountered is that it is not possible to run the code without debugging. I removed the "runToEntryPoint": "main" line in launch.json. But every time I launch the code it attaches a debugger. How can I simply run the code without debugging? Thank you,Damiano
I am using STM32CubeIDE for Visual Studio CodeIf I create an empty project in a folder with spaces the build will fail. I suspect the spaces create a double quote somehow.In the command below, main.c is wrapped in two quotes, -c ""C:\Users\me\VSC_projects\STM first try\asdf\Src\main.c""I suspect this makes gcc look for a file named main.c” instead of main.c. Plus “C:\ instead of C:\Failing build due to spaces:C:\Users\me\AppData\Local\stm32cube\bundles\gnu-tools-for-stm32\14.3.1+st.2\bin\arm-none-eabi-gcc.exe -DDEBUG -DRTE_DEVICE_STARTUP_STM32H5XX "-I"C:/Users/me/VSC_projects/STM first try/asdf/Inc"" "-I"C:/Users/me/VSC_projects/STM first try/asdf"" -fdata-sections -ffunction-sections -Wl,--gc-sections -Wno-comment -g -std=gnu11 -mcpu=cortex-m33 -mfpu=fpv5-sp-d16 -mfloat-abi=hard -mlittle-endian -mthumb -fstack-usage -Wall -Wextra -Wpedantic -Wno-unused-parameter -O0 -g3 -ggdb -o CMakeFiles\asdf.dir\Src\main.c.obj -c ""C:\Users\me\VSC_projects\STM first try\asdf\Src\main.c""arm-none-ea
Hello,When trying to sample internal channels on STM32U535, it appears that calibration values (stored at 0x0BFA0705-6 for VREFINT and 0710-0742 for TS) give incorrect result.I have tried to sample the value with ADC1 (14bits) and ADC4 (12 bits, x4 on the value), but the rsult is the same.I found 1427 when sampling VREFINT with ADC4 (12 bits). The value stored for VREFINT is 0x3150. = 3156 * 4When applying the formula, that gives 3000 * 3156 / 1427 = 6634mV. Kind of the double of what I actually have.Similarly, values from temperature sensor are wrong. All other channels (that are not linked to any factory calibrated value) are working fine. So I suppose there might be something wrong with the calibration…Could someone confirm or find what is wrong? Here is the relevant code.EDIT: Also, I would like to point out that the value I sample actually makes sense:Considering Vrefint is ~1.2V, from the datasheet, Embedded voltage reference.3.3 * 1427 / 4095 = 1.15V. Pretty close to Vrefint.So,
I would like to gather information on the following points. Kindly guide me on these aspects:Identify the CMOS image sensors supported by the STM32MP255F and STM32MP257F. Determine whether the VB66GY and VB16GZ sensors are compatible with the STM32MP255F and STM32MP257F, including the required driver-level integration and software support.
The STM32H562RET6 microcontroller enters a short circuit between VCC and GND after a few minutes of operation.I programmed a simple LED blinking application on GPIOB pin 2 (PB2). This issue has occurred with several STM32H562RET6 microcontrollers on different boards. I have worked with this microcontroller before, and I had never encountered this problem.
i am trying to do HID with costom pcb but i didint find any solution yet
Hello ST Team,I am working on an AI-based Driver Monitoring System on an STM32MP257F board using an IMX335 MIPI CSI camera, libcamera,GStreamer and STAI-MPU.I am facing a memory allocation / segmentation fault issue when using a custom STAI-MPU application.------------------------------------------------------------HARDWARE------------------------------------------------------------Board:STM32MP257FCamera:Sony IMX335 MIPI CSICamera interface:CSI / DCMIPPDisplay:Weston / WaylandCamera source:LIBCAMERA------------------------------------------------------------SOFTWARE------------------------------------------------------------libcamera:0.3.0+dirtyPython:3.12The exact OpenSTLinux/X-LINUX-AI version and other system information can be provided if required.------------------------------------------------------------KNOWN-GOOD ST APPLICATION------------------------------------------------------------I tested the official ST face-recognition example:https://github.com/STMicroelectronics/meta
Hi,We are working with the STM32H7S7 MCU for our project and are planning to use both XSPI interfaces for external memories.Our current plan is: XSPI1: PSRAM XSPI2: External Flash (128MB) We would like to use 128MB of PSRAM, but currently, only 64MB PSRAM devices are available to us. Therefore, we would like to know whether it is possible to integrate two 64MB PSRAM devices with XSPI1 to achieve a total PSRAM capacity of 128MB.I have gone through the AN5050 – Octo-SPI Interface on STM32 MCUs document and understand that the multiplexed mode can be used to connect two external memory devices using separate NCS pins.In this case, if we configure XSPI1 in multiplexed mode and connect two PSRAM devices using the available NCS pins: Can two 64MB PSRAM devices be connected to XSPI1 in this configuration and used as a combined 128MB memory space? If XSPI1 is configured in multiplexed mode for the two PSRAM devices, can XSPI2 still be used independently for the external 128MB Flash? If t
Hello,Im using the RHFLVDS31A and I have some unused I/O pins. Should I terminate them or should I leave them floating? I saw that there is an internal pull up for Cold Sparing so I didn’t want to impact that.
I’m currently trying to design a STM32N645I0H based board with LAN8742A Ethernet. Right as for the STM32H723 I would prefer to have one NZ2520SH-25MHZ-END4869C 25 MHz crystal for both, the MCU (fed into OSC_IN) and the PHY. The application note says, this is possible and for such kind of analogue clock input OSC_OUT has to be tied to VDD via a 1K resistor. What the AN does NOT say: which VDD is meant? The 3.3V rail or the 1.8V rail?
Hello,I am trying to intentionally force a blocking failure on the STM32N6570-DK to observe how the system handles the error and to test the PG10 BootFailed UART output.To do this, I have tried tampering with the FSBL header in various ways to force a failure, as well as simply erasing the OctaFlash.However, despite my attempts, no ID code or valid UART output ever arrives on PG10.While the Boot ROM manual (UM3234) describes what happens during a blocking failure, there are no clear notes or official procedures explaining how a blocking failure can be intentionally generated for testing purposes.Could someone from ST or the community clarify:How can we intentionally and reliably trigger a blocking failure on the STM32N6570-DK to test the PG10 BootFailed UART output?Any guidance or suggestions would be greatly appreciated.Best regards
Hi:Does I have STM32MP257F-EV1 board and another board can generate BT.656 video source without I2c setting.I want to use DCMIPP parallel interface to get the image. I modify the device tree in stm32mp257f-ev1.dts/ {... clocks { cec_clock: cec-clock { compatible = "fixed-clock"; #clock-cells = <0>; clock-frequency = <12000000>; }; dummy_cam_clk: dummy-cam-clk { compatible = "fixed-clock"; #clock-cells = <0>; clock-frequency = <54000000>; }; pad_clk: pad-clk { #clock-cells = <0>; compatible = "fixed-clock"; clock-frequency = <100000000>; }; };...};&dcmipp { status = "okay"; pinctrl-names = "default"; pinctrl-0 = <&dcmipp_parallel_pins_a>; ports { #address-cells = <1>; #size-cells = <0>; port@0 { reg = <0>; dcmipp_parallel_in: endpoint { remote-endpoint = <&dummy_camera_out>; bus-type = <6>; bus-width = <8>; pclk-sample = <0>; }; }; };};&
When using a vl53l8cx configured for motion detection, which of the fields in the motion_indicator struct can I check to see if there was motion?I understand that the motion[32] array has measurements but I'd like to be able to poll this infrequently and check if there was an event between these polls. Something like a motion_detected flag that latches? Thanks!
Dear All,I have a query regarding VL53L4CX voltage requirements. The data sheet mentions the typical voltage for AVDD is 2.8 and for IOVDD is 1.8V/2.8VThere is no separate IOVDD pin for VL53L4CX isn't it. So the I2C lines work with 1.8V MCU voltage also with AVDD and AVDDVCSEL at 3.3V? Thank you,Ravi
HiI am trying to make simple setup for H755ZI-Q nucleo-board with ETH + LWIP + RTOS. I was using this Forum Section as the source of example that i used (H745ZI-Q) that is by all documents have same characteristics as my board and compatible with it . So back to the Problem, my board doesn^t respond to ping that i send even when the dhcp server that i started on my PC gives me that the board on this “IP-address” . After what the ping don^t go through. I added a breakpoint to "void ETH_IRQHandler(void)". After the initial power-on, the system reaches the breakpoint three times even when there is no ping command on the Ethernet port. Can u please help me with that?I tried to reconfigure everything from flash memory , turn off the Cache to check if that change anything , I have even Hybrid of RTOS + Raw Api ETH + LWIP that works. I could not understand is smth wrong with my board or with code that generates cause in Documents everything sounded simplier. My Project (Main Files)Example
Hello Team,I am working with the SPC560P50L3 and using the existing SPC5Studio example application:SPC560Pxx_RLA FlexPWM Test Application for STEVAL-TTM002V1In my project, I am using the following FlexPWM outputs:FlexPWM_0/FlexPWM_A3 (Pulse width modulator A3)FlexPWM_0/FlexPWM_B3 (Pulse width modulator B3)These outputs are configured as:PWM4 Channel 0 -> PWMA3PWM4 Channel 1 -> PWMB3From my understanding of the FlexPWM documentation, PWMA3 and PWMB3 belong to the same submodule (Submodule 3) and appear to share a common counter/time base.I would like confirmation on the following:Is it possible to configure different PWM frequencies on PWM4 Channel 0 (PWMA3) and PWM4 Channel 1 (PWMB3) while using the same FlexPWM Submodule 3?If not, which registers or architectural limitation enforce a common frequency for both outputs? Also if we want to use the different PWM frequencies on PWM4 Channel 0 (PWMA3) and PWM4 Channel 1 (PWMB3) what changes required?Can PWMA3 and PWMB3 have:Independen
Hello, I want to measure the power consumption of the rest of my circuit. For that, I’m putting the STM32H562 immediately to sleep. I generate a cube project and put the following in main():int main(void){ HAL_PWR_EnterSTANDBYMode();} After flashing, the current consumption suggests that it is not running, but I’m not sure. I switch the power off and on again, the current drops by 2.2mA down to 0.5mA (including the rest of the circuit).But now, it is not possible to connect to the processor with the cube programmer. I have to do a discover first, before being able to connect to it again. MY expectation would have been that I’m directly able to flash again.My questions are now: Why does entering the standby (or stop) mode locks the access to the device. Is this a bug or a feature? Is is documented somewhere? Best regards,Peter
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.