Ask questions and find answers on STM32 microprocessors and dedicated embedded software solutions, such as Yocto SDK, Qt, and OP-TEE.
Most recent activity
I created a layer using bitbake-layers create-layer --priority 7 ../layers/meta-st/meta-my-custo-layer and created mkdir recipes-graphics/wayland/weston-init/ and created folder called files and append file weston-init_%.bbappend and in files i added my weston.ini where i disabled the panel=none and in bb append i added this code FILESEXTRAPATHS:prepend := "${THISDIR}/files:" SRC_URI:append = " file://weston.ini" do_install:append() { install -d ${D}${sysconfdir}/xdg/weston install -m 0644 ${WORKDIR}/weston.ini ${D}${sysconfdir}/xdg/weston/weston.ini }And added the layer using this bitbake-layers add-layer ../layers/meta-st/meta-my-custo-layer/After that i built the image using bitbake st-image-weston but still it is taking the old weston.ini and the panel is visible Can Someone help me on how to do it?
Hello everyone,i'm working on a custom SOC based on ST32MP135 and LAN8710 ethernet phy chip.When the HAL_ETH_Init() code runs and sends the module reset by setting the ETH_DMAMR_SWR bit, the loop exits with the HAL_ETH_ERROR_TIMEOUT.The current interface is set to SYSCFG_ETH1_RMII value and the clock source is set by the following code:HAL_RCCEx_PeriphCLKConfig(&(RCC_PeriphCLKInitTypeDef){ .PeriphClockSelection = RCC_PERIPHCLK_ETH1, .Eth1ClockSelection = RCC_ETH1CLKSOURCE_PLL4 }); The HAL_ETH_MspInit() function sets the GPIOs and enables the clocks: /* Enable GPIOs clocks */ __HAL_RCC_GPIOA_CLK_ENABLE(); __HAL_RCC_GPIOB_CLK_ENABLE(); __HAL_RCC_GPIOC_CLK_ENABLE(); __HAL_RCC_GPIOG_CLK_ENABLE(); /* Ethernet MSP init: REF_CLK -------------> PA11 TXD0 --------------> PG13 TXD1 --------------> PG14 RXD0 --------------> PC4 RXD1 --------------> PC5 TX_EN --------------> PB11 CRS_DV --------------> PC1 MDC -------------->
Running through the instructions to flash an eMMC chip via STM32CubeProgrammer. Board is custom based on STM32MP157F-DK2, boots great off a SD card (SDMMC1). I can communicate and load uboot via both USB and UART... uboot can get basic data off the eMMC with `mmc dev1; mmc info` but uboot fails to enter DFU mode to continue the process, and running dfu complains about the lack of a USB device. I've tried all sorts of RAM, etc dfu examples. From the uboot shell: ``` STM32MP> dfu 0No USB device foundusb_gadget_initialize failed STM32MP> print dfu_alt_infodfu_alt_info=ram 0=uImage ram 0xc2000000 0x2000000;devicetree.dtb ram 0xc4000000 0x100000;uramdisk.image.gz ram 0xc4400000 0x10000000&mmc 1=mmc1_boot1 raw 0x0 0x400000 mmcpart 1;mmc1_boot2 raw 0x0 0x400000 mmcpart 2&virt 0=OTP&virt 1=PMIC STM32MP> usb dev no usb devices available STM32MP> usb resetresetting USB...Bus usb@5800c000: USB OHCI 1.0Bus usb@5800d000: USB EHCI 1.00scanning bus usb@5800
Using board based on stm32mp135f MPU, my goal is to configure a GPIO pin (let's say PD0, already freed from using with CAN) as a simple GPIO Output, active-high, with pull-up.I read following ST Wiki entires:- Overview of GPIO pins,- GPIOLib overview,- How_to_control_a_GPIO_in_userspace, - How_to_control_a_GPIO_in_kernel_space, - GPIO_device_tree_configurationand additionally this FAQ: faq-stm32mp1-how-to-get-initialized-a-generic-gpio-to-control This pin is free, so it can be set with gpioset command. But this holds the configuration only as long as the gpioset process is active in Linux, which is bad. And the configuration is not active when Linux boots.Following this FAQ I have written a dummy device driver:#include <linux/module.h> #include <linux/of_device.h> #include <linux/kernel.h> #include <linux/delay.h> #include <linux/gpio/consumer.h> #include <linux/platform_device.h> static int gpio_init_probe(struct
I'm currently working with an IMX219 camera sensor connected to the STM32MP257-EV1 board. The camera is successfully streaming, and the pipeline appears correctly configured through media-ctl. However, I’m unable to use the dcmipp-isp-ctrl tool at runtime for ISP control.System Info:Board: STM32MP257-EV1Sensor: IMX219ISP Tool: /usr/local/demo/bin/dcmipp-isp-ctrlKernel & Yocto BSP: scarthgapMedia-ctl Output:Camera is streaming properly; format and pipeline are configured as expected.root@stm32mp25-eval-e3-e7-ad:~# media-ctl -d /dev/media2 -pMedia controller API version 6.6.78 Media device information------------------------driver dcmippmodel DCMIPP MDEVserial bus info platform:48030000.dcmipphw revision 0x30driver version 6.6.78 Device topology- entity 1: dcmipp_input (4 pads, 5 links, 0 routes) &nb
Hi,The bootfs firmware compiled from the Yocto environment I am using is a symbolic link. Every time the STM32CubeProgrammer software downloads this firmware, it exits directly.I am certain that the firmware itself is fine. If I directly modify the bootfs firmware to the file pointed to by the symlink, it can be downloaded.I don't know if the behavior of generating symlinks is controlled by ST or Yocto.How can I avoid this problem? Environment info: Ubuntu 24.04.2 LTS on WSL2: Yocto, branch: scarthgap, commit 792d18b4cb2451b00280641403e6eaf37bd6e53f meta-st-stm32mp, tag: openstlinux-6.6-yocto-scarthgap-mpu-v25.06.11 meta-st-openstlinux, tag: openstlinux-6.6-yocto-scarthgap-mpu-v25.06.11 Windows 11: STM32CubeProgrammer v2.20.0 ThanksDunliang
Hi,During the integration of FreeRTOS using STM32CubeMX on the STM32MP157F-DK2 platform, the initial compilation fails. In my experience with other ST microcontrollers, the initial build after adding FreeRTOS generally completes successfully without requiring manual intervention. However, this behavior is not consistent with the STM32MP157F-DK2.The build process reports missing files such as cmsis_os2.h, freertos_mpool.h and freertos_os2.h. Even after manually adding these files, additional compilation errors continue to arise, indicating deeper integration issues.I would appreciate any suggestions or insights into what might be going wrong in this process.Software Version:STM32CubeIDE ==> 1.18.0STM32CubeMX ==> 6.14.0Here are few screenshots suggesting the same.
Hello, I want to boot Linux straight from the FSBL, avoiding SP-Min and U-Boot. Is there any configuration or information on how to do this? Thank you. I got a STM32MP157F-EV1 board, I wouldn't mind using TF-A or U_Boot SPL, I am also looking at U-Boot SPL Falcon mode but finding very little information about it.
Hi Community,I am working with an STM32MP257 interfaced with 16 bit DDR4 of 2 number (16 bit * 2 = 32 bit = 1 word). I would like to clarify whether the swizzle bit register values actually affect the DQ pin bit-swapping in hardware.If they do, I need some guidance on how to determine the correct swizzle bit register values. Are there specific calculations or methods recommended for this ?I have attached my schematic showing the DQ bit swapping with the processor. Any assistance or reference material would be greatly appreciatedThank you in advance!!
Dear ST Developer Support,How to enable MIPI DSI panel on STM32MP257F-EV1?Does it have any user guide for reference?I only found dsi to hdmi board on device tree.I urgently need your help! Thanks.
Hi ST Team,1. I have followed the steps mentioned in link to build the yocto for stm32mp25-eval machine and can successfully flash the eMMC tsv file .2. Started to explore on creating a custom machine configuration file and custom layer in the yocto( openstlinux-6.6-yocto-scarthgap-mpu-v24.11.06 distribution package.),and build the package using the steps mentioned below.CUSTOM LAYER AND MACHINE CREATION STEPS==========================================1) I have created a layer outside meta-st , because I wanted to create a custom layer without disturbing the actual openst yocto layersi) bitbake-layers create-layer layers/<custom_layer_name>ii) bitbake-layers add-layer layers/<custom_layer_name>iii) mkdir conf/machineiv) cp layers/meta-st/meta-st-stm32mp/conf/machine/stm32mp25-eval.conf nameof_custom_machine.confv) DISTRO=openstlinux-weston MACHINE=nameof_custom_machine source layers/meta-st/scripts/envsetup.shvi) Due to layer dependency issue , added the dependent laye
Hello,I have a problem with the configuration of LAN8720A with STM32MP151. My log looks good, but I have a problem when I plug in the wire to the RJ45 port, I get 'Link is down', and vice versa when I plug it out, 'Link is up'.Here is part of my DTS&ethernet0 { pinctrl-names = "default", "sleep"; pinctrl-0 = <&eth1_pins_mx>; pinctrl-1 = <&eth1_sleep_pins_mx>; status = "okay"; /* USER CODE BEGIN ethernet0 */ phy-mode = "rmii"; st,eth_ref_clk_sel; max-speed = <100>; phy-handle = <&phy1>; nvmem-cells = <&ethernet_mac_address>; nvmem-cell-names = "mac-address"; u-boot,dm-pre-reloc; mdio0 { u-boot,dm-pre-reloc; #address-cells = <1>; #size-cells = <0>; compatible = "snps,dwmac-mdio"; phy1: ethernet-phy@0 { u-boot,dm-pre-reloc; reg = <0>; /*compatible = "ethernet-phy-ieee802.3-c22";*/ compatible = "ethernet-phy-id0007.c0f1"; /*compatible = "ethernet-phy-ieee802.3-c45";*/ reset-gpios =
I am trying to debug a basic project on a STM32MP257F-DK board, and am running into an issue. This is the text of the error I get every time I debug: 'Launching <project>_CM33 Debug' has encountered a problem.Error in final launch sequence:Failed pre launch========================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..Building results in no errors. I have verified that there is space and write access for the location it mentions, and I can see that the .elf file for the project gets written there. I have also gone through all the steps here without an issue: https://wiki.st.com/stm32mpu/wiki/STM32MP25_Discovery_kits_-_Starter_Package. I can also ssh into it without a problem. I have tried it on both Windows 11 and Ubuntu 24.04. A couple other people have b
I am trying to configure a USB-C connector on a peripheral device to detect VBUS via GPIO (PH9). I have tried several iterations using the following device tree documentation.- 3.3.1. DT configuration example as high speed OTG, with micro-B connector, Vbus and ID mapped on GPIOs- 3.3.3 DT configuration example as USB2-speed only USB3DR in Peripheral mode, with micro-B(ID left unconnected) or Type-C connectorThe only way I have been able to get USB traffic to occur is by using the role-switch-default-mode attribute, but that comes with the warning about VBUS:Forcing default mode bypasses the vbus detection, which is normally required to raise the pull-up resistor on D+ data line. This makes it non compliant with USB specifications. Recommended method to implement peripheral only role, is to use GPIO to detect Vbus, And I suspect this warning is the reason why USB traffic doesn't come back after coming back out of suspend/low-power mode.Example snippet of a configuration I've t
We actually experience the problem that the address of the SysTick_Handler is read incorrectly from the memory address of the SysTick ISR in the memory. This leads to a memory management error when the system counter reaches 0 and the SysTick interrupt is fired. When reading the memory, there is the correct address for the Systick_Handler displayed, as shown in the following screenshot. However, when the SysTick interrupt is fired, the system crashes as shown in the following screenshot, although the address in the memory does not change.I also found out, that reading out the ISR table as shown in the following screenshot, the address for the SysTick_Handler is not read correctly. But this only happens for the memory cell of the SysTick_Handler.I also tried to write random values to this memory address and it does not work properly as well. Only the lower two bytes are written correctly the upper 2 bytes remain unchanged. This seems to be the common symptomatic: upper 2 byte are n
Hello everbody!I came across this issue while making a custom Yocto Scarthgap BSP image working with kernel version 6.10 for a custom STM32MP157 board, although I have come across the same issue on all 6.x versions between 6.0 and 6.10 and in even more severe format on kernel 6.12 (where SPI NAND and SPi NOR flash read ID bytes all 0's and don't work at all). Here are the major points while updating the Yocto BSP from Kirkstone to Scarthgap:Kernel version jumped from 5.10 to 6.10 (this fork), and device trees were updated per available device trees in the fork, as well as mainline, and per STM32Wiki guidelines for device tree board files. TF-A jumped from 2.4 to 2.12 (this fork) and U-Boot jumped from 2020.10 to 2024.01 (this fork), also device trees and board files for U-Boot updated per available files.BSP still uses the old trusted boot flow (TF-A BL2 -> TF-A minimal secure payload (SP_MIN) as BL32-> U-Boot proper), as there was no adequate support for OP-TEE to
hai everyone,i’m working with the sgtl5000 codec on my stm32mp13-disco board but i get no sound from the headphone jack or line-out. here are my alsa mixer settings after amixer -c 0. root@stm32mp13-disco:~# aplay -l **** List of PLAYBACK Hardware Devices **** card 0: stm32mp1sgtl500 [stm32mp1-sgtl5000], device 0: 4400a004.audio-controller-sgtl5000 sgtl5000-0 [4400a004.audio-controller-sgtl5000 sgtl5000-0] Subdevices: 1/1 Subdevice #0: subdevice #0 Subdevice #0: subdevice #0 root@stm32mp13-disco:~# amixer -c 0 Simple mixer control 'Headphone',0 Capabilities: pvolume pswitch pswitch-joined Playback channels: Front Left - Front Right Limits: Playback 0 - 127 Mono: Front Left: Playback 127 [100%] [12.00dB] [on] Front Right: Playback 127 [100%] [12.00dB] [on] Simple mixer control 'Headphone Mux',0 Capabilities: enum Items: 'DAC' 'LINE_IN' Item0: 'DAC' Simple mixer control 'Headphone Playback ZC',0 Capabilities: pswitch pswitch-joined Playback channels: Mo
Hello everyone,I’m working on configuring the STM32MP1 SAI interface with the SGTL5000 codec using a device tree setup on the STM32MP13-Disco board. I’m running into an error when the SAI driver probes the audio-controller node. The kernel log shows: [ 3.432693] st,stm32-sai-sub 4400a004.audio-controller: Unsupported direction [ 3.438601] st,stm32-sai-sub: probe of 4400a004.audio-controller failed with error -22Device Tree snippets:Pin Control:&pinctrl { sai1_pins_a: sai1-0 { pins { pinmux = <STM32_PINMUX('A', 4, AF12)>, /* SAI1_SCK_A */ <STM32_PINMUX('A', 0, AF6)>, /* SAI1_SD_B */ <STM32_PINMUX('A', 5, AF6)>, /* SAI1_SD_A */ <STM32_PINMUX('F', 11, AF6)>; /* SAI1_FS_A */ slew-rate = <0>; drive-push-pull; bias-disable; }; }; sai1_mclk_pin: sai1-mclk { pins { pinmux = <STM32_PINMUX('D', 13, AF6)>; /* SAI1_MCKA */ slew-rate = <0>; drive-push-pull; bias-disable; }; }; sai1_sleep_pins_a: sai1-sleep-0 { pins { pinmux
After successfully RDP to my boardNow i want to make fake HDMI information, to make it auto output. So i no need to plug in HDMI display, but still can connect through freeRDP from PC.Can someone here ever did this, or have any ideas about how to do it under yocto build. Here is something i try refer this thread of arch linux : https://discuss.kde.org/t/how-to-create-a-virtual-monitor-display/2725/10root@stm32mp1:/sys/class/drm# ls -al drwxr-xr-x 2 root root 0 May 29 18:48 . drwxr-xr-x 63 root root 0 May 29 18:48 .. lrwxrwxrwx 1 root root 0 May 29 18:48 card0 -> ../../devices/platform/soc/5a001000.display-controller/drm/card0 lrwxrwxrwx 1 root root 0 May 29 18:48 card0-HDMI-A-1 -> ../../devices/platform/soc/5a001000.display-controller/drm/card0/card0-HDMI-A-1 lrwxrwxrwx 1 root root 0 May 29 19:13 card1 -> ../../devices/platform/etnaviv/drm/card1 lrwxrwxrwx 1 root root 0 May 29 19:14 renderD128 -> ../../devices/platform/etnaviv/drm/renderD128 -r--r--r-- 1 roo
I am going to rebuild STM32DDRFW-UTIL Firmware to do DDR Test on my custom hardware. I looked at this document: https://github.com/STMicroelectronics/STM32DDRFW-UTIL/blob/main/README.mdin section 1.2.3.3 Customization, it mentions about using STM32CubeMX to generate the DDR Templete (stm32mp2xx-ddr4-2x16Gbits-2x16bits-template.h). Unfortunately, I tried the device tree generation function from STM32CubeMx; there was no DDR templete was generated. Is there any instruction to generate the DDR templete?
Hi everyone, I am trying to reserve a block of RAM using a custom device tree overlay on my STM32MP157F-DK2 running Linux. Here's what I have done so far: This is my custom DTS overlay /dts-v1/; /plugin/; / { compatible = "st,stm32mp157f-dk2", "st,stm32mp157"; fragment@0 { target-path = "/reserved-memory"; __overlay__ { sensor_shm: sensor_shm@c8000000 { compatible = "shared-dma-pool"; reg = <0xc8000000 0x00040000>; /* 256KB */ no-map; status = "okay"; }; }; }; }; I compiled this to get custom-overlay.dtbo and placed it under /boot/overlays/. Then, I edited the /boot/mmc0_extlinux/stm32mp157f-dk2_extlinux.conf configuration file to include the overlay during boot by adding this line inside the appropriate boot label: # Generic Distro Configuration file generated by OpenEmbedded menu title Select the boot mode MENU BACKGROUND /splash_portrait.bmp TIMEOUT 20 DEFAULT OpenSTLinux LABEL OpenSTLinux KERNEL /uImage FDTDIR / INITRD /st-image-resize-initrd
I am working with STM32MP257F1-EV1, I want to ask when creating a project with STM32CubeMx, why my project does not have a file in Secure like other boards? Thank you.
Hi ST community I wanted to ask if I could check if secure boot is on or off. I use STM32MP257F-EV1
I have a custom board based on the STM32mp157f and have been battling getting a custom build to boot on it.It is fairly similar the to DK2 so I've been looking a lot at the stm32mp15xx-dkx.dtsi files as reference. I've been able to get it to get past TF-A and OPTEE but in U-Boot it gets stuck and reboots. STM32_Programmer_CLI just loops between the first and seconds lines in my .tsv file. I assume this is because the board isn't showing up correctly over USB.I attached my full device tree files. Here's the boot logs NOTICE: CPU: STM32MP157FAA Rev.Z NOTICE: Model: STMicroelectronics custom STM32CubeMX board - openstlinux-6.6-yocto-scarthgap-mpu-v25.06.11 ERROR: nvmem node board_id not found INFO: PMIC version = 0x21 NOTICE: Reset reason (0x54): INFO: System reset generated by MPU (MPSYSRST) INFO: FCONF: Reading TB_FW firmware configuration file from: 0x2ffe2000 INFO: FCONF: Reading firmware configuration information for: stm32mp_fuse INFO: FCONF: Reading firmware con
I started a fresh CubeMX project with board selector "STM32MP257F-EV1 board", chose A35 as master, and initialized all peripherals to their defaults.Now, I'm trying to kill PCIE entirely from the board. I removed it from both U-boot and Linux contexts (where it's present by default), and I also reset its corresponding GPIO pins to reset state (PCIE_NRST and PCIe_NWAKE_WKUP2). When I try to put system into low power mode, it does go to sleep as normal:root@stm32mp2-e3-d8-80unknownunknown:~# systemctl suspend root@stm32mp2-e3-d8-80unknownunknown:~# [ 615.683459] PM: suspend entry (deep) [ 615.687390] Filesystems sync: 0.003 seconds [ 615.693558] Freezing user space processes [ 615.695767] Freezing user space processes completed (elapsed 0.002 seconds) [ 615.699929] OOM killer disabled. [ 615.702971] Freezing remaining freezable tasks [ 615.708837] Freezing remaining freezable tasks completed (elapsed 0.001 seconds) [ 615.714911] printk: Suspending console(s) (use no_console_suspend to de
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.