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
Hello everyone,I'm working with the STM32L562E-DK board and the STM32Cube_FW_L5_V1.5.0 firmware. I want to integrate my own code (which reads a sensor MPU6050 via I2C) into the STM32CubeL5 TFM (Trusted Firmware-M) application, running it in the Non Secure environment. The base project I'm using is TFM_Appli, which comes in the package, and I've added my source code to the NonSecure section.I created a separate project in STM32CubeMX using the board's I2C1, which utilizes pins PB6 (SCL) and PB7 (SDA). I then generated the code and copied the I2C communication initialization code into the "main.c" file of my "TFM_Appli_NonSecure" project. Specifically:/* This is before "int main (void)"-----------------------*/ I2C_HandleTypeDef hi2c1;/*------------- I'm calling these function from "int main(void)" ------------*/ static void MX_GPIO_Init(void) { /* USER CODE BEGIN MX_GPIO_Init_1 */ /* USER CODE END MX_GPIO_Init_1 */ /* GPIO Ports Clock Enable */ __HAL_RCC_GPIOB_CLK_ENABLE(); __H
Hi everyone,I'm facing a really frustrating issue where my STM32CubeIDE can no longer detect my ST-LINK, and I've narrowed the problem down specifically to stlinkserver.exe failing to launch. This problem appeared completely randomly on my PC.Here are the symptoms and what I have already ruled out:The Problem: When I try to manually execute stlinkserver.exe via PowerShell to see what's wrong, it exits instantly without printing any output, errors, or logs. Even forcing the help menu or debug mode does absolutely nothing:PowerShell PS C:\Program Files (x86)\STMicroelectronics\stlink_server> .\stlinkserver.exe PS C:\Program Files (x86)\STMicroelectronics\stlink_server> .\stlinkserver.exe -d 5 PS C:\Program Files (x86)\STMicroelectronics\stlink_server> .\stlinkserver.exe -h Running Get-Process stlinkserver confirms the process is not running in the background at all. It just dies immediately upon execution.What DOES work (Hardware & Drivers are fine):STM32CubeProgrammer
Hello everyone i am currently working on a project with a NUCLEO-C092RC Board. With this Board i want to send OBD-II Frames to my car and receive reponses with data. I also use a LCD Display via SPI. But now i have a problem. i connected CANH/L with the Board. I also connected 12V and GND from the OBD-II-Port to a buck converter, which steps the voltage down to 7 V for VIN on the Board, which should be within spec. Then i tried to send a frame, but i did not get a response, when the Board was only powered by 12V via buck converter. After that i think i broke my MCU, because then i connected my PC with the Board and switched the power source back from VIN to ST-Link with a jumper. I was able to debug my programm. but when i also disconnected CANL and CANH from the Board or switching the jumper from VIN to ST-Link (i am nor sure anymore), the red LED from STMPS2141STR came on. It only turns off, if i disconnect VDD from 3V3 Volt with pulling JP5. I also measured from what i think
Hello. I've a problem regarding LSE On stm32l562xx mcu. Sometimes it boots, sometimes it doesn't "90 % of time it generates timeout Error" . and it takes too much time to boot up to 4 seconds. I've tried all your sdk initializations, also tried setting lse drive to all 4 modes but nothing changes. Same behaviour and same time. Below is my initialization code and attached how we connect LSE on our board. Regards RCC_OscInitTypeDef RCC_OscInitStruct = {0}; RCC_ClkInitTypeDef RCC_ClkInitStruct = {0}; /** Configure the main internal regulator output voltage */ if (HAL_PWREx_ControlVoltageScaling(PWR_REGULATOR_VOLTAGE_SCALE0) != HAL_OK) { /*Error*/ } /** Configure LSE Drive Capability */ HAL_PWR_EnableBkUpAccess(); __HAL_RCC_LSEDRIVE_CONFIG(RCC_LSEDRIVE_HIGH); /** Initializes the RCC Oscillators according to the specified parameters * in the RCC_OscInitTypeDef structure. */ RCC_OscIn
Hello,My goal is to wakeup the end node to send a single frame then go to shutdown mode, but I'm having some hard time putting the device in shutdown modeI am calling HAL_PWREx_EnterSHUTDOWNMode(); in LoRaWAN_Process() function, after checking on a successful TxDone state.
This thread is split from this old discussion @FBL RCC_USBPHY1REFCLKSOURCE_OTGPHY1 and RCC_USBOTGHS1CLKSOURCE_HSE_DIV2 are missing in generated code I created a simple FSBL application that is jump to the AppliThe Appli is using the same approach (SW solution) like it was implemented inside "Ux_Device_CDC_ACM" example, (it was migrated in to the Appli)Currently, during debug, I am observing the same issue like it was described before (stuck in USB_CoreReset() during checking the "USBx->GRSTCTL & USB_OTG_GRSTCTL_CSRST" )The solution, that you provided, it looks like it does not working anymore by using the latest Cube_FW and generated compilation errors (no defines for the RCC_USBPHY1REFCLKSOURCE_OTGPHY1 and RCC_USBOTGHS1CLKSOURCE_HSE_DIV2).Could you please provide a solution (it would be better to see an example) how to solve this issue base on the latest MXCube and STM32CubeIDE versions. Currently it is : STM32CubeIDE_2.1.1 STM32Cube_FW_N6_V1.3.
Hello, I would like to learn if there is an easy way in STM32CubeMX2 to start a new project with an existing ioc2 file. It seems that the only way I can do this is make a copy of the ioc2 file, do a text find and replace for the name of the project and reopen the project in MX2. In essence, I like to start a project from a working ioc2 configuration and modify it to work on a fork of the project. I don't want to recreate a complex configuration from scratch because I found the hard way that it is easy to make mistakes or to omit something. Thank you, -Gil Please check the follow-up discussion here: Issue with Save As feature in STM32CubeMX2
I want to change /opt/st/stm32cubeide_2.0.0/plugins/com.st.stm32cube.ide.mcu.externaltools.cubeprogrammer.linux64_2.2.300.202508131133/tools/bin/STM32_Programmer_CLIto/opt/st/stm32cubeide_1.4.0/plugins/com.st.stm32cube.ide.mcu.externaltools.cubeprogrammer.linux64_1.4.0.202007081208/tools/bin/STM32_Programmer_CLIbecause my computer OS is too old to run the latest version. How can I do that with Version: 2.0.0?
Hi - when I attempt to download the driver for this device the download never completes; I get a file "Unconfirmednnnn.crdownload" in my download folder. I'm using Edge browser on a Windows 11 Home 64 bit operating system. Using Norton, can't see anything there that would prevent the download. Have successfully downloaded from other sites many times with no issues.Anyone with any insights?Thanks.
I'm designing a USB-C charging circuit for a battery-powered device using the STUSB4531 for PD negotiation alongside a BQ25792 buck-boost battery charger. The BQ25792 handles the full VBUS power path internally (inrush limiting, reverse current protection, OVP, and dead battery support), so I'm trying to understand whether the external P-FET that STUSB4531 normally drives is still required. Specifically: 1. Can the GATE pin be left NC or tied off without affecting CC detection and PD negotiation? Or does the IC require a valid FET load on GATE to operate correctly?2. If the GATE pin must drive something, would it be acceptable to connect GATE to the BQ25792's CE (charge enable) pin instead of a FET gate — effectively using it as a charger enable signal rather than a loadswitch?3. Dead battery / no battery scenario: I need the system to power up from VBUS even when the battery is absent or fully depleted. The BQ25792 already supports dead battery mode on its own. If the external FE
Hello, I want to use an I2C port of a STM32F411 MCU (MCU_A) in target mode to receive data from another MCU (MCU_B), MCU_B code already existing and verified with other receivers.I configured the project with STM32CubeMX, with interrupts enabled to handle communication in interrupt mode.I used MX standard settings to generate CubeIDE project with HAL code.With some effort for setting up the initialization and other code for MCU_A in CubeIDE, communication looks ok from sending MCU_B perspective.Additional check of SDA and SCL signals with DSO looks ok to. But the problem was: No data was transfered to the receive data buffer in MCU_A. After several hours of debugging, I found a suspicious code section in the HAL code (stm32f4xx_hal_i2c.c).In the HAL function static void I2C_Slave_ADDR(I2C_HandleTypeDef *hi2c, uint32_t IT2Flags)which is called in HAL_I2C_EV_IRQHandler ()when adress matches, the direction flag received from MCU_B
Hello Community,I'm trying to interface STM32 P-NUCLEO-WB55 with ADS1293 via SPI communication protocol, But there is a issue I'm unable to read data, to verify the SPI I tried to print "Reg10 = %d\r\n" but it is returning zero as value. I'm attaching the connections diagram and ioc diagram and code file, Can anyone please help me with where I'm getting wrong..Thank you
Hello,I made a small USB Power Delivery trace/monitor tool using the STM32G071B-DISCO.STM32CubeMonitor-UCPD v1.4 does not correctly decode some PDO types defined in USB-PD 3.0 and later (e.g., AVS), which makes analysis difficult.So I put together a tool that can decode and visualize these PDOs more clearly.Project repository:https://github.com/aso/UCPD-MonitorExample output is shown below:[Screenshot:Apple40WSPRAVS.png] If you have a chance to try it, I’d be interested in any feedback or suggestions.
I am trying to troubleshoot and reverse engineer a project no longer in production and for which the developer is no longer reachable. The project is based on the ST MB997C and uses an attached daughter board that serves as an R232 communications interface to external I/O (whatever other functions it may perform are unclear). Are there PCB suppliers that manufacture MB997C compatible PCBs to provided specifications? The subject PCB in this project is silkscreened with the project name "ProBox V1R1", so it is not a generic OTS part. Also, are there resources out there that can reverse engineer the functions of this PCB? Any guidance would be greatly appreciated.
Hello, I am searching for a example project to integrate a camera (e.g OV-Series) via DCMI interface. Can someone recommend an ST-Project or else? Thanks in advance!
Hi,I've P-NUCLEO-6283A1 and downloaded the graphical user interface STSW-IMG301. The quick start guide does not seem to be up to date as I did not find "VD6283_setup.exe" I was supposed to install, just a plain exe in the zip.At the first try GUI complained that it cannot communicate with the board. Next I updated the firmware with the GUI. Now when trying to start I get error complaining about invalid product version. What is going on here? Does the GUI ship with incorrect firmware binary?My board
Hey. I currenlty have a wba55 baord and use it as a ble p2p server. The main idea is to put put the board to stop0/1 mode when disconnected so that it consumes some μ amps and turn it back on when receiving a specific interrupt (eg button, timer etc).I tried a minimal bare-metal example, where i turned on every peripheral (uart, i2c etc) i would use on my actual project to monitor power consumption and before sleep mode i de-inited each and every one of them and all interrupt sources other than the specific EXTI line. The thing is that the device seemed like unable to even enter stop mode. I turned off the rf module through mx and it worked perfectly. So from what i understood, the rf module and be in general produces a ton of interrupts which doesn't let the device to stay in stop mode. Is there any way to disable the rf module/ ble during runtime and re enable it once the device wakes up from the intended interrupt source ?
I'm running into an issue where my STM32G4 gets stuck in an infinite while loop inside R3_2_SwitchOffPWM() during the motor control initialisation sequence, and I wanted to share it here in case others have encountered the same thing.---Hardware & Software- Board: EVSPIN32G4- Code generation tool: ST Motor Control Workbench v6.4.2- No manual edits made to any generated files---What happensDuring startup, MX_MotorControl_Init() is called from main(), which triggers MCboot() → FOC_Clear() → PWMC_SwitchOffPWM() → R3_2_SwitchOffPWM(). Inside that function, execution enters this loop and never exits:/* wait for a new PWM period to flush last HF task */LL_TIM_ClearFlag_UPDATE(TIMx);while (LL_TIM_IsActiveFlag_UPDATE(TIMx) == 0u){}LL_TIM_ClearFlag_UPDATE(TIMx);(Project Files attached)
Hello, Started to dwell info embedded development and got my hands on a NUCLEO-H7S3L8 development board. Firstly wanted to analyze the example code that comes with the development board and modify it a bit. But when started to debug, it seems to stop at I and D cache enable functions, and example LED blinking disappeared. Has anyone encountered something similar and could help to fix this problem? Only change I made to the example code is set-up a PC8 as a PWM to drive a LED switch. Additionally, tried a mass erase and re-flashing, but still nothing, the problems remains the same as I mentioned.
When I click ACCESS TO MCU SELECTOR, the console prints :(I tried uninstalling and reinstalling, but the problem persists)command:jre\bin\java -jar STM32CubeMX.exe -ioutput:2024-10-09 19:44:07,992 [INFO] DbMcus:218 - Found 0 MCUs, 0 are supported2024-10-09 19:44:07,993 [INFO] ApiDb:423 - Load user favorites file C:\Users\PCH/.stm32cubemx/favorites.mcus.txt: 0 item(s)2024-10-09 19:44:07,993 [INFO] ApiDb:427 - User favorites MCUs=[]2024-10-09 19:44:07,993 [INFO] DbMcus:224 - Set 0 / 0 favorites MCUsException in thread "AWT-EventQueue-0" java.lang.NullPointerException: Cannot load from int array because "minMax" is nullat com.st.microxplorer.mcufinder.gui.mcuselector.McuFilterPanel.createControls(McuFilterPanel.java:1476)at com.st.microxplorer.mcufinder.gui.mcuselector.McuFilterPanel.createGUI(McuFilterPanel.java:241)at com.st.microxplorer.mcufinder.gui.selector.FilterPanel.<init>(FilterPanel.java:124)at com.st.microxplorer.mcufinder.gui.mcuselector.McuFilterPanel.<init>
Hi, I made a custom board and made a design in touchgfx. But my screen keeps being black.I want to confirm something because I think I made a mistake in my design. I selected the following display:MDT0130CIS-MULTI:https://www.farnell.com/datasheets/4321575.pdf?_gl=1*vshmrc*_gcl_aw*R0NMLjE3NzUxMjEwOTIuRUFJYUlRb2JDaE1JM1BxQnEtbk9rd01WdHprR0FCMXQ5Z2k1RUFRWUFTQUJFZ0xmZVBEX0J3RQ..*_gcl_au*MTM4MTIxMjM2Mi4xNzc2NDEzMzk5 Now in the datasheet from the ST7789V driver which is on board of the MDT0130CIS-MULTI display it says the following.Can I conclude from this that I cant drive this display with LTDC and Touch GFX?Kind regards, WilliamP.S.I included my .ioc file and main.c file if that could help.
Dear Team, We are planning to design a custom board based on STM32H745IIT6.We would like to request whether STMicroelectronics can provide any official reference design (schematic, PCB files, or recommended evaluation board) specifically for STM32H745IIT6. If there is no dedicated reference design for this exact part, please let us know: Which existing STM32H745/H747 Discovery or Evaluation board can be safely used as the hardware reference for STM32H745IIT6 Any recommended documents or design guidelines to follow for production hardware Kindly share the relevant links or document references. Thank you for your support. Regards,Sathiya
Just a heads-up, this post was written by AI. I used it to document a process of debugging this board, and create a summary for a forum post.Platform: ST25R3911B, RFAL library, ISO 14443AConfig: Single-ended mode, 0.3m 50Ω coaxial cable, remote antenna PCBSupply: 5V on VDD and VIORead range: ~10mm (expected 40-80mm for antenna size)Setup OverviewI'm using an ST25R3911B driving a remote PCB antenna via a 0.3m 50Ω coaxial cable in single-ended mode (RFO1). The antenna is a 2-turn square loop, 70×70mm outer dimension, 1.4mm trace width, 0.7mm spacing, calculated inductance ~735nH.The chip drives two antennas switched alternately — RFO1 to the remote antenna via coax, RFO2 to a local antenna. Both antennas show identical poor range (~10mm), so the problem is not specific to the coax path.Hardware — Reader PCB Matching NetworkDesigned using the ST25R Antenna Matching Tool V3.6.2 with these parameters:Target: ST25R3911BConfig: single-ended-cableAntenna inductance: 701 nHTarget matching Z: 8
I would like to use some of your standard serial page eeprom'shttps://www.st.com/en/memories/standard-serial-page-eeprom.html The problem is that i don't understand how to use your memory loader with these chipshttps://github.com/STMicroelectronics/stm32-mw-extmem-ldr/tree/main The problem is that this library expects the chips to have 4 byte address and just doesn't work with 3 address chips. If you go through and just change all the call's to 3 byte address in the library i can make a STLDR file to talk to the chip. Just trying to see if there's a better way. You have this custom memory section that would help i just don't know how to use it? So i'm hoping for some help there.https://github.com/STMicroelectronics/stm32-mw-extmem-mgr/tree/main/custom
Hello everyone,I am currently trying to create a CMake based C-project for the ST Evaluation board STM32H757I-EVAL, that allows me to render a UI on the MIPI DSI connected display, that comes with it.Due to other work related requirements, I don't want to use TouchGFX, but will later try to add the LVGL framework to create our UI.However, at time of writing I have been unable to configure my project in such a way, that I can manually fill a Framebuffer and have that have any effect on the display. I have created a github repo with a "minimal" example of the configuration efforts so far.A "short" overview:I tried to create said CMake project through the STM32CubeMX code generator, and after a lot of trial, error and misunderstanding what is and isn't generated, I added the ST libraries for the external SDRAM "IS42S32800J" as well as the display driver IC "OTM8009A" and tried to configure the clocks and configurations of the following components:GPIO of the attached display pinsFMC to en
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.