Ask questions and find answers on STM32 microprocessors and dedicated embedded software solutions, such as Yocto SDK, Qt, and OP-TEE.
Most recent activity
Hello STM Team,I have been trying to get the GC2145 to work on the DK but no matter what i do i only get /dev/video0 but never /dev/media0I use Buildroot with the Linux kernel on ST's Github. I have followed this guide here: https://wiki.st.com/stm32mpu/wiki/STM32MP13_V4L2_camera_overview and i have all the Kernel modules needed activated.I know the camera is plugged in properly because the demo from ST works but there's no code or config that goes along that demo for me to find the issue, at least i could not find it.I will attach a little bit of debug info at the bottom if its any helpful:# dmesg | grep -i gc2145 [ 0.058299] /soc/bus@5c007000/i2c@4c006000/stmipi@14: Fixed dependency cycle(s) with /soc/bus@5c007000/i2c@4c006000/gc2145@3c [ 0.058443] /soc/bus@5c007000/i2c@4c006000/gc2145@3c: Fixed dependency cycle(s) with /soc/bus@5c007000/i2c@4c006000/stmipi@14 [ 0.069826] /soc/bus@5c007000/i2c@4c006000/stmipi@14: Fixed dependency cycle(s) with /soc/bus@5c007000/i2c@4c006000/gc2145@3c
Hi,I am going to use PSSI interface to communicate with FPGA (unidirectional interface from FPGA to MPU). Is there some kernel driver example for PSSI available? Thanks!Alexey.
I have been working on porting a custom board using the STM32MP255F-AK.I performed the following tasks:- Used STMCubeMX to configure pins and other settings- Manually added the custom board-specific sections to the DeviceTree- Added the DeviceTree to the Distribution Package's meta-st/meta-stm32mp-addons/mx directory- Created a custom board configuration file and performed the build- Wrote the resulting TF-A and FIP images to an SD card and booted the system- Before performing this work, I verified the operation of STOpenLinux, which was created by modifying the STM32MP257F-DK Device TreeThe TF-A boots, but just before U-Boot starts, a register dump occurs repeatedly and the system stops progressingJudging by the error details, it appears to be a security-related error.Based on the address where the error occurred and the error ID,I tried making various changes to the .ioc and DT files, but the issue persisted.I suspect it’s a simple configuration mistake...What specific areas should I
Hi, I'm getting an error when uploading an image downloaded from the STM32 OpenSTlinux website via STM32Programmer. I'm uploading the STM32MP157F-DK2 version. The OTG cable is connected, and the DIP switches are also in the correct positions. what could be the problem?
I am trying to debug a project I have created in STM32CubeMX and edited in STM32CubeIDE with the STM32MP257F-DK. I am seeing an intermittent error which is mentioned in the troubleshooting grid, but it's not clear to me how to fix it. After it builds with no errors, I get a familiar message:Error in final launch sequence:Failed pre launchFailed pre launchFirmware remoteproc load failed, please:1. make sure that /lib/firmware on your target has space2. make sure that /lib/firmware has write access> you can open a Console View for this..When I check dmesg on the board, I see the lines[ 58.546876] remoteproc remoteproc0: powering up m0[ 58.628708] remoteproc remoteproc0: Booting fw image Project_Name_CM33.elf, size 3097880[ 58.631958] remoteproc remoteproc0: bad phdr da 0x80100000 mem 0x540[ 58.638236] remoteproc remoteproc0: Failed to load program segments: -22[ 58.645251] remoteproc remoteproc0: Boot failed: -22This "bad phdr" line is mentioned in Table 1 of the troublesho
Greetings,We're developing our product on our MYIR MYC-LD25X SoM based on the STM32MP257DAK3 MPU with 8GB eMMC non-volatile storage.As per our design requirements, I am required to enforce the STM32 MCU Equivalent of CRP Level 1 or 2 on our Non-Volatile storage so that once we have flashed the eMMC with our program, It's content could only be read/written by the program flashed onto the eMMC & not by JTAG, SWD, etc methods.Using an eMMC chip that provides these protection might be an option but is it atleast possible to enforce write protection using the MPU itself? For example the MPU could have a small program running which could then verify if the contents of the eMMC were tampered with?Regards,Aditya M.
Dear community, I've used yocto as my workhorse in the past a lot for other processor manufacturers. Now as I'm happily joining the STM world for linux I'm stuck. Maybe it is a too easy to miss question, but which steps I have to take for putting all the needed images to the sd-card? I have followed the rules to go for using the create_sdcard_from_flashlayout.sh script with FlashLayout_sdcard_stm32mp257f-dk-optee.tsv as the parameter. After that I've used dd to flash the .raw to the designated sdcard but the board does not start at all. From the provided sdcard it starts without any issue.Where is my mistake? Regards KS
Hi!I having some issues with Linux at startup. It seems that it disabling the Bucks/LDOs at startup.vddio2: disabling vddio3: disabling vddio4: disabling vddcore: disabling v1v8: disabling v3v3: disablingWhy does this occur?Here is the complete output as attached file. As you can see, I have set up my own outputs for error handling. The device three can be found here:https://github.com/DanielMartensson/Watermelon-Wine-1A/tree/linux-testing/watermelon-wine-os%2Fcubemx%2FCA35%2FDeviceTree%2FfirmwareGood to know:clk_get_index = 143 is USART6.I have activated the RNG for TF-A only. It seems not to wake up. It's the same default configuration as DK.
Hello, I am trying to load a kernel driver (.ko file) for a MIPI camera I would like to use with the STM32MP257F-DK. It's for the imx664, and no driver is present already. I have the source for the driver, and was able to compile it into a .ko file, cross-compiled with the exact same OS as is present on the board and with the SDK set up as required. The vermagic line matches exactly: vermagic: 6.6.78 SMP preempt mod_unload aarch64However, every time I try and load the driver with insmod, with or without -f, I get the error: insmod: ERROR: could not insert module imx664.ko: Invalid module formatI am struggling to find where the incompatibility could be, since I have re-tried it a few times and been careful to set it up as ST's documentation says and also to match what is expected by the board. Is there something I am missing with this?
I have an issue were the Linux kernel is booting, then it just stops printing out messages from USART6.Meanwhile, optee, u-boot and TF-a is printing out messages from USART6. But not Linux after a while.What can have caused this?My processor is: STM32MP257F.
I am trying to build a custom Yocto Scarthgap image for a custom STM32MP153CAA3 board.I have followed the guide at https://wiki.st.com/stm32mpu/index.php/How_to_create_your_own_machine but have several issues.I have created a configuration in CubeMX 6.15.0 and exported the DTB into my project.When I try and build I get an error in u-boot ERROR (phandle_references): /soc/rcc@50000000: Reference to non-existent node or label "clk_hse"(along with references to other clock nodes)I do a `devtool modify u-boot-stm32mp` to get at the source code and follow through the DTB The includes from the u-boot DTB file from CubeMX are:#include "stm32mp153.dtsi" #include "stm32mp15xa.dtsi" #include "stm32mp15xxaa-pinctrl.dtsi" #include "stm32mp15-m4-srm.dtsi" #include "stm32mp15-scmi.dtsi"stm32mp153.dtsi includes stm32mp151.dtsi which references the clocks, which is great.However the last include, stm32mp15-scmi.dtsi then goes and deletes them all!/delete-node/ &clk_h
Hello,coming from OpenSTLinux 4.2 (mickledore) we are in the process of migrating to OpenSTLinux 6.2 (scarthgap).The process of how multiple partitions (bootfs, vendorfs, userfs) are "split out" of the rootfs appears to have changed considerably.After switching all relevant meta layers to the commit/version used in OpenSTLinux 6.2, we effectively get bitbake QA errors for every image recipe (even the ones not being built). The errors appear related to the new bbclass "stsplitpartitions".The release notes of OpenSTLinux 6.2 mention the change as "Add image class to split rootfs image on several partitions: ST SPLIT PARTITIONS", but fail to provide any guideline on how to migrate existing projects to the new partitioning scheme.For testing, I removed all our proprietary layers and only kept the ST layers and standard Bitbake/OpenEmbedded layers.But the errors persist even for this minimal setup when building the standard ST image recipe st-image-core.How does st-split-part
Hi,We are building Linux for STM32MP157D using Buildroot, and we are experiencing an issue where the boot process sometimes does not proceed from BL2 to OP-TEE, and sometimes OP-TEE does not proceed to U-Boot.Occasionally, the kernel does boot successfully.Could this be caused by incorrect DDR3 controller settings? We are using a custom board.If so, would compiling the STM32DDRFW-UTIL source code and using it in engineering mode be the right solution?I have read that for some chips it is possible to perform automatic tuning and receive the optimal configuration as a result.Is this possible in this case? If not, what is the proper method to determine the correct DDR controller settings?If DDR is not the issue, do you have any other suggestions?For testing with DDR-UTIL, I see that there is no development board listed for the 157D series, as the utility supports "STM32MP157C-EV1_DDR_UTILITIES_A7".If we order the "STM32MP157D-EV1", will I be able to run DDR tests on it to compare with our
Hi everybody,For a project, we need to start the STM32MP257F in the M33 flavor, in order to perform some basic functions (GPIO, I2C, UART) in the lowest power mode possible (DDR unpowered, A35 in low power mode — i.e., no remoteproc nor Linux). The goal is to compare MP257 capabilities compared to IMX8 (goal line end of this month)I use Yocto/bitbake to compile for our custom board.Following the StarterApp_M33TD_CM33 example, I've encountered the following difficulties:1) How can I debug the BL2 part?From the post STM32MP257 programming via JTAG - STMicroelectronics Community , I see that JTAG can be used to debug the STM32MP257 using CubeIDE.2) How can this be done?I tried to modify the *.ld file used by StarterApp_M33TD_CM33 to place the code in internal RAM instead of DDR, but it doesn't work. On the UART console I see BL2 logs, but nothing from this app, and since I can't debug, I don't know what's happening.3) How do I modify the project/Device Tree or other elements to execu
I was handed an existing build that creates an SD card image for STM32MP1 and, while the partition allocated for the root filesystem is a gargantuan 9G, it's clear the filesystem created inside it is much smaller -- around 512M -- and I'm already at 98% full. I'm using ST's SD card image creation script, and I have looked for the variable where I can specify a larger root filesystem. I've seen a couple other posts here that provide suggested solutions, but those don't appear to work. Is there a single controlling variable that identifies the desired size of the actual root filesystem (independent of the size of the containing partition)? I'm assuming that value would be fed to a "mke2fs" command somewhere. P.S. I'm using the walnascar release of the meta-st-stm32mp layer.
Hi,I have few custom boards with STM32MP257 mostly running PTP related tasks. Once in a while (once in a few days of continuous run) I have noticed the following error in the dmesg (as it seems UART related - I have 4 UARTs enabled in the DT, while 3 of them have DMA enabled (the console one does not have the DMA enabled), but only one UART (other than console) is being used in the system for RX only):[251158.390476] Unable to handle kernel paging request at virtual address dead000000000108[251158.392934] Mem abort info:[251158.395854] ESR = 0x0000000096000044[251158.399679] EC = 0x25: DABT (current EL), IL = 32 bits[251158.405114] SET = 0, FnV = 0[251158.408235] EA = 0, S1PTW = 0[251158.411457] FSC = 0x04: level 0 translation fault[251158.416489] Data abort info:[251158.419408] ISV = 0, ISS = 0x00000044, ISS2 = 0x00000000[251158.425041] CM = 0, WnR = 1, TnD = 0, TagAccess = 0[251158.430173] GCS = 0, Overlay = 0, DirtyBit = 0, Xs = 0[251158.435607] [dead000000000108] address between us
Hello,I am currently working with the STM32MP157-DK2 platform and would like to integrate OpenPLC into my Yocto-based Linux distribution.I would like to inquire whether STMicroelectronics provides any existing Yocto layer or recipe for OpenPLC. If no official support is available, I would appreciate guidance on the recommended approach to create a custom Yocto recipe for integrating OpenPLC into the build system.Specifically, I am looking for best practices regarding:Creating a custom layer for OpenPLCWriting a BitBake recipe for OpenPLC (including dependencies and build steps)Integrating OpenPLC runtime with the STM32MP1 ecosystemAny potential compatibility considerations with the STM32MP157-DK2Any references, documentation, or examples would be highly helpful.
Hi, I am working on STM32MP257F-EV1 Evaluation Board. I want to use shared memory (like DDR) between M33 and A35 cores. M33 should write data samples collected form peripherals in shared memory array and A35 should read this memory array to process it further. How to achieve this?
Hi everyone,I’m currently working on a camera preview pipeline on the STM32MP257F-DK using the Sony IMX335 (MIPI CSI-2) sensor.One important point is that STM32MP2 uses a media-controller-based camera architecture (DCMIPP + CSI subdevices). Because of this, Qt Multimedia cannot directly detect the MIPI camera as a standard /dev/videoX capture device. For that reason, I am using libcamera as the capture backend. It correctly handles the media graph configuration internally and exposes a usable video stream to GStreamer, which makes camera streaming stable and reliable.The functional pipeline is working. However, the goal is to display the live feed inside a Qt6 QML application with proper GPU acceleration, and this is where I am facing a major performance bottleneck: CPU usage is very high during preview, while the Vivante GPU remains mostly idle.I’d really appreciate guidance from anyone who has implemented a zero-copy GPU camera pipeline on STM32MP2.Platform OverviewBoard:
Hello,I am facing a kernel crash (Oops) on an STM32MP2 platform while using UART with DMA. The issue occurs during runtime power management resume.EnvironmentPlatform: STM32MP2 (custom board)Kernel: 6.6.78 (OpenSTLinux - Yocto Scarthgap)UART driver: stm32_usartDMA: EnabledWorkqueue: pm_runtime_workObservations:Crash happens in DMA virtual channel submissionTriggered during runtime resume (PM)Address dead000000000xxx suggests:Use-after-free, orUninitialized / corrupted DMA descriptorAre there any patches or recommended fixes for this scenario?
I want to do hands on interfacing of all interfaces available with STM32MP157C-DK2.Can you suggest resources on how can I do all interfacings on STM32MP157C-DK2.
Hello,I'm a migrating from openSTLinux ecosystem 5 to 6 on an existing product of ours (with a stm32mp157) and we are really focused on power consumption efficiency. The main difference between our first version and the second is that we first had TF-A + SPMIN and now we are using the OP-TEE OS.Previous :TF-A 2.4 +SPMINU-Boot 2020.10Linux 5.10Bump to :TF-A 2.10OP-TEE 4.0.0U-Boot 2023.10Linux 6.6We achieved to reach almost the same application state as we were with our version 5 except about the power consumption. We set the MPU on standby with suspend to RAM mode and we measured the consumption of the overall board and we found that our system used around 10mW more with version 6. After a lot of research, we found out the culprit which is the OP-TEE DDR driver that doesn't latch the CKOE and never disables the DDRPHYCEN bit. Indeed, in ST version of arm-trusted-firmware 2.4-stm32mp, the CKOE pin is disabled when entering the DDR Self Refresh mode and enabled again when l
Hello. I have a custom stm32mp135f board with emmc1(SDMMC2) and about to launch linux.(Minimized version of 135f-dk, no-sdcard, no-ethernet)I flashed the target with the CubeProgrammer normally.When the kernel loads userfs there says 'root '/dev/disk/by-partuuid/491f6117-415d-4f53-88c9-6e0de54deac6' doesn't exist or does not contain a /dev." and stopped.How do I solve this problem?This is full log capture.Starting kernel ... I/TC: Reserved shared memory is disabled I/TC: Dynamic shared memory is enabled I/TC: Normal World virtualization support is disabled I/TC: Asynchronous notifications are enabled [ 0.000000] Booting Linux on physical CPU 0x0 [ 0.000000] Linux version 6.6.48-gd96ac4cc57f6 (oe-user@oe-host) (arm-ostl-linux-gnueabi-gcc (GCC) 13.3.0, GNU ld (GNU Binutils) 2.42.0.20240716) #1 PREEMPT Fri Jun 20 08:08:22 UTC 2025 [ 0.000000] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c5387d [ 0.000000] CPU: div instructions available: patching division code [ 0.
Dear All,I am currently working with STM32MP257 however it gives me lot of confusions. Looking into the Linker script the memory has been defined as follows:MEMORY{FLASH (xrw) : ORIGIN = 0x80100600, LENGTH = 8387072NS_VECTOR_TBL (xrw) : ORIGIN = 0x80100000, LENGTH = 1536VIRTIO_SHMEM (xrw) : ORIGIN = 0x812f8000, LENGTH = 32KIPC_SHMEM_1 (xrw) : ORIGIN = 0x81200000, LENGTH = 992KRAM (xrw) : ORIGIN = 0x80a00000, LENGTH = 1024K}Where I fail to understand why the RAM has been divided as I had already set them in RISAB. My understanding or assumption was the memory should have been divided into SRAMs, RETRAM, SYSRAM etc as per RISAB configuration.I don't if I have to add them manually again in linker script.Moreover, the device tree (.dtsi) for OpenSTlinux also does not mention any memory divisions as in examples. The file: stm32mp257f-hrt-mc-stm32mp2-mx-resmem.dtsi only has the following code:// SPDX-License-Identifier: (GPL-2.0-or-later OR BSD-3-Clause)/** Copyright (C) 2026, STMicroelectro
Hi everyone, I’m having trouble launching STM32 ISP IQTune ver. 2.0.0 on Windows 11. When I start the application, I get the following error message:“The IQTT service could not be started.” The message also mentions checking that port 7132 is free. To verify this, I ran the following command in the Command Prompt:netstat -ano | findstr 7132 However, it returned no output, so I assume that port 7132 is not in use.Has anyone encountered this issue before? What could be causing this error, and how can I resolve it? Any help would be greatly appreciated. Best Regards,Perorin-Q
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.