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
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
Hello,there are different statements on the minimum operating voltage for LoRa operation.STM32WL5-PWR paper says 1.95V,STM32WLE5 ref manual says 1.8V (section 5.3.3 Transmitter).What's correct?
Hello everyone, I have a NUCLEO-H755ZIQ board and I am trying to use the HRTIM to output a 50Hz pwm signal. I hook the output to an oscilloscope and I see that the pulse has a period of 19.2ms instead of 20ms, meaning that while I have configured the clock for the HRTIM to run at 2MHz (meaning that it needs 40000 ticks to complete a period) it runs at 2.6MHz. Can anyone help me understand what am I doing wrong? I have attached the .ioc file. Thanks in advance!
Hi, I’m working on a custom board based on STM32H757BITx using an external NOR flash Micron MT25TL01GBBB8ESF-0AAT TR (Dual bank with Quad Lines)Current usageAt the moment, the external flash is mainly used to store UI assets (images/fonts/etc.) for a display. I’m not using the full flash capacity, so I’d like to use an unused region to store a small persistent structure (configuration/status/log header).To keep things organized, I created a partitioning scheme using the linker file, reserving separate address ranges:UI assets region (read-only at runtime)User structure region (needs occasional write/erase/program)How it’s configured right nowSince up to now I only needed runtime reads, the flash is configured in Memory-Mapped Mode (DTR, QPI). I enable it with:MT25TL01G_EnableMemoryMappedModeDTR(&hqspi, MT25TL01G_QPI_MODE);This works great for reading UI assets through the mapped address space. ProblemI now need to write into the user structure region, but I unde
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.