Ask questions and find answers on STM32 microprocessors and dedicated embedded software solutions, such as Yocto SDK, Qt, and OP-TEE.
Most recent activity
Hi,I am debugging the STM32MP257F-EV1 board via a JTAG debugger . The kernel version is 6.1.82.I have a sample application that runs on Linux and I am trying to debug it.When I set a breakpoint in the application, I get the following message on the Kernel prompt:---------------------------------------------------------------------E/TC:0 stm32_iac_itr:192 IAC exceptions [159:128]: 0x200E/TC:0 stm32_iac_itr:197 IAC exception ID: 137E/TC:0 stm32_risaf_dump_erroneous_data:256DUMPING DATA FOR risaf@420d0000E/TC:0 stm32_risaf_dump_erroneous_data:257 =====================================================E/TC:0 stm32_risaf_dump_erroneous_data:258 Status register (IAESR0): 0xb1E/TC:0 stm32_risaf_dump_erroneous_data:266 -----------------------------------------------------E/TC:0 stm32_risaf_dump_erroneous_data:268 Faulty address (IADDR0): 0x10b4dc8dcE/TC:0 stm32_risaf_dump_erroneous_data:287 ==========
It looks like this commit reverted the hashes for meta-st-stm32mp-addons and meta-st-scripts.The revert for meta-st-stm32mp-addons is particularly problematic because the commit pointed to by the v6.0.2 manifest has LAYERSERIES_COMPAT_stm-st-stm32mp-mx = "mickledore", which breaks the build for v6.0.2, which requires "scarthgap". Am I missing something?
This info i have got through chatgpt is this true? The STM32MP1 Distribution Package (OpenSTLinux) traditionally supports Qt 5.15.x, with Qt 5.15.13 being the latest version officially integrated into the ecosystem. This version is commonly used in development environments for STM32MP1 devices.For newer versions of Qt, such as Qt 6.x, STMicroelectronics has introduced the X-LINUX-QT Expansion Package. However, as of the latest updates, this expansion package is primarily designed for the STM32MP2 series and is not yet fully functional with the STM32MP1 series. Therefore, if you're working with STM32MP1 devices, the
Hello,I’m trying to enable UART6 on the STM32MP257F-EV1 board using the A-35 processor. UART6 is connected to PF13 (TX) and PF14 (RX) on the extended GPIO. I’m using the OpenST Linux distribution and STM32CubeMX.What I’ve Tried:Configured UART6 in CubeMX:Set runtime context to A35/Linux with PF13 and PF14 assigned.Generated the device tree, but UART6 doesn’t show up in /dev/ttySTM*.Device Tree Configurations:Updated as follows: &usart6 { status = "okay"; pinctrl-names = "default"; pinctrl-0 = <&usart6_pins_a>; };Pinmux for USART6_TX and USART6_RX is set to AF7.Checked Linux:Ran ls -l /dev/ttySTM* and dmesg | grep ttySTM but found no output for UART6.CubeMX Pin Conflicts:PF13 and PF14 conflict with other peripherals like ETH3_PHY_INTN. Disabled conflicting peripherals but still no success.Questions:How can I make UART6 appear as /dev/ttySTM6 in Linux?Are there additional steps needed in the device tree or Linux configuration?Has anyone successf
WARNING Screenshot Hi ST Community, I’m working with the STM32MP135D-FK (Boyard) board and trying to build a Weston image using a custom machine configuration, following this official guide: :link:https://wiki.stmicroelectronics.cn/stm32mpu/wiki/How_to_create_your_own_machine I’m using OpenSTLinux (scarthgap) and everything builds fine, but I get this warning during the final step: WARNING: st-image-weston-1.0-r0 do_create_flashlayout_config: >>> Cannot generate FlashLayout_board.tsv file: the arm-trusted-firmware/tf-a-stm32mp135f-studyproject1-mx-opteemin-program/fsbl_boot.bin is missing in deploy folder It says fsbl_boot.bin is missing and so the FlashLayout_board.tsv file can’t be created. The build itself completes successfully otherwise. My questions: How can I fix this issue and generate the missing fsbl_boot.bin? Do I need to enable or configure something extra in trusted-firmware-a or optee-os? Is there anything specific I need to add
Hi,I'm trying to add external out-of-tree module in developer package. (following wiki)After following wiki, I got error message in board(STM32MP157F-DK2) like this. modprobe: ERROR: could not insert 'kernel_module_example': Exec format error There was a difference with wiki while proceeding according to wiki's explanation.In wiki, the "kernel_module_example.ko" is generated in [install_artifact/lib/modules/"<kernel version>"/extra/].But, my .ko file is generated in [install_artifact/lib/modules/"<kernel version>"/updates/] Is there anything else I need to do to add external out-of-tree module? - Ubuntu version (PC) : ubuntu 20.04 lts- Board : STM32MP157F-DK2- source code version : 24.11.06 (stm32mp1-openstlinux-6.6-yocto-scarthgap-mpu-v24.11.06) Thanks.Regards, Youngjun.
Hi,I'm aware of the manual from https://wiki.st.com/stm32mpu/wiki/Getting_started/STM32MP1_boards/STM32MP157x-DK2/Let%27s_start/Populate_the_target_and_boot_the_image but it does not solve my problem as it seems to be completely faulty:different to the description, not USB has to be choosen as connection but UARTwhen downloading, there is never a completion-message but it always ends up with an timeout (no matter what image I try)at the end, it comes up with an error message "Partition 0xBB not found in TSV file"the resulting SD-card obviously has not changed at all after this cycleSo where can I get an image for the Sd-card that can be copied with a simple imager or the dd-command from Linux instead of following this non-working, complicated procedure?
Hello, I am trying to get the X-LINUX-ISP expansion installed onto a MP257-DK board. I can not connect the board to a network at this time, so I have resorted to trying to build a distribution following the instructions here. When I run bitbake, patches start to be applied and one of them fails, as shown here: patch already applied I am not familiar with build system being used here and have been unable to figure out where it is being given a list of patches to apply so that I can try and prevent the patch from being applied multiple times. I did attempt renaming the patch file to try and keep it from being found and applied, but that did nothing. I have been unable to find any series file that the Quilt command may be using. If anyone could please point me in the right direction on what I need to do to avoid this error, that would be appreciated. I am also curious about creating a distribution that will be flashed to eMMC. All the tutorials on the wiki assume the user is fine wi
Hello. I am struggling to get my codec to work. I am using MAX9860 codec.The MAX9860 driver fails during probing, since the MCLK rate is registered as 0.I get the following error:[ 15.465445] max9860 1-0020: Bad mclk 0Hz (needs 10MHz - 60MHz)[ 15.481832] max9860: probe of 1-0020 failed with error -22 This is the piece of the driver that causes the error:/* * mclk has to be in the 10MHz to 60MHz range. * psclk is used to scale mclk into pclk so that * pclk is in the 10MHz to 20MHz range. */ max9860->mclk_handle = clk_get(dev, "MCLK"); if (IS_ERR(max9860->mclk_handle)) { ret = PTR_ERR(max9860->mclk_handle); dev_err_probe(dev, ret, "Failed to get MCLK\n"); goto err_regulator; } mclk_rate = clk_get_rate(max9860->mclk_handle); clk_put(max9860->mclk_handle); if (mclk_rate > 60000000 || mclk_rate < 10000000) { dev_err(dev, "Bad mclk %luHz (needs 10MHz - 60MHz)\n", mclk_rate); ret = -EINVAL; goto err_regulator; } This is my d
Hello We are Working on STM32MP257F-DK Board using Buildroot. We have built buildroot using the below link as referral. https://bootlin.com/blog/updated-buildroot-support-for-stm32mp1-and-stm32mp2-platforms-st-bsp-v6-0/ While verifying USB , we observed that USB storage devices are not detected in U-Boot(2023.10-stm32mp-r1), whereas they are successfully detected and working in Linux. We have attached the screenshot for reference. If this Version of U-Boot doesn't work for USB.Could you please suggest us the version that works for USB and Ethernet in STM32MP257F-DK Board. Thanks & Regards Akshitha Pattem
Hello We are Working on STM32MP257F-DK Board.We would greatly appreciate your help if you could help us with the following doubts: We Would like to How to disable ON-Board ST-link and Set it to J-LINK Mode We want to Check Ethernet using build root in this board.We would like to how to identify if TSN is enabled in Linux and u boot?.If not enabled how to do it in Linux. Thanks & Regards Akshitha Pattem
I am new to building images using Yocto. I am working with an STM32MPU157F, which comes with OpenSTLinux by default. The default image includes Python 3.12.4, but I also need to have Python 3.11.5 available on the image. My end goal is to have both Python versions installed in a single image and ran a AI application.
Hello, I am trying to interface the STM32MP157 to a dual die NAND. I have found this previous post: https://community.st.com/t5/stm32-mpus-embedded-software-and/interfacing-fmc-with-multiple-chip-selects-on-a-single-nand/m-p/301979 and I can see Linux correctly detects the NAND:[ 1.482407] stm32_fmc2_nfc 80000000.nand-controller: nand->ncs = 0x8 [ 1.482447] stm32_fmc2_nfc 80000000.nand-controller: nfc->cs_assigned = 0x3 [ 1.484296] nand: device found, Manufacturer ID: 0x01, Chip ID: 0xd3 [ 1.484322] nand: AMD/Spansion S34ML16G2 [ 1.484332] nand: 2048 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 128 [ 1.484371] nand: 2 chips detected [ 1.484457] Scanning device for bad blocksHowever when I run `ubiformat`, `flash_erase` or `mtdinfo`, the NAND is detected 4GiB instead of 2GiB:root@device:/root# mtdinfo /dev/mtd13 mtd13 Name: 80000000.nand-controller Type: nand Eraseblock size: 131072 bytes, 128.0 KiB Amount of eraseblocks: 32768 (4294967296 bytes, 4.0 GiB) Minimum
Hi,on my STM32MP157C / kirkstone 5.15.145 i'm currently debugging an issue which ends up in a panic handled by OPTEE: E/TC:0 Panic 'Watchdog' at ?:0 at least i can reproduce it quickly by causing traffic on SPI (connected to a BMA280 ). ... spi_stm32 44009000.spi: stm32h7_spi_read_rxfifo: 0 bytes left (sr=0000100a) spi_stm32 44009000.spi: disable controller spi_stm32 44009000.spi: stm32_spi_can_dma: false spi_stm32 44009000.spi: stm32_spi_can_dma: false spi_stm32 44009000.spi: disable controller spi_stm32 44009000.spi: cpol=0 cpha=0 lsb_first=0 cs_high=0 spi_stm32 44009000.spi: stm32_spi_can_dma: false spi_stm32 44009000.spi: stm32_spi_can_dma: false spi_stm32 44009000.spi: stm32_spi_can_dma: false spi_stm32 44009000.spi: transfer communication mode set to 1 spi_stm32 44009000.spi: data frame of 8-bit, data packet of 1 data frames spi_stm32 44009000.spi: speed set to 12500000Hz spi_stm32 44009000.spi: transfer of 1 bytes (1 data frames) spi_stm32 44009000.spi: dma
Simple question:If i'm right the serial number returned by cat /sys/firmware/devicetree/base/serial-number is the UID from BSEC. Where is the code responsible for setting this value? I've seen the function get_board_serial in u-boot but it doesnt seem to be implement for the stm32mp1 board.
Hello, I have a problem with UART reaction time under Linux.I need to detect frame break/error situation and send a byte as reaction.I use following configuration of serial port for Linux:tty.c_cflag &= ~PARENB;tty.c_cflag &= ~CSTOPB;tty.c_cflag &= ~CSIZE;tty.c_cflag |= CS8;tty.c_cflag &= ~CRTSCTS;tty.c_cflag |= CREAD | CLOCAL;tty.c_lflag &= ~ICANON;tty.c_lflag &= ~ECHO;tty.c_lflag &= ~ECHOE;tty.c_lflag &= ~ECHONL;tty.c_lflag &= ~ISIG;tty.c_iflag &= ~(IXON | IXOFF | IXANY);tty.c_iflag &= ~(IGNBRK|BRKINT|INLCR|IGNCR|ICRNL|IGNPAR|ISTRIP);tty.c_iflag |= INPCK|PARMRK;tty.c_oflag &= ~OPOST;tty.c_oflag &= ~ONLCR;tty.c_cc[VTIME] = 0;tty.c_cc[VMIN] = 0;If I set sender speed to 115200 and send one zero byte, on the receiver side (configured to speed 230400) I get frame error byte sequence(3 bytes): 0xFF, 0, 0.It is what I need.The problem is time point of error detection. I toggle in the serial driver GPIO pin over uart_handle_break(stm32_usar
NOTE: Started PRServer with DBfile: /home/sharan/STM32MPU_workspace/STM32MPU-Ecosystem-v5.1.0/Distribution-Package/build-openstlinuxweston-stm32mp1/cache/prserv.sqlite3, Address: 127.0.0.1:35035, PID: 9978 Loading cache: 100% | | ETA: --:--:-- Loaded 0 entries from dependency cache. NOTE: /home/sharan/STM32MPU_workspace/STM32MPU-Ecosystem-v5.1.0/Distribution-Package/layers/meta-st/meta-st-openstlinux/recipes-st/images/st-image-resize-initrd.bb: ENABLE_PARTITIONS_IMAGE not enabled Parsing recipes: 100% |##################################################################################################################################################| Time: 0:02:31 Parsing of 2868 .bb files complete (0 cached, 2868 parsed). 4596 targets, 530 skipped, 0 masked, 0 errors. NOTE: Resolving any missing task queue dependencies Build Configuration: BB_VERSION = "2.4.0" BUILD_SYS = "x86_64-linux" NATIVELSBSTRING = "ubuntu-24.04" TARGET_SYS = "arm-ostl-linux-gnueabi" MACHINE = "stm32mp1" DISTRO =
Hi everyone,I’m working on an STM32MP157F-EV1 board and encountering this error:warning: FBIOPUT_VSCREENINFO failed, double buffering disabledI’ve tried enabling framebuffer-related options, including enabling fbcon, fb, and other framebuffer configurations, but I still can’t get double buffering to work.Has anyone faced this before or managed to enable double buffering successfully on this board? Any pointers on kernel configurations, device tree adjustments, or user-space tweaks would be greatly appreciated.Thanks in advance!
Moved from MCUs section - STM32 is an MPU.Hi all,I'm developing a firmware for a custom board based on MP135 micro - baremetal solution.The board has a MMC memory (no SD card) to host both bootloader and storage area (Fat).I've added the FileX module, without ThreadX, the mmc_driver, the mmc_driver_glue and the hal low level functions (stm32mp13xx_hal_mmc.c, stm32mp13xx_ll_sdmmc.c).Is there a way to configure FileX (and/or bottom layers) to use only a portion of the mmc memory?I'm not able to find it, if present.Thanks!
I want to enable libgfortran on OpenSTLinux distribution package. Based on the information that i found on the internet I added the following lines to the local.conf IMAGE_FEATURES += "tools-sdk" FORTRAN = ",fortran" FORTRAN_forcevariable = ",fortran" RUNTIMETARGET += " libquadmath libgfortran" IMAGE_INSTALL += " gfortran gfortran-symlinks libgfortran libgfortran-dev"But i am getting the following errorbitbake st-image-weston NOTE: Started PRServer with DBfile: /home/user/Desktop/Testing/Ashish/02_STM32MCU/OpenSTLinux2/build-openstlinuxweston-stm32mp1/cache/prserv.sqlite3, Address: 127.0.0.1:44813, PID: 2068707 Loading cache: 100% |##########################################################################################################| Time: 0:00:01 Loaded 4984 entries from dependency cache. Parsing recipes: 100% |########################################################################################################| Time: 0:00:00 Parsing of 3033 .bb files complete (3024
Hello, If I put my new machine conf and device tree in meta-st-stm32mp-addons I can compile device tree and my image without any error. But if I use my own layer meta-my-layer (in meta-st), machine config is used but I have this message : | make[2]: *** No rule to make target 'arch/arm/boot/dts/st/stm32mp153c-linux-platform-mx.dtb'. Stop. I read the forum and documentation but, I don't find a way to have a working project. Could you explain me how to create my own layer to be outside meta-st-stm32mp-addons (to use my own git) and compile my new machine with associated device tree ?Thank you so much for your help
HelloI am trying to debug M4 firmware on my custom STM32MP157C board.I have a reference operating system built with yocto on which this works correctly.I have to build system with a changed configuration and debugging of the same firmware is not working.Of course I saw this video https://www.youtube.com/watch?v=YIhzzgJmop0When I click the Debug button, the application correctly uploads however it won't start.I get the 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 accessOf course my target has space and write access - in other case file transfer will not be successful.Starting the firmware manually works ok with this commands:echo OpenAMP_raw_CM4.elf > /sys/class/remoteproc/remoteproc0/firmwareecho start >/sys/class/remoteproc/remoteproc0/state Question: how to determine more precisely what failed?Or maybe any hin
Hello! everyone. //-------------- Host ------------- OS: Ubuntu 22.04 Kernel: Linux leonsu-MINIPC-VC66-C2 6.8.0-52-generic //----------- board ---------- STM32MP257F-DK kernel: Linux stm32mp2-e3-aa-db 6.6.48 //----------------------------------------- I followed the STM32MPU Developer Package[1] and X-LINUX-QT Expansion Package[2] to setup up the SDK and X-LINUX-QT Developer Package, respectively. SDK Version: 6.0.0 X-LINUX-QT Developer Package Version: 2.0.1 I try to build qt example followed the section 7.1[2], I get some error message in following: Spoiler (Highlight to read) /home/leonsu/STM32MPU-Ecosystem/Developer-Package/SDK/sysroots/x86_64-ostl_sdk-linux/usr/libexec/aarch64-ostl-linux/gcc/aarch64-ostl-linux/13.3.0/ld: warning: libicui18n.so.72, needed by /home/leonsu/STM32MPU-Ecosystem/Developer-Package/SDK/sysroots/cortexa35-ostl-linux/usr/lib/libQt6Core.so.6.5.3, not found (try using -rpath or -rpath-link)/home
I'm using the Yocto-based OpenSTLinux embedded software on a STM32MP25x and I don't understand which portion of the SRAM1/2 is free to use at runtime. Aside from the first 4kBytes of the SRAM1 reserved for OTP shadow, can the rest be fully used, or is it also reserved ? Additionally, in chapter 2.4.2 of the reference manual (RM0457), it states that SRAM1/2 can be accessed through the following address ranges [0x0A04 0000, 0x0A08 0000[, [0x0E04 0000, 0x0E08 0000[, [0x2004 0000, 0x2008 0000[ and [0x3004 0000, 0x3008 0000[. Why are there four physical addresses for SRAM ? Should Cortex-A35 and Cortex-M33 use specific regions to communicate with each other ?
Hello,I am struggling with improper color management for our display connected as LTDC. I prompt for drm state with cat /sys/kernel/debug/dri/0/stateI wonder why I get format=RG16 (that is true, we use RGB565 LTDC interface) and color-encoding=ITU-R BT.601 YCbCrcolor-range=YCbCr limited rangeat the same time. I expect color encoding to be RGB. Am I right ?Here is the whole output:utc:~# cat /sys/kernel/debug/dri/0/state plane[33]: plane-0crtc=crtc-0fb=38allocated by = [fbcon]refcount=2format=RG16 little-endian (0x36314752)modifier=0x0size=1024x600layers:size[0]=1024x600pitch[0]=2048offset[0]=0obj[0]:name=0refcount=3start=00010000size=1228800imported=nocrtc-pos=1024x600+0+0src-pos=1024.000000x600.000000+0.000000+0.000000rotation=1normalized-zpos=0color-encoding=ITU-R BT.601 YCbCrcolor-range=YCbCr limited rangeuser_updates=1fpsplane[36]: plane-1crtc=(null)fb=0crtc-pos=0x0+0+0src-pos=0.000000x0.000000+0.000000+0.000000rotation=1normalized-zpos=0color-
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.