Ask questions and find answers on STM32 microprocessors and dedicated embedded software solutions, such as Yocto SDK, Qt, and OP-TEE.
Most recent activity
Dear all, we use custom board with STM32MP1 SoC onboard. We use Yocto with OE, STM, Qt and custom layers for building target images. In our device we utilize 7-inch display connected by LVDS with RGB666 wiring. If I load bitmap image from U-boot, all colors are fine, so I suggest, display wiring is correct. But if I load the same bitmap from Linux, some colors are spoiled. For example, grey colors (like 0xA0A0A0 in RGB888) become green (attachment: grey.bmp is original bitmap, grey.jpg is a screen photo). This is not a Qt issue, as I get the same result using Plymouth splash screen or Gstreamer tool for loading bitmap files. What might be the culprit ? Any help or hint is appreciated.
Hi, is it possible to know which is the Yocto configuration (manifest release, DISTRO and MACHINE used, other configurations, etc) used to generate the Starter Package of a board?I think it could be a useful information for everyone. In fact I'm in a situation where the Starter package for STM32MP15 eco 6.0.0 does some operations that fails on an image built using Yocto (Distribution Package) at the same Ecosystem. Thanks in advance Mauro
Hi Everyone I am new member of ST device, now I face problem regarding SPI communication on STM32MP157F-DK2 kit.I am using the latest zephyr RTOS version (which primarily supported STM32157C-DK2 kit).Problem:- The Master Out pin does not output the dataNote:- The CS and CLK is working normally If anyone have the Zephyr reference, I am appreciated. Best regards,Tuan Do
Hello, I have a problem after cross-compiling retroarch from my PC to an STM32MP135 (ARM32), after launching my ./retroarch -v I see that it will look for a video driver named "ext" root@stm32mp1:/home/emu# ./retroarch -v [INFO] [Config]: Looking for config in: "/home/root/.config/retroarch/retroarch.cfg". [WARN] [GameMode]: GameMode cannot be enabled on this system ("dlopen failed - libgamemode.so: cannot open shared object file: No such file or directory.") https://github.com/FeralInteractive/gamemode needs to be installed. [WARN] [Config]: GameMode unsupported - disabling.. [INFO] RetroArch 1.20.0 (Git b0999db) [INFO] === Build ======================================= [INFO] CPU Model Name: ARMv7 Processor rev 5 (v7l) [INFO] Capabilities: NEON VFPV3 VFPV4 [INFO] Version: 1.20.0 [INFO] Git: b0999db [INFO] Built: Feb 11 2025 [INFO] ================================================= [ERROR] Couldn't find any video driver named "ext" [INFO] Available video drivers are: [INFO]
Hi Everyone I face other problem of Counter driver on zephyr for STM32MP157 DK2 kit Here is dts: &timers5 {status = "okay"; counter {compatible = "st,stm32-counter";status = "okay";};}; and prj config: CONFIG_COUNTER=y I face problem: zephyr-sdk-0.17.0/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd: app/libapp.a(main.c.obj): in function z_impl_counter_get_frequency': /home/dotaituan/Documents/2nd_LEAPS/03_git/134-zephyr/zephyr/include/zephyr/drivers/counter.h:301: undefined reference to __device_dts_ord_66' collect2: error: ld returned 1 exit status ninja: build stopped: subcommand failed. Anyone could help? Thank you so much!
Hi,I am trying to write a LIN master for STM32MP135 running a Yocto Linux. Currently, I am struggling with the break signal. According to the LIN specification, it has to be at least 13 (up to 20) bits long. The device I am trying to talk to is using 9600 baud and the break signal is 1340μs there:A LIN tranceiver is connected to USART1 on my board. How can I send the correct break signal on USART1 on Linux?Thank you in advance!
Hello,Hello,I'm planning to integrate GPS: GNSS1 and install a web browser on an STM32MP157F-DK2, so I'm looking to add layers.Before adding the layers, I thought it would be a good idea to follow this tutorial:https://wiki.st.com/stm32mpu/index.php?title=STM32MPU_Distribution_Package&sfr=stm32mpuI followed it to the letter.I'm running Ubuntu 20.04 with all the required dependencies:https://wiki.st.com/stm32mpu/wiki/Getting_started/STM32MP1_boards/STM32MP135x-DK/Develop_on_Arm%C2%AE_Cortex%C2%AE-A7/Install_the_SDKI'm up to 80% of the st-image-weston bitbake when an error message appears:```ERROR: st-image-vendorfs-1.0-r0 do_rootfs: The postinstall intercept hook 'update_mandb' failed, details in /home/atem/Distribution-Package/build-openstlinuxweston-stm32mp1/tmp-glibc/work/stm32mp1-ostl-linux-gnueabi/st-image-vendorfs/1.0/temp/log.do_rootfsERROR: Logfile of failure stored in: /home/atem/Distribution-Package/build-openstlinuxweston-stm32mp1/tmp-glibc/work/stm32mp1-ostl-linux-gnueab
Hello, I wonder if it is possible to put a game emulator on an stm32mp135-dk1 under openstlinux yocto, if so how? By loading a new img or in another way?
Hiii, i am using STM32mp257f-ev1 , in this board i installed chromium and its working properly but when i was tried to run url on chrome its cause some ffmpeg related issue like pixel format unsupported. I tried to add use_ffmpeg=true and use_v4l2=true in chromium.inc in chromium directory because in that .bbappend and .bb files are not present so please help me to solve this issue.
Hi,ST professor. I am now using stm32mp135faf7 chip. I want to encrypt my TA application(optee_examples/hello_world/ta).how to get the key TA_ENC_KEY to encrypt the hellow_world application thanks.
On dev board STM32MP157f-dk2, I ran application in Qt, several gauges and measurements on DSI display... Next I connected CAN device to board and when a lot of frames arrive, appear a problem with tmpfs /run full ,like below:What can I do with this ?
Hi,I am built OpenSTLinux with below configuration: uild Configuration: BB_VERSION = "2.0.0" BUILD_SYS = "x86_64-linux" NATIVELSBSTRING = "universal" TARGET_SYS = "arm-ostl-linux-gnueabi" MACHINE = "stm32mp1" DISTRO = "openstlinux-eglfs" DISTRO_VERSION = "4.0.19-snapshot-20250205" TUNE_FEATURES = "arm vfp cortexa7 neon vfpv4 thumb callconvention-hard" TARGET_FPU = "hard" DISTRO_CODENAME = "kirkstone" ACCEPT_EULA_stm32mp1 = "1" GCCVERSION = "11.%" PREFERRED_PROVIDER_virtual/kernel = "linux-stm32mp" meta-python meta-oe meta-gnome meta-initramfs meta-multimedia meta-networking meta-webserver meta-filesystems meta-perl = "HEAD:402affcc073db39f782c1ebfd718edd5f11eed4c" meta-st-stm32mp = "HEAD:b7accec80a2903c75d4129cf2b3bf6e15f5410c0" meta-qt5 = "HEAD:ae8a97f79364bed1abc297636f7933d0e35f22be" meta-st-openstlinux = "HEAD:613b158e6ee5b575e7de1251eae389c72e376043" meta = "HEAD:ab2649ef6c83f0ae7cac554a72e6bea4dcda0e99" I flashed image to STM32MP1 and works everything !Problem i
Hi, I would like to use CAN communication on my devboard : STM32MP157f-DK2. So I prepared OS, unfortunatelly I have to flash STM32MP157c-DK2 version according with problem described below: Faulty boards out of the box So, after run OS, I edited *.dts file, by initialized &m_can1 device on PA11 and PA12 pins, which one exposed on the board connector - CN2, and connected "MCP2542 click CAN bus transceiver" board. In OpenSTlinux userspace I try recive CAN frames by command: candump can0, and there is any problem, because when I send full frame with 8 bytes that it doesn't arrive to device. Maksimum only 5 bytes in frame arrives, like below: What can be wrong with CAN in STM ?Please for any tips.
Hi,I'm trying to learn programming STM32MP157 with qt library using boot2qt module.I flashed microSD card using boot2qt module, prepared and employed samlpe project from qt Creator to STM32MP157. - this works fine.Now I would like to control interfaces (ec. GPIO, SPI, CAN) in STM using qt. - there is where my knowledge ends.I think so that I should connect libraries delivered by STM to my qt project?, So what libraries I should including to control DIDO?
Hi, I want to use the M4 core to handle all Audio DSP workI can see that MXCube allows the SAI ports to be enabled on the M4 coreBut it appears the I2S ports are not. I am Missing something hereUnfortunately the Pins I need to be the PZ0-1-2-3 as PCB is doneElse If Its only possible to use the I2S from the Linux A7 then is it even possible to transfer audio data between the cores?Thanks
I am in the process of starting a board with an STM32MP153CAB processor, unfortunately due to an error in the design, the I2C4 interface is not available( i2c4 is connected to the PMIC by default). I am able connect I2C2 directly to the PMIC, but this interface is not supported in TF-A, other solution is connect I2C6 using wires. The question is how to force using of i2c6 or i2c2 instead of I2C4 by dts config files (Yocto kikrcore).
Hello,I am working with STM32MP135F-DK and Yocto (Kirkstone), using poky, meta-openembedded, meta-st-stm32mp layers. I am creating my custom image for the board. I want to implement OTA to my board and I have chosen swupdate package to achive that. I have also chosen to follow the "dual-copy" stategy. And that's where I had to start dealing with U-boot, it's environment, and environment variables. I am certainly a beginner in Yocto and Embedded Linux. I did some research, I have followed U-boot bootcmd all way down through all ST scripts there, and as far as I can understand:configuration (setting CONFIG_...) of U-boot and environment variables is done in .patch files located in meta-st-stm32mp/recipes-bsp/u-boot/u-boot-stm32mpthere is a boot.scr.cmd in stm32mp-extlinux folder but it should not be used in production, it's there to handle all availiable dev-boards and types of storagewhen my board boots it uses mmc0_extlinux/st32mp135f-dk_extlinux.conf file. The content of this file is:
Hi,Is there any example showing how to configure a simple GPIO line using DeviceTree? I would like to set the pullup/pulldown or open drain and then use the /sys/class/gpio to read or write the value. The only example I can find is the GPIO setting for particular peripheral and not for standalone input/output pin.I have added the following section to the &pinctrl in my device tree but I think it has no effect on the pins configuration. gpio_pins_mx: gpio_pins_mx-0 { u-boot,dm-pre-reloc; pins { u-boot,dm-pre-reloc; pinmux = <STM32_PINMUX('D', 11, GPIO)>, <STM32_PINMUX('C', 0, GPIO)>, <STM32_PINMUX('B', 7, GPIO)>; bias-pull-down; }; };Thank you,Chris
Hello,for flashing my STM32MP135F-DK board I am using STM_Programmer_CLI with my .tsv file. Example command and my tsv file:sudo ./STM32_Programmer_CLI -c port=usb1 -w path/to/my.tsvIs there a way to explicitly set partitions UUID for rootfs-a and rootfs-b during flashing?I've noticed that when I name a partition with rootfs then it gets UUID of e91c4e10-16e6-4c0e-bd0e-77becf4a3582, as described in the wiki . But when having rootfs-a and rootfs-b, then those partitions get some other UUID, and the boot stops because rootfs UUID is not e91c4e10-16e6-4c0e-bd0e-77becf4a3582.I need the rootfs-a and rootfs-b UUIDs to be constant, to manage FW upgrades.
Dear ST Team,The kernel recipe in Scarthgap branch has following packaging:FILES:${KERNEL_PACKAGE_NAME}-image += "boot/ ${KERNEL_IMAGEDEST}"FILES:${KERNEL_PACKAGE_NAME}-imagebootfs = "boot/*.dtb boot/${KERNEL_IMAGETYPE}"Which has following side effects.The base class in openembedded-core layer defines packaging in meta/classes-recipe/kernel.bbclass as followsFILES:${KERNEL_PACKAGE_NAME}-image = ""FILES:${KERNEL_PACKAGE_NAME}-dev = "/${KERNEL_IMAGEDEST}/System.map* /${KERNEL_IMAGEDEST}/Module.symvers* /${KERNEL_IMAGEDEST}/config* ${KERNEL_SRC_PATH} ${nonarch_base_libdir}/modules/${KERNEL_VERSION}/build"By placing everything from the "boot" directory into the image package you hide "dev" package completely and it becomes empty.The "imagebootfs" package repacks devicetrees, thus hiding kernel-devicetree package from openembedded-core layer. If you need custom package for any reason, I suggest you set run-time dependencies rather than re-arranging the files. FTR, devicetree packaging is do
Hi,On my STm32MP157c-dk2 with openstlinux-eglfs, I configured in device tree (*.dts file) CAN and works . Now I would like to set pin PH11 as GPIO input.... Please help me how sholud looks my *.dts file, and wher in linux userspace I should find file with this GPIO ? Also I can not generate device tree for GPIO configuration using STM32CubeMX, please look below :
Hi , I built openstlinux-5.15-yocto-kirkstone-mp1-v22.07.27 (openstlinux-eglfs), SDK, configure QtCreator and prepare my first app, but some library mising on target device - STM32MP157F-DK2. Below log, after deploy: id: 'weston': no such user id: 'weston': no such user QML debugging is enabled. Only use this in a safe environment. QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root' No modes available for output "HDMI1" qt.qpa.input: xkbcommon not available, not performing key mapping QQmlApplicationEngine failed to load component qrc:/qml/dashboard.qml:55:1: module "QtQuick.Extras" is not installed qrc:/qml/dashboard.qml:54:1: module "QtQuick.Controls.Styles" is not installed qrc:/qml/dashboard.qml:53:1: module "QtQuick.Controls" is not installed qrc:/qml/dashboard.qml:55:1: module "QtQuick.Extras" is not installed qrc:/qml/dashboard.qml:54:1: module "QtQuick.Controls.Styles" is not installed qrc:/qml/dashboard.qml:53:1: module "QtQuick.Controls" is not ins
Hi! I wonder if it's possible to use OpenCV on STM32MP2 and configure so the neural networks use the NPU for faster classification and detection. Thanks
Hi everyone, I was finally able to get to the kernel and use the shell using the sd card (yay!). However, we want to boot from the emmc (sd card was for dev purposes but we want only emmc) and I am running into an issue. Here is my boot log from booting on emmc after flashing with DFU: NOTICE: CPU: STM32MP131D Rev.Y NOTICE: Model: STM32MP1 LED Controller - openstlinux-6.6-yocto-scarthgap-mpu-v24.11.06 INFO: PMIC version = 0x21 NOTICE: Reset reason (0x1035): INFO: Power-on Reset (rst_por) INFO: FCONF: Reading TB_FW firmware configuration file from: 0x2ffe0000 INFO: FCONF: Reading firmware configuration information for: stm32mp_fuse INFO: FCONF: Reading firmware configuration information for: stm32mp_io INFO: Using EMMC INFO: Instance 2 INFO: Boot used partition fsbl1 NOTICE: BL2: v2.10-stm32mp1-r1.0(debug):lts-v2.10.5-dirty(7c229848) NOTICE: BL2: Built : 16:19:31, Jun 28 2024 INFO: BL2: Doing platform setup INFO: RAM: DDR3-DDR3L 16bits 533Mhz INFO: Memory size = 0x
Hello,to retrieve the temperature in the M4 domain I use the documentation RM0436, page 1571 (description) and DS12505Rev6 page 209 (characteristics)Q1: what adc resolution is to be used to be compliant to the reference values (calibration values) that are to be read from address 0x5C00525C?Q2: I am using Vref=2.048V. Can I scale the calibration values by the factor 2048 / 3300?Q3: At the address 0x5C00525C I read TS_CAL1 = 12192 (adc value @30°C) and TS_CAL2 = 16270 (adc value @130°C). Is this a reasonable / correct reading?Q4: the formula on page 1571 (RM0436) gives as a result not a temperature but an adc value (".... + TS_CAL1"), though it is supposed to return a value in °C. Is the formula correct?Q5: So the values TS_CALx_TEMP are [°C] and the values TS_CALCx are raw adc values? Anyway: Is there an example for the coprocessor M4? I was not able to create one with th Cube MX tool...Thanks!
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.