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 Team,I am using the following method to enable password protection for both SSH and serial login.I added the below configuration in local.conf:INHERIT += "extrausers" EXTRA_USERS_PARAMS += "\ usermod -U root; \ usermod -p '\$6\$ao/KaHyZbsgvo2RD\$QUzqRGclDHxnOv8BiGImYO10QX0YwmLh6XVjvqcEVg6976kyhNarzpX4rjCimbGSuM2d.2GOehoCFzHCx6jcd0' root; \ "I also made the following changes:Serial login (serial-getty@.service):ExecStart=-/sbin/agetty -8 -L --keep-baud %I @BAUDRATE@ $TERMSSH configuration (sshd_config):PermitRootLogin yesAfter enabling password protection, scripts placed under /etc/profile.d no longer run automatically. These scripts only execute after I manually log in to the shell. Previously, they were used to start some required functionality automatically.Those scripts launch Python code using Qt (PySide6) and play video using Qt Multimedia. I attempted to move this logic into a systemd service, but when running from a service, I encounter hardware decoder issues while playing
According this article: https://wiki.st.com/stm32mpu/wiki/GPU_internal_peripheral. It is not supported configuration for OpenSTLinux BSP. Can I manually assign or enable GPU with the x-linux-qt image? If yes, how?
Hello.Is there any way to exclude some GPIOs from Linux, when I control them from M4 core and I don't want to give an ability to control them from Linux apps? I would like to exclude e.g. PG12. I tried this, which should be exactly for such use:&gpiog { gpio-reserved-ranges = <12 1>; /* Reserve PG12 for M4 */ }; But it doesn't help, still the GPIO is listed and possible to control under Linux.We use OpenSTLinux custom Yocto build with kernel 5.15.67Thanks
Hi,Could you share documentation or examples for running quantized foundational models (e.g. Google Gemma) on the STM32MP257F-DK—first in Python, then in C/C++ using the STM32MP2 NPU? Specifically:Does the STM32MP2 NPU support transformer-based architectures, or is it limited to CNNs (like the STM32N6)?Which inference frameworks are supported for GenAI on this platform? does this NPU ported by ST for llama.cpp ?Sorry, couldn't find required info from STM32 MPU wiki pages.Thanks!
Dear Team,We are trying boot Uboot(V2025.04) on a Custom board with STM32MP157AAA3 Processor.But while booting we can see that code hangs at WDT: started Watchdog@5a002000 with servicing every 1000ms (32s timeout) and restart after sometime.We have attached the screenshot for the reference Thanks & RegardsAkshitha Pattem
Hello We are implementing the memory CRC generation sequence as described in the reference manual. According to the documented procedure, the following steps must be executed:1. Write 0x0 in CRCC[1:0] of RAMCFG_xCCR1 to deactivate the CRC.2. Write 1 in SRAMHWERDIS of RAMCFG_xCR to disable the hardware erase.3. Select the buffer size to take into account during the CRC computation by settingCRCBS[2:0] in RAMCFG_xCCR1.4. Write 0x1 in CRCC[1:0] of RAMCFG_xCCR1 to activate the CRC.5. Write 1 in CRCCS of RAMCFG_xCCR2 to start the CRC computation.The calculated signature is stored in RAMCFG_xCCSR when CRCEOC is setin RAMCFG_xCSR.While following this sequence, the CRCEOC flag never becomes set. We have attached the code segment used to trigger the CRC operation and to subsequently start the Cortex-M33 boot process. Could you please review the implementation and confirm whether the initialization flow is correct?void ConfigRetram(void){/********************** 1 Enable ECC*****************
Hi ST Team,I am working with STM32MP257F-EV1 board and facing an issue while trying to connect the ST-Link interface using STM32CubeProgrammer.Connection setup:An external ST-LINK/V2 programmer is connected to the CN22 (ST-LINK header) on the STM32MP257F-EV1 board.Behaviour:1) Tried connecting with both SWD and JTAG modes, but the connection fails in both the cases.2) The board is detected only when connecting USB to connector CN15(USB_DRD) in DFU Mode.For your reference ,I have attached the STM32CubeProgrammer configuration screenshots and connection logs.Additionally, while reviewing the ST Community forum, I found the following discussion related to this issue.link: https://community.st.com/t5/stm32-mpus-software-development/debug-authentication-on-the-stm32mp2257f-ev1-for-st-link/td-p/708255Could you please confirm whether this behavior is expected for the STM32MP257F-EV1 and any configuration or steps to enable and validate CN22 (ST-LINK header) on STM32MP257F-EV1 board ?Thanks an
I'm trying to use pwm for backlight control in stm32mp257f-ev1, the same changes shown in below patch is implemented in both u-boot and kernel, i used u-boot pwm commands and it seems working but im getting this deferred probing issue in kernel logs and display turns of when entering kernel.Im in midddle of board bring up hoping for a quick reply, thanks in advance.This is the kernel log[ 0.268819] /soc@0/bus@42080000/display-controller@48010000: Fixed dependency cycle(s) with /soc@0/bus@42080000/lvds@48060000 [ 0.295408] /soc@0/bus@42080000/lvds@48060000: Fixed dependency cycle(s) with /soc@0/bus@42080000/display-controller@48010000 [ 0.308304] /soc@0/bus@42080000/display-controller@48010000: Fixed dependency cycle(s) with /soc@0/bus@42080000/lvds@48060000 [ 0.338635] /soc@0/bus@42080000/lvds@48060000: Fixed dependency cycle(s) with /soc@0/bus@42080000/display-controller@48010000 [ 0.352683] /soc@0/bus@42080000/display-controller@48010000: Fixed dependency cycle(s) with /soc@0/bus@420
Hi We have a custom board using STM32MP257F and would like to program external NIOR flash using STM Cube programmer over a UART interface.We have the following modified TSV file, where we have modified the first line to use - 0x01 fsbl-boot Binary none 0x0 arm-trusted-firmware/tf-a-stm32mp257f-ev1-cm33tdcid-ostl-serial-ca35tdcid-optee-programmer-uart.stm32- 0x02 fip-ddr FIP none 0x0 fip/fip-stm32mp257f-ev1-cm33tdcid-ostl-serial-ca35tdcid-ddr-optee-programmer-usb.bin- 0x03 fip-boot FIP none 0x0 fip/fip-stm32mp257f-ev1-cm33tdcid-ostl-serial-ca35tdcid-optee-programmer-usb.binDo we also need to modify the second and third lines to use a UART version of the FIP files? We cannot find these files in our distribution, we only have ones with xxx-usb.bin.How can we proceed?
Hi ST Team,I am working on custom MPU board based on STM32MP257F-EV1 reference design.For our design,reassigned I2C1 from the M33 core to the A35 core using STM32CubeMX.The I2C1 ownership changed from CID2 (M33) to CID1 (A35) in CubeMX.Corresponding RIF changes are applied in stm32mp257f-ev1-ca35tdcid-ostl-rif.dtsi and enabled I2C1 entry in linux devicetree with clock frequency 400kHz.During runtime, I2C1 SCL frequency is observed at ~141 kHz, even when:clock-frequency = 400000clock-frequency = 100000On referring clock configuration section in cubeMX, could observe the PLL4 is the parent clock for both I2C1 and I2C2.I2C2 clock output matches the configured frequency on hardware probing in both frequency (100 and 400kHz).Whether any additional clock, RIF, or access-controller configuration is required specifically for I2C1 after moving it to the A35 core.Can you please check and help us to resolve the issue.BSP - openstlinux-6.6-yocto-scarthgap-mpu-v24.11.06 - distribution packageThanks
I am trying to create custom sd card image for the stm32mp157f-dk2 board. For device tree I used dts files from basic project created by STM32CubeIDE for that board, for now I didn''t do any changes to device tree. I used latest sources from v.25.08.27 and sdk v.25.06.11 to build kernel, modules and all required loaders.But when I try to flash sd card with created loaders, STM32CubeProgrammer gets stuck on trying to reconnect to the board over USB connection:10:21:44 : STM32CubeProgrammer API v2.20.0 | Linux-64Bits10:22:15 : Read TSV File: /home/ivan/workspace/DeviceTree/FIP_artifacts_MP1/FlashLayout_sdcard_p6_mp1-optee.tsv10:22:15 : Number of partitions: 1310:22:28 : USB speed : High Speed (480MBit/s)10:22:28 : Manuf. ID : STMicroelectronics10:22:28 : Product ID : DFU in HS Mode @Device ID /0x500, @Revision ID /0x000010:22:28 : SN : 00270035313351173534343110:22:28 : DFU protocol: 1.110:22:28 : Board : --10:22:28 : Device ID : 0x050010:22:29 : Start Embedded Flashing service10:22
Hello! I'm working on bringing up a bare-metal STM32MP133C bare-metal on the dev kit from DIGI, using the HAL layer from ST. The problem I'm running in to is we're getting stuck on HAL_ETH_Init as when we enable the MAC clock, DMAMR's 0 bit (the reset bit) is stuck at 1, causing a timeout. From reading the reference manual, all related clocks need to be enabled for the reset to work, so I'm operating under the assumption there's a clock issue. I've initialized/configured the peripheral clock for PLL4, I'm enabling the relevant GPIO clocks, along with the ethernet clocks ETH1CK, ETH1TX, ETH1RX, and ETH1MAC. This leads me to believe the issue may be with the PHY clock. As we're using the Marvell PHY that comes with the board, I've (attempted) to set it so the PHY uses PLL4 by changing the appropriate bits in syscfg's PMCSETR. I figured that would be enough to get it all going... but it still seems I'm missing something. I've tried generating the code from CubeMX to
Hello community!I am trying to port a firmware for a Seeed Odyssey SOM-based board from Hardknott to Mickledore. This uses meta-st-odyssey and meta-st-stm32mp (openstlinux-6.1-yocto-mickledore-mpu-v24.06.26). I have it booting fine on the development board, but hanging on the production hardware, which re-muxes quite a few pins. The switch to Mickledore also meant I had to switch from the trusted to the optee boot scheme. It hangs always after listing the clocks:NOTICE: CPU: STM32MP157CAC Rev.BNOTICE: Model: ******INFO: PMIC version = 0x20INFO: Reset reason (0x214):INFO: IWDG2 Reset (rst_iwdg2)INFO: FCONF: Reading TB_FW firmware configuration file from: 0x2ffe2000INFO: FCONF: Reading firmware configuration information for: stm32mp_ioINFO: FCONF: Reading firmware configuration information for: stm32mp_fuseINFO: Using SDMMCINFO: Instance 1INFO: Boot used partition fsbl1NOTICE: BL2: v2.8-stm32mp1-r2.0(debug):lts-v2.8.15-dirty(567af710)NOTICE: BL2: Built : 00:51:33, Jan 26 2024INFO: BL2: D
I am working on a custom board based on STM32MP267FAK3 and facing issues while flashing eMMC directly using STM32CubeProgrammer.Hardware DetailsSoC: STM32MP267FAK3DDR: DDR3L (part no: MT41K512M16VRP-107 )eMMC: Custom eMMC MX52LM08A11XVW SD Card: Not populated / no SD card provision on boardSoftware Changes DoneI have already made board-specific changes in:TF-A (DDR + PMIC configuration generated using CubeMX tool)OP-TEEU-BootLinux kernelFlashing MethodFlashing eMMC directly using STM32CubeProgrammerInterface: USB (DFU)Using a TSV file generated from the build system (same method as reference BSP)TSV File Problem DescriptionWhen flashing the eMMC, I consistently get a timeout error in STM32CubeProgrammer. My questions are:1. What might be the reason for this error?2. What are the possible solutions I can adopt to resolve this issue?3. Is there any other way to directly flash eMMC without SD card and without using STM32CubeProgrammer?
Hi everyone,we applied the ST FWU reference solution on our own platform based on the STM32MP157F.The solution was taken and adapted from the ST Yocto layer meta-st-ota (https://github.com/PRG-MPU-CUST/meta-st-ota).In our setup rootfs must become read-only because of dm-verity application on rootfs requested by secure boot scheme.Currently, making rootfs r/o is not possible because of post-install.sh rauc handler, which writes to the rootfs.The problem, that after an update bundle installation, rauc calls the post-install.sh. This script edits MOUNT_PARTITIONS_LIST in the mount-partitions.sh script in rootfs of the next slot to mount correct `-a` or `-b` bootfs or vendorfs after the reset.The solution that we think about, is to remove rootfs changing step from post-install.sh and to make mount-partitions.sh slot aware. Instead of mounting from MOUNT_PARTITIONS_LIST variable as-is, mount-partitions.sh should read the current slot from /
Hi, I'm trying to understand the firmware / software stack update and I'm quite confused with one thing.I'm quite familiar with the PSA firmware update, metadata, TF-A integration and so on, I've got an access to meta-st-ota.From what I understand, once you find the active boot index in TF-A, the TF-A writes a boot index into backup registers so that it can be propagated to the next stages. But how do you use this index in the next stage (u-boot) actually? I see that indeed it is used in fwu_plat_get_bootidx function which is only available only when CONFIG_FWU_MULTI_BANK is enabled, but it's not used in e.g. rauc boot method. So that why I'm confused. I would rather expect sth like this:- assume active index is set to 0 in metadata- BL2 loads metadata- BL2 lodas boot idx = 0- BL2 sets boot_idx just before it loads BL33- BL2 loads firmware from fip-a- u-boot checks fwu_plat_get_bootidx - u-boot based on boot_idx selects boot-a and root-a (if. boot_idx = 1, u-boot selects
How can we read GPS data in STM32MP135F-DK
Dear ST Team,We are working on enabling and running the Cortex-M33 core on the STM32MP257F-DK board using U-Boot v2023.10-stm32mp-r2.https://wiki.st.com/stm32mpu/wiki/How_to_start_the_Cortex-M_coprocessor_from_U-BootDespite following the procedure described above link from the ST wiki, we are unable to successfully load or start the M33 firmware from U-Boot.The rproc load command returns load remote processor failed. Please refer the screenshot for the error message. rproc start,rproc stop,rproc ping returns Operation Failed with error (-19)rproc list command returns no output.We are facing issues while accessing certain registers using the md command in U-Boot.Specifically, attempting to read RAMCFG registers causes U-Boot to jump into its error handler.Thanks in advanceBest RegardsAkshitha Pattem
Hii,I am working on a custom board based on the STM32MP257FK3 SoC. For initial bring-up, I am currently using a Linux/bootloader build that was generated for the STM32MP257F-DK reference board.On my custom hardware, the DDR memory has been changed from LPDDR4 (used on the DK board) to DDR3. While reviewing the STM32MP25 software stack, I noticed that the DDR type impacts not only the DDR controller configuration but also the PMIC voltage settings, which differ between LPDDR4, DDR3, and DDR4 designs.I would like clarification on what software changes are strictly required to make DDR3 work correctly on a custom STM32MP257F board.Specifically, I would like to understand whether supporting a different DDR type requires only Device Tree changes, or if bootloader and driver-level changes are also needed. Also, since DDR type affects power requirements, I would like guidance on the PMIC configuration changes required for DDR3. I want to understand which voltages need to be modified, whe
I have both Board "stm32mp257F-dk - F-ev"I try to install chromium on the STM32MP2 , and Successfully installed chromium ,I try to play video on YouTube it is to lagging , smoothly play on 360p only, without YouTube i treid different method to play video on chromium. but also the output same,is there any thing to reslove this issues?My project based of Web display with high resolution video upto 1080p60 fps on HDMI .please give me the update on this, can my project work on this board.
Edit: Sorry it was because I didnt gave ARCH parameter to make. (it looks like) I am trying to build u-boot for stm32mp157f-dk2 using git clone -b v2023.10-stm32mp-r1 https://github.com/STMicroelectronics/u-boot.git I am getting below error: HOSTCC scripts/dtc/dtc-parser.tab.o CC lib/asm-offsets.s CC arch/arm/lib/asm-offsets.s /usr/lib/python3/dist-packages/setuptools/dist.py:759: SetuptoolsDeprecationWarning: License classifiers are deprecated. !! ******************************************************************************** Please consider removing the following classifiers in favor of a SPDX license expression: License :: OSI Approved :: BSD License License :: OSI Approved :: GNU General Public License v2 or later (GPLv2+) See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details. ******************************************************************************** !! self._finalize_license_expression() /usr/lib/pyth
Hi!I'm going to compile packages to bild a web browser that is optimal for the hardware of MP2.I know that ST Dev team have built an minimal web browser to use in kiosk mode. They have been using Qt Nano Browser.But my goal is to try to build a better web browser that works with down streaming and up streaming.My question is: I need some information from ST about what they have tried. What packages they have been using etc, their suggestions what will work and what they have tried with. A list of packages that support the hardware would be excellent.The source code is going to available at Github for all to use. Even for ST.
The below device tree is for RTL8211F-CG, but i needed help with configuring DT for DP83867IRRGZT, which DT binding should i refer, and if possibly have a DT configured for DP83867IRRGZT, do share it. Hoping for a quick reply,Thanks in advance.&eth1 { status = "disabled"; pinctrl-0 = <&eth1_rgmii_pins_a &eth1_mdio_pins_a>; pinctrl-1 = <&eth1_rgmii_sleep_pins_a &eth1_mdio_sleep_pins_a>; pinctrl-names = "default", "sleep"; phy-mode = "rgmii-id"; max-speed = <1000>; phy-handle = <&phy1_eth1>; st,eth-clk-sel; snps,ext-systime; mdio1 { #address-cells = <1>; #size-cells = <0>; compatible = "snps,dwmac-mdio"; phy1_eth1: ethernet-phy@4 { compatible = "ethernet-phy-id001c.c916"; reset-gpios = <&gpioj 9 GPIO_ACTIVE_LOW>; reset-assert-us = <10000>; reset-deassert-us = <80000>; realtek,eee-disable; reg = <4>; }; }; };FYI, im working on a custom b
I am currently working with the Yocto BSP/meta-layer you provide for the Odyssey STM32MP157C board. I am trying to include the following packages in my image:CORE_IMAGE_EXTRA_INSTALL += "kernel-modules"CORE_IMAGE_EXTRA_INSTALL += "kernel-devsrc"CORE_IMAGE_EXTRA_INSTALL += "kernel-dev"However, these packages are not being recognized or supported in the meta-layer provided. The build either fails or reports that these packages do not exist. I would like to understand whether these components are intentionally excluded from your BSP or if there is an additional layer, configuration, or package feed that I need to enable to use them.I built the image using the github documentation in this link https://github.com/Seeed-Studio/meta-st-odyssey .Could you please guide me on how to properly include kernel modules, development sources, and kernel headers/dev packages in the image for this platform?Any help or documentation reference would be greatly appreciated.
I'm currently trying to boot STM32MP257 DK board.I managed to do it in the past with starter and developer package. I recently got back to it and tried to boot it again but without success.I tried to upload starter package to SD card and EMMC, both ways are not working.I followed guide on https://wiki.st.com/stm32mpu/wiki/STM32MP25_Discovery_kits_-_Starter_PackageSTM32 programmer is able to see the device:❯ STM32_Programmer_CLI -l usb ------------------------------------------------------------------- STM32CubeProgrammer v2.20.0 ------------------------------------------------------------------- ===== DFU Interface ===== Total number of available STM32 device in DFU mode: 1 Device Index : USB1 USB Bus Number : 001 USB Address Number : 006 Product ID : USB download gadget@Device ID /0x505, @Revision ID /0x0011, /STM32MP257FAK Rev.Y, Serial number : 003B002E4136500C00373653 Firmware version : 0x0110 Device ID : 0x0505However, each time I try to upload image to the SD card I get follow
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.