Ask questions and find answers on STM32 microprocessors and dedicated embedded software solutions, such as Yocto SDK, Qt, and OP-TEE.
Most recent activity
HiWe have a Custom Board based from MB1272 dev kit.Our system needs to connect the RGMII to a Marvell Switch Chip where that Switch is Managed MDIO from a different MPU.As such we need our STM32MP157 MPU to run in a fixed phy mode and use the RCC to be its 125Mhz clk.Please see simplified drawingI have looked at the https://wiki.st.com/stm32mpu/wiki/Ethernet_device_tree_configuration#RGMII_with_Crystal_on_PHY-2C_no_125Mhz_from_PHYbut still confused as to how to do thisWe have tried a few DT settings but no success, would really appreciate some help on this oneThanks
I would like to add a custom resolution hdmi display (1024x600) to my STM32MP257F-DK board is it possible as the dmesg output is as follows [ 930.525408] [drm:drm_helper_probe_single_connector_modes] [CONNECTOR:32:HDMI-A-1] [ 930.590130] stm32-display 48010000.display-controller: [drm:update_display_info.part.0] [CONNECTOR:32:HDMI-A-1] ELD monitor [ 930.590170] stm32-display 48010000.display-controller: [drm:update_display_info.part.0] [CONNECTOR:32:HDMI-A-1] ELD size 20, SAD count 0 [ 930.590208] stm32-display 48010000.display-controller: [drm:update_display_info.part.0] [CONNECTOR:32:HDMI-A-1] ELD monitor [ 930.590223] stm32-display 48010000.display-controller: [drm:update_display_info.part.0] [CONNECTOR:32:HDMI-A-1] ELD size 20, SAD count 0 [ 930.591397] [drm:drm_mode_debug_printmodeline] Modeline "1024x600": 60 49000 1024 1072 1168 1312 600 603 613 624 0x48 0xa [ 930.591421] [drm:drm_mode_prune_invalid] Not using 1024x600 mode: CLOCK_RANGE [ 930.591433] [drm:drm_mo
I have tried changing the ldo7 of stpmic25A in stm32mp257f-ev1,i have a custom board using stm32mp257fai3 and stpmic25a, where im using LDO7 for ethernet which needs 1v. so i tried experimenting the voltage first in stm32mp257f-ev1 EVK board and i applied below patch to change the voltage from 3.3v to 1v in all the boot components, but im still getting 3.3v at the vdd pin of the sdcard even after changes, why it so? im in middle of a board bring up, so hoping for a quick replyThanks in advance,FYR,tf-a patch:diff --git a/fdts/stm32mp257f-ev1.dts b/fdts/stm32mp257f-ev1.dts index 848ab89925..9771c7c2b6 100644 --- a/fdts/stm32mp257f-ev1.dts +++ b/fdts/stm32mp257f-ev1.dts @@ -144,10 +144,10 @@ regulator-min-microvolt = <2500000>; regulator-max-microvolt = <2500000>; }; - vdd_sdcard: ldo7 { - regulator-name = "vdd_sdcard"; - regulator-min-microvolt = <3300000>; - regulator-max-microvolt = <3300000>; + vdd_eth2: ldo7 { + regulator-na
Hello ST Community, We are developing a product based on STM32MP151 which has 2 (WKUP) GPIOs connected to wake our battery-powered product from sleep or shutdown. Can somebody please let us know how we can detect which GPIO triggered the wakeup in linux userspace? We have to execute specific functions in our C application based on which GPIO triggered wakeup of our STM32MP151 based product. We are using latest openstlinux distribution package and we are open to creating a kernel module if that's required, but need some basic guidance on where to look at. Please note: We also use "rtcwake" to wakeup our product at regular intervals. Our product needs both GPIO and RTC wakeup sources. Best Regards, Ayush Sharma
Hi,I'm trying to understand what the viable options are.my goal is to be on more recent versions of kernel/uboot because there are features upstream that I need.my preference is to be following upstream.Current situation is that i'm using stm32s fork of Linux that is resting on 6.6.x, and equivalent uboot. I see a lot of upstream activity from STM32 FOSS team, with lots of progress in linux 6.17 and 6.18. I also note that at least somethings are not upstream, such as hsem in stm32mp151.dtsi. and easy thing for me to patch on it's own, but i'm looking at the bigger picture and the unknowns of what else might not be upstream that I don't know I need etc.I'm aware that I can sift through the mailing lists and find all the upstream requests where i'm certain i could eventually curate a more complete 6.17/6.18 with respect to the MP1. I also imagine the FOSS team have this already?is there a set of patches for complete MP1 support (as i assume the stm32 linux fork is complete) that can
Hello everyone,I am reaching out to the community regarding an issue my team is experiencing on the STM32MP257F, specifically within a project running on the Cortex-M33 core.ContextWe are attempting to configure SPI2 to transmit data to an external DAC using HPDMA1. While SPI2 transmission works correctly without DMA, integrating HPDMA results in no data movement—DMA does not appear to start, and SPI output remains idle.We initially relied on CubeMX for code generation, but due to several inconsistencies (e.g., peripherals marked as enabled were not properly configured, some register settings missing), we shifted to a manual initialization approach. Unfortunately, the issue persists.Technical RequirementsThe intended configuration is as follows:DMA Mode: Standard transfer (no linked list).Direction: Transmit only; no receive path required.DMA Request Source: HPDMA_REQUEST_TIM3_UPTIM3 period: 50 µsClock: 200 MHz, Period register: 9999Trigger Source: TIM15_TRGOTIM15 period: 250 µsClock:
Hii, I am using STPMIC25A with STM32mp257FAK3 with DDR3L in one custom design and LPDDR4 in second custom design.I am able to change o/p of Buck 4, Buck 6 and LDO 3 as per the requirement by changing the voltage for the same in the device tree, under fdts in Arm Trusted Firmware. I am sharing the node below:&i2c7 {pinctrl-names = "default";pinctrl-0 = <&i2c7_pins_a>;i2c-scl-rising-time-ns = <185>;i2c-scl-falling-time-ns = <20>;clock-frequency = <400000>;status = "okay";#address-cells = <1>;#size-cells = <0>;pmic2: stpmic@33 {compatible = "st,stpmic2";reg = <0x33>;status = "okay";regulators {compatible = "st,stpmic2-regulators";vddcpu: buck1 {regulator-name = "vddcpu";regulator-min-microvolt = <800000>;regulator-max-microvolt = <910000>;regulator-always-on;};vddcore: buck2 {regulator-name = "vddcore";regulator-min-microvolt = <820000>;regulator-max-microvolt = <820000>;regulator-always-on;};vddgpu: buck3 {reg
I want to run OpenSTDroid on the STM32MP2 DK board, I cannot wait for ST to add support so what's the bare minimum I can do to run it on the DK board? I don't mind WiFi or Bluetooth not working, I just want to get Android running first, Then I can work on drivers.As I understand I think I can get away with just modifying the DTS overlay file to match the new hardware.
I have observed that on the STM32MP25 series running OpenSTLinux, the GPU OpenVX packages are correctly built and the *.so files are present in the rootfs. However, after the do_image step, these libraries are removed and are missing in the resulting ext4 image. Consequently, if I flash the image, the OpenVX shared libraries are absent.Here are the debugging details:The GCNANO_PACKAGECONFIG is correctly set to "egl gbm glesv1 glesv2 vg vx cl vulkan", and this has been verified.Other libraries are installed correctly. For example, in the rootfs: root@stm32mp25:/vendor/lib# ls libCLC.so libGLESv2.so.2.0.0 libSPIRV_viv.so libvulkan_VSI.so.1.3.3 libEGL.so.1.5.0 libGLSLC.so libVSC.so libGAL.so libOpenCL_VSI.so.3.0.0 libgbm.so.1.0.0 libGLESv1_CM.so.1.1.0 libOpenVG.so.1.1.0 libgbm_viv.so During the build, the OpenVX libraries are correctly generated in the rootfs. For example, I confirmed that libArchModelSw.so exists at: tmp-glibc/work/stm32mp25x-ostl-linux/s
Hello,I have made a custom STM32MP133D board and I am in the process of building the custom bring up. The bringup uses discrete regulators and not a pmic. I have followed the process of building the device tree for the TF-A and build the TF-A .stm32 binary configured for USB. The .stm32 successfully flashes but the code stucks on ASSERT: drivers/st/regulator/regulator_fixed.c:81 and Exception mode=0x00000016 at: 0x00000000 suggesting a null pointer and an underline issue with my dts.I have made the ddr memory tests for the pcb bring up and successfully passes all the memory tests using the tfa.dtsi ddr configuration.I have also attached the the device tree for the tfa.Can anyone help me with this issue?// SPDX-License-Identifier: (GPL-2.0-or-later OR BSD-3-Clause) /* * Copyright (C) 2025, STMicroelectronics - All Rights Reserved * Author: STM32CubeMX code generation for STMicroelectronics. */ /* For more information on Device Tree configuration, please re
Hi,I was wondering if there's any guidance on the approximate timeline for rebasing OpenSTLinux from kernel 6.6 to kernel 6.12 (autumn 2024) or to kernel 6.15, 6.16, 6.17 or 6.18?I know that this is an enormous amount of work and a very complex task - the STM32MP25 is an extremely advanced chip and there are some significant changes in the kernel between kernel 6.6 and kernel 6.12 LTS and later kernels so it won't be possible to give any definite timescales for this at this stage.It would be great to have a very approximate rough idea of the planned timelines for this since the advances in the kernel between 6.6 and 6.15 LTS make significant improvements in the kernel's ability to handle advanced functionality on the STM32MP25 and on ST image sensors. :)Thank you very much for your help!Will
Hello engineers, I'm using the latest version of CubeMX and creating a project with STM32MP135FAFx, but the highest clock configuration I can select is 650MHz. According to the datasheet, the maximum supported clock is 1GHz. Someone else has raised the same issue before 👉🏻https://community.st.com/t5/stm32-mpus-products-and-hardware/stm32mp135f-clock-config/m-p/720882#M11932. My CubeMX version is 6.16.0.This is my screenshot:This is a screenshot I saw online of someone else configuring their computer to 1GHz, and I'm quite certain that someone else has configured their computer to 1GHz like this before.Could the engineers please help me determine if the problem lies with my usage or with CubeMX itself?Thank you!
Hi,i need to modify the default debug uart serial in device tree of all the boot components (including u-boot, tf-a, optee etc) in stm32mp257f-ev1. I saw that external-dt_%.bb is fetching git://github.com/STMicroelectronics/dt-stm32mp.git and also EXTERNAL_DT is enabled by default, but i want to use my custom dt for the fial build by default instead of stm32mp257f-ev1.dtb.I want to add my custom dt with the custom name as default dtb used in all the component, im hoping for a solution for this to maintain all my dt at one place and modify. i have too many changes to make and i dont want to patch the stm32mp257f-ev1.dts in the kernel source tree. Hoping for a quick reply, thanks in advance.
I'm trying to debug TF-A BL2 on my stm32mp157f-dk2 kit 1. Memory card is setup. Partition 1&2 is copied with TF-A2. I'm expecting that if I connect a debugger, open a debug session with open OCD and gdb , I would be able to connect to the target3. I would set breakpoint at entry point of BL2 and reset the target by debugger.4. After reset I would be able to halt the CPU at entry point and then I go on with debugging.. Is this approach valid?Or it's not possible to debug TF-A with this method? I tried it and I find problems: 1. I can put breakpoint on bl2_main but it never hits.2. I can't reset and get the connection back by using stm32cubeide 3. Can't access the address 0x2ffcxxxx Can someone shed light on this topic?
Hello, I am currently having problems initializing the I2C interfaces on the M33 core of the STM32MP257F-DK Board. The interfaces in question are I2C2 and I2C8, the ones exposed on the 40 pin connector. I have code that toggles LEDs and it works fine when the I2C initialization is commented out but when its not it pauses. I found a community post that seemed like it might have the answer, here is the link for that post: https://community.st.com/t5/escalated-topic/stm32mp257f-persistent-issue-with-i2c8/td-p/854389. But when I click the link I get taken to a page that says the following: Access DeniedYou do not have sufficient privileges for this resource or its parent to perform this action. Click your browser's Back button to continue. Return to my original page
I need som help about constructing a FlashLayout file for CubeProgrammer. I have a template of a FlashLayout for the STM32MP1 processor. #opt Id Name Type Device Offset Binary - 0x01 fsbl-boot Binary none 0x00000000 tf-a-usb.stm32 - 0x03 fip-boot FIP none 0x00000000 fip.bin P 0x04 fsbl1 Binary mmc0 0x00004400 tf-a-sdcard.stm32 P 0x05 fsbl2 Binary mmc0 0x00044400 tf-a-sdcard.stm32 P 0x06 metadata1 FWU_MDATA mmc0 0x00084400 metadata.bin P 0x07 metadata2 FWU_MDATA mmc0 0x000C4400 metadata.bin P 0x08 fip-a FIP mmc0 0x00104400 fip.bin PED 0x09 fip-b FIP mmc0 0x00504400 none PED 0x09 u-boot-env ENV mmc0 0x00904400 none P 0x10 bootfs System mmc0 0x00984400 bootfs.ext4 P 0x11 vendorfs FileSystem mmc0 0x04984400 vendorfs.ext4 P 0x12 rootfs FileSystem mmc0 0x05984400 rootfs.ext4 P 0x13 userfs FileSystem mmc0 0x33984400 userfs.ext4 I have installed the SDK and Sources inside CubeIDE. I have two questions in this thread:1. If I want to flash my eMMC, which is connected
Post edited by ST moderator to be inline with the community rules for the code sharing. In next time please use </> button to paste your code. Please read this post: How to insert source code. Hello, I am trying to set few pins as input states by default right after boot and power on state so I have written 2 nodes:- turn_latch_if { compatible = "gpio"; status = "okay"; turn_dc_dc_conv_off { label = "TURN_DC_DC_CONV_OFF"; gpios = <&gpiog 4 GPIO_ACTIVE_LOW>; /* PG4 */ status = "okay"; }; turn_bat_charge_off { label = "TURN_BAT_CHARGE_OFF"; gpios = <&gpiog 6 GPIO_ACTIVE_LOW>; /* PG6 */ status = "okay"; }; bat_charge_status { label = "BAT_CHARGE_STATUS"; gpios = <&gpiog 7 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>; /* PG7 */ status = "okay"; }; lrelay_status { label = "LRELAY_STATUS"; gpios = <&gpioa 9 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>; /* PA9 */ status = "okay"; }; latching_relay { label = "LATCHING_RELAY"; gpios = <&a
Hi, I’m working on a custom board based on the STM32MP157DAC. U-Boot splash is enabled, psplash is enabled in the kernel, and we have custom display drivers in both U-Boot and Linux. The display initializes in U-Boot and shows the splash, but ~4–5 seconds after the kernel starts the screen goes blank. About 10 seconds later, when the kernel’s display driver probes and re-initializes the panel, psplash appears. We want to eliminate that blank interval—i.e., keep the U-Boot splash visible until the kernel takes over and psplash is shown. Why is this happening, and what can we do to maintain continuous display across the handoff?Note:- In discovery kit we dont see any blank screen with default image.Regards,Adnan
I want to support a couple of display panels/LCDs so I tried modifying the uboot so it loads the desired device tree overlay according to the state of the input pins (digital). However, when I'm testing it, it does not get applied.I already spent a couple of days trying to figure this one out but I did not get any luck so I tried testing this concept with RaspberryPi and it works.Do I just need to set CONFIG_OF_LIBFDT_OVERLAY to the defconfig make this one work?
I am following the "getting started" guide https://wiki.st.com/stm32mpu/wiki/Getting_started/STM32MP1_boards/STM32MP157x-DK2/Develop_on_Arm%C2%AE_Cortex%C2%AE-A7/Modify,_rebuild_and_reload_the_Linux%C2%AE_kernel I am successfully able to compile and transfer the kernel on board but after giving reset command in step 5, board is constantly resetting. 5.3. Reboot the board Starting kernel ...I/TC: Secondary CI/TC: Secondary CPU 1 switching to normal world bootI/TC: Reserved shared memory is disabledI/TC: Dynamic shared memory is enabledI/TC: Normal World virtualization support is disabledI/TC: Asynchronous notifications are disabledNOTICE: CPU: STM32MP157FAC Rev.ZNOTICE: Model: STMicroelectronics STM32MP157F-DK2 Discovery BoardNOTICE: Board: MB1272 Var4.0 Rev.C-03INFO: PMIC version = 0x21NOTICE: Reset reason (0x114):INFO: IWDG1 Reset (rst_iwdg1)INFO: FCONF: Reading TB_FW firmware configuration file from: 0x2ffe2000INFO: FCONF: Reading firmware configuration informatio
Hi everyone,I would like to ask a question regarding the LTDC rotation.In the Device Tree, I set rotation = <90>;Under the st-image-weston environment, the display rotates correctly.However, under the st-image-core environment, the rotation does not work, and the display appears abnormal.Reference article:https://wiki.st.com/stm32mpu/wiki/LTDC_device_tree_configuration
https://wiki.st.com/stm32mpu/wiki/Getting_started/STM32MP1_boards/STM32MP157x-DK2/Develop_on_Arm%C2%AE_Cortex%C2%AE-A7/Create_a_simple_hello-world_application#Deploy_and_execute I am at the last step.Application is building without error and I am successfully able to send it to the board. But when I am executing it on the board, it is giving me below error. root@stm32mp1-e1-a2-8b:/usr/local# su -l weston -c "/usr/local/gtk_hello_world"/usr/local/gtk_hello_world: line 1: ELF: not found/usr/local/gtk_hello_world: line 2: �: not found/usr/local/gtk_hello_world: line 5: syntax error: unterminated quoted string Here is my make output:arm-ostl-linux-gnueabi-gcc -mthumb -mfpu=neon-vfpv4 -mfloat-abi=hard -mcpu=cortex-a7 -D_TIME_BITS=64 -D_FILE_OFFSET_BITS=64 --sysroot=/home/STM32MPU_workspace/STM32MPU-Ecosystem-v6.1.0/Developer-Package/SDK/sysroots/cortexa7t2hf-neon-vfpv4-ostl-linux-gnueabi -o gtk_hello_world gtk_hello_world.c -O2 -pipe -g -feliminate-unused-debug-typ
Hi team, I am able to successfully use pre-build binary from this https://github.com/STMicroelectronics/STM32DDRFW-UTIL.git repo for DDR4 with stm32mp257f-evk . but the generated artifacts with stm32 header by manually compiling in stm32cubeide I am facing the issue, After flashing I am not able to enter any command in the serial monitor window. I followed the build procedure explained in the repo's README.mdAs you can see in attached image only this DDR> prompt line is printed in serial port but not accepting any input from user , when I try to enter some command it reinitialized stdin to the same DDR> prompt line.Thank you in advance...!!hoping for a quick reply.
I'm trying to get a Raspberry Pi DSI display working with a custom board using a STM32MP157F. From the wiki I have the following. &dsi { status = "okay"; ports { port@0 { reg = <0>; dsi_in: endpoint { remote-endpoint = <&ltdc_ep0_out>; }; }; port@1 { reg = <1>; dsi_out: endpoint { remote-endpoint = <&bridge_in>; }; }; }; bridge@0 { compatible = "toshiba,tc358762"; reg = <0>; vddc-supply = <&reg_rpi>; status = "okay"; ports { #address-cells = <1>; #size-cells = <0>; port@0 { reg = <0>; bridge_in: endpoint { remote-endpoint = <&dsi_out>; }; }; port@1 { reg = <1>; bridge_out: endpoint { remote-endpoint = <&panel_in>; }; }; }; }; }; / { panel-rgb { /* Unknown; use a reasonably similar one */ compatible = "powertip,ph800480t013-idf02"; power-supply = <&reg_rpi>; status =
Hello ST Community, We are developing a product based on STM32MP151 which requires detecting what caused the device to wakeup from sleep. With this device, we are setting up 2 wakeup sources - RTC and 2 WKUP GPIOs and we have to execute specific functions in our C application based on which GPIO triggered wakeup (or if it was RTC). We are using latest openstlinux distribution package. Right now, we have no clue as to if it is even possible somehow, some help will be appreciated a lot from ST regarding this... Best Regards,Ayush Sharma
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.