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've been working on this for a few days now, I can't seem to get the DAC to work with the DMA. I can get the DMA to work with ADC easily, I can use the DAC without DMA easily, but the DAC doesn't feel like working with the DMA. I set up the DMA to work with the DAC channel 1 using DMA1 channel 3. I set up the interrupt to be timer 6. My code for setting things up is HAL_TIM_Base_Start(&htim6);HAL_DAC_Start_DMA(&hdac1, DAC_CHANNEL_1, (uint32_t*) &dma_buffer, 2*DMA_BUFFER_SIZE, DAC_ALIGN_12B_R); This code is put outside of the while loop in the main function. I also checked for error codes using uint32_t result = HAL_DAC_GetError(&hdac1); anduint32_t result = HAL_DMA_GetError(&hdma_dac_ch1); which both returned 0 in the result when debugging. I put an incrementing variable in the half and fullcomplete callbacks for debugging as well, and these interrupts appear to never fire because the variablesnever increment. I followed a guide on setting
I'm trying to get PySide6 and some common Python packages on my STM32MP257. "apt-get install python3-PySide6" doesn't work. I also tried to install the PySide6 package using pip3, which installed successfully, but gave me the error "ImportError: libX11.so.6: cannot open shared object file: No such file or directory" when I actually ran it. It seems to be missing some dependencies to support the Qt and GUI development I want to do. At this point, I'm stuck. I am using the STM32MP257F-DK development kit.
Hi, I'm new of linux.Now I have two network interface on my board, end0 for ethernet & en1u2i4 for 4G modem.The ethenet(end0) is directly connected to my PC only for development that I can use ssh to connect my board.And I want the other connection transfered by 4G modem(en1u2i4), so I use "route del default" to delete the first rule of the routing table. That will work. But I need to do this everytime the board boot up.Are there settings can be modified in the system? Or should I write a script to do "route del" command with a startup service?Thank you.
Hello. Could someone clarify for me where this message is coming from and how can I fix it?stm32_etzpc bus@5c007000: rng@54003000 not allowed on bus (-13)Is it OP-TEE or U-Boot miss-configuration?I'm trying to patch openstlinux-6.6 OP-TEE and U-Boot for the STM32MP157C Odyssey based on the https://github.com/Seeed-Studio/meta-st-odysseyThis is my boot log:NOTICE: CPU: STM32MP157CAC Rev.Z NOTICE: Model: Seeed Studio Odyssey-STM32MP157C Board NOTICE: BL2: v2.10-stm32mp1-r1.0(release):v2.10-stm32mp-r1.2-dirty(cfe4a020) NOTICE: BL2: Built : 08:41:18, Jun 30 2025 NOTICE: BL2: Booting BL32 I/TC: Early console on UART#4 I/TC: I/TC: Embedded DTB found I/TC: OP-TEE version: 4.0.0-stm32mp-r1.2-dev (gcc version 13.3.0 (GCC)) #1 Mon Jun 30 08:40:36 UTC 2025 arm I/TC: WARNING: This OP-TEE configuration might be insecure! I/TC: WARNING: Please check https://optee.readthedocs.io/en/latest/architecture/porting_guidelines.html I/TC: Primary CPU initializing I/TC: WARNING: All debug accesses are a
Hi,I am working on optimizing the boot process on my STM32MP157DAC board by removing U-Boot and booting the Linux kernel directly. I’ve been following the documented procedure from ST for the STM32MP1 series:ST Wiki - How to optimize the boot timeTF-A ConfigurationI’ve updated the configuration in stm32mp1_def.h as follows:#define STM32MP_BL33_BASE (STM32MP_DDR_BASE + U(0x2008000))#define STM32MP_BL33_MAX_SIZE U(0x3FF8000)SD Card Timeout ModificationModified the SD card timeout value in <tf-a_sources>/drivers/st/mmc/stm32_sdmmc2.c:timeout = timeout_init_us(TIMEOUT_US_1_S * 10);TF-A Build Process:I applied the changes as a patch through my custom Yocto layer and rebuilt the tf-a-stm32mp recipe successfully.Kernel Configuration:I added the following configuration parameters to my stm32_defconfig:CONFIG_CMDLINE_BOOL=yCONFIG_CMDLINE="root=PARTUUID=e91c4e10-16e6-4c0e-bd0e-77becf4a3582 rootwait rw earlyprintk earlycon console=ttySTM0,115200"I created and applied a patch
Hi everyone,I'm attempting to optimize the boot process on my STM32MP157F-DK2 board by removing U-Boot and booting the Linux kernel directly via the FIP. I've followed the documented steps for STM32MP1:TF-A BL2 Modifications:Updated STM32MP_BL33_BASE and STM32MP_BL33_MAX_SIZE in the STM32MP1 header file.Increased the SDMMC timeout in stm32_sdmmc2.c to accommodate the larger kernel image.FIP Creation:Recompiled TF-A with my modifications.Created a new FIP where I replaced the U-Boot binary and its DTB with my Linux kernel Image and DTB.The new FIP (fip.bin) now contains the kernel and DTB.Flash Layout TSV Modifications:I updated the TSV file to allocate a larger space for the FIP. Below is the relevant excerpt:Despite these modifications, every time I execute the process, it fails. My questions are:What is the purpose of the bootfs partition?Since my new FIP (fip.bin) already contains the Linux kernel and its DTB, I'm unclear why the flash layout still reserves a bootfs partition. Is it
I've been playing with the STM32MP257-DK, first looking at the start package. I have now delved further with the developer package, and ran into issues while following the README.HOW_TO.txt that is found in the linux kernel directory. I followed the directions exactly, and created the filesystem structure as shown in ST documents. But when I run this line below, I get failures. It seems the external device tree does not have a .dtb file. When Iook at what is present in the external device tree directory it only contains .dts files, but NO .dtb files. The previous instructions place the .dtb files in the following locations. The error seems to be in the <name of external devicetree .dtb> argument. I tried pointing it to the install_artifact/boot but that does not fix the issues even though there are .dtb files there since MAKE looks for the .dtb files specifically in the KBUILD_EXTDTS="${EXTDT_DIR}/linux" argument. I also tried pointing it to the build/arch/ar
Hi there, I am working with the STM32MP135F-DK microprocessor and have already designed the user interface in Figma. Now, I would like to move forward with developing this UI. Which tool should I use to implement the UI on the STM32MP135F-DK? If I choose to use Qt Creator, can I use the open-source version for a client project, or would I need a commercial license? Are there any legal limitations or issues I should be aware of? Thanks in advance for your guidance.
Hello, I'm working on PTP synchronization using the STM32MP257F-DK development board, and I'm encountering an issue with generating a PPS output on a GPIO pin. I'm using Buildroot as the build system, configured with the Bootlin external tree available from : https://github.com/bootlin/buildroot-external-st/tree/st/2024.02.9?tab=readme-ov-file I want the STM32MP257 board to operate as a PTP slave to an external grandmaster clock. To verify synchronization accuracy, I'm trying to observe the PPS output on the PF4 pin, which corresponds to ETH1_PPS_OUT according to the datasheet, using an oscilloscope. Here are the steps I followed: Buildroot configuration: I enabled linuxptp package, I also enabled PTP clock support --> KVM virtual PTP clock in the Device Drivers PTP configuration: I modified the /etc/linuxptp.cfg as follows: [global]verbose &n
When trying to boot from emmc I get the following error ...�NOTICE: CPU: STM32MP157DAB Rev.Z NOTICE: Model: STMicroelectronics STM32MP157DAB-INSTRUO-SOM INFO: PMIC version = 0x21 INFO: Reset reason (0x15): INFO: Power-on Reset (rst_por) INFO: FCONF: Reading TB_FW firmware configuration file from: 0x2ffe2000 INFO: FCONF: Reading firmware configuration information for: stm32mp_io INFO: Using EMMC INFO: Instance 2 INFO: Boot used partition fsbl1 ERROR: Boot interface 2 not supported PANIC at PC : 0x2ffebe9d Exception mode=0x00000016 at: 0x2ffebe9dI assume this is an error with my tf-a bootloader? I compiled tf-a with the build flag STM32MP_EMMC=1. Are there any other modifications/variables to set when building the tf-a to enable it to boot from emmc?
We're in the process of upgrading our custom board software to STM32MPU-Ecosystem-v6.0.0, using Buildroot as our build system (buildroot-external-st st/2024.02.9). Our device uses standby mode for low-power operation, and we rely on RTC wakeup and buttons connected to three wakeup pins (PI1, PI2, and PI3) to resume the system. We followed the same procedure as with STM32MPU-Ecosystem-v5, applying the same configuration changes. While we are able to enter standby mode successfully, we are facing issues with resuming from it. Debug logs do not show any errors. We’ve included our OP-TEE and Linux device tree files below. Could you help us identify if there’s anything missing or incorrect in our configuration?
Good morning,fairly new to this mpu family, I did a bit of a research but I'd like to get pointed to the correct procedure to, for instance, change bit 31 of RCC_SECCFGR.This register would allow me for example to modify also PWR_CR1:BDP and PWR_CR2:MONEN registers/bits by unblocking PWR registers protection.Assuming I'm working in a yocto/meta-st environment my first thought is to patch optee-os-stm32mp to modify that register and the PWR registers too since this kind of operations usually require secure context.Question:- Is there any easier approach, or high level approach (eg from uboot or kernel through SCMI) ?Thanks in advance.
Hi,I am testing TBB on a stm32mp157f-dk2 platform, yocto, kirkstone, sp_min version. I am wondering on the FIP package creation and singing keys.FIP_SIGN_KEY -> is set to my private ROT key.After unpacking the "fip.bin" into separate files i get all the needed components:fw-config.binhw-config.binnt-fw.binnt-fw-cert.binnt-fw-key-cert.binstm32mp-cfg-cert.bintb-fw-cert.bintos-fw.bintos-fw-cert.bintos-fw-config.bintos-fw-key-cert.bintrusted-key-cert.binAnalyzing the all certificates (*cert.bin files) it appears, that the some of them are not signed with the ROT key, as you can see in the "public key" section of the certificate.Analyzing deeper, looking into fip-utils-stm32mp bbclass, I could find, that the cert_create tool is using "-n" option and is generating additional key pair for signing i.e nt-fw.bin. I understand that it generates pair of TRUSTED_WORLD_KEY and NON_TRUSTED_WORLD_KEY, which are used later to follow CoT boot. But I can't find those keys in build dir nor I can'
Dear ST Community,We are working with the STM32MP257F-EV1 evaluation board and using the Yocto Distribution Package for our software stack.Currently, the STPMIC2 is managed entirely by the secure world (TF-A and OP-TEE) on the Cortex-A35 side.Our goal is to access STPMIC2 from the Cortex-M33 core running in non-secure mode with read-only access.We would like to confirm:Is it possible to allow secure access from A35 (TF-A/OP-TEE) and read-only, non-secure access from M33 to the STPMIC2 simultaneously?If yes: could you please share the recommended steps or configuration changes to implement this?If not:We are considering moving PMIC control to the non-secure world (U-Boot or Linux) instead of TF-A/OP-TEE.In this case, could you please provide guidance on how to disable PMIC access in the secure world and enable it in U-Boot or Linux?Also, does U-Boot or the Linux kernel include support for the STPMIC2 driver?Any insights or references to relevant documentation would be greatly appreciate
Hi,We are developing a GUI using MATLAB App Designer and want to deploy it on an STM32MP257 running Yocto Linux.I have a few questions:Can a standalone app generated by App Designer run on Yocto? Does it need the MATLAB Runtime, and is that supported on Yocto?What about exporting it as a web app? Can the MATLAB Web App Server run on STM32MP or Yocto?Any clarification, workarounds, or suggestions for deploying MATLAB-generated applications on STM32MP with Yocto would be greatly appreciated.Thank you in advance!
I am trying to build kernel module programme out-of-tree module with the help of ST WIKI document. But unfortunately we are facing the compilation error where while do_installation work. It says mymodule.ko "NO such file or directory".Note : I am using DEVTOOL. And i attached the link which i used to build our kernel module programme.https://wiki.st.com/stm32mpu/wiki/How_to_cross-compile_with_the_Distribution_Package#Adding_an_external_out-of-tree_Linux_kernel_module
Dear sir/mam, We are currently working on generating interrupts for USB functionality. As per the Reference Manual RM0457: STM32MP2325xx Advanced ARM-Based 32/64-bit MPUs, it is specified that the GIC interrupt number for USB_EHCI is 171.However, we are encountering an issue where the interrupt remains continuously active without being cleared after writing 171 to the relevant registers. Interestingly, when writing any interrupt number other than 171, the interrupt is cleared as expected. Best Regards,akshithap
Platform:Yocto version: openstlinux-6.6-yocto-scarthgap-mpu-v24.11.06Machine: stm32mp1Build environment: Ubuntu 22.04Target image: st-image-weston Summary:I'm attempting to integrate PyQt5 into the latest ST OpenSTLinux (Scarthgap-based) BSP. While the build proceeds fine up to qtbase, the compilation fails when reaching python3-pyqt5, due to a LONG_BIT platform-related error. Steps Followed:1. repo init -u https://github.com/STMicroelectronics/oe-manifest.git -b refs/tags/openstlinux-6.6-yocto-scarthgap-mpu-v24.11.062. repo sync3. git clone https://github.com/meta-qt5/meta-qt5.git -b scarthgap ( copied into layers folder)4.DISTRO=openstlinux-weston MACHINE=stm32mp1 source layers/meta-st/scripts/envsetup.sh5. bitbake-layers add-layer layers/meta-openembedded/meta-python6. bitbake-layers add-layer layers/meta-qt57. Added IMAGE_INSTALL:append = " python3-pyqt5" in conf/local.conf8. bitbake st-image-weston local.conf Additions:# GPU / Qt5 related configDISTRO_FEA
Hi there,I am in the process of creating a custom machine for the STM32MP257F-DK board following this Wiki guide. After following the necessary steps, I can successfully bitbake st-image-weston with my CubeMX-generated device tree files.I am hitting an issue where updates to my device tree source (within the mx/ directory in the meta-st-stm32mp-addons layer) are typically not reflected in the output image. As a simple test, I am changing the model name then running bitbake st-image-weston. It looks as if bitbake does carry out some recompile/configure of linux-stm32mp but after updating the board (using the flash-layout-x-.tsv). The model name change is not reflected.This sounds similar to an issue mentioned in this post. As suggested, I have confirmed the #@NAME: variable reflects my custom machine name and have tried forcing a rebuild with:bitbake linux-stm32mp -c cleanallbitbake linux-stm32mpbitbake st-image-weston Very occasionally, changes to the kernel dts have bee
How can I enable a timer as a counter in the device tree? When checking the status using cat, the result shows 'OK', and a counter device file is created in /dev, but no corresponding counter entry appears in sysfs.
how to configure the general purpose TImers and External gpio interrupt in stm32MP257f -ev1
Hello,I'm trying compiling OpenSTLinux 6.6 for STM32MP257-EV1 using developer package + X-LINUX-RT expansion package. I've followed X-LINUX-RT expansion package guide at par. 7.2 and compiled linux kernel and optee successfully.Now I'm trying to compile u-boot but the process stops with following errors: LD u-boot OBJCOPY u-boot.srec OBJCOPY u-boot-nodtb.bin RELOC u-boot-nodtb.bin make[4]: *** No rule to make target 'arch/arm/dts/stm32mp257f-ev1-rt.dtb', needed by 'dtbs'. Stop. make[3]: *** [/home/marco/MP257_Ecosystem6/en.SOURCES-stm32mp2-openstlinux-6.6-yocto-scarthgap-mpu-v24.11.06_X-LINUX-RT/stm32mp2-openstlinux-6.6-yocto-scarthgap-mpu-v24.11.06/sources/aarch64-ostl-linux/u-boot-stm32mp-v2023.10-stm32mp-r1-r0/u-boot-stm32mp-v2023.10-stm32mp-r1/dts/Makefile:44: arch-dtbs] Error 2 make[2]: *** [/home/marco/MP257_Ecosystem6/en.SOURCES-stm32mp2-openstlinux-6.6-yocto-scarthgap-mpu-v24.11.06_X-LINUX-RT/stm32mp2-openstlinux-6.6-yocto-scarthgap-mpu-v24.11.06/sources/
Would this mean that in a few years time STM32MP151, STM32MP231 and STM3MP251 wont be supported anymore by Linux when STLink kernel goes to 6.17 or beyond or this won't apply to non-Intel processors ?https://www.phoronix.com/news/Linux-6.17-Maybe-SMP-Uncondhttps://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git/commit/?h=sched/core&id=cac5cefbade90ff0bb0b393d301fa3b5234cf056
Moved from MCUs form - STM32MP are MPUs, not MCUs.NOTICE: CPU: STM32MP157FAC Rev.ZNOTICE: Model: STMicroelectronics STM32MP157F-DK2 Discovery BoardNOTICE: Board: MB1272 Var4.0 Rev.C-02NOTICE: Bootrom authentication failedINFO: Reset reason (0x15):INFO: Power-on Reset (rst_por)INFO: FCONF: Reading TB_FW firmware configuration file from: 0x2ffdd000INFO: FCONF: Reading firmware configuration information for: cot_descINFO: FCONF: Reading firmware configuration information for: tbbrINFO: FCONF: Reading firmware configuration information for: stm32mp_ioINFO: Using SDMMCINFO: Instance 1INFO: Boot used partition fsbl1NOTICE: BL2: v2.6-stm32mp1-r2.1(release):v2.6-dirty(a1f02f4f)NOTICE: BL2: Built : 13:14:26, Nov 23 2021NOTICE: TRUSTED_BOARD_BOOT support enabledINFO: Using crypto library 'stm32_crypto_lib'INFO: BL2: Doing platform setupINFO: RAM: DDR3-DDR3L 16bits 533000kHzINFO: Memory size = 0x20000000 (512 MB)INFO: BL2: Loading image id 1INFO: Loading image id=17 at address 0x2ffff000INFO: Ima
Dear STMicroelectronics Support Team,I am currently working with the STM32C011F6 microcontroller and attempting to enter the built-in system bootloader via software from my application. My goal is to flash the device over I²C from an external processor (RFSoC running Linux), without toggling the BOOT0 or RESET pins.I followed the STM32 application notes AN2606 and AN4221 closely and implemented the bootloader jump using the standard approach:1. Disabling all interrupts (NVIC->ICER / ICPR)2. De-initializing peripherals (HAL_DeInit, HAL_RCC_DeInit)3. Stopping SysTick4. Setting the MSP from address 0x1FFF00005. Jumping to the bootloader reset handler at 0x1FFF0004From the external I²C master, I send the `0x7F` SYNC byte, and I **consistently receive a NACK (0x1F)** instead of the expected ACK (0x79). I confirmed the I²C lines (PA9 and PA10), 100kHz speed, correct pull-ups, and that the STM32 is not held in reset or debug mode. I also verified that the bootloader jump function is being
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.