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
We are using STM MCU MPN : STM32U375VGT6Q for one of our new projects, we are currently using HSE External 16 MHz crystal for system clock.We are trying to configure the STM32U375 MCU to run at 96 MHz using an HSE external 16 MHz crystal. In STM32CubeMX, we are unable to find the PLL option sourced from HSE in the clock tree on the Clock Configuration page.Could you please advise us on below points:Use HSE (16 MHz) as the PLL sourceSet the PLL multipliers/dividers to achieve SYSCLK = 96 MHz
Hi,We are facing the same issue like the below community post. https://community.st.com/t5/stm32-mcus-products/flash-via-i2c-bootloader-problem-for-stm32g0b1kbu6/m-p/636467#M234685 But we are using 'STM32G431RBT6' in our project, kindly let us know if any specific pins need to be handled in this MCU for proper operation.Kindly reply on this as early as possible. Thanks,Ananthu
I created a custom STM32F411 PCB. I can program it and blink a LED for example just fine. I also have a STM32 blackpill board which uses the same MCU. When I run some USB HID code it works fine on the blackpill but once uploaded to my custom PCB and I plug it into my windows PC, it says the usb device malfunctioned and is not working. I followed all the guidelines from the datasheet for the USB design. (I dont need external pull-ups for D+, no need for VBUS sensing). Also I have a 25Mhz HSE clock that is properly configured for the precise 48Mhz USB clock even though its only running at FS. Any ideas to why this might be happening?
I am using a custom PCB based on ST25R3911B + STM32F072C8T6, and I am encountering an issue where FeliCa cards cannot be read.Initially, I used the X-CUBE-NFC5 software package downloaded from ST’s official website, along with the integrated RFAL library (the RFAL version should be V2.0.10). With this version, I was able to correctly implement most of the required functionality, including polling cards using ISO14443 / FeliCa / ISO15693 protocols. However, after running for several hours, the reader would occasionally enter a strange freeze/hang state. Because of this, I decided to upgrade the RFAL library.I then downloaded the STSW-ST25RLIB001 package from ST and ported the RFAL library from it (RFAL version should be V4.0.0). After the upgrade, the problem changed: as soon as a FeliCa card is detected, the system freezes immediately.To isolate the issue, I discarded all my own application logic and ran only demoCycle. In the demo, ISO14443 and ISO15693 cards work correctly, but FeliC
Hello,I’m working with STM32WB55CGU (UQFN68) on a WeAct WB55 board and trying to achieve ultra-low power during BLE idle / non-advertising periods using the STM32 WPAN framework.Expected behaviorAccording to ST documentation and examples:STOP2 mode with BLE stack idle should be in the tens of µA rangeI previously verified 10–20 µA STOP2 current without BLE enabled, so the board itself is capable of low powerActual behaviorWith BLE enabled (advertising):Idle (non-advertising period): ~1.1–1.4 mAAdvertising peak: ~8 mABLE communication works correctlyPB6 debug pin toggles, confirming STOP2 entryRemoving ST-LINK reduces only ~100–200 µAHardwareMCU: STM32WB55CGUBoard: WeAct WB55External LSE presentMeasured using shunt resistor + scope (differential measurement)Software setupBased on BLE_p2pServer exampleCube FW: STM32Cube FW_WB V1.23.0IDE: STM32CubeIDERF firmware loaded correctly (same as NUCLEO examples)USB, ADC, PWM, DMA disabled for low-power testMain loop while (1) { MX_APPE
Here is a more professional and technically concise rephrasing of your post, optimized for a developer forum or technical support ticket:Subject: Clarification on VBUS Sensing and Internal Pull-up Management for STM32WB55Hello,Based on the STM32 USB Training MOOC, it is highly recommended to implement VBUS sensing to distinguish between a "Suspended" state (no bus activity) and a "Disconnected" state (physical cable removal). This prevents back-powering the host via the internal D+ pull-up resistor when the device is self-powered.However, I’ve noticed a few discrepancies regarding the STM32WB55 implementation:Tooling: In STM32CubeIDE (Device Configuration Tool), there is no dedicated "VBUS Sensing" pin option available for the USB peripheral on this specific MCU series.Reference Hardware: Looking at the P-NUCLEO-WB55 schematics, there is no voltage divider or direct trace connecting VBUS to a GPIO for sensing purposes.Could someone please clarify the following for a self-powered
Hi, I have started from a project by Adam Berlinger.I have two UDP sockets, one receiving data max 500 bytes/s one sending data 200 bytes every 5 seconds and one TCPIP sending 4K every 20 ms.Netconn Api I have no problem. With BSD sockets, If I work receiving data from UDP socket from a single or maximum 2 clients the UDP socket works well, but if I have 3 or more clients sending data on that UDP port, after a while the sockets returns no data even if they are.If I ask to print stat at display everything seems to be correct and as I imagined there is full of available memory and of all, no error at UDP level.Do you have any idea on what is happening? I used the same code on LWIP 1.1 on another microcontroller slower with less memory but no dma, and everything worked very well.Best Regards
Just wanted to see if anyone could point me in the right direction regarding a problem I'm having with implementing a USB device using MSC in standalone mode. The code initialises correctly as far as I can tell but as soon as it gets into the main loop, a HardFault is generated - this seems to be because ux_device_tasks_run() is trying to access ux_system_slave->ux_system_slave_dcd which is not initialised. I cannot see a function in the CubeMX (v1.5.1) code base that performs this. I have a reference project for the U385 micro and have confirmed the ioc files for USBX are essentially identical. I can't see a DCD registration function in that project either but apparently it works (I have no way of confirming without the hardware). I think in previous Cube versions, a function called ux_device_stack_dcd_register() was exposed but that no longer seems to be the case. The intention must be for it to be carried out another way but I'm having a hard time working out what this
Hello. I have two setups: one STM32H5 Nucleo eval board and a custom STM32H5 board. The Nucleo runs with the LAN8742 PHY while the eval board runs with the KSZ9567R switch. Both are configured to use RMII. I'm using the NetXDuo stack for both. The Nucleo board works just fine, but the custom does not. The custom board SW is based on the Nucleo SW, except removing the LAN8742 interface. I've checked out the HW on the custom board and it looks fine. I'm trying to do a simple ping from the PC. The first message is an ARP message. I see it on Wireshark and it arrives just fine on the STM32. I see the MAC address and the source and destination IP which look correct in _nx_arp_packet_receivemessage_type : 1sender_physical_msw : 11352sender_physical_lsw : 3116224427sender_ip_address : 3232235781target_ip_address : 3232235787Then the SW creates the ARP reply and calls _nx_driver_packet_send. I can see the RMII Tx lines toggle after the ARP packet is sent, but for
Previous versions of cube had very nice board seelction tools.At the top of the screen was aa complete board descrription that enabled the easy selection of board features when starting a new project and wanting to see what peripherals were available on the board and chipThe current version 2.0 has very, very sparse information, inadequate to find out which boards havee what preipherals. The facility is easyt to provide since it simply references the sales literature available on the ST site.This information is not even available by double clicking on the products offered in the IDE.Furthermore, the online product selector is almost useless, there are 3 columns with identical headings under ADC converters. I presume these refer to differrent ADC capabilities, but am left in the dark as to their meaning.I understand that this might be a seldom used function, occurring once or twice in a product lifecycle, yet it is an invaluable tool.The filters are also very cumbersome when compared to
Good morning, I've been trying to create a simple program for several days that allows me to ping from my laptop to my Nucle F767ZTI board, but to no avail. I'm using CUBE IDE 1.18. I initially followed a tutorial and was able to do it, but only in debug mode, not with the board in running mode (normal operation), without using FreeRTOS but only by enabling ETH and LWIP. Is there a project I can import and then continue making my subsequent changes from there? This is because the ping is only the initial part of my project that I'm about to create. Can you send me a link where I can download and import the project? Thanks in advance.Here some lines codes that I use: /* USER CODE BEGIN Header */ /** ****************************************************************************** * @file : main.c * @brief : Main program body ****************************************************************************** * @attention * * Copyright (c) 2025 STMicroelectronics. * All rights reserv
It seems like CubeMX sets this default value hspi1.Init.MasterKeepIOState = SPI_MASTER_KEEP_IO_STATE_DISABLE; when doing software NSS and SPI Mode 3 like: hspi1.Init.CLKPolarity = SPI_POLARITY_HIGH; hspi1.Init.CLKPhase = SPI_PHASE_2EDGE; hspi1.Init.NSS = SPI_NSS_SOFT; This results in a non working SPI at least on STM32H652 (did not check the signals with Oscilloscope, but I assume the CLK and/or MOSI float back to an undefined value after the first transaction, breaking the next one). This can be fixed by doing:hspi1.Init.MasterKeepIOState = SPI_MASTER_KEEP_IO_STATE_ENABLE; Wouldn't it be recommended CubeMX defaults the IO_STATE_ENABLE in this case? This one Bit just cost me 5 Hours of headache :\
Hi, Could you please provide the top marking information for parts VNP49N04-E and VNP35NV04-E for part verification? Thanks Jay Trivedi
I am using the STM32H725RE (68-pin package).My goal is to have full duplex SPI communication with a 16 bit shift register using the stm32h7 as the SPI master (with no dma controller).I am using the SPI3 with the following pin (12MHz)PA15 (SPI3_nCS), PC10 (SPI3_SCK), PC11 (SPI3_MISO) and PC12 (SPI3_MOSI).With the following code it is already possible to write the data successfully and the shift register also sends the data correctly to the MISO wire. (as you can see in the logic analyser screenshot)But I have problems reading the receive buffer, the flags are set correctly (RXP is set correctly), but when I read the RXDR I only read the data 0xFFFF, although other data should be read as shown in the logic analyser screenshot?#include <stm32h7xx.h>#include "stm32h725xx.h" #define pSpiSR SPI3 static void initSPI3() { RCC->APB2ENR |= RCC_APB2ENR_SPI1EN; // SPI1 Peripherie Enable (FLASH)// PA15 (SPI3_nCS)GPIOA->MODER &= ~(GPIO_MODER_MODE15);GPIOA->MOD
Hi Is it possible to run Zephyr RTOS on the STM32F411RET6 Nucleo board? If it is possible, how can I set up and use Zephyr RTOS on it? Please suggest the steps.
I am trying to flash a .bin file to an STM32F767ZI Nucleo board using UART via STM32CubeProgrammer. While I can successfully connect to the board using ST-LINK, I am unable to establish a connection over UART and encounter the following error: I have tested USART1, USART2, and USART3 with various baud rates, and configured the BOOT0 pin to logic high followed by pressing the reset button, as described in the reference manual. However, the issue persists. Please suggest possible causes/solutions for this problem. Thank you. Arun Badiger,
Just like the normal process, I generated the H7S3L8 project using CubeMX.Then I opened the project folder with VS Code, and STM32 VS Code extension detected that it is an STM32 project.But afterward it threw a problem.It required me to manually configure the specific model of the STM32. It seems that the CubeIDE for VS Code extension did not correctly recognize the model.So I just chose the NUCLEO-H7S3L8.But when I click the 'Save and close' button, it just shows the clicked animation effect, and then nothing happens. The extension still can't properly load the project and perform automated configuration.Why is this happening?I am quite sure that other projects (such as STM32F401RCT6) can be properly recognized and loaded; moreover, if I manually go to 'Setup STM32Cube project(s)', the 'Save and close' button works normally for those projects.It seems that only the NUCLEO-H7S3L8 or STM32H7XX series has this problem, or am I the only one experiencing it?I speculate that this may b
During stress testing involving repeated startup and shutdown, a fatal error was encountered in the STM32F407 Ethernet (ETH) module.The issue was observed during the startup phase, where a problem occurred in the ETH DMA. The DMASR register indicated a Fatal Bus Error.The following are the ETH register values captured when the error occurred:MACCR : 0x0200CE0CMACFFR : 0x00000000MACHTHR : 0x00000000MACHTLR : 0x00000000MACMIIAR : 0x000007D0MACMIIDR : 0x00001058MACFCR : 0x00000080MACVLANTR : 0x00000000MACRWUFFR : 0x00000000MACPMTCSR : 0x00000000MACDBGR : 0x00000000MACSR : 0x00000000MACIMR : 0x00000208MACA0HR : 0x80000103MACA0LR : 0x0AE18000MACA1HR : 0x0000FFFFMACA1LR : 0xFFFFFFFFMACA2HR : 0x0000FFFFMACA2LR : 0xFFFFFFFFMACA3HR : 0x0000FFFFMACA3LR : 0xFFFFFFFFMMCCR : 0x00000000MMCRIR : 0x00000000MMCTIR : 0x00000000MMCRIMR : 0x00020060MMCTIMR : 0x0020C000MMCTGFSCCR : 0x00000000MMCTGFMSCCR : 0x00000000MMCTGFCR : 0x00000001MMCRFCECR : 0x00000000MMCRFAECR : 0x00000000MMCRGUFCR : 0x00000003PTPTS
Split from Zephyr RTOS on Nucleo-F411RE ? - which has been answered.This is a new question.Hi T_HamdiThank you for your response.I have installed the Zephyr IDE and used the Blinky LED example. The firmware was flashed successfully; however, the LED is not glowing.I have attached an image for your reference. Please take a look.
The open source code on GitHub hasn't been updated for a long time, and many devices are unsupported. How can I get the latest OpenOCD source code? Should I contact technical support? Is there a contact email?
I am trying to launch a dma of the input capture of the timer2 ch2 latched captured register to a memory buffer. I am using the DMA to allow me to record 75 captures so as to be able to determine the time for 75 cycles of a 500 KHz input signal. Set up is - TIM2 - internal clock (250MHz) - ch2 input capture direct modeIC CH2 - rising edge - direct - no division - filter 0GPDMA1 CH0 - standard - circular disable - request TIM2_CH2 - DMA Handle hdma(TIM_DMA_ID_CC2) - Block single - Priority low - Transaction normal - Dir p to m - Source increment disable - Width word - Burst 1 - Port 0 - Destination increment enabled - Width word - Burst 1 - Data handling disable - Trigger disable - Transfer event half endAt the moment Icache is disabled but I have tested in all three options. I am using HAL_TIM_IC_Start_DMA(&htim2, TIM_CHANNEL_2, periods, SAMPLE_SIZE) called from an interrupt routine triggered by a separate timer. Periods is my memory buffer and SAMPLE_SIZE is set to
Hi all,I failed to run Nucleo-G431RB board using Simulink "Monitor & Tune" mode via Simulink XCP protocol.I've got the error message at Simulink,"Could not connect to target application: XCP internal error: timeout expired, in response to XCP CONNECT command"There has been no problem for Simulink "Build, Deploy & Start".I followed an example from the link below.https://www.mathworks.com/help/ecoder/stmicroelectronicsstm32f4discovery/ug/STM32F4XX-ADC-example.htmlI've already changed Simulink model configuration to run Nucleo-G431RB LPUART.- Hardware board = STM32G4xx Based- Hardware board settings> Build options> Create> Select hardware = NUCLEO-G431RB- Connectivity > USART/UART = LPUART1- Connectivity > Serial port = COM1 (same port for STMicroelectronics STLink Virtual COM Port)MATLAB related version:- MATLAB 2023a- Embedded Coder Support Package for ARM Cortex-M Processors V23.1.0- Embedded Coder Support Package for STMicroelectronics STM32 Processors V23.
helloDescription:I'm currently working with the STM32U585 and encountered an issue related to GPIO behavior after waking up from standby mode.Before entering standby, I configure certain GPIO pull-up:(No external pull-down resistors on the affected pins)HAL_PWREx_EnableGPIOPullUp(PWR_GPIO_D, PWR_GPIO_BIT_14); HAL_PWREx_EnablePullUpPullDownConfig();However, after the MCU wakes up from standby (via wakeup pin), I observe a brief voltage drop on those previously GPIOs, about 300ms. This drop occurs before the firmware reinitializes the GPIO configuration:i added a delay(implemented with i--)before calling the HAL_Init() function, and the voltage drop became less pronounced:Questions:Is this behavior expected due to the standby mode reset mechanism?Is there a recommended way to retain GPIO output levels across standby wakeup?Could this be related to the IO pull settings or the boot configuration?Are there any hardware-level workarounds to avoid this voltage dip?Why does delay have such an
We used a DAC with a sample-and-hold circuit on one of our custom boards. The RC filter was not mounted; instead, the DAC output was directly connected to an SMA connector. We enabled the DAC in the firmware, and after testing, we observed a large amount of current flowing through the STM32 board. Upon inspection, we found a short between the 3.3V rail and ground on the STM32 board. Please find the attachment for your reference.
Hello everyone, I am using the STMicroelectronics IHM16M1 motor driver board with STM32 MC Workbench–generated six-step PWM firmware. Before connecting a real BLDC motor, I want to test the inverter stage using a purely resistive load to verify: PWM switching behavior Absence of shoot-through Proper high-side / low-side commutation I would like guidance on the correct way to connect a resistive load to this board. My specific questions are: Load connection Should I connect three equal resistors in star (Y) or delta (Δ) across the U, V, W motor outputs? Is one end of the star point left floating, or tied to DC-? Resistance & power rating What resistance value per phase is recommended for low-risk testing? What minimum power rating (W) should each resistor have to avoid overheating? DC bus considerations Is it safe to power the board with the rated DC bus voltage when using resistive loads, or should the voltage be reduced? Any recommendation on current
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.