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
DescriptionHello, I am using STM32F411RET and STM32F407ZGT microcontrollers.Using STM32CubeMX, I configure a PWM output on GPIOB Pin 8 using TIM10 Channel 1.After code generation, the following GPIO initialization code is produced: GPIO_InitStruct.Pin = GPIO_PIN_8; GPIO_InitStruct.Mode = GPIO_MODE_AF_PP; GPIO_InitStruct.Pull = GPIO_NOPULL; GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW; GPIO_InitStruct.Alternate = GPIO_AF3_TIM10; HAL_GPIO_Init(GPIOB, &GPIO_InitStruct); The PWM output works correctly on hardware.However, when full assertions are enabled by defining USE_FULL_ASSERT, an assertion failure occurs inside HAL_GPIO_Init() at the following check: assert_param(IS_GPIO_AF(GPIO_Init->Alternate)); After inspecting the IS_GPIO_AF() macro for STM32F4 devices, I noticed that GPIO_AF3_TIM10 is not included in the list of valid alternate functions, even though TIM10 uses AF3 on STM32F4 devices and is correctly generated by STM32CubeMX.This causes a false assertion failure when using
I'm connecting a 12-Way rotary switch to an STM32G071 as shown:Board room is extremely limited, so I'm using the MCUs built in Pull Ups. However when I read the lowest four bits of PORTD->IDR (for switch positions 7,8,9 and 10) it reads 0xA when it should read 0xF (The rotary is at position 1, so PORTD0:3 should all be pulled up).Cube MX confirms PULL UP is enabled for all switch inputs:The only other peripherals enabled on the chip are DAC output on PA4 and GPIO Output on PA15I have carefully examined the board, and there are definitely no shorts to ground, and the switch it operating perfectly.If I measure the voltage on all the PORTD0:3 pins, all are pulled up to 3.3v except PD0 and PD2, when they should be.Any suggestions?
we are facing after migrating our design from STM32F405ZGT7 to STM32H743ZI.We have an automotive application where a horn load creates significant EMI transients. With our previous design using STM32F405ZGT7, the system was stable and did not experience any MCU freezing or malfunction during horn activation.However, after migrating to STM32H743ZI — while keeping the PCB layout, grounding strategy, power architecture, filtering components, and external circuitry identical — we began experiencing intermittent MCU freezing during horn actuation.After extensive debugging and hardware validation, we observed the following:The issue only occurs when ST-Link is connected.When ST-Link is disconnected, the system behaves significantly more reliably.The noise appears to be injected through the ST-Link interface path.The horn generates high transient noise despite having local snubbers and filtering.We have already implemented:RC snubber across the horn loadEMI input filtering near MCU supplyProp
I have created my secure boot demo project on STM32H563ZI using the link below.https://wiki.st.com/stm32mcu/wiki/Security:How_to_start_with_STM32CubeMX_OEMiRoT_Boot_path_on_STM32H563During provisioning, the secure image is signed by the TPC (STM32TrustedPackageCreator) tool. TPC supports the standard MCUboot signing process: calculating SHA256, generating the firmare image signature TLV (e.g., ECDSA256 0x22) using the specified private key, and adding standard TLVs. All these work just fine with the TPC tool.Now, I need to append a full public key (IMAGE_TLV_PUBKEY 0x02) as an additional TLV into the image. And one more layer of TLV (IMAGE_TLV_ECDSA256 0x22) for the signature of this pub key. Does TPC support custom TLVs by changing its config file (e.g., OEMiROT_S_Code_Image.xml)?I acually couldn't find ways to do that via TPC, so I switched to use imgtool. imgtool sign --key "C:/Work/nucleo_h563zi/Secure/ROT_Provisioning/OEMiROT/Keys/OEMiROT_Authentication_S.pem" --header-s
I have a NUCLEO-F030R8 development kit and an X-NUCLEO-WB05N-B01 (STM32WB05N) expansion board.I am using an ST-Link V3 for programming and debugging.I believe that I have connected the boards according to the official X-CUBE-WB05N Getting Started documentation (v1.1.0). The wiring, pin mappings, and configuration settings have been done based on the document.I am trying to communicate between the NUCLEO-F030R8 (host MCU) and the STM32WB05N over SPI.The SPI pins, IRQ, and reset connections are configured according to the documentation. However, in this setup, the STM32WB05N does not appear to reset properly, and SPI communication cannot be started.On the STM32CubeMX side:The X-CUBE-WB05N v1.1.0 expansion package is selectedSPI configuration and pin assignments are set as described in the documentationI understand that, as a first step, the correct DTM / firmware binary (.hex or .bin) located in the Utilities folder must be programmed into the STM32WB05N using STM32CubeProgrammer. Howeve
We are pleased to announce that STM32CubeIDE 2.1.0 release is available. What is new in 2.1.0: Added support of STM32C5 series Added support of new microcontrollers across the STM32WBA, STM32WL, STM32H5, STM32U3 and STM32F7 series Added support of new boards: NUCLEO-C542RC, NUCLEO-C562RE, NUCLEO-C5A3ZG, NUCLEO-WBA25CE1, NUCLEO-H5E5ZJ, STM32H5F5J-DK, and NUCLEO-U3C5ZI-Q Support of auto-refresh on imported projects (created initially outside CubeIDE): The updated project source code is auto refreshed at STM32CubeIDE side Support of CMake presets: Providing an easy way to configure the CMake-based project using a JSON file Support of GCC 14 toolchain as default toolchain: Libncurses5 is no longer needed for GDB on Linux Support of Apple® Silicon with ARM64 architecture: Performance enhancement Update to STARM-Clang 21.1.1: Improving code quality, diagnostics and standards conformance Main fixed issues in 2.1.0: Refer to the STM32 microcontroller wiki at: https://wiki.st
I noticed two holes at Bottom of the MCU area on the STM32G4 Nucleo board. What is their purpose?
We are pleased to announce that version 6.17.0 of STM32CubeMX is available. What is new in 6.17.0: Added support for new microcontrollers across the STM32WBA, STM32H5, and STM32U3 series Added support for new boards: NUCLEO-WBA25CE1, NUCLEO-H5E5ZJ, STM32H5F5J-DK, and NUCLEO-U3C5ZI-Q Added the Start From Board feature for NUCLEO-U3C5ZI-Q, NUCLEO-H5E5ZJ, and NUCLEO-WBA25CE1 Added support for new features: PLAY on STM32H5 devices with 4 Megabytes of flash memory HSP on STM32U3 devices with 2 Megabytes of flash memory STM32CubeMX Notification Service: allows users to subscribe to notifications, updates, or premium content when downloading or installing STM32 software. The subscription to this service is entirely optional and is not mandatory for downloading or installing the software. Enhanced the memory management tool for the STM32N6 series Implemented the use of the CMake build generator with STM32MP2 projects Enhanced the build process using CMake
Our current product uses the STM32H533 microcontroller and password based Debug Authentication. We have a need to generate a large number of different DA passwords and corresponding OB Keys provisioning data. This is possible by creating our own tool to generate OB Keys .xml files and passing those into the STM32TrustedPackageCreator_CLI.exe tool, but it would be nice to cut out the .xml files and need to use the Trusted Package Creator tool. Given that the input .xml file contains a 'hash' tag and that output .obk file contains 512 bits of seemingly random data, I suspect this is a SHA-512 of the password, however I cannot manually re-create the same hash. I've attempted padding the password to various different lengths, with various different values, additionally including the additional bytes that are included in the created 'password.bin' file that accompanies the .obk file. What process/data goes into creating the contents of the .obk file? Is
stm32cube-ide-clangd.arguments are written to settings.json on every startup/setup with .exe or no extension depending on platform. settings.json contains important settings we want to share across collaborators but now it's getting constantly modified between platforms.
I would like to ask how NanoEdge AI embeds multiple library models in one code, for example: I compiled a project called "test" in the Keil compiler and I want to create a project similar to an official demo video. Under the same project, there is both an anomaly detection (AD) library for learning and a multi classification (N-Classfial) library for classifying abnormal situations. Now, I have trained two models for these two libraries, but the problem is that I don't know how to embed these two models into the same project for use. I am using the v5.0.2 version of NanoEdge AI STUDIO. Can you help me solve this problem? Thank you.
Folks,I have FreeRTOS running on an H563, trust zone not used. Created the basic setup from an ioc. I have an ocassional task starvation issue and want to double check there's no stack overflow (unlikely but must check).If I set configCHECK_FOR_STACK_OVERFLOW to 1 in FreeRTOS.hIn cmsis_os2.c, vApplicationStackOverflowHook is still greyed out and hovering over configCHECK_FOR_STACK_OVERFLOW claims it's set to 0. control clicking on it takes me to the defintion where it is set to 1. Anyone know what is going on here please? And why is it set in FreeRTOS.h, not FreeRTOSConfig.h? Thanks
Dear all, With the new STM32Cube AI Studio tool, I am getting the following errors (see attached log file). I am using it with the kit STM32N6570-DK. I tried the same model as in the tutorial (https://www.youtube.com/watch?v=3zyIpB5o9zQ). I am getting the same type of error with other models as well. Thank you for your help. I am looking forward to being able to use this new tool. ------------------------------------------------------------------------------------------------------------------------------------------------- C:/Users/papam/.stm32cubeaistudio/workspace/demo_face_detection/.ai/run/run-1/Middlewares/ST/AI/Validation/Src/ai_wrapper_ATON.c:386:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 386 | while (aton_buf = npu_get_input_buffers_info(instance, nn_info->n_inputs))| ^~~~~~~~ C:/Users/papam/.stm32cubeaistudio/workspace/demo_face_detection/.ai/run/run-1/Middlewares/ST/AI/Validation/Src/ai_wrapper
There's a bug in STM32N6 HAL DCMIPP driver function DCMIPP_SetConfig.It only sets capture mode bits for PIPE0 to PIPE2, but does not clear them: /* Set the capture mode */ hdcmipp->Instance->P0FCTCR |= CaptureMode;CaptureMode options are:#define DCMIPP_MODE_CONTINUOUS 0U /*!< DCMIPP continuous mode (preview) */ #define DCMIPP_MODE_SNAPSHOT DCMIPP_P0FCTCR_CPTMODE /*!< DCMIPP snapshot mode */As a result, after having DCMIPP in snapshot mode it is not possible to re-configure DCMIPP into continuous mode using HAL.Workaround is to manually clear CPTMODE bit.
Hi!I am making a custom external loader for my custom STM32F469 board equipped with a W25Q128 flash mermory on QuadSPI.To do so I am using vscode and a CMake project generated via CubeMX.I am able to generate and run programs on my STM32F469 (embedded flash), I can write, read and reset the external flash even using the memory mapped mode (verified through the debugger).Now I want to build an external loader based on this project. I copied the files from the STM external loader Github (contrib branch), updated them to match the W25Q128 configuration, and added an executable to my CMakeLists file to compile (and most importantly link) the external loader.My first problem is that the linker complains that there is no "main" function. I searched around for what could be the entry point of en external loader but I can't find anything. So I created a new main function (different from my application) with only an infinite loop (for the record I also made a return 0 main function which l
I am using a STM32H747I DISCO board as the target to evaluate the Audio Weaver Designer from DSP Concepts. In order to connect with Audio Weaver, the STM32747I DISCO board needs to be programmed with the Audio Weaver BSP for this board.I need to program my board to connect up with Audio Weaver. I need to get either the binary or the BSP source (or ideally both). I cannot find this anywhere online and could not find it on DSP Concepts website anywhere. From what I can tell each target partner maintains the BSP, so does ST have this?
Due to the high cost of RAM. I wonder if ST have plans or other information about which 4GB RAM vendors fits MP25x products?I know that ST have information about other RAM vendors on their wiki. Only one 4GB vendor is mention there.I bought the 4GB RAM MT53E1G32D2FW-046 WT:C (single rank) from here when it cost 20 USD.https://www.aliexpress.com/item/1005009146059053.html but its seems to only having the DDR density to 8bits (2 GB). Perhaps it was only a 2GB or MT53E1G32D2FW-046 WT:B (dual rank)I'm still looking for other RAM vendors that can offer 4GB solutions for the MP25x. Question:Can ST write a criteria what a RAM memory need to have to fit MP25x? Do the RAM need to follow a specific RAM standard? What do I need to know to know if the RAM memory fits the MP25x?
Hi all,While implementation of CanTp, I am getting some errors regarding undefined reference which are shown in the snippet attached. I debugged completely but I am unable to find from where and for what these errors are coming.It would be more helpful if I get some support regarding this issue. Updating MediaThanks,Shiva Shankar.
Hello ST Community,I am using TSD HD Gen4-STM32-43CT-01 display module which has STM32H7S7I8T6 MCU.I am facing an issue where I am unable to connect or disconnect the debugger using MB1440C, while the same debugger works perfectly with other TSD HD Gen4 displays.Debugger setupDebugger: MB1440CInterface: SWDConnections:SWDIO → JTMSSWCLK → JCLKGND → GNDThis setup was working earlier on the same board.What changedThe last firmware flashed was a boot-level application intended to write custom data into external QSPI flash:External Flash: GD25Q127CS (128 Mbit)After flashing this boot code:The MCU is no longer connectable via SWDST-LINK / MB1440C cannot attachPower cycling does not helpObservationsSame MB1440C debugger + same CubeIDE works fine with other TSD HD displaysIssue is specific to this board after boot code flashingI suspect:SWD pins may be reconfigured as GPIOOption Bytes may have been modifiedBoot code may be disabling debug or putting MCU in low-power/reset loopExternal QS
Hello, I am using and stm32mp157c-odyssey SoM with a custom made motherboard, However I am having issues getting the usb port function properly.I am using otg fs. It fails the enumeration in the pc side and gets stuck at L1 sometimes and other errors. I still don't know if it's a hardware or software related issues. I am configuring it as device only. below I will include picture of the usb schematic, the logs, as well as the device tree node. Note : We are not using otg_fs_id it's not connected to anythhing , and vbus comes directly from the PC host to the OTG_vbus pin so no vbus gpio.Using yocto image 6.1 mickledore.&usbotg_hs {compatible = "st,stm32mp15-fsotg", "snps,dwc2";status = "okay";pinctrl-names = "default";pinctrl-0 = <&usbotg_fs_dp_dm_pins_a>;dr_mode = "peripheral";};
I am developing in C++ using STM32CubeIDE on an STM32L476.I’m trying to use Cppcheck to verify the quality of my code, but the analysis fails with errors and I can’t get it to run successfully.I have specified all the defines and include directories that are set in CubeIDE.When the CPU is specified, certain internally determined macros and include directories are required, and it appears the errors are occurring because those are missing.I am using the following options.CPU "Cortex-M4(0)"Core "0"Floating-point unit "FPv4-SP-D16"Floating-point ABI "Hardware implementation (mfloat-abi=hard)"Instruction set "Thumb2"Runtime library "Reduced C, reduced C++ (--specs=nano.specs)"Enable "Use float with printf from newlib-nano (-u _printf_float")Toolchain is ""GNU Tools for STM32(13.3rel1)I am using CubeIDE on Windows.The installation directory is left at its default (C:\ST). Which definitions and include directories should I add?
Chip model: STM32H723VGTxBoth the RX and TX buffers are allocated in the D2 domain.1.CubMx settings are correct.2.HAL_UART_Transmit_DMA runs normally on the first run.However, after running HAL_UART_AbortReceive, HAL_UART_Transmit_DMA fails.Tracing the HAL_UART_Transmit_DMA function:The huart->gState value is always 0x33.
Hi everyone,I am encountering an issue while trying to flash OpenSTDroid onto my STM32MP257F-DK board.I downloaded the Starter Package from the official website and used STM32CubeProgrammer for the installation. However, the flashing process consistently fails during the final stages.Could anyone provide the correct flashing procedure or suggest what might be causing this error? Below are the details of my setup:Starter Package Source: STM32MP2DroidSta | Product - STMicroelectronicsSTM32CubeProgrammer Error Screenshot: Thank you in advance for your help!
In the eDesignSuite UHF RFID Link Budget tool, it appears that τ_RX (matching losses from reader to antenna) is not being included in the calculation for P_receive:Note the values I highlighted. According to the arrows in the diagram, the P_receive should be: P_receive = -31.7dBm - 51.7dB + 6 dBi - 3dB = -80.4dBmBut the power shown in the tool is -77.3dBm, off by about 3dB.Is this a bug in the software, or am I missing something here? I just wanted to make sure I wasn't doing something wrong.
I've been trying to get the Virtual_COM_Port app running on the combination of X-NUCLEO-LIV4A1A and NUCLEO-U575ZI-Q board and the best I can get is where the app will successfully output the first second's group of NMEA messages to the PC running a terminal emulator program and then it stops. After it stops, the actual LIV4 module on daughtercard cotinues to run as you can see the RED LED blink pattern change.This happens in all three cases where I:Try running the pre-compiled build of Virtual_COM_PORT .bin file for the U575XI baord under the repository folder.Build the example project under STM32CubeMX, code generate it for STM32CubeIDE, build it and load it to the U575ZI board and run it (either in run or debug mode).NOTE: In this case, I do get one compile warning where I complains about a missing .c file in the Src folder (worked around this by finding it in a different folder, copying and build).Follow the steps in the GNSS1 FW getting started guide and manually setup the pr
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.