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 STM Team,I am working on an STM32 + ThreadX + NetX Duo application with the Ethernet interface. I am facing an issue with the NetX Duo DHCP client.My setup is: MCU: STM32N655X0HxQ RTOS: ThreadX Network stack: NetX Duo Ethernet driver: STM32 HAL Ethernet driver DHCP client: NetX Duo DHCP PC is running as the DHCP server MCU and PC are connected on the same Ethernet network. Observed behaviorThe Ethernet interface works correctly when I configure a static IP address.For example, with:MCU IP : 192.168.50.50Subnet Mask : 255.255.255.0Ethernet communication works correctly.However, when I enable the NetX Duo DHCP client, the MCU remains stuck at:Looking for DHCP server ..The DHCP server is running correctly on my PC.DHCP server configurationMy PC DHCP server is configured as:[SETTINGS]IPPOOL_1=192.168.50.10-254IPBIND_1=192.168.50.1AssociateBindsToPools=1Trace=1DeleteOnRelease=0ExpiredLeaseTimeout=3600[GENERAL]LEASETIME=86400NODETYPE=8SUBNETMASK=255.255.255.0NEXTSERVER=1
I'm developing with an STM32WBA2.I want to communicate via Bluetooth every 10ms, but where in the source code should I modify the default connection interval?I couldn't find a relevant item in CubeMX's STM32_WPAN.
Hello,I implement kind of “lazy write cache” for flash and have problem.The consumer thread sends out cache write requests to the flash thread using events.The flash thread starts a SW timer which fires an event if no more cache write occurs.In the oscilloscope I see that the timer callback is run after timeout occured but the flash thread, which is triggered by the callback, is not executed immediately (it is run as soon as the next cache write event is received).I’m afraid this is a priority problem, but fiddling with task prios doesn’t help.Any idea is greatly appreciated!Thanks, Jochenuint32_t NCB_Cache_Write(eREQID_t eRid, ePNORNUM_t eFid, uint32_t ulOfs, uint8_t bData) { psNcbTaskArgs_t psArgs = &asNcbTaskArgs[eFid]; psArgs->pusBuf[ulOfs] = bData; psArgs->ulAdr = ulOfs; // run core thread after send request called by upper layer / send notification osEventFlagsSet(psArgs->phEventId, NCB_FLAG_FLUSH_REQ);}static void NCB_Timer_CB(void *arg) { // set TIMER event flag of
Hi friends from ST,Is there any description or comment for FDA802A PIN33, I found this pin doesn’t connect to GND like other NC PINs.I am analyzing FDA802A-VYT VCC PIN damaged on China local AMP, and found PIN33 was connected to GND by the previous engineer. (But this pin is float in ST application.)Can this PIN connect to GND cause this damage issue? I have contacted the local FAE from ST in Shanghai, and they knew nothing.
Hello,I have an STM32H743VIHx project created and developed using STM32CubeMX version 6.16.After automatically migrating the project to STM32CubeMX version 6.18.0 / 6.18.1, I encountered an issue with the FreeRTOS configuration.The migration process completes successfully, but the FreeRTOS configuration is lost. The previously configured FreeRTOS settings, including tasks, queues, semaphores, and other RTOS-related parameters, are no longer available.Furthermore, when I try to open the FreeRTOS configuration section in STM32CubeMX after migration, the configuration page cannot be opened properly.If I generate the code after this migration, all FreeRTOS-related code is automatically removed from the generated project. The generated project no longer contains the expected FreeRTOS initialization and configuration code.Additional information:Figure 1 shows the project after automatic migration from STM32CubeMX 6.16 to 6.18.x.In this migrated project:The FreeRTOS configuration option canno
Hi there, I am after some advice on the best way to implement an FOC BLDC controller on an STM32H725RGV3 based board. I’ve inherited this board and as a result am not able to choose the microcontroller that exists on it. If it were up to me, I would’ve chosen a device from the STM32G4 range. Regardless, I ideally would like to use X-CUBE-MCSDK so I am not re-inventing the wheel, however, the closest boards are the NUCLEO-H745/55ZI-Q which is a dual core stm32h7 based board.Current reading topology: Three Shunt Resistors Control schemes required: FOC (torque control), speed and position control with absolute encoder.Comms interface: CANBus (expect to implement business logic myself)Modulation technique: Ideally SVPWM (is this the default)Motor: CustomWhat is the prescribed workflow for this application? Should I create a board based on the NUCLEO-H745/55ZI-Q and then attempt to modify the IOC to match my board? I was considering trying to use the example project “FOC STM32H745ZI with IH
Hi,I have been using a NUCLEO-H7A3ZI-Q board in a research project for a magnetic spectrometer. The input the the Nucleo board is two short pulses which I have for a year or so, been using to generate trigger pulses using the INP inputs of COMP1 and COMP2 with INN connected to DAC1_OUT1 and DAC2_OUT2, respectively by on-chip connection. The external outputs of COMP1 and COMP2 drive TIM1 and TIM3 that trigger ADC1 and ADC2. I used STMCubeMX 6.17.0 and STMCubeIDE 2.1.0 for authoring the code. I I needed to recompile a new version and I experienced that the output from COMP1 was not working with random fluctuations between 0 and 1. Previously, the COMP1 output was sharp pulse with a duration the input pulse was over the threshold set by DAC1_OUT1. The COMP2 output behaves as it should. I tried to check the output of DAC1_OUT1 and DAC1_OUT2. Only the latter could be directed to an external pin and this worked as intended and produced the signals as expected. DAC_1_OUT1 was restricted to
First, specs:CubeMX Version 6.18.1 on Mac OSXMPU: STM32U595RIT6IDE: VSCode 1.123.0 on Mac OSX OK, So after a large amount of searching on how to add the DSP libararies, which have been moved in recent CubeMX versions, I have a new issue. When trying to build the previously-successful project, I get this error: I know for a fact the .a file libarary is indeed present where it’s supposed to be. Here is the library section that was modified in the newly-generated makefie: As I mentioned, the .a file is present in Middlewares/ST/Arm/DSP/Lib. Though, I find it weird the error about “-l-Wl,--start-group” not being a file or directory. That just seems bunged up to me. But this is exactly how the makefile came out of CubeMX. Any ideas here? Any help would be massively appreciated! Thanks!
Our team is looking to implement an application based on the upstream Trusted Firmware M (TF-M) framework (https://git.trustedfirmware.org/TF-M/trusted-firmware-m.git/) to take advantage of the latest security capabilities provided by the framework. But we’ve found that with the latest TF-M LTS release, 2.3.x, support for the HW cryptographic acceleration peripherals of the STM32U5 has been removed, due to the migration from mbedTLS to TF-PSA-crypto library.Are there any plans for STM to implement support for crypto HW acceleration for STM32U5 in TF-PSA-crypto and TF-M 2.3.x?
I am working with the STM32U5G9J-DK2 Discovery kit and trying to use the USBX CDC_ACM device example. The available project description says this example demonstrates an Azure RTOS USBX USB device communication class (CDC_ACM) application that emulates a USB-to-UART bridge and provides the required device and class descriptors for a compliant USB CDC_ACM device.According to the example description, the application creates three threads: one to initialize the USB OTG HAL PCD driver and start the device, one to read data from the virtual COM port, and one to send received data over UART. The same description also says that the USB device start/stop is controlled through messages coming from the USB_PD interface when the board is plugged into or unplugged from the host PC.I would like to confirm the correct hardware connection and board configuration for this use case, because the kit also includes an STLINK-V3EC with its own USB Virtual COM port bridge. The documentation states that the
We are evaluating the IIS3DWB10IS for a battery-powered vibration condition-monitoring node (STM32WLE5 + LoRaWAN, ~5 minute duty cycle, multi-year target on a primary cell). Our current IIS3DWB design measures 1.5 µA for the whole node by cutting the sensor's supply rail between wakes.Two things in DS14585 Rev 1 / AN6497 Rev 1 (DM01264337) pull against each other:- IddPD = 26 µA typ makes a load switch effectively mandatory against a 1.5 µA budget.- The ISPU has no non-volatile memory (AN6497 §1), so cutting that rail also erases the program — every wake has to reload it over SPI before it can do anything.My arithmetic says reloading is much the cheaper of the two: at a 300 s cycle, roughly 0.07–0.29 mA·s per wake to reload (4–32 KB program) against 7.8 mA·s to leave the part in power-down. Power-gating wins by 25–100×, and only loses if the node wakes more often than every ~5–11 seconds.But two inputs to that calculation are not in the documentation:What is the ISPU's supply current —
We need to use an ST67W611M1 on an STM32H5, running the Zephyr operating system in softAP mode. Currently, the Zephyr driver for the ST67W611M1 only supports STA mode. Is there a roadmap for this feature?Thanks,Denis M.
I am using the EEPROM emulation (X-CUBE-EEPROM) on a STM32C0.The default setting for number of variables is 100 : In eeprom_emul_conf.h : #define NB_OF_VARIABLES 100U /*!< Number of variables to handle in eeprom */If I understand this emulation correctly, it uses a number of 2K flash pages (minimum 2 for alternating...).Also, each (32bit) variable is stored as 8 bytes : 16bit virtual address, 32bit data, 16bit CRC.I understood there is also some header overhead of 32 bytes per 2K page.So the number of variables fitting in a single page is (2048 - 32) / 8 = 252So my question is then : why is the default value set to 100 io. 252 ???
Hello forum membersI’m busy with the implementation of a TCP server that needs to handle a TCP connection with already existing PC application that I can’t change.Everything works well as long the packets are not longer then 1500 bytes. When the packets are longer than this “magic number” LwIP is separating the packets in more than 1 piece. Is there a way to know the original length of the original packet?See print screen Wireshark: Packet with length: 1876.Debug from the controller:First read: Second read:How can I detect that these 2 reads (netconn_recv) are 1 packet? Instead of 2. I use the NETCONN API.The connection is made at the beginning and never closed during the executing of the PC application. Kind Regards
Hi!SetupMCU: STM32H573 (Cortex-M33, TrustZone enabled) Secure world: STM32 Secure Manager via SMAK, product state CLOSED Non-secure app: CycloneTCP / CycloneSSL / CycloneCRYPTO (Oryx Embedded) Use case: HTTPS server on a networked device with a long-lived device identity key that must never leave the secure world, plus automated certificate renewal (EST/ACME)What I understand so far!!!mbedTLS consumes the PSA Crypto API natively (MBEDTLS_USE_PSA_CRYPTO plus mbedtls_pk_setup_opaque()), and wolfSSL has partial PSA support via WOLFSSL_HAVE_PSA. Both therefore let the private key stay inside Secure Manager while the non-secure application holds only a psa_key_id_t handle.CycloneCRYPTO has no PSA backend as far as I can tell. Instead it ships register-level STM32H5 ports (stm32h5xx_crypto_pkc.c, stm32h5xx_crypto_cipher.c, stm32h5xx_crypto_hash.c, stm32h5xx_crypto_trng.c) that drive PKA, AES/SAES, HASH and RNG directly. That looks like a direct conflict with Secure Manager, which claims seve
Hi,I need an ST-Link to debug external STM32U0 devices, specifically to modify option bytes and use RDP regression with OEM keys via STM32CubeProgrammer, and I was wondering if the JP6-11 pins on the Nucleo-U083RC could be connected to another MCU to use it as an ST-Link. Thanks in advance
I have created a project for the STM32WL33 several weeks ago, using the DEEPSTOP mode with context restoration provided by ST. Even if there are some pitfalls with this the project worked mostly fine. But after the update to STM32CubeIDE 2.1.0 I get a compilation error:./System/Startup/cpu_context_switch.o(CPUcontextRestore): Unknown destination type (ARM/Thumb) in ./Core/Src/system_stm32wl3x.odangerous relocation: unsupported relocationmake: *** [makefile:89: Euris3-EHKV-WMBus.elf] Error 1I've reverted the version to 2.0.0 and the error is gone.
Hello,I need very low latency, short distance, robust proprietary RF connection with encryption. Drone will not have much complicated functions, just will fly, make flip, hover etc. like other toy drones. For lowest latency, as far as I understand, I need lowest level hardware access. All three of STM32WBA, STM32WB and STM32WB0 are doing it via different ways but which one is better for me, I don’t know. STM32WB looks sensible because it has 2 cores to seperate RF functions for faster responses but it is not one of the latest generations and not sure whether it worth to learn. Which series is the most suitable for such project you think? Thanks for all responses.
I am using STM32MP235 on custom board. At some point, I wanted to update the firmware via SFU using STM32CubeProgrammer.I rebooted the board in USB mode (setting the boot mode to BOOT using the pins) and launched CubeProgrammer.TF-A-programmer-usb loaded onto the board normally, but after that, the board stopped responding via DFU.After a power reset, the board boots in DFU mode, even though the internal eMMC contains the old firmware, and the default boot mode is eMMC.As soon as TF-A is loaded onto the board, the board disappears. Nothing is written to the debug port, making it seem as if TF-A failed to boot.I tried using ROMTrace TF-A. The behavior is exactly the same, and no trace is output to the port.Pin PG4 (FAILBOOTN) is connected to a red LED. During normal boot, this LED starts blinking, and after flashing the TF-A (whether via USB or Serial), it turns solid.The documentation says that the FAILBOOTN LED blinks when the board initially boots in USB/UART mode, meaning it doesn't
For STM32U575/U585, the STM32U5 Customer Webinar says that the 256-bit BHK is “Generated by the secure boot code”. Is the intended implementation to generate 256 bits from the STM32 RNG when the BHK backup registers are uninitialized, or should secure boot restore/derive BHK from a persistent OEM-provisioned secret? Is there ST reference source code implementing the generation, TAMP_BKP[7:0]R write, and BHKLOCK sequence?
Good morning, I’m trying to build a project based on EVLSPIN32G0B2 evaluation board.I’m trying to establish a connection between the board and the STM32CubeProgrammer.Checking the electrical scheme, I saw that the USB connector on the evaluation board is connected to the port PB6 and PB7 (pins 45 and 46 of the SPIN32G0B2) which are the wires of an I2C port. Do I need any interface ?What’s the secret for a working connections ? ThanksStefano P.S. there’s another post on the same argument I wrote few days ago.I can’t delete it, can a moderator delete it for me ? It is useless. Thanks.
I am troubleshooting a USB device that is not being detected by my computer. What are the main hardware and software checks I should perform to determine whether the problem is related to the USB connection, drivers, or the device itself?
I am trying to jump from bootloader to application at address 0x08004800 i STM32G070 but it crashes.The same code worked fine jumping to address 0x08007000Bootloader jump looks like this:#define BL_FLASH_START 0x08000000#define BL_FLASH_SIZE 0x4800 // 18 kB reserverade för BL, OBS! Startadress måste vara alignad mot 32 byte, dvs jämnt delbar med 32..#define BL_FLASH_END (BL_FLASH_START + BL_FLASH_SIZE-4) // 4 byte checksumma#define APP_FLASH_BANK_SIZE 0xDC00 // 55 kB / appl bank// Defines för applikationen#define FLASH_START (BL_FLASH_START + BL_FLASH_SIZE)....HW_WD_Trig();JumpAddress = *(uint32_t*) (FLASH_START + 4);Jump_To_Application = (pFunction) JumpAddress;// disable global interrupt__disable_irq();JumpAddress = *(uint32_t*) (FLASH_START + 4);Jump_To_Application = (pFunction) JumpAddress;/* Initialize user application's Stack Pointer */__set_MSP(*(uint32_t*) (FLASH_START));Jump_To_Application(); .ld for bor bootloader looks like:/* Entry Point */ENTRY(Reset_Handler)/* Highest ad
Hello, I am trying to communicate with a VL53L1X sensor using a PIC18F16Q41 hardware I2C peripheral (MCC-generated driver). The sensor module is AE-VL53L1X from Akizuki Denshi (Japan), which includes the original ST VL53L1X sensor and onboard level shifter. Current issue: The sensor ACKs correctly, but reading the Model ID register (0x010F) always returns 0x00 instead of the expected 0xEA. Current I2C sequence: START W 0x29 ACK 0x01 ACK 0x0F ACK STOP (wait about 1 ms) START R 0x29 ACK 0x00 NACK (expected 0xEA) STOP What I already confirmed: * Wrong I2C addresses correctly return NACK from the sensor * XSHUT is correctly pulled up * Sensor power is stable before PIC startup * Oscilloscope confirms correct ACK/NACK behavior Important comparison: Using a RATOC USB-I2C converter with the same sensor module, register 0x010F correctly returns 0xEA. So the sensor module itself appears to work correctly. I compared the oscilloscope waveforms between RATOC and PIC. One difference i
Hi all:I have a number of firmwares which use the older Standard Peripheral Library for STM32F4xx etc.I could switch to the new Low-Layer drivers, but I doubt it is worth the effort.I actually found the old Standard Peripheral Libraries quite all right. Unfortunately, STM is not maintaining them anymore, even in the face of obvious bugs like this one:Standard Peripheral Library limits STM32F4xx USART to 7.5 Mbit/s, instead of max 10.5 Mbit/shttps://community.st.com/stm32-mcus-products-25/standard-peripheral-library-limits-stm32f4xx-usart-to-7-5-mbit-s-instead-of-max-10-5-mbit-s-82037Are there any community forks of the Standard Peripheral Libraries I could switch to?Thanks in advance, rdiez
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.