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’m working with an STM32G473QETx.Does the IWDG window value cause the MCU to reset if the watchdog is refreshed too often (i.e., refreshed too early)?if I set the IWDG window value to something smaller (e.g., 1600), will the MCU reset if I refresh the watchdog more frequently than expected?Any clarification on how the IWDG window works on the STM32G4 series would be appreciated.
I work on an STM32F407G-DISC1 pedometer project, in which the program is supposed to use built-in lis3dsh accelerometer via SPI to detect and count steps and display the number of steps on the screen (ILI9341 SPI).I have tested my screen code, and it works properly, so problem lies in how I use accelerometer or detect steps.To detect steps, I read lis3dsh registers with 100HZ frequency by making a call to SPI from a 100HZ timer interrupt. These snippets are interrupt and timer configuration respectively.void HAL_TIM_PeriodElapsedCallback(TIM_HandleTypeDef* htim) { if (htim->Instance == TIM2) { if ((draw_ready == 1) && (accelerometer_ready == 1)) { accelerometer_read_all_axes_dma(xyz_data, &hspi1); } } //else if (htim->Instance == TIM3) { // if (draw_ready == 1) { //steps_count += 1; //update_lcd_flag = 1; // } //} }static void MX_TIM2_Init(void) { /* USER CODE BEGIN TIM2_Init 0 */ /* USER CODE END TIM2_Init 0 */ TIM_ClockConfigTyp
We are making a FCU based on STEVAL-FCU001V2 as a study project. We have manufactured the pcb from the gerber files that ST provided. We have had the components stuffed on the pcb as well. We uploaded the ST firmware provided by ST in our drone from this link: "https://www.st.com/en/embedded-software/stsw-fcu001.html", Specifically The STEVAL-FCU001V1 program using the ST-Link V2. We uploaded this code as this is the only code that was built without any errors in the cubeide. Now we know that the code is uploaded inside the board as when we press reset button, the onboard led turns on. But in the STDrone App, we cannot see the drone. The BLE sensor used is the BlueNRG-M0A. It is working as well as by using multimeter we measured the power consumption between its VDD and GND pin to be 3.3 volts. The define statement in the code is also set to "#define REMOCON_BLE // BLE Remocon App" but still we cannot see the drone in the app.Any help would be appreciated. Thank you for your time.
When using USB CDC to communicate via USART, and interacting with USART data, in code is it recommended to interact with it at the USB side, or to interact with it at the USART side?From what I can tell, both offer both polling and interrupt methods. The USART offers DMA access, but apart from that it's not clear what, if any, tradeoffs there are between USB CDC and USART.
Github link to code Hi everyone, I am currently working on a project with the NUCLEO-L432KC board, trying to interface a generic SPI MicroSD Card module (the standard blue one, powered via 5V). I am stuck with the FatFS error FR_NOT_READY (Error 3) during f_mount. After extensive troubleshooting, I suspect a hardware failure on the MISO pin (PA6), but I would like a sanity check on my diagnosis before I remap the pins. Hardware Setup: Board: NUCLEO-L432KC (STM32L432) SD Module: Generic SPI adapter (Powered via 5V VIN pin) Wiring: CS: PB6 (D5) SCK: PA1 (A1) MOSI: PA7 (A6) MISO: PA6 (A5) <-- The problematic pin Software Configuration: IDE: STM32CubeIDE FatFS: _MAX_SS and _MIN_SS set to 512. SPI1: Master, Prescaler 256 (Low speed for init), CPOL Low, CPHA 1 Edge. The Issue & Diagnostics: The communication fails at the very beginning. When sending CMD0 to wake up the card, the SPI RX buffer always returns 0x00 instead of 0xFF (Idle) or 0x01 (Su
I’m currently having an issue w/ ST Micro P/N M4T11M6 RTC w/ clock drift. Specifically, I’ve performed verification testing on 4 units to this point and I’m seeing over 8 seconds/day (Extrapolating to a value of 4.25 minutes/month) of drift from NIST time. The RTC clock calibration register only allows for a maximum of -2.75 minutes/month which isn’t enough range to allow for the drift observed to be calibrated out. This makes me question my PCA schematic and perhaps layout design. The XTAL used meets the required 32.768 KHz XTAL w/ 12.5 pF load capacitance. I have cut-away the GND plane under the XTAL as well (However, it turns-out the +3.3V plane isn’t cut-away, but is in the middle of the 8 layer stack-up and the RTC and XTAL are on the top layer). What am I potentially doing wrong that would cause such a drift issue?We are in the middle of verification on a high-priority project w/ a tight schedule, so your urgency on this matter is truly appreci
I've downloaded archive "en.STM32CubeExpansion_Crypto_v4.0.1.zip", now I'm trying to install it in STM32CubeMX with "From Local..." feature, but I'm getting error. How can I install the library in CubeMX?Thank you.
Hi Starting my first project testing VSCode integration of ST tools instead of using Eclipse... Just reporting an issue with build analyzer, it is indicating that I have 188% of FLASH used...The compiler output gives the correct information:It seems an issue parsing the map or elf file to operate the tool.
Hello, I'm having trouble getting the CubeMX code generation to work reliably with X-CUBE-AI package.After first adding X-CUBE-AI to the project, and adding one of the models from the ST model zoo, i get this warning:If i click Yes, the code generation takes about 5 minutes and works.Note that in the above picture, X-CUBE-AI ExtMemLoader is selected. This is also where the warning comes from. AFAIK, i don't need X-CUBE-AI ExtMemLoader, just the Application. If i remove the checks from the checkboxes "Artificial Inteligence X-Cube-Ai" and "Device Appliccation", and then reopen MX, the X-CUBE-AI ExtMemLoader will disappear, and just the X-CUBE-AI Application remains. However, after trying to generate code with that setup, the code generation hangs to the below phase of code generation: At that state, the OpenJDK Platform binary uses over 6000 MB of RAM, and about 10% of my CPU but seemingly nothing happens. I waited over the weekend to see if the genera
Hi,I would like to report that STM32CubeIDE is freezing when running on Wayland session.The solution I found is to start Ubuntu in a X session.Best regards,Daniel
Hi Team, We are using the STM32WB55CGU6 for one of our application. Since, the product has internal bluetooth functionality, we are usin for our application. However, the expected range is not meeting with the application that we anticipated. Kindly review the attached circuit and provided your insights. Regards, Abinaya.M
It is very inconvenient to have regenerated C files in C++ project.Problem is not main.c only, *_it.c as well. In C++ project one have to call methods of class from interrupt handlers.It is not possible to make directly from *_it.c. Indirect call chain is lost of time.I renamed main.c to main.cpp in C++ project, made call from main.cpp to method of class. All is OK.Flashed microcontroller with main.cpp, all is working.ST done great work to support C++. And made it useles by generating new code to C files. Why not to generate code in C++ project to CPP files?
Hi,I have some CubeMX-generated code which works properly. Originally it was created to run from default address 0x08000000.Now I have a bootloader at address 0x08000000 which is responsible for handling updates and other stuff and then jumps into the target-code, so I moved that code via linker script to 0x08020000. This also works fine, the code works as desired.In a next step I decided to have some additional information stored in flash prior to the CubeMX generated code to make it easier for the bootloader to manage firmware versions, so I shifted the code by additional 128 bytes and now have the following section in my linker script:MEMORY { FLASH_BOOT (rx) : ORIGIN = 0x08000000, LENGTH = 128K FLASH (rx) : ORIGIN = 0x08020080, LENGTH = 1024K - 128K - 128 EEPROM_EMUL (xrw) : ORIGIN = 0x080E0000, LENGTH = 128K DTCMRAM (xrw) : ORIGIN = 0x20000000, LENGTH = 128K RAM_D1_DMA (xrw) : ORIGIN = 0x24000000, LENGTH = 64K RAM_D1 (xrw) : ORIGIN = 0x24010000, LENGTH = 320K - LEN
Would writing to the crossbar registers (SETx1R, RSTx1R, SETx2R, RSTx2R of all 6 timers) on every PWM cycle (max 200kHz) affect long term reliability? I'm running this in an interrupt routine for a power converter and I'm wondering if doing this would make sense to have a more consistent processor delay. Preload is enabled on all 6 timers and master timer. Register updates on timers 1-6 occur on master timer register update.
On the X-LINUX-QT Starter Package Wiki page it states "The X-LINUX-QT expansion package compatible with ecosystem release v6.1.0 provides only the Distribution package, which can be used to generate the Starter and Developer packages".Has anyone generated the QT starter package in v6.1.0?The image produced by "bitbake st-image-qt package-index" launches with the GTK starter package, not the QT starter package.
Hi everyone,I am trying to deploy a custom ONNX model on the STM32N6 using X-CUBE-AI v10.2.0 (ST Edge AI Core v2.2.0), but the tool crashes immediately during the analysis phase.Setup:Target: STM32N6Tool: X-CUBE-AI 10.2.0Model: GTCRN (from this repository:https://github.com/Xiaobin-Rong/gtcrn)Problem: When I run the analyze command, "stedgeai" fails with an internal Python exception. It seems to be failing on a specific attribute lookup. And here is the output/error log:ST Edge AI Core v2.2.0-20266 2adc00962INTERNAL ERROR: 'range' object has no attribute 'reshape'Has anyone encountered this specific internal error before? It looks like a bug within the converter itself rather than a standard validation error. I would appreciate any guidance on how to fix the model or the export process to avoid this crash.
I am trying to use the gprof editor/viewer within cubeide but it doesn't work, everything just freezes then crashes with no error messages, i also found nothing in the logsI'm trying to use gprof profiling arm-none-eabi-gprof.exe, i have my code instrumented and got a valid gmon.out file, it is small ~15kb, the file is valid as i can process is manually with gprof.exe and get a textual representation of the profiling data.However i don't want text output, i want the included viewer in the cubeide, to see in a nice tree view the data, i have the option to open the gmon.out file with the gprof editor but when i do, it asks for the corresponding elf file then after that everything freezes then crash. What am i doing wrong? Is this expected to work at all? Did anyone use it?Cube ide1.18 stm32f429 discovery project
Hi all,I am trying to get started with a LSM6DSV320X accelerometer, using a STEVAL-MKI251A and a Raspberry Pi 4. I can get raw Accelerometer and Gyroscope data from their dedicated output registers (0x22h to 0x2D), but when I try to use the FIFO, I can't get it to work - I get data with tags that are not enabled, with tags that don't exist, and when there's a tag with Accelerometer data, it's incorrect. I've also tried writing the special functions registers to make sure the special functions are disabled and there's nothing of that batched into the FIFO, just to make sure, but that didn't make any change. Currently I've reduced it to as simple a configuration as possible and removed all other code from the test program, and I'm using the following configuration:Read WHO_AM_I register - get 0x73Configure FIFO:Write 0x01 to CTRL3 (software reset)Write 0x44 to CTRL3 (Enable BDU, auto-increment)Write 0x04 to CTRL1 (Acc high performance mode, 30HZ)Write 0x10 to FIFO_CTRL1 (watermark at 16
Hi everyone,I’m trying to interface an ST25R100 NFC reader with my MCU, and I’m having trouble reading ISO15693 tags. My initialization seems to work, but I never get any response from the tag. I’m hoping someone can spot what I might be missing.This is what my uart debugging spits out:INIT - NFCNFC: Init start (POR -> RESET -> POWER-DOWN -> Ready Mode)ROP_REG_OPERATION = 0x00 (after PD write)ROP_REG_GENERAL = 0x01 (after write)ROP_REG_REGULATOR = 0x08 (after write)NFC IRQ triggered!IRQ: I_osc Oscillator readyROP_REG_OPERATION = 0x0A (after enable)ROP_REG_OPERATION = 0x0A (check mode)Chip is in READY mode (en = 1)STATUS register = 0x00NFC Reader OperationROP_REG_PROTOCOL = 0x85 (after write)ROP_REG_OPERATION = 0x3A (after write)NFC IRQ triggered!IRQ: I_txe End of transmissionNFC IRQ triggered!IRQ: I_nre No-response timer expiredThis is consistent with what the datasheet says on page 22.But now I don't quiet see how I can get it to read data from my NFC-Tagvoid NFC_Init(void) {
Hello,in our application, running on a H533RET6 and with no TZ enabled, we need to close debug ports in production.I preliminarly did some tests using CubeProgrammer: I generated password-based credentials (obk+bin files, which as far as I understand from AN6008 is the only option when not in TZ) and successfully managed to lock the device by moving from PRODUCT_STATE Open (0xED) to Provisioning (0x17), supplying the .obk file and then lock the device (PRODUCT_STATE = 0x72). After verifying that debug ports were closed, I unlocked the device by making a discovery and providing the bin file, with the device returning into Open state. Note that the first 3 32-bit words of my obk file are:0x00, 0x01, 0xfd, 0x0f, 0x60, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00Showing that the address base is the secure OBK base address and that the encryption is on (as it should be in my device, again as far as I understand).So far so good, but know I would like to move at least the encryption process
Problem SummaryWe have developed a three‑phase servo motor drive using STGAP2SICS isolated gate drivers and IPW65R190C7XKSA1 MOSFETs.The inverter works perfectly at low DC input voltage (25–40 V DC).However, when we apply 230 V AC (rectified ~320 V DC) and send control signals to the U, V, W inputs, MOSFETs Q1, Q2, Q9, and Q10 fail immediately, even under no‑load condition.Motor SpecificationsVoltage: 230 VPower: 2000 WRated RPM: 2200Gearbox Ratio: 5.067:1Test ConditionsParameter Low Voltage Test High Voltage Test Input Source25–40 V DC230 V AC (rectified)Output Frequency10 Hz36 HzModulation Index0.50.5Measured Current~2 A7–9 A (unexpected, no load)Dead‑time300 ns300 nsStart MethodInstant StartRamp‑upGate Driver IC UsedSTGAP2SICSNTRSymptomsOnly the U‑phase high‑side and low‑side MOSFETs fail (Q1, Q2).Same issue happens in the W‑phase (Q9, Q10).MOSFETs fail instantly as soon as the PWM is applied at high‑voltage input.No load connected to the motor during testing.AttachmentsFull schemat
My ST32N6 Discovery apparently works very well, however, when I enter the AI demo, the camera screen goes black, and two red LEDs light up on the RGB LEDs next to the connector.If I remove the camera, the DEMO alerts that there is no camera.There is no LED on the camera module to indicate its status.Are there any tests I can do to check if the camera is damaged?Unfortunately, I can no longer return it, as it has been more than 60 days since I received it and only today was I able to take the time to do a more in-depth study of the camera.
I'm trying to enable USART transmission (TX only for now) via DMA, but when I call HAL_UART_Transmit_DMA, the transfer doesn't seem to start at all and HAL_UART_TxCpltCallback is never called.I've configured everything through CubeMX: enabled USART with DMA, enabled FreeRTOS, and enabled interrupts. Without DMA, transmission works fine using HAL_UART_Transmit, but when I switch to HAL_UART_Transmit_DMA, nothing happens.I can't figure out what the problem might be. Does anyone have any suggestions?Here's my main code:/* USER CODE BEGIN Header */ /** ****************************************************************************** * @file : main.c * @brief : Main program body ****************************************************************************** * @attention * * Copyright (c) 2026 STMicroelectronics. * All rights reserved. * * This software is licensed under terms that can be found in the LICENSE file * in the root directory of this software component. * If no LICENSE fi
Dear Sir/Madam,We used the STM32F072C8T6 processor in a project we carried out for the railway sector, and as stated in the link below, we currently need a SIL certificate to be able to submit it to the auditing firm.Link: https://www.st.com/resource/en/product_presentation/stm32_stm8_functional-safety-packages.pdf
With CubeIDE 1.x iterative development is simple1 Start CubeIDE and create new project. It is possible to select C++ project option at project start (without any effect)2 With Device Configuration Tool create initial perifery config. It is possible to open second windows for it and have two separate windows side by side. Generate code.3 Switch to first window and work with generated code4 If need new device, switcn to second window, add new device, config it and generate code.5 In first window regenerated code is created in sync with Configuration Tool. Convenient and logical steps. Great work!How iterative development can be done with CubeIDE 2.0?
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.