Get ready for the STM32 Summit 2026 | Online, November 3
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
When i try to login to the platform this page opens after a good wait:Error An error occurred while processing your request.Reference #221.dec41302.1782981612.27b98312https://errors.edgesuite.net/221.dec41302.1782981612.27b98312
Hi there,Im trying to get my STEVAL-PTOOL1V1 up and running with my motor, a Sofasco sDBS7025 with the following specs:3-phase BLDC7-12V DC operating voltage1.5A rated current11100 max RPM 4 pole 8 pins:PinFunction1V2W3U4HW5HU6HV75V08COMI have managed to get it operating by using the STEVAL-PTOOL1V1_6S_HL example project in the ST Motor Control SDK V 6.4.1 however I seem to have little control over the speed.I haven't been using the potentiometer feature of the STEVAL-PTOOL1V1 and instead been using the following functions:MC_ProgramSpeedRampMotor1(2000, 1000);MC_StartMotor1();and when wanting to change the speed, changing the 2000 for a different speed and rebuilding the project and programming to the board.However when I input a different speed e.g. 10000 there is no difference to the speed, observed by the current draw of the bench power supply remaining the same. I suspect I have setup the motor parameters incorrectly in the MC Workbench 6-step wizard but am not
The STM32G031G8U6 in a UFQFPN28 package does not have PF0 / PF1 pins for HSE OSC_IN / OSC_OUT. It does however have OSC_IN on PC14. This is intended for an external CMOS oscillator in bypass mode.I’m currently in the schematic design stage. My board clock is a clipped-sine TCXO used for other purposes. In some modes, I’d like to use it to clock the STM32. I’m very constrained on cost, power, and board space. The clipped-sine doesn't meet the voltage level requirements for a bypass-mode clock.Is it possible to configure HSE as if it were a crystal, but instead supply a clipped-sine 0.8 Vpp clock from the TCXO to PC14 OSC_IN? Does the die used in UFQFPN28 even have the HSE oscillator circuit that exists in the 48 pin package?I would set RCC_CR[HSEBYP] = 0 and RCC_CR[HSEON] = 1. I don’t see any register controlling the OSC_IN alternate function on PC14. STM32CubeIDE doesn't allow this configuration, unsurprisingly, but I would configure t
Using the new VSC Integrations, when I add a new .h/.c file to and STM32 project, do I really have to manually update the CMakeLists.txt file too? This seems like a retrograde step. If I just right-click on the SRC or INC folder and add a new file, I get lots of include errors etc, because (I think) CMake is not aware of these files.AI Told me to try out two extensions, but it was either hallucinating, or they are not available for VSC on macOS.They were CMake File Helper and/or C/C++ File Creator.What is the best/suggested way of adding new files to a project?
Hello ST Community,I am using STM32H7B3 + TouchGFX + 7-inch 800×480 TFT with GT911/GT9111 touch controller.In the TouchGFX PC simulator, all buttons and toggle switches work correctly. But after flashing to hardware:TFT display is working properly.Touch is detected.Actual touch point and detected touch point are different.Touch is detected on the same horizontal line, but the vertical coordinate is shifted/wrong.I want to know the correct solution for touch coordinate mapping/calibration. Should this correction be done. Please guide me on the correct method for touch calibration and hardware control/status display in TouchGFX.Thank you.
Hiwe are using IC: STN3NF06L in our design.Please provide Mtbf & Fit Data for the ic.Thank you.
On the STM32C542CC in LQFP48, none of the Port C pins that support I2S MCLK output are available. Despite this, enabling the "Master Clock Output" under "Advanced Features" in the MX2 Peripherals tab is still possible and reports no warnings or errors.
Hi all,I want to design STM32N6 based board and in this board I don’t have any 3.3V supply so what should I do the unused USB power pins? Should I left unconnected or connect them to GND? Thanks and regards
Hello, I hope all is well. I’m also looking for the FCC test report for the STM32WLE5CCU6. I noticed someone else had requested it previously, but the inquiry seemed to be redirected and may not have been followed through. In short, I will need someone from your compliance or technical team to contact me directly via email. We are currently working on the FCC frequency‑hopping requirements, and I’d like to understand how this was handled on your side and hopefully obtain some manufacturer guidance. Thank you in advance.
I attempted to convert a CubeMX project to start using the “Generate peripheral initialization as a pair of ‘.c/.h’ files per peripheral” option and CubeMX left three peripheral handle declarations in main.c which conflict with the declarations in their individual files: handle_LPDMA1_Channel0, hlptim1 and hlptim3. Many other peripheral handles were correctly removed from main.c, including other LPDMA channel handles.Can anyone help me figure out what’s going wrong and how to fix it? I suspect that this may be because they are used in our LPBAM setup.
I’m Trying to Implement SVPWM based on the I’m attached research paper where i had completed till the dwell time calculation But i could n’t identify the switching sequence and switching arrangement If anyone know about this kindly help me with your expertise.
I encountered a problem where I used ST's open-source FOC algorithm. Currently, my motor often shakes at a speed of 22k. Upon inspection, I found that the Hall output of the motor has some fluctuations, which is a problem with the motor itself. However, the important issue is that when the timer input captures the Hall sensor signal, there is a problem where both the capture value of 65535 and the overflow flag exist. As a result, the calculated capture value becomes 65535+65536, causing shaking. I think it's because when 65535 was captured, the program didn't process the callback function in a timely manner and only processed the timer callback function after overflowing. What if we solve this problem?As shown in the blue curve in the figure below, when a peak appears, it is an abnormal moment:
SummaryOn an STM32WB5MMG module (STEVAL-PROTEUS1), with BLE advertising active and theapplication configured for Stop2 low-power operation, the device reaches theexpected Stop2 sleep current (p50 ~ 7 uA) ONLY after a debugger-mediated reset(STM32CubeProgrammer: -c port=SWD mode=UR -rst).After a cold power-on reset (POR) - removing and reapplying the supply, the realdeployment scenario - it draws a constant ~9 mA and never enters Stop2, eventhough it otherwise runs completely normally (RTC cycle runs, BLE advertisingworks, application data updates). This is 100% reproducible and deterministic.Deployment-critical: in the field the customer inserts the battery (= POR) -> 9 mA-> a 10 Ah cell lasts ~47 days instead of the intended multi-year lifetime.Hardware / Software- MCU/Module: STM32WB5MMG (STM32WB55 die) on STEVAL-PROTEUS1.- Wireless stack: BLE_Stack_full V1.24.0.3 + FUS v2.2.0. First seen on V1.19.0 / FUS v1.2.0 and UNCHANGED after upgrading to V1.24.0 (the stack update did no
Hi Team, We are trying to send camera feed through the TP2860 video decoder to STM32N6570_DK. We have confirmed the configuration of the TP2860 and receiving data at the TP2860 MIPI output, but not receiving packets at the STM32n6570 CSI end. We are positive the CSI configuration is done correctly, but please let us know if we are missing anything sharing the function and also attaching the log :void stm32n6_mipi_host_enable(void){ /* ========================================================================= * STEP 1: FORCE MIPI CORE INTO SHUTDOWN / DISABLED STATE * ========================================================================= * Clear PEN (Bit 1) in CSI_PRCR and clear power bits in CSI_PCR. * This releases the write-protection lock on the configuration registers. */ CSI_PRCR &= ~(1 << 1); CSI_PCR &= ~0x0000000F; k_msleep(5); // Wait for internal finite state machines to safely idle /* =========================================
Hello,I am working on an STM32C011 (Nucleo-like custom board) and trying to use I2C1 with the following pinout:PB7 → I2C1_SCL (AF14)PC14 → I2C1_SDA (AF14)According to the reference manual / datasheet, PC14 can be mapped as I2C1_SDA (AF14).I connected an SHTC3 humidity/temperature sensor (address 0x70) to these lines with 4.7k pull-ups.Problem:My I²C scanner code never detects the SHTC3 (always NACK at 0x70).If I configure I²C on PB6/PB7 instead, the scanner works.GPIO PC14 seems not to toggle as SDA when I try transactions.I suspect this might be related to PC14 also being used for LSE (OSC32_IN). In CubeMX, I set LSE = Disabled under RCC.But I still wonder if PC14 can reliably be used for I²C, or if there are silicon limitations when LSE is involved.Questions:Is PC14 fully usable as I²C SDA on STM32C0 when LSE is disabled?Has anyone successfully used I²C1 on PB7 (SCL) + PC14 (SDA)?Could this be a hardware limitation / errata, or am I missing a CubeMX clock configuration detail?Any fee
Hello,I am working on a NUCLEO-H503RB board and communicating with two LSM6DSO devices over an I3C bus operating in I2C Mixed Mode.When the bus is running in Open-Drain mode, I observe the following waveform characteristics on the SDA line:When SCL transitions from High to Low, SDA exhibits a momentary voltage drop. During the SDA pull-up (charging) phase, the signal does not follow a smooth RC charging curve. Instead, it initially rises slowly and then suddenly jumps to a higher voltage level (VH).SDA waveform during I3C communicationSDA waveform during I2C communication (Open-Drain mode)Could anyone help explain the possible causes of these behaviors? Are they related to I3C/I2C bus characteristics, device handoff timing, pull-up configuration, parasitic capacitance, or measurement effects?Any suggestions or insights would be greatly appreciated.Thank you.Best regards,
I updated to the newest STM32CubeMx 6.18.0Now i miss X-CUBE-AZRTOS-H5 support.I can see only an empty display after loading my .ioc file.
Pins 43 (PB1) and 44 (PB0) on the STM32WB5MMG Datasheet are listed at NC (no connection). In CubeMx these pins are available to use. I would like to confirm which is correct for the Bluetooth module LGA86 STM32WB5MMG.
I have setup STM32 VScode extension in my PC, which is awesome. But I found I can not use a Jlink or daplink to flash or debug my board, only STlink is supported. How can I debug with other debuggers in VScode? Any help will be appreciated.
Hello team,i thing there is a bug in ST AIoT Craft when loading multiple .csv dataset files.With figures, you can see respectively :2 .csv files 3 colums for accelero and 3 colums for gyro 1 for time_step and the last one for tag with 6 different valuesThe 1st and 2nd images show clearly the 2 files correctly tagged.The 3rd image show the Summary and if you zoom in section Labels, tou can note that only 1 file (and not 2) is concerned with tag.Import is done in image 4 with the 2 .csv files.And last image indicates that the last datalog is completely “unlabeled”. This dataset correspond to the missing “Labels Tag” file, that is “xxx10-40-10xx”So i concluded that the “tag” process for multiple .csv file is “not clear”.Error is already visible in image 3.Thanks for your feedback.
I’m about to start a new embedded project that is probably outside my skill set (as usual) and I’m hoping to get some recommendations on what STM MCU might have a reasonable learning curve to build up the MCU part of this system. It’s another autonomous oceanographic observing platform like I’ve built in the past with a lot of help from people on this forum. That system used a STM32H7 MCU. For this case, I need a few more serial ports and an ethernet connection to a new sensor. And I’ll need a file system and lots of Flash and SRAM. Low power matters, but the MCU is pretty low on the power consumption histogram.The STM32H5 looks like a good choice since it has lots of serial ports and the Nucleo STM32H563 has an Ethernet phy and a USB-C connector that theoretically could support a USB Flash driver.. Here are a few specific questionsQ0 Is there a better MCU choice with an easier learning curve that might meet my requirements?Q1. It looks like the H5 and STMCubeMX/IDE now use FileX which
I have written a small code which inits a GPIO in push pull config and a UART using cubemx then goes into stop mode. I have implemented same example in STM32L073 nucleo and STM32WL55 nucelo. In L073 I am able to see the current goes to 2-3uA. But in WL55 it is consuming 300uA or so. As per datasheet both will disable clocks to peripherals while going into stop mode. But in case of WL55 I am able to 1.5uA only when I denit all the gpios and disable clocks. Is it expected behavior or am I missing something. I have added my code below for reference, thanks in advance. int main(void){/* USER CODE BEGIN 1 *//* USER CODE END 1 *//* MCU Configuration--------------------------------------------------------*//* Reset of all peripherals, Initializes the Flash interface and the Systick. */HAL_Init();/* USER CODE BEGIN Init *//* USER CODE END Init *//* Configure the system clock */SystemClock_Config();/* USER CODE BEGIN SysInit *//* USER CODE END SysInit *//* Initialize all configured peripherals
STM32CubeMX v6.17.0While configuring an STM32CubeMX project for an STM32H753 Ethernet project on a NUCLEO-H753ZI, I observed some strange behavior.After enabling memory management, including the checkboxes- Apply Application Regions Settings to Peripherals and- Apply Application Regions Settings to Linker Files,I would have expected the memory regions to be included in the linker description file STM32H753XX_FLASH.ld.Unfortunately, this was not the case.However, since the STM32H753XX_FLASH.ld file had obviously been regenerated, I did not suspect the file handling itself.After several hours of searching, I discovered that if the .ld file is deleted before regeneration, different content is generated.Steps to reproduce this:Open STM32CubeMXFile / New Project… / Board SelectorSelect NUCLEO-H753ZIIn „Board Project Options“ dialog, click button „Unselect All“Set Project Manager / Project / Toolchain / IDE to CMakeand Default Compiler/Linker to ST Arm ClangFile / Save ProjectGenerate
I am working with a custom board populated with an STM32H7S7L8H6H and a hyperbus flash S26HS01GTGABHB030 connected on XSPI1.My intent is to execute in place on the hyperbus flash but have not been successful thus far.Interestingly I cannot select CONFIG_8LINES for the Memory 1 configuration in CubeMX.
There is a critical code-generation template bug in STM32CubeMX (reproduced in 6.16.1 with STM32CubeH7) when generating USB Device middleware configurations. In the generated usbd_desc.c file, the Get_SerialNum() function is generated with uninitialized local variables that are then used in arithmetic operations.This results in Undefined Behavior (UB). It compiles and works under -O0 because the uninitialized stack happens to evaluate to zero, but it causes an immediate, silent HardFault/BusFault during USB enumeration on Windows when compiled with -O1 or -O2 optimizationsoriginal generated code static void Get_SerialNum(void){ uint32_t deviceserial0; // Uninitialized uint32_t deviceserial1; // Uninitialized uint32_t deviceserial2; // Uninitialized // ST's generator template completely misses the lines assigning the registers! deviceserial0 += deviceserial2; // Undefined Behavior: addition on uninitialized variables if (deviceserial0 != 0) { IntToUnicode(deviceserial0, &U
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.