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
Hello, I’m writing in regards to a project that I am doing that involves a STM32G474RGT being used to control a synchronous buck converter. In this set up I plan to use Peak Current Mode Control, which I found was supported by Biricha’s WDS software. As a result I configured my HRTimers and ADC and Comparators like the guides that I found online, mainly the step by step setup on the Biricha Youtube Channel. However, upon opening up the software, I noticed that the circuit tab for the buck setup would only show up as an asynchronous buck, using a diode instead of 2 N-Channel mosfets. Is there anyway to configure the software to use a synchronous buck topology? Brian
This project tests the STM32C5's XSPI capability to drive QSPI display using the NUCLEO-C5A3ZG M.2/SerialMem connector. GitHub - stm32-hotspot/STM32C5-M2-Serial-Mem-QSPI-Display · GitHub
I use H563 and G491 MCUs. There is HAL_ADCEx_Calibration_Start() on both MCUs to calibrate for single or differential ended inputs. If I have mixed single and differential ended inputs on the same ADC, which do I use? Single or differential?
There does not seem to be any way of viewing a debug variable in hex.The closest workaround is to prefix (void*) before the expression in the watch window. This is no good for viewing an array of hex digits like for example a CAN bus message.
Hello,I would like to report what appears to be a code generation issue in STM32CubeMX 6.16.1.My configuration is:MCU: STM32H7R3 STM32CubeMX: 6.16.1 STM32Cube FW_H7RS: 1.3.0 SAI2 Block A configured as Master TX SAI2 Block B configured as Synchronous RX GPDMA channels 10 and 11 configured in Standard Request Mode and Circular Mode The generated HAL code internally creates a linked list with a single node for each DMA channel. In the generated sai.c file I get:DMA_NodeTypeDef Node_GPDMA1_Channel11;DMA_NodeTypeDef Node_GPDMA1_Channel10;However, these DMA node structures are not placed in a non-cacheable memory region.If I instead use the LinkedList Utility and configure the channels in Linked List Mode, CubeMX generates:DMA_NodeTypeDef Node_SAI2_A __attribute__((section("noncacheable_buffer")));DMA_NodeTypeDef Node_SAI2_B __attribute__((section("noncacheable_buffer")));The "noncacheable_buffer" section is defined in the linker script in a memory region accessible by the GPDMA and I confi
Struggling with a really weird issue here. I'm working on a project using Zephyr on an STM32U5A5ZJT6Q. We are using an LSE-clocked LPTIM as the tick source, PM enabled with STOP0 and STOP1 modes.At some point, we started noticing random crashes, which seemed to occur sporadically, more often on some boards than others. These would usually be in the `idle` zephyr thread, specifically after a `wfi` instruction. Digging around, I found some errata (specifically 2.2.26 for STM32U575xx STM32U585xx, related to flash prefetch, and now also 2.2.6 for STM32U59xxx STM32U5Axxx, related to wake-up from stop mode). HardFault on wake-up from Stop mode may occur in debug modeDescriptionA HardFault may occur at wake-up from Stop mode when the following conditions are met:• Device is in debug mode.• DBG_STOP bit is set in DBGMCU_CR.• A wake-up event/interrupt from an SRD peripheral (except EXTI) occurs in a timing window of four clockcycles during Stop mode entry sequence. SRD peripherals are
Hiya.I’m currently trying to capture an image from the OV7670 camera module over DCMI + GPDMA. I’ve been able to capture images, but I’ve run into an odd issue with vertical blanking. Using the STM32U575RIT3. I have the module configured for RGB565 in QVGA and I can fully confirm that it is outputting what it is meant to, the issue is just with GPDMA and getting it into memory.In GPDMA=Standard Request, I only get ¾ of the image, with the first ¼ being blanked. Sample image in GPDMA Standard RequestIn Linked List mode, I can only seem to get up to ½ of the image. I get ¼ with a single node, ½ with two nodes, but no more when introducing more nodes.Sample image in GPDMA Linked List ModeI can confirm that the GPDMA_CxDAR register shows that it has indexed by an entire image and reached the FrameEvent callback in StandardRequest Mode. In LinkedList mode, it seems to just lost the second half of the image as I do not get the callback and the DAR register records an increment of half the im
Hi, I’m really liking the STM32CubeIDE Extension for VSCode. Definitely a huge leap forward.One of the few things that I miss from STM32CubeIDE based on Eclipse (the “old” one) is the variable Watch (not live watch, regular watch) speed. It seems significantly slower on VSCode. I deal with a lot of multidimensional matrices so it’s very noticeable for me. Additionally, I know I can run some preRunCommands to set the watch variables to hex. But I cannot seem to figure out how to change them to binary or back to decimal while I’m debugging. This is a feature I use a lot since I deal with mixed formats in my projects. Any help is much appreciatedThanks
Hi,I found the new c562 chip and for that I needed to install the latest IDE, v2.1.1I am running Debian linux (testing) kernel 7.0.10 on an AMD cpu with nvidia, driver 595.80When I installed IDE 1.19 it installed mx1 automagically if I am correct, now with 2.1.1 mx1 or mx2 is no longer automagically installed anymore. Trying to install mx1 from the command line throws an error that I do not have JRE 17 installed even though versions 17/21/25 are installed.rth@castle:~$ uname -aLinux castle 7.0.10+deb14-amd64 #1 SMP PREEMPT_DYNAMIC Debian 7.0.10-1 (2026-05-27) x86_64 GNU/Linuxrth@castle:~$ java --versionopenjdk 25.0.3 2026-04-21OpenJDK Runtime Environment (build 25.0.3+9-2-Debian)OpenJDK 64-Bit Server VM (build 25.0.3+9-2-Debian, mixed mode, sharing)rth@castle:~$ dpkg -l | grep jreii default-jre 2:1.25-77 amd64 Standard Java or Java compatible Runtimeii default-jre-headless 2:1.25-77 am
I want iphone for gaming purpose with gyroscope customisation like 9 axis gyroscope customisation,is it possible?
Hello,We are designing a custom board based on the STM32MP157FAC1 device, which is available in the TFBGA361 package.In the STM32MP157F datasheet (Page 251), the recommended PCB design rules for the TFBGA361 package are provided. Snapshot is attached for your kind reference. However, we are unable to determine the recommended PCB pad size from the information given.Could you please clarify whether the recommended pad size corresponds to Dpad or Dsm, or advise which parameter should be used while designing the PCB footprint?Regards,Prashant
this is my code ADC real value read and calculation part but ADC real value not real when input drvoid process_adc_averages_and_filter(void){for (uint8_t ch = 0; ch < ADC_CHANNELS; ch++){uint32_t sum = 0;for (uint8_t i = 0; i < ADC_SAMPLES; i++){sum += adc_dma_buf[i * ADC_CHANNELS + ch];}adc_avg[ch] = sum / ADC_SAMPLES;// Apply exponential low-pass filter//float alpha = 0.1f; // Filter strength/// adc_filtered[ch] = (1 - alpha) * adc_filtered[ch] + alpha * adc_avg[ch];// adc_hist[ch] = (adc_hist[ch] * 31 + adc_avg[ch]) / 32;// adc_filtered[ch] = adc_hist[ch];// Fast stable filter// single smooth filter// adc_filtered[ch] = (adc_filtered[ch] * 0.95f) +/// (adc_avg[ch] * 0.05f);adc_filtered[ch] = (adc_filtered[ch] * 31 + adc_avg[ch])/32;}vfb_adc_fixed = (adc_filtered[3] + 2) / 5 * 5;Vref = 160.0f + (adc_filtered[1] * 100.0f / 4095.0f);Gain = 0.5f + (adc_filtered[2] * 30.5f / 4095.0f);Adjust = 0.5f + (adc_filtered[0] * 4.5f / 4095.0f);int32_t difference = (int32_t)vfb_adc_fixed - (i
Hi everyone,I am working on the STM32MP257DAI3 and using the SAI peripheral on the M33 core with an ADAU1772 audio codec.On the STM32MP157, the DMA configuration provides a Circular DMA option, which is useful for continuous audio streaming. However, on the STM32MP257DAI3, I cannot find an equivalent Circular DMA option in STM32CubeMX or the generated configuration.I would like to implement continuous audio transmit/receive for the SAI interface, similar to the circular DMA operation available on STM32MP157.Could anyone clarify the following?Is the traditional Circular DMA mode no longer available on STM32MP257? Does STM32MP257 use GPDMA Linked-List mode instead of the legacy circular DMA? If so, what is the recommended configuration for continuous SAI audio streaming on the M33 core? Are there any additional configurations required (such as queue, node, circular linked-list, cache settings, etc.) to achieve uninterrupted audio transfer with the ADAU1772 codec?If anyone has a working e
Hi,hope you doing good.We are currently using NUCLEO-L412RB-P along with X-NUCLEO-60K1A1 for testing. We are attempting to perform USB tunneling with the following sequence: 1.NUCLEO-L412RB-P is connected to X-NUCLEO-60K1A12. X-NUCLEO-60L1A1 part and peripheral lines are connected to NUCLEO-L412RB-P.3.X-NUCLEO-60R1A1 part of board is powered up.4.A pen drive is connected to the X-NUCLEO-60R1A1 part of board. Then started getting logs via UART in the following sequence: 1.RF detected( Once remote part is detected it under goes next state low power until it remains in RF detect state) 2.Low power state 3.Tunneling state 4.RSSI from Local and Host -16db on both side 5.L0 state though we got successful enumeration as per software, host end we got device not recognized pop up once it reaches L0 state. could you please give us resolving for this issue? Thank you
Hello, I was wondering where the installed software packs are stored on the disk? I would like to have a look at the content and the examples, assuming e.g. the HAL pack or the Nucleo board pack contains these examples.
Hi all,I am wondering if CubeMX2 + STM32C562RE are able to support cpp main applications? Thanks in advance
I am Having a 2.2 Kwatt PMSM motor i have created a custom power Board, I am using STM32F303Re nucleo board .I am using 2hall sensors for current feed back . my motor starts but does not reach the final full rpm. my power board schematic is attached herewith the powerboard is working correctly, why does the motor not attain the maximum speed. my motor parameters are correct, also i am not able to vary the speed of the motor while running application .from the oscilloscope waveforms it looks like the when the speed tries to increase the feedback drops and motor goes out of sync momentarily. the oscilloscope waveform frequency drops and the FOC again tries to catch the rotor , this keeps on happening and then after some time the motor goes into speed feedback. i am not using Motorpilot, i am running openloop in MCSDK and calling the start motor function from my code after speed ramp function .
Please suggest abot EDGE AI
We used to define STM32 pinout in STM32CubeMx since it's aware of all the possiblilities of the MCU.Then we manually need to transfer the pnout into Altium Designer Schematic. And to keep those in sync when design changes.So we want to automate that step if possible.Thus the question: How can I Import pinout generated from STM32CubeMx into Altium Designer Schematic.
When I open a VS Code workspace containing a project generated by STM32CubeMX, Windows Defender consistently detects Trojan:Win64/jscramSteal.DA!MTB.Environment: VS Code: 1.127.0 ST extension: 3.9.0 STM32CubeMX: 6.18.0 Windows: 25H2 (defender updated today) Steps to reproduce: Generate a project using STM32CubeMX. Open the generated project as a workspace in VS Code with the ST extension installed. Windows Defender immediately reports Trojan:Win64/jscramSteal.DA!MTB. Could you confirm whether this is a known false positive? If so, is there a recommended workaround, or is there an update available that resolves the issue?
We are trying to build BL2 for STM32MP13 with `TRUSTED_BOARD_BOOT=1` and mbedTLS 3.6.6, using a standard `arm-*-gnueabihf` toolchain. The build fails while compiling the first mbedTLS source file:...In file included from /src/mbedtls-3.6.6/library/aes.c:14:/src/mbedtls-3.6.6/library/common.h:23:10: fatal error: arm_neon.h: No such file or directory 23 | #include <arm_neon.h> |...The failure occurs as follows. The STM32MP1 platform enables:ARM_WITH_NEON := yes This adds `-mcpu=cortex-a7 -mfpu=neon` to the compiler flags. When using a hard-float toolchain such as `arm-linux-gnueabihf`, GCC consequently defines `__ARM_NEON`.Since library/common.h is included by every mbedTLS source file, mbedTLS then tries to include:#if defined(__ARM_NEON)#include <arm_neon.h>However, TF-A builds with -`nostdinc` and uses its own libc headers. As a result, arm_neon.h cannot be found and the build fails.The same configuration builds fine with a soft-float toolchain, where `__ARM_NEON` i
The FDCAN_RxHeaderTypeDef typedef (for the STM32G4) includes:uint32_t IsFilterMatchingFrame; /*!< Specifies whether the accepted frame did not match any Rx filter. Acceptance of non-matching frames may be enabled via HAL_FDCAN_ConfigGlobalFilter(). This parameter takes 0 if the frame matched an Rx filter or 1 if it did not match any Rx filter */From the code, this member is loaded with the ANMF bit of an RX FIFO element. The documentation for this shows that ANMF is an abbreviation for “Accepted non-matching frame” - so the comment is correct (‘1’ → did not match a filter). Which means the member name should be something like ‘IsNotFilterMatchingFrame’.Code completion within CubeIDE does not show the comment:which means it is easy to get the state wrong if the name is interpreted semantically!Probably not a lot that can be d
Hi everyone,I am relatively new to the ST ecosystem, coming primarily from a web development and programmatic software background.I recently built a browser-based daily logic game tailored for my local market called hang 5. The core mechanics rely on a responsive visual letter grid, basic string matching for user inputs, and a specific vowel-penalty state machine.As a hobby project, I want to build a physical, standalone desktop version of this puzzle using an STM32 board and a small capacitive touch TFT display. I've been researching TouchGFX to handle the UI, as it seems more than capable of replicating the clean CSS grid layout I am currently using on the web version.Before I purchase my first board, I have two quick questions: Which STM32 Discovery kit would you recommend for a beginner wanting to utilize TouchGFX for a snappy, interactive 2D touch grid? The game requires a daily dictionary array of about 2,500 words. Is storing this plain text array directly in the internal flas
Dear all,I am writing to request assistance with activating an Ethernet connection between my PC and an STM32N657-DK development kit using NetX Duo.While my TouchGFX design is currently functioning correctly on the board, I am encountering issues when attempting to enable communication. Specifically, after flashing the Ethernet configuration, I am unable to successfully ping between the devices. I have attempted several troubleshooting steps but have not yet been able to resolve the connectivity issue.Please provide guidance or instructions on the proper configuration steps to establish this connection. Thank you so much.
Hello, I am searching for a way to configure the VL53L9CX under linux using I2C.For previous sensors, a platform-independant driver library was available, but I am failing to find such a library here. How could I get a library that runs under linux, or even just a library without HAL so I can implement it myself using ioctl? Cheers,Daniel
ST Community highlights – April to June 2026
Already have an account? Login
No account yet? Create an account
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.