Ask questions and find answers on STM32 microprocessors and dedicated embedded software solutions, such as Yocto SDK, Qt, and OP-TEE.
Most recent activity
how to setup qt creater application for STM32MP157f-Dk2 board , and where is the location of the toolchain location and how to setup qt version .
Hi,I have seen this post: https://community.st.com/t5/stm32-mpus-embedded-software-and/how-to-clear-the-default-st-image-userfs-remove-examples-and/m-p/735819#M4265 and added to my st-image-userfs.bbappend:PACKAGE_INSTALL:remove = "m4projects-stm32mp1-userfs"PACKAGE_INSTALL:remove = "linux-examples-stm32mp1-userfs"PACKAGE_INSTALL:remove = "packagegroup-st-demo"My machine has:M4_BOARDS = ""M4COPRO_LIST = "m4fwcoredump"I want to keep the "coredump" features. I have noticed though, that now the userfs gets populated with bin, etc,var folders - which were not present before. I can't track it down, how to get rid of those or how they are cleaned by m4project recipes. Any hint?
I'm trying to somehow pass information about tampering event from OP-TEE to Linux userspace by means of Tamper Backup registers but I seem to have a problem.I added this to kernel dts:&nvram { my_free_backup_register: tamp-bkp@c4 { reg = <0xC4 0x4>; }; }; &usart2 { // Other stuff before nvmem nvmem-cells = <&my_free_backup_register>; nvmem-cell-names = "my_backup_register"; };I tried to write to that register from OP-TEE function stm32_tamp_etamper_action using io_write32 function. Then I'm trying to read that register from OP-TEE immediately after the write and looks like the register has not been written to.Also, in Linux userspace in /sys/bus/nvmem/devices/ I can see stm32-tamp-nvram0 but when I hexdump its nvmem file it's just a bunch of zeroes. I can't seem to find that nvmem-cells in usart2 either.
I have followed the wiki to create my encryption keys;https://wiki.st.com/stm32mpu/wiki/How_to_perform_Secure_Boot_from_Distribution_Package#Creating_encryption_key_for_STM32MP13--STM32MP21--STM32MP23_and_STM32MP25 Which suggest creating two keys for TF-A and FIP encryption. But then in the same page it suggest we only load the encryption key for TF-A to OTP registers (i can not fit the FIP key into OTP anyways) After i build my image with the following config; SIGN_KEY = "../keys/privateKey00.pem" SIGN_KEY_stm32mp13 = "../keys/privateKey00.pem" EXTERNAL_KEY_CONF = "1" SIGN_KEY_PASS = "pass pass pass pass pass pass pass pass" SIGN_ENABLE = "1" SIGN_TOOL = "/bin/STM32_SigningTool_CLI" ENCRYPT_ENABLE = "1" ENCRYPT_FSBL_KEY = "../keys/stm32mp_encryption_key.bin" ENCRYPT_FSBL_KEY_stm32mp13 = "../keys/stm32mp_encryption_key.bin" ENCRYPT_FIP_KEY = "../keys/stm32mp_encryption_key_256bits.bin" ENCRYPT_FIP_KEY_stm32mp13 = "../keys/stm32mp_encryption_key_256bits.b
If this posting violates STM's rules for the forum, please delete it.We are a Midwest US company designing an IoT product containing STM32MP157 and a 5 inch, 1-megapixel LCD touch LCD panel. The LCD panel's video controller is an Ilitek device known as ILI9881C and is mentioned frequently in this forum by others.Our end product (physically about the size of your hand) is functioning mostly at the PCB level, accepting code, and generally behaving according to its design. However, it is not yet working with Winstar's LCD panel.This posting is a plea for paid software support help writing two-lane MIPI drivers to support the LCD. The end goal would be to make mostly alphanumeric displays with only minor graphics and ease our software team into completing their design. We do not seek smart phone-like LCD behavior, mostly static displays with capacitive touch.We've confirmed with Winstar that our version of their LCD panel is compatible with 2-lane MIPI.Please PM me if int
Hi,We have a Linux kernel based on ST Linux kernel at https://github.com/STMicroelectronics/linux/commits/v5.15-stm32mp but based on an older version of it based on v5.15.118. Wondering if there is any plan for ST to merge the latest stable kernel version v5.15.189 to the above git repo? Or have anyone attempted to merge https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v5.15.189 to the above branch? I see lot of merge conflicts and wondering if there is a version that I can use for our work.My board is based on STM32MP133c MPU.Thanks in advance!Murali Karicheri
Hello, I need to do FFT transforms of long signal traces, so using CMSIS DSP doesn't look possible because of the 4096 points limit. I tried to use fftw3 library (3.3.10). I built it using OpenSTLinux SDK from the Github source without problem. Here is configuration I used: configure --host=arm-ostl-linux-gnueabi --enable-neon --enable-single --with-slow-timerLibrary libfftw3f.a was built successfully and test app was also successfully linked with it. Here is relevant part of the test app code:int fft_points = 131072;fftwf_plan pr2c, pc2r;fftwf_complex* fft_cbuf = 0;float* fft_buf = 0;fft_cbuf = (fftwf_complex *)fftwf_malloc(sizeof(fftwf_complex)*(fft_pts/2 + 1));memset(fft_cbuf, 0, sizeof(fftwf_complex)*(fft_pts/2 + 1));fft_buf = (float *)fftwf_malloc((fft_pts + 2) * sizeof(float)); memset(fft_buf, 0, (fft_pts + 2) * sizeof(float));printf("allocated buffers: %p, %p\n", fft_cbuf, fft_buf);pr2c = fftwf_plan_dft_r2c_1d(fft_pts, fft_buf, fft_cbuf, FFTW_ESTIMATE);&nbs
Edited console output - see here for future referenceHello,I encounter a problem with my LCD from Winstar model WF50DTYA3MNG10.I have a custom board based on STM32MP157 with a display connected to Mipi 2 lanes.On previous Openstlinux(kirkstone) without optee, the driver and display working well.After switching to the latest Openstlinux I discover a problem with "ltdc fifo underrun" root@telemach-somunknown:~# [ 96.350190] weston[1406]: memfd_create() called without MFD_EXEC or MFD_NOEXEC_SEAL set[ 111.422211] [drm] ltdc fifo underrun: please verify display mode[ 130.546427] [drm] ltdc fifo underrun: please verify display mode[ 190.539247] [drm] ltdc fifo underrun: please verify display mode[ 250.549608] [drm] ltdc fifo underrun: please verify display mode[ 310.542950] [drm] ltdc fifo underrun: please verify display mode[ 370.537518] [drm] ltdc fifo underrun: please verify display mode[ 430.556994] [drm] ltdc fifo underrun: please verify display modeInitialization seems t
Hello ST Community,I am working with an STM32MP2-based board and would like to load an initramfs image into DDR RAM using dfu-util and then boot it without having to manually enter U-Boot commands. I have tried to follow the documentation, specifically:How to load U-Boot with dfu-utilHow to execute a U-Boot script via DFUHere are my observations:When using a flashlayout, after transferring the images, U-Boot does not boot the kernel automatically — it stops at the U-Boot prompt and waits for manual commands.When using a U-Boot script (as described in the documentation), I am able to transfer artifacts for ramfs in DFU mode, but when I attempt to load the kernel (alt=0), the process hangs: and after about 30 seconds to 1 minute the board resets itself (as if by a hard reset).I have tried both compressed (Image.gz) and uncompressed (Image) kernel images, with the same result. My questions:Is it possible to load and boot a Linux kernel with initramfs in RAM using dfu-util, so th
Hi,I am in the process of migrating my application to OpenSTLinux 6.1 (Scarthgap) and we are targeting a boot time of ≤10 seconds. while working on this, I observed that the OP-TEE layer takes some extra time during secondary CPU initialization. As OP-TEE is new, I would like have some help in understanding the root cause of this delay and whether any optimization is possible in this phase.I am using STM32MP157A Hardware. Below reference image is attached.
I generated a project from a ioc file that I created. I'm getting this assert error in
Hello STMicroelectronics Community: I want to copy the entire emmc (including the boot partition), so I used the command ums 0 mmc 1. At the same time, make sure to keep the USB cable connected to an Ubuntu computer, but after entering the command, I can't find the relevant mount files in the Ubuntu host. What is the reason? I referred to the following wiki:https://wiki.stmicroelectronics.cn/stm32mpu/wiki/How_to_use_USB_mass_storage_in_U-Boot And can this method really export all partitions? Including the boot partition. Thanks,Ivy7
Hello ST Community,I'm using the STM32MP257F-DK board with the Waveshare IMX219 camera (connected via MIPI CSI2).I've configured the device tree for the sensor, and the camera appears correctly under /dev/v4l-subdev7. I’m trying to capture raw video using: v4l2-ctl -d /dev/video0 --stream-mmap --stream-count=10 --stream-to=out.rawBut I get the following error: [ dcmipp 48030000.dcmipp: failed to start streaming (-22) ] VIDIOC_STREAMON returned -1 (Invalid argument)What’s Working:Device tree loads fineIMX219 is detectedSensor controls are visible via v4l2-ctl -LWhat’s Not Working:Streaming fails with error -22 from DCMIPPWhat I Need Help With:What could cause this Invalid argument during streaming?Is there any resolution/format restriction for DCMIPP?Any working example for IMX219 + STM32MP25 + DCMIPP would help a lotThanks in advance!
Greetings everyone,I’m currently working on inter-core communication between the Cortex-M4 and Cortex-A7 cores using OpenAMP and RPMsg. My goal is to send dummy sensor data from the M4 to the A7 periodically. I am using STM32MP157F-DK2.However, I’ve noticed an issue:The data from the M4 only gets flushed to the A7 after the A7 writes something first on the virtual channel.In other words, the M4 seems to need some kind of trigger from the A7 before its messages are actually delivered.What I want to achieve is:Send data from the M4 to the A7 automatically, without any prior message or intimation from the A7.Has anyone faced a similar situation or knows how to configure OpenAMP/RPMsg so the M4 can push data independently? Any guidance or code example would be highly appreciated.I am attaching my main.c below.int main(void) { /* Reset of all peripherals, Initializes the Flash interface and the Systick. */ HAL_Init(); /* USER CODE BEGIN Init */ srand(HAL_GetTick()); MX_IPCC_Init()
Good Evening. I am trying to connect an AI accelerator (ORCA M.2) to STM32MP257F-EV1. I cross compiled orca's driver with the ST developer package and i added it to the device. I also put the accelerator throught a pcie to m.2 adaptor so i can connect it to the device. I get the following situation: sudo lsmod | grep cda cdapci 36864 0 degirum sys-info Devices: N2X/CPU: - '@Index': 0 TFLITE/CPU: - '@Index': 0 - '@Index': 1 Software Version: 0.17.3 dgoinfo all dgoinfo: error: [ERROR]Device not found No device found dg_orca_dev.h: 63 [LCL::OrcaDevices::OrcaDevices] sudo lspci | grep accelerators 01:00.0 Processing accelerators: DeGirum Corp. AI Accelerator [ORCA] (rev 01) ls -la /dev/cda* crw-rw-rw- 1 root dg_orca 238, 0 Jan 1 2000 /dev/cda00 dmesg | grep cda [ 8.825528] cda 0000:01:00.0: of_irq_parse_pci: failed with rc=134 [ 8.827938] cda 0000:01:00.0: Unable to change power state from D3cold to D0, device inaccessible [ 8.843230] cda cda00: Store resource 0 fla
Hi,I've been struggling for a while now with the STM32MP257D, specifically trying to get the TI DP83867 Ethernet PHY working over RGMII. The issue is that my custom board layout doesn't provide a CLK_125MHZ signal from the PHY, so based on the ST tutorial from this link, I add the st,ext-phyclk flag to the eth1/eth2 nodes in the stm32mp251.dtsi and stm32mp253.dtsi files. I also updated my board's .dtsi with the proper compatible and reg entries. Here’s what the eth2 node looks like: &eth2 { status = "okay"; pinctrl-0 = <&eth2_rgmii_pins_a>; pinctrl-1 = <&eth2_rgmii_sleep_pins_a>; pinctrl-names = "default", "sleep"; phy-mode = "rgmii-id"; max-speed = <100>; phy-handle = <&phy1_eth2>; st,eth-ptp-from-rcc; mdio1 { #address-cells = <1>; #size-cells = <0>; compatible = "snps,dwmac-mdio"; phy1_eth2: ethernet-phy@12 { reg = <12>; compatible = "ethernet-phy-id2000.a231"; ti,rx-intern
I am trying to use the DFSDM in parallel mode. However my output sample rate is significantly lower than expected.My input is an MEMS microphone, with 2.048MHz leading to 128kS/s of 16bit samples that arrive at the MPU.The desired output is 32kS/s PCM.My filters are configured as follows (everything except for Continuous mode is done by CubeMX) hdfsdm1_filter0.RegularContMode = DFSDM_CONTINUOUS_CONV_ON; hdfsdm1_filter0.Instance = DFSDM1_Filter0; hdfsdm1_filter0.Init.RegularParam.Trigger = DFSDM_FILTER_SW_TRIGGER; hdfsdm1_filter0.Init.RegularParam.FastMode = DISABLE; hdfsdm1_filter0.Init.RegularParam.DmaMode = DISABLE; hdfsdm1_filter0.Init.FilterParam.SincOrder = DFSDM_FILTER_SINC3_ORDER; hdfsdm1_filter0.Init.FilterParam.Oversampling = 64; hdfsdm1_filter0.Init.FilterParam.IntOversampling = 1; if (HAL_DFSDM_FilterInit(&hdfsdm1_filter0) != HAL_OK) { Error_Handler(); } hdfsdm1_channel0.Instance = DFSDM1_Channel0; hdfsdm1_channel0.Init.OutputClock.Activation = DISABLE; hd
I am currently using a STM32MP157a on an SOC module from aries-embedded and try use the internal ADC in M4 context. However, I always get 32678 for 16bit settings regardless of the other ADC settings or channel selected. For 12 bit the value is then 2048.I figured out that on that SOC module VDDA input of the STM32MP157 is connected to LDO2 of the STPMIC1A and there is no voltage present. I guess the LDO is not activated during boot of the Linux. I used the following settings in my dts file, for the PMIC:&i2c4 { pinctrl-names = "default", "sleep"; pinctrl-0 = <&i2c4_pins_z_mx>; pinctrl-1 = <&i2c4_sleep_pins_z_mx>; status = "okay"; /* USER CODE BEGIN i2c4 */ /delete-property/dmas; /delete-property/dma-names; pmic: stpmic@33 { compatible = "st,stpmic1"; reg = <0x33>; interrupts-extended = <&gpioa 0 IRQ_TYPE_EDGE_FALLING>; interrupt-controller; #interrupt-cells = <2>; status = "okay"; regulators { com
Dear ST Developer Support,I want to enable MIPI DSI panel on STM32MP257F-EV1 based on Android OS.Which device tree stm32mp257f-ev1.dts or stm32mp257f-ev1-overlay.dts should I need to modify?Besides, How to modify the device tree node to enable the DSI panel?Could I use the "panel-simple.c" driver to drive my dsi panel?I urgently need your help! Thanks.
Dear ST Developer Support,I want to enable LVDS panel on STM32MP257F-EV1 based on Android OS.I tried to modify device tree stm32mp257f-ev1.dts and stm32mp257f-ev1-overlay.dts to enable LVDS panel.But I could not enable it. When I revert the device fdt file, I saw that the LVDS related device tree nodes lvdsltdcpanel-lvdspanel-lvds-backlightdisplay-controllerstatus were "disabled".In stm32mp257f-ev1.dts and stm32mp257f-ev1-overlay.dts file, the LVDS related device note are status="okay".So, I confuse on this problem. Maybe somewhere dts overlay this device node, but I cannot find it.Would you help me solve this problem?Thanks.
Hello Because we need to use linux 6.1.x, so I try to compile the optee 3.19.0 which is from the source package of ST web.But there is a compile issue:$ make -f $PWD/../Makefile.sdk CFG_EMBED_DTB_SOURCE_FILE=stm32mp257f-ev1 allmake[1]: Entering directory '/home/llf/linux-kernel/stm32mp2-openstlinux-6.1-yocto-mickledore-mpu-v24.06.26/sources/aarch64-ostl-linux/optee-os-stm32mp-3.19.0-stm32mp-r2-r0/optee-os-stm32mp-3.19.0-stm32mp-r2'GEN /home/llf/linux-kernel/stm32mp2-openstlinux-6.1-yocto-mickledore-mpu-v24.06.26/sources/aarch64-ostl-linux/optee-os-stm32mp-3.19.0-stm32mp-r2-r0/optee-os-stm32mp-3.19.0-stm32mp-r2/../build/stm32mp257f-ev1/core/include/generated/arm32_sysreg.hGEN /home/llf/linux-kernel/stm32mp2-openstlinux-6.1-yocto-mickledore-mpu-v24.06.26/sources/aarch64-ostl-linux/optee-os-stm32mp-3.19.0-stm32mp-r2-r0/optee-os-stm32mp-3.19.0-stm32mp-r2/../build/stm32mp257f-ev1/core/include/generated/arm32_sysreg.SCHK /home/llf/linux-kernel/stm32mp2-openstlinux-6.1-yocto-mickledore-m
Hi,We are using the STM32MP157DAC SoM with the Distribution Package.Our hardware supports two different LCD displays, either of which can be connected to the board via the MIPI interface.We would like to detect which LCD is connected using the input level of GPIO pin PA13. Based on this pin's state, the appropriate display driver and device tree configuration should be loaded dynamically, instead of manually modifying and selecting the overlay each time.Example:If PA13 is high, then LCD1 is connected — the system should load LCD1's device tree configuration and enable its driver.If PA13 is low, then LCD2 is connected — the system should instead load the configuration and driver for LCD2.What are the possible ways to achieve this kind of dynamic device tree or driver selection based on a GPIO input at boot time?Best Regards,Adnan
Hi,I’m working with the STM32MP157DAC and using the Mickledore BSP distribution to build a custom image.Our design includes a Wi-Fi + Bluetooth combo module based on the IW611 + 88W8987 chipset.We've successfully established Bluetooth connections—streaming audio from the STM32MP157 board to Bluetooth headphones, and from a mobile device to the STM32 board.Now, we're looking to transfer files via Bluetooth from the STM32MP157 to a Linux or Windows PC.Could you please advise on how we can enable and implement Bluetooth file transfers (e.g., via OBEX or similar)? Any guidance or recommendations would be appreciated.Thanks
How to obtain the Offset in the tsv file , Especially for SD cards。1.SD2.EMMC
Hi there, I followed the instructions as mentioned below.repo init -u https://github.com/STMicroelectronics/oe-manifest -b refs/tags/openstlinux-6.1-yocto-mickledore-mp1-v24.03.13 (v5.0.3)repo syncgot pyqt5 files from https://github.com/STMicroelectronics/meta-st-pkgrepo-updates/tree/openstlinux-ecosystem-5.0.0/recipes-python/pyqt5and copied them to layers/meta-qt5/recipes-python/pyqt5run DISTRO=openstlinux-weston MACHINE=stm32mp1 source layers/meta-st/scripts/envsetup.sh to get the conf/local.conf fileAll packages installed: “Check OK: all required packages are installed on host.”added IMAGE_INSTALL:append = " python3-pyqt5" to my image in build-openstlinuxweston-stm32mp1/conf/local.confbitbake st-weston image However, I'm encountering the following error:ERROR: Task (/home/abcd/DistributionPackage/layers/meta-openembedded/meta-oe/recipes-support/libiio/libiio_git.bb:do_configure) failed with exit code '1' when i checked error log in that it was mentioned
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.