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’ve generated a project with Cube AI studio for a Nucleo N6 board, but , when I enable SAI2 peripheral in I2S mode, I notice from the oscilloscope that the bit clock line and FS line become corrupted/glitch when using NPU for inference, could somebody explain me why and how to solve it? I’ve used the same SAI configuration for another project without any AI algorithm and the signals from the pins are clean. I don’t know why, it’s a problem that I’ve been stuck for a month or so
Split from this post. Hello, Sorry to bother you again, but it seems that since yesterday (when I enabled the CAN bus), the UART on my Nucleo has stopped working, even though I haven’t touched anything since then. To be precise, I’m monitoring my UART signal and I’m only getting ‘framing errors’, obviously, I’ve checked and the baud rates are the same on both sides. Could activating the HSE clock have disrupted the operation of my UART ? Thank you in advance for your help,
Dear ST Community,I have successfully run the Object Detection Application on the STM32N6 Discovery Kit using the reference firmware from the STM32AI ModelZoo.As part of extending its functionality, I am looking to implement the following two features:Convert the captured RGB frame to JPEG formatStore the JPEG image onto the SD card available on the Discovery KitFor the RGB-to-JPEG conversion, I have referred to this JPEF Encoder example and integrated this JPEG encoding logic into the object detection firmware. Specifically, I am feeding the nn_in buffer (used as neural network input) to the JPEG encoder. However, during execution, the program gets stuck at this line:jpeg_encode_processing_end = JPEG_EncodeOutputHandler(&hjpeg);The jpeg_encode_processing_end flag is not being set to 1, indicating that the encoding process does not complete. I suspect either the JPEG input handling is not progressing, or the DMA isn't properly triggering the required callbacks.Could you kindly
Hi, I want to know when the C/C++ Indexer will be updated to the latest C standard, that is, C23? I want to use some new language features, like double square brackets for attributes, but it still shows a syntax error, even though the code compiles without problems.Also, I would like to know when GCC 15 will be available. Best regards,Artur
I've just installed the new STM32CubeIDE 2.1.0 and I came across some issues that didn't exist in previous versions.First, I noticed that the compiler always compiles all the source files even though only one source file was modified. I have large project with many source files and it takes about 2 minutes to compile all files. It's very annoying.Second, when launchinig debug session all the source files are compiled again. It didn't work that way in previous versions of STM32CubeIDE. If the files were compiled previously, the debug session was launched immediately.Is it possible to change this behavior but turning off some options or do I have to install older version of STM32CubeIDE ?
Hi, I’m trying to configure the FDCAN peripheral on a NUCLEO-STM32H72ZG board, but even though it works perfectly in loopback mode, it doesn’t work when I switch to normal mode. Even in external loopback, when I check with the oscilloscope I don’t see any activity on the TX pin (no signal transitions). The same issue occurs on this board also with GPIOs. I tried the same setup on a NUCLEO-STM32F303RE board (using CAN instead of FDCAN), and everything works perfectly there.
A few days ago I updated STM32CubeIDE from version 2.0.0 to 2.1.0. (Build: 27993_20260219_1630 (UTC))Now there is a problem. There seems to be no longer any such thing as a "partial" build. Example: My project consists of about 50 ".c" and ".h" files. In the old version, if I edited one of the ".c" files and did a build, only the file that was edited got re-compiled, followed by (as expected) linker and hex file generator. Now, in this version, every build re-compiles ALL the files, even if nothing was touched since the last build. This is time-consuming. How can I stop this and get it to re-compile only the changed files? (If it matters, target CPU is STM32H753BIT6; using FreeRTOS and FATFS.)
HiI'm create a project that sending data from RFID reader (RS232) to PC (via USB HID) as a keyboard.I using RS232 to TTL for STM32 can read data and using USB HID to send it to PC.My code is working but a character sending is slow, but when i remove delay, character is missing. Ex: data from RFID: 4F002F144EWhen I have 15ms delay, my PC receive all characterBut when remove 15ms, some character is miss.So I want to ask have anyway to speedup ?This is my loop: while (RingBuffer_Availabel(&ring)) { uint8_t data; RingBuffer_Pop(&ring, &data); if(data == '\r'){ send_enter(); break; } keyboardhid.MODIFIER = (data >= 'A' && data <= 'Z') ? 0x02 : 0x00; keyboardhid.KEYCODE1 = ascii_to_hid((char) data); USBD_HID_SendReport(&hUsbDeviceFS, (uint8_t*) &keyboardhid,sizeof(keyboardhid)); HAL_Delay(15); usb_ready = 0; keyboardhid.MODIFIER = 0x00; keyboardhid.KEYCODE1 = 0x00; USBD_HID_SendReport(&hUsbDevic
Hello ST Community,We are working with STM32N657X0H3Q and configuring LTDC with internal AXI SRAM.Currently, we have configured the LTDC framebuffer at the following address:0x34200000First, we verified the LTDC functionality without using TouchGFX.Using the same framebuffer address (0x34200000), we manually filled the framebuffer with different colours and confirmed that the display works correctly. The panel turns on and displays the colour patterns properly. This confirms that the LTDC configuration and the memory region are functioning as expected.After enabling TouchGFX, the system starts initialization, but during debugging we observe that execution exits unexpectedly during the TouchGFX initialization phase.In TouchGFX, we have configured the framebuffer using the address method, pointing directly to the same memory location 0x34200000.The issue appears to occur around the following section of the TouchGFX initialization code:FrontendHeap& heap = FrontendHeap::getInsta
Heyho,I recently found that I'm not using ITCM RAM at all, then started to put heap and stack there.No problems so far.Then I copied some functions there, and all went well - until I found some strange behaviour:1..4 SAI RX DMA transfers running, circular modewhen all these transfers are complete for each SAI, a function is called to copy the complete DMA buffer from internal AXI SRAM into the big buffer in HyperRAMalso in this function a packet counter (a global u32 in DTCM) is incremented oncebut when this function is in ITCM, this packet counter increments for each SAI active, but there are no extra packets Further info:- instruction cache: in use- data cache: not used Is there any guideline what to put in ITCM, what are the limits, etcpp. ?
Hello everybody I'm building the device with power delivery sink function. I need the 21V (PPS). I done the configuration with STM32CubeMX and wrote some code in STM32CubeIDE. Unfortunately, after about 14 s of estabilishing connection, the source send hardware reset. What is the problem? In the attached file is the trase from STM32CubeMonitor-UCPD. I use STM32CubeIDE v. 2.1.1 and STM32CubeMX v. 6.17.0. void USBPD_DPM_SNK_EvaluateCapabilities(uint8_t PortNum, uint32_t *PtrRequestData, USBPD_CORE_PDO_Type_TypeDef *PtrPowerObjectType) { /* USER CODE BEGIN USBPD_DPM_SNK_EvaluateCapabilities */ //DPM_USER_DEBUG_TRACE(PortNum, "ADVICE: update USBPD_DPM_SNK_EvaluateCapabilities"); USBPD_SNKRDO_TypeDef rdo; rdo.d32=0U; rdo.ProgRDO.ObjectPosition=6U; rdo.ProgRDO.OutputVoltageIn20mV=1050U; //21V rdo.ProgRDO.OperatingCurrentIn50mAunits=60U; //3A rdo.ProgRDO.NoUSBSuspend=USBPD_ENABLE; rdo.ProgRDO.USBCommunicationsCapable=USBPD_ENABLE; *PtrPowerObjectType=USBPD_CORE_PDO_TYPE_APDO; *Ptr
Cube IDEIf i create / Import STM32 ProjectI only got these options to pick from and i have the feeling something is missing. So i select:- STM32CubeIDE Empty Project which leads me to this:So i select my MCU: STM32G474RETx (for example).This leads me to this:All i can really do is creating an empty Project.This is wrong? I have the feeling it completely ignores which STM Chip i select. I would expect a question if i would want to use CMSIS, LL or HAL drivers.What i am left with is this:Notice that there is no Drivers folder at all and that i cannot select any of the given Libraries.To me this doesnt make any reasonable sense. Its almost like an empty C/C++ Project.The only way to get the drivers folder into my project is to go the route via CubeMX.Which also has its twirks.I sort of always have to select only the MCU on my board instead of the board itself.When i select the Board (in this particular case the NUCLEO-G474RE) then CubeMX will always export also the FreeRTOS CMS
hello, where can i download win11 STM virtual com port? i install both VCP_V1.5.0_Setup_w7_x64_64bits and W8_x86_32bit all not working ! i din seeSTM Virtual Com port at device manager! only STM STLink visual com port appear ...
Hi, I’m using a NUCLEO-144 (STM32H563ZIT6) development board with only the board USB STLINK-V3EC port connected. TRACE and DEBUG are enabled with Serial Wire in the configuration file, and printf is routed through ITM: int _write(int file, char *ptr, int len) { for (int i = 0; i < len; i++) { ITM_SendChar((*ptr++)); } return len; } SWV is enabled in the debug configuration, the core clock is 250 MHz, and the SWV window (port 0) shows output correctly in STM32CubeIDE. When I switch to an external ST-LINK/V2 and connect NRST#15 / SWDIO#7 / SWCLK#9 / GND#20 / TARGET VCC#1 / VDD3.3 V#19, programming and debugging work, but the SWV window shows nothing in the STM32CubeIDE. The reason for using ST-LINK/V2 for SWV debugging is that on our product’s onboard MCU, only VDD, NRST, SWDIO, SWCLK, and GND are exposed. Could anyone explain why SWV output does not appear with ST-LINK/V2? Thanks.
Hi everyone,I’m currently working on a project using an STM32 Nucleo L476RG and a Velleman VMA302 Bluetooth module (HC-05 type), and I’m trying to send data over Bluetooth to my Mac.I configured USART1 at 9600 baud in STM32CubeIDE, and my code is continuously sending a simple message like "Hello". The module is powered and appears to be working (LED is blinking, pairing works with my Mac).On macOS, I can see the Bluetooth device and pair with it successfully. I also see the serial port (e.g. /dev/tty.HC-05-xxxx), but when I try to read data using the terminal command:screen /dev/tty.HC-05-xxxx 9600I don’t receive anything.I’ve already checked:TX/RX connections (crossed correctly)Baud rate (9600 on both sides) Bluetooth pairing (successful)What I’m trying to achieve:Send data from the STM32 to my Mac via Bluetooth and read it as a serial stream.My questions:Is there something specific to configure on macOS for Bluetooth serial communication?Could the issue come from the STM32 confi
I have a STM32WB55 board where I have two I2C connections:1. LSM6DSO IMU2. TCA9548A with downstream I2C to hall sensors The TCA9548A I2C multiplexer does not ACK when addressed. The firmware scans 0x70 (this should be correct already)–0x77 and gets no ACK. The LSM6DSO IMU on the same MCU works, so the MCU is fine; only the TCA9548A path fails. the A0, A1, A2 are all grounded, RESET pin is pulled up to VCC with the appropriate resistor, VCC and GND are wired correctly as well (~3.3V). TCA on PB8 (SCL) and PB9 (SDA) pins of the STM32WB55, each with 4.7k pull-up resistors to VCC. I even changed the PB8 PB9 pins to software I2C and back to hardwawre I2C, but no luck; I did even deeper diagnosis, and it is just that TCA9548A never ACKs at any address 0x70–0x77. The data is collected via BLE, the exact steps since I obtained the PCB are as follows:1. Upgraded firmware on:> FUS: stm32cubewb-v1-24-0\\\\STM32Cube_FW_WB_V1.24.0\\\\Projects\\\\STM32WB_Copro_Wireless_B
Hi I would like to check if it is necessary to call MX_RNG_Init() after the MCU exits STOP MODE to reconfigure the RNG? BR Gilberto
I'm using STM32F2xx, STM32F4xx, STM32F7xx and STM32L0xx firmware supplied by STM32CubeMX. I need to generate an SBOM for cybersecurity purposes. Can ST provide that or provide documentaiton that can be referenced to generate the SBOM?
Hey all, I've used this tutorial: https://youtu.be/suMytEyQTP4?si=jLtyF5uH1Qd6zpYvto run TouchGFX on several different MCUs/boards such as the black pill or NUCLEO-F446RE. However, I simply cannot get anything to display when I setup TouchGFX on my NUCLEO-WL55JC2. I'm unsure if there is something I'm missing that makes it unfeasible or much more difficult to get it running on the board, but I'm at my wit's end after debugging for hours and finding no issue. The code compiles and programs to the board fine, and I've verified all connections as well as parameters, and I am at a loss as to what to do. If anyone could help I would greatly appreciate it. (Note: I've tried in single core setup to get it to work as well and that did not seem to solve the issue.)
Hello,I am using the ST25R3918 in NFC-F (FeliCa) Card Emulation (CE) mode, controlled by an MCU via RFAL (based on STEVAL-25R3916B_V2.1.0). [Issue Description]The system works correctly under normal conditions: the ST25R3918 receives commands like "Write Without Encryption" or "Read Without Encryption" from a reader and sends back the appropriate responses.However, if the reader is moved away from the ST25R3918 (resulting in RF field loss) during the communication process, the MCU firmware falls into an infinite loop. [Analysis Details]The loop occurs within the do-while block of demoTransceiveBlocking() in card_emulation.c. The call stack is as follows: rfalNfcWorker() -> rfalWorker() -> rfalRunTransceiveWorker() -> rfalTransceiveRx()Inside rfalTransceiveRx(), the state gRFAL.TxRx.state remains stuck at RFAL_TXRX_STATE_RX_WAIT_RXS. The function st25r3916GetInterrupt() is called with the following mask: (ST25R3916_IRQ_MASK_RXS | ST25R3916_IRQ_MASK_NRE | ST25R3916_IRQ
I downloaded the STM32C5 software package from st.com, but I am unable to use IAR. How can I import the CMake project?
Hello,With the new STM32Cube Debug Jlink GDB Server V1.2.0 I'm not anymore able to start the debugging session. If I downgrade to V1.1.0 then it is working again. I get always the error message "No GDB Server running". I tried that with my old launch.json settings and with the new generated and adapted json settings.Do I miss some special settings or has the new extension a bug?Or do i need any dependency? error message: old launch.json new launch.json Thanks in advance,nobody
Hello,in our design with STM32H753ZIT6 I've adjusted the C0G load capacitors on the LSE 32.768 kHz crystal so that the real-time clock is now very accurate (less than 1 second error in 24 hours). I've always performed the calibration in VBAT mode at a voltage between 2.3 and 3.2 V.However, now I've noticed that in normal VDD mode with active controller, the real-time clock is running significantly too slow, with an error of 90 seconds in 24 hours. I've ruled out the VBAT supply voltage as the cause. Any ideas what could be causing this large error in normal VDD mode?Thank you!
I was excited to see the Rust support for the Developer Package (seen here and here)However, I am having some issues with the fact that the provided toolchain is version 1.75 rustc and cargo. Mostly the fact that this version cannot use dependencies which use Rust edition 2024.I know I can go through dependencies one by one and downgrade them to earlier versions until there are no edition 2024 dependencies, but this is pretty tedious and doesn't seem like a great solution in the long run.Is there any chance that the MP2 Dev Rust addon could be updated to a more recent version?Or if that isn't possible, is there any advice on other ways to update the provided toolchain or create a custom rust toolchain using the mp2 dev tools?Thanks!
Hi all,I’m exploring whether the S2LP LDC mode can be adapted for a transceiver configuration.From what I understand, ST’s example code provides separate implementations for RX-only and TX-only devices. Using these individual examples, I’ve verified that reliability is good. Additionally, the datasheet also describes the TX and RX sections separately.However, I’m interested in implementing LDC mode in a transceiver setup (where the same device handles both TX and RX). Has anyone implemented this successfully? If so, did it work reliably, and would you be able to share any reference code or guidance?Thanks in advance for your support. @Gyessine @waclawek.jan
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.