Ask questions and find answers on STM32 microprocessors and dedicated embedded software solutions, such as Yocto SDK, Qt, and OP-TEE.
Most recent activity
Hello, I'm changing the DDR3 size from 512MB to 1GB on the STM32MP135F-DK board. The modifications were done as below. After that, I met the OPTEE header parse error. Compilation and updating software on board was conducted according to the ST wiki. ( https://wiki.st.com/stm32mpu/wiki/How_to_cross-compile_with_the_Developer_Package ) Please help me to solve this problem. change from 0x20000000 to 0x40000000 stm32mp135f-dk.dts in Linux Kernel, U-Boot, TF-A, and OP-TEE stm32mp135f-dk-fw-config.dts in TF-A stm32mp13-ddr3-1x8Gb-1066-binF.dtsi in TF-A (DDR_ADDRMAP6 0x0F070707 ==> 0x07070707) conf.mk in OP-TEE Thanks. NOTICE: CPU: STM32MP135F Rev.YNOTICE: Model: STMicroelectronics STM32MP135F-DK Discovery BoardNOTICE: Board: MB1635 Var1.0 Rev.E-02INFO: PMIC version = 0x21INFO: Reset reason (0x35):INFO: TF-A simple example helloINFO: Power-on Reset (rst_por)INFO: FCONF: Reading TB_FW firmware configuration file from: 0x2ffe0000INFO: FCONF: Reading firmware configuration
The STM32MP133A supports Linux, and has PTP support in its ethernet peripheral. However, there doesn't seem to be a driver, or port of ptpd for that specific hardware.The peripheral seems similar to other STM32 parts for which there are community ports of ptpd, buta) not officially supportedandb) for FreeRTOS, not Linux. Has anyone used ptpd with a STM32MP133A and Linux? Does ST support it at all?
Hello Madam/sir, Recently we have purchased STM32MP157F-DK2 development board, and we are very new to this board. We are trying to install PyQt5 on this board but we are getting error "Package not found" and also we are not getting proper link to install Python "GPIO Libraries" So we required kind support for our future development by using this board. Thanks and regards Shailesh Parashar Sr. R&D Engineer Scientific Mes Technik Pvt. Ltd. Indore
Hi all.I'm developing a QT/QML application for my embedded openSTLinux project. This application has to play some videos with relative audio. I'm trying to play a mp4 file. If I use the following gst-launch-1.0 playbin uri=file:///home/root/media/my_video.mp4 video-sink="waylandsink sync=false"audio and video are played correctly. Instead, if I use QML code, for example this Item { id: idVideo visible: true width: 1024 height: 600 Video { id: videoExample anchors.fill: parent source: "file:///home/root/media/my_video.mp4" autoPlay: true focus: true } }or thisItem { id: idVideo visible: true width: 1024 height: 600 MediaPlayer { id: mdpExample source: "file:///home/root/media/my_video.mp4" autoPlay: true } VideoOutput { id: videoExample anchors.fill: parent source: mdpExample } }the display shows nothing (black screen) but the audio is played correctly.Below the "gstreamer" plugins I have installed in my openSTLinux imagegstreamer1.
Hi all,I'm part of a software team that's working on a product based on the stm32mp15, running Yocto images based on the V4.1.1 ecosystem release. We're currently thinking of upgrading the Qt version in our images from Qt5 to Qt6, and while we are able to get it working, we've noticed that the performance is slightly slower than Qt5's - at least in the example applications we provide.We ran some tests on the stm32mp15-eval board and built two sets of st-example-image-qtwayland images from a openstlinux-weston distro based on the v4.1.1 ecosystem, using Qt5 in one image and Qt6 on the other. We applied the following changes:For the Qt5 images, install an alternative version of the cinematicexperience package built from this fork on commit 5d44dd7d4fd563b33570a14c2274e7fa9cc7d84f: https://github.com/alpqr/qt5-cinematic-experienceFor Qt6 images, install the same cinematicexperience package, but using commit fea04d7004a1608308c11189d74bb92d3decbe3d instead (basically, modifying the sources
STM32MP157AAAC custom board. Ethernet works with ECO 1 & 3.1. Used CubeMX to a add ethernet. PHY provided clock to MAC. RGMII interface. 1000Mb/s2. Applied changes exactly as based on the WIKI and as generated by CubeMX to OP-TEE U-boot and KernelBoot Log shows[ 1.548830] stm32-dwmac 5800a000.ethernet: IRQ eth_lpi not found => this also happens on working boards.[ 1.689460] stm32-dwmac: probe of 5800a000.ethernet failed with error 1[ 22.383311] using random self ethernet address[ 22.386439] using random host ethernet addressu-boot seems the interface and mii command workifconfig does not show eth0 interfaceNo other dwmac messages in boot log that those above
Dear I am creating an image for the stm32mp157c_dk2_defconfig board. Using buildroot the following error appears: Building stm32mp1CC drivers/io/io_block.cCC drivers/io/io_dummy.cCC drivers/io/io_mtd.cCC drivers/io/io_storage.cCC drivers/st/crypto/stm32_hash.cCC drivers/st/io/io_stm32image.cCC plat/st/common/stm32mp_auth.cCC plat/st/common/bl2_io_storage.cCC plat/st/stm32mp1/bl2_plat_setup.cCC drivers/mmc/mmc.cdrivers/st/io/io_stm32image.c: Na função ‘stm32image_partition_read’:drivers/st/io/io_stm32image.c:249:13: erro: ‘result’ may be used uninitialized [-Werror=maybe-uninitialized]249 | int result;| ^~~~~~cc1: todos os avisos estão sendo tratados como errosmake[2]: *** [Makefile:1131: /home/ubu/projects/buildroot/output/build/arm-trusted-firmware-v2.5/build/stm32mp1/release/bl2/io_stm32image.o] Erro 1make[2]: ** Esperando que outros processos terminem.CC drivers/partition/gpt.cmake[1]: *** [package/pkg-generic.mk:293: /home/ubu/projects/buildroot/output/build/arm-trusted-firmware-
Hi,in our STM32MP project, we have some unused securable peripherals. We generate our devicetree bindings with CubeMX where we have not selected anything for these peripherals. Accordingly, they do not show up in the `st,decprot` attribute in the `&etzpc` block in the devicetree.At boot, TF-A prints e.g.: "INFO: ETZPC: UART1 (3) could be non secure". What should this info tell us? Is there anything we need to be concerned about?According to the reference manual, the default register setting for USART1 should be "0b00" which corresponds to "secured". So in my opinion, USART1 should implicity be secured.Thanks in advance
HelloI would like to understand the EDMK (Encryption Decryption Master Key). This key is used to decrypt and encrypt BL2 and FIP binaries.Are there any other application of this key? For example, can it be used for LUKS ?Is it possible to access some API to encrypt/decrypt using this key? Or is it reserved to the ROM code?Thanks
on the left CubeMX generated for STM32MP157AAAC and on the right, dk1 dts included: stm32mp15-pinctrl.dtsi (kernel dtsi)The biases are reversed and the pin controls are in separate groups in the DK1 dtsi files. and the slew rates are diferent.i am wondering if this is the reason why mmc dev 1 , mmc info uses 4 bits for GPIO even 8 bits bus is declared.
Hello,we are using STM32MP157A-DK1 Board.we are trying to ping ethernet continuously in uboot can you suggest us how to ping ethernet continuously using commands.Is there any option to write script in uboot to ping continuously.Plese suggest how to write the script.regards,Navaneeth kumar
Hello everyone,I would like to implement a basic spi communication with an sx1276 transceiver using CM4 as master in standalone mode in order to get the chip id. The spi5 configuration has been done using stm32cubeide which is the way i did it with another couple of mcus (stm32l476rg, stm32l432kc), and it has worked fine. Could anyone help me providing any advice with the following code or an example of a basic spi communication in that context (CM4 in standalone mode on STM32MP157A-DK1). What is wrong ? /* USER CODE BEGIN Header */ /** ****************************************************************************** * @file : main.c * @brief : Main program body ****************************************************************************** * @attention * * Copyright (c) 2023 STMicroelectronics. * All rights reserved. * * This software is licensed under terms that can be found in the LICENSE file * in the root directory of this software component. * If no LICENSE file
I'm working on an audio-processing application with the STM32MP157F-DK2 discovery board. While evaluating the hardware, I built and installed the system using the distribution package. I used the following command to record sound via the 3.5mm audio jack:arecord -D record_codec -f S16_LE -d 10 /tmp/rec.wavAfter examining the resulting file, it seems like the board was unable to capture any sound from the 3.5mm audio jack input (which I connected to an AKG headphone that has a microphone). The only thing I can hear is some background noise (and it is still the case even if I use SSH to transfer the recorded file to my computer and play it back there, so it can't be the output issue).Any insight for recording audio on this board? Thanks a lot.
I am testing the openstlinux distribution and I am creating an image from the st-image-weston image. The thing is that when I want to use the package installer I can't use the apt-get update command or any other. In this case the problem seems to be that the repository doesn't support the architecture, but I don't really know why since the distribution was created with the intention of working with this MPU. Any suggestion of what could be the fault?This is what I see on console:root@stm32mp1:~# apt-get update The software package is provided AS IS, and by downloading it, you agree to be bound to the terms of the software license agreement (SLA). The detailed content licenses can be found at https://wiki.st.com/stm32mpu/wiki/OpenSTLinux_licenses. Hit:1 http://packages.openstlinux.st.com/3.1 dunfell InRelease Reading package lists... Done N: Skipping acquire of configured file 'main/binary-${DPKG_ARCH}/Packages' as repository 'http://packages.openstlinux.st.com/3.1 dunfell InRelease' do
HelloI read the article related to HUK. However it seems it does not explain how to use the HUK for STM32MP135F-DK.On STM32MP13xC/F lines,STMicroelectronics provisions an HUK in the OTPs. These OTPs cannot be read with the BSEC IP. The OTPs storing the HUK are directly wired to SAES.SAES computes internally a derived HUK (DHUK). The value of the DHUK depends on the privilege level, key selection, key selected mode, the chaining mode, and on whether the SAES peripheral is secure or non-secure.From that I do not understand how can we use HUK with dm-crypt for example for LUKS encryption.Also I saw there is this article not working anymore: https://wiki.st.com/stm32mpu/wiki/How_to_encrypt_a_disk_with_dm-cryptCould you point me to some documentation?Thanks
HI STM32 Team,What is the boot process of STM32MP157A-DK1 BOARD and where to study that. Thanks in advance,Regards,A. Ajith Kumar
I have to deploy a NN on this device and I want to optimize cache for improving the energy efficiency.
Hi, I'm reading up on stm mp1, in particular the Linux side, my intent was to use the M4 to read data from sensors and transfer them to the A7 on the Linux side. Now I've read the function in C code that reads the messages from the manual: read:int readTtyRpmsg(int FdRpmsg, int len, char* pData) { int byte_rd, byte_avail; int result = 0; if (FdRpmsg < 0) { printf("CA7 : Error reading ttyRPMSG, fileDescriptor is not set\n"); return FdRpmsg; } ioctl(FdRpmsg, FIONREAD, &byte_avail); if (byte_avail > 0) { if (byte_avail >= len) { byte_rd = read(FdRpmsg, pData, len); } else { byte_rd = read(FdRpmsg, pData, byte_avail); } result = byte_rd; } else { result = 0; } return result; }my question if there is a way to read data with interrupt or every time I have to query this function, how do I know if the data to read in msg is available without querying the function Thank you
Hello, i am working on the STM32MP157C to use its ADCs. at first i was only using the iio framwork on linux , however it is limited. so i'm trying the examples on the (github page) using the Linux Remoteproc . my board configuration is different since that i'm using OSD32MP1-brk. I am using the SWD to debug the MPU using ST-link V2 as shown in the figure 1.Figure1: ST-LINK V2 USB Dongle ProgrammerNow after compiling the code and Loading the compiled ELF firmware in the remote processor memory using the cube mx ide and the provided shell scrip in the example it seems to run without issues. how ever i have no indication of what the ADCs are doing, with the debugger i was only using engineering mode to compile and load it to the M4 but then linux isn't running so the variables are showing empty... I don't know if i'm doing the right thing or not since i'm not using the development board that was originaly used for the examples. since that i have i different pin mapping in the device
HelloI hope you are doing wellI read the TF-A documentation and I found out that there is a POC for TPM service that measures event logs during startup. Source: https://trustedfirmware-a.readthedocs.io/en/latest/design_documents/measured_boot_poc.htmlIs there any work that has been done on the STM32MP1 boards?We have a STPM4RasPI board with TPM supported in u-boot and kernel however is there a way to use it in TF-A/OPTEE to achieve measured boot?ThanksBest
i am using openstlinux starter package use in stm32mp135-dk. i want to know how to upload a video in sd card of board and also how to play in board.
Hi,I am new in STM32MP1 MPU Linux and wish to get the guiding to start developing Linux OS app for my board. The first question:I need to switch GPIO pins. Any suggestions where to start for single core MPU STM32MP135. Thanks.
Dear All, I have followed the instruction as per Intro to Embedded Linux Part 2 - Yocto Project.The compilation for layer kirkstone. When i run the command "bitbake core-image-minimal" it give error after 4 hours of work.The error is pasted below./home/mypc/Projects/yocto/build-mp1/tmp/work/stm32mp1-poky-linux-gnueabi/m4projects-stm32mp1/1.6.0-r0/git/Projects/STM32MP157C-EV1/Demonstrations/AI_Character_Recognition/Src/app_x-cube-ai.c:91:3: internal compiler error: Illegal instruction | 91 | if(imax >= 0 && max > 0.5F) | | ^~ | 0x1521b50 diagnostic_impl(rich_location*, diagnostic_metadata const*, int, char const*, __va_list_tag (*) [1], diagnostic_t) | ???:0 | 0x15227d6 internal_error(char const*, ...) | ???:0 | 0xb7838f crash_signal(int) | ???:0 | 0x1721239 __gmpn_tdiv_qr | ???:0 | 0x17036ed parsed_string_to_mpfr | ???:0 | 0x1704497 mpfr_strtofr | ???:0 | 0xae57ec real_from_string(real_value*, char const*) | ???:0 | 0xae61cb real_from_string3(real_value*, char c
Hello,we have developed a project in STM32CubeIDE which already works.the the project is generated "Under Root" like this: Now we want to implement the compilation in a yocto layer instead of use .elf directly.we have take into account the extended recipe of example project (recipes/extended/M4projects) and we have adapted it to compile our project. However the .elf files are not same size as the ones generated in CubeIDE and doesnt work.is there any solution to implement the compilation of CM4 firmware in yocto ?thank you
Hi ST experts,I'd like to build a bare metal ARM cortex-A7 driver for my MIPI DSI display module. Because there is no HAL driver for LTDC and DSI host then I decided to build it from scratch. I followed the procedures from the STM32MP RM document to configure the parameters and initialize the HW. However, I couldn't read the display ID from DCS read command, checking bit 4 PRDFE (in register DSI_GPSR) is always 1. I tried to configure u-boot to support my display module, compiled the u-boot then I could execute DCS commands without any problem. It took a few weeks to compare my driver implementation line by line with the u-boot driver, even dumping out all the register values. Finally, I noticed there is a different register setting in the u-boot driver:#define WRPCR_REGEN BIT(24) /* REGulator ENable */#define WRPCR_BGREN BIT(28) /* BandGap Reference ENable *//* Enable the regulator */dsi_set(dsi, DSI_WRPCR, WRPCR_REGEN | WRPCR_BGREN);There is no bit 28 in the RM document. Interestingl
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.