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 am using stm32mp157d from stm32mp1 dk1 to work on an embedded project. When I boot bare-metal from A7, I have no trouble to read and write to UART 4, however I run into a wall when I try to user UART 7 or USART3. The HAL library works for UART4, so I do not believe that the problem lies there.That been said, there seem to be a mismatch in the documents about the pins of USART3.In the document Discovery kits with increased-frequency 800 MHz STM32MP157 MPUs (UM2637) It is stated that USART3 is at CN2, physical pin 8 for TX and pin 10 for RX (9 used for ground) with their in-code name B10 and B12 respectively.In the document Datasheet - STM32MP157A/D under Table 8Alternate function AF0 to AF7, USART3_TX appears as PD8, PC10 , and PB10 USART3_RX appears as PD9, PC11, and PB11.So far, I have tried to start USART3 without init any GPIO, trying port b8, b10 , b11 ,c10, c11, D8, D9. I tried those ports in low and high freq.Please help me understand which ports do I need t
I have a python script. Do I want to launch it when the platform starts or by touching the screen?how to create a custom desktop shortcut on stm32mp157-dk2?
tpy to use Pandas on STM32mp157F-DK2.very simple example - Python.df = pd.DataFrame(np.random.randn(6, 4), index=dates, columns=list("ABCD"))print(df) I get an error File "pandas/_libs/internals.pyx", line 717, in pandas._libs.internals.BlockManager._rebuild_blknos_and_blklocsValueError: Buffer dtype mismatch, expected 'intp_t' but got 'long long' Problem with panda or build?I added several packages to the image. IMAGE_INSTALL:append = "\ packagegroup-core-buildessential \ python3-scipy \ python3-pip \ python3-matplotlib \ python3-pandas \ networkmanager \ "
We need to store some of our application data in BKPSRAM block so we can persist it during power down. Here is the code that we created to write to the BKPSRAM block, could you please help me to define what is wrong. Thanks.#include <sys/mman.h>#include <fcntl.h>#include <stdio.h>#include <stdlib.h>#include <unistd.h>#include <sys/types.h>#include <stdint.h>#include <sys/stat.h>#include <string.h>#define PAGE_SIZE 4096typedef struct __attribute__((packed)) { uint32_t value1; uint32_t value2; char str[24];} MyStruct;int main() { int fd; uint32_t *mapped_memory; // Open /dev/mem fd = open("/dev/mem", O_RDWR | O_SYNC); if (fd == -1) {
Hello,I have been running Ubuntu on the STM32MP157F-DK2, guided by the following resources:https://prog.world/stm32mp1-running-ubuntu-22-04gpu-and-wayland-graphics-server/https://github.com/cvetaevvitaliy/stm32mp1-ubuntu Previously, I successfully used the following configurations:U-Boot: v2020.10-stm32mp-r2.2TF-A: v2.8-stm32mp-r1.1Linux Kernel: v2020.10-stm32mp-r2.2Ubuntu RootFS: ubuntu-22.04-base-stm32mp1-armhf-16-05-2022.tar.gzHowever, I am encountering issues with the latest setup:U-Boot: v2022.10-stm32mp-r1TF-A: v2.8-stm32mp-r1.1Linux Kernel: v6.1-stm32mp-r1Ubuntu RootFS: ubuntu-22.04-base-stm32mp1-armhf-16-05-2022.tar.gzThe main change I made was replacing stm32mp15_trusted_defconfig with stm32mp15_defconfig when building U-Boot.Could anyone provide any insights or suggestions to troubleshoot this issue?Thank you!
I am using Yocto build for stm32mp157f. I am following oe-manifest/default.xml at kirkstone · STMicroelectronics/oe-manifest (github.com).I am able to generate a build, however, I would like to generate tf-a-stm32mp157f-dk2-trusted.stm32 and u-boot-stm32mp157f-dk2-trusted.stm32 which is not getting generated during the build.The contents of final build are shown below:tmp-glibc/work/stm32mp15_disco-ostl-linux-gnueabi/tf-a-stm32mp/v2.6-stm32mp-r2.1-r0/deploy-tf-a-stm32mp ├── arm-trusted-firmware │ ├── debug │ │ ├── debug-tf-a-stm32mp157f-dk2-sdcard.stm32 │ │ ├── debug-tf-a-stm32mp157f-dk2-uart.stm32 │ │ ├── debug-tf-a-stm32mp157f-dk2-usb.stm32 │ │ ├── tf-a-bl2-sdcard.elf │ │ ├── tf-a-bl2-uart.elf │ │ └── tf-a-bl2-usb.elf │ ├── fwconfig │ │ └── stm32mp157f-dk2-fw-config-optee.dtb │ ├── metadata.bin │ ├── tf-a-stm32mp157f-dk2-sdcard.stm32 │ ├── tf-a-stm32mp157f-dk2-uart.stm32 │ └── tf-a-stm32mp157f-dk2-usb.stm32 └── fip └── fip-stm32mp157f-dk2-optee.binI would like to know
An urgent problem occurred in stm32mp157. I used ksz9031 network chip, but it could not be used. The LOG is as follows,[ 18.996823] Micrel KSZ9031 Gigabit PHY stmmac-0:00: attached PHY driver [Micrel KSZ9031 Gigabit PHY] (mii_bus:phy_addr=stmmac-0:00, irq=POLL) Starting Wait for Network to be Configured...[ 19.122107] stm32-dwmac 5800a000.ethernet: Failed to reset the dma[ 19.127072] stm32-dwmac 5800a000.ethernet eth0: stmmac_hw_setup: DMA engine initialization failed[ 19.135979] stm32-dwmac 5800a000.ethernet eth0: stmmac_open: Hw setup failedI can't solve this problem
For a project using the STM32MP135F Discovery kit, I configured ADC1 with an oversampling ratio of 16. However, in sysfs, I can see that the device tree parameter is being ignored: # cat /sys/bus/iio/devices/iio:device0/oversampling_ratio 1 What am I missing?My device tree: #include "stm32mp135f-dk.dts" ... &pinctrl { adc1_pins_a: adc1-0 { pins { pinmux = <STM32_PINMUX('A', 5, ANALOG)>, /* ADC1_INP2 */ <STM32_PINMUX('A', 0, ANALOG)>; /* ADC1_INP7 */ }; }; }; &adc_1 { pinctrl-names = "default"; pinctrl-0 = <&adc1_pins_a>; vdda-supply = <&scmi_vdd_adc>; vref-supply = <&scmi_vdd_adc>; status = "okay"; adc1: adc@0 { status = "okay"; oversampling-ratio = <16>; /delete-node/ channel@6; /delete-node/ channel@12; channel@2 { reg = <2>; st,min-sample-time-ns = <100000>; }; channel@7 { reg = <7>; st,min-sample-time-ns = <100000>; }; }; }; &nbs
Hi, I have an application where the SPI master is sending data every 2 mSecs. The STM32MP157F-DK2 SPI4 and SPI5 are in slave mode. They are receiving the data as expected but the data is skipped between each transfer on SPI4 and SPI5. The application to read the data from master is a threaded application in user space.The data received on SPI4 between 2 subsequent transfers skips 40 to 50 millisecond of data since I have data every 2 mSecs each second there would be 500 packets of close to 80 bytes. From my experiments I have come to know the data is read from the Master only when we have data to send.Attached is the sample data which is showing the observations as above.I would like to change the behavior in a way that SPI4 and SPI5 are always active or can read data without a huge gap between subsequent transactions.Can you please guide what changes or configuration may work here?Note: the original requirement to read the data without any subsequent transaction failure is at 200uSecs
Hello Iam Using Stm32mp157aaa3 processor in my custom board and U boot version 2023.10.Can we load .bin extension file using rproc command in uboot. Tanks & RegardsSrikanth.R
I have a STM32MP157f-dk2 board, the USB OTG port is configured by default to appear as network ethernet adapter when plugged into the PC. I would like to configure the USB OTG port to appear as a mass storage device when plugged into the PC. I am new to kernel and device tree and I wasn't able to find any specific instructions on how to do this. Would anyone be able to provide the steps to do this? Thank you.
Hello.I'm currently trying to download the X-LINUX-AI package for MPU ecosystem v5.0.0.I tried on MP135F-DK & MP157F-DK2, but neither showed a valid installation and both were stuck when executing "apt-get update".For both boards, I used high-quality ethernet cables and checked the connections were okey by executing "ping www.baidu.com", which is the most well-known search engine in China. Both checks were okey, and I did not use a proxy.The following command line piece shows what was going wrong:stm32mp1:/var/cache/apt/archives# dpkg -i apt-openstlinux-ai_1.0_armhf.deb tar: ./control: time stamp 2023-07-07 06:18:19 is 10864980.266958629 s in the future tar: .: time stamp 2023-07-07 06:18:19 is 10864980.264826295 s in the future (Reading database ... 15654 files and directories currently installed.) Preparing to unpack apt-openstlinux-ai_1.0_armhf.deb ... Unpacking apt-openstlinux-ai (1.0) over (1.0) ... Setting up apt-openstlinux-ai (1.0) ... stm32mp1:/var/cache/apt/archives#
I'm new to yocto, I'm trying to add the 'pwquality' pam module to the image for my stm32mp1 but I'm struggling with it, initially I have added this line to the local.conf file:DISTRO_FEATURES:append = " pam"which added pam and some modules but the module that i want which is 'pwquality' was not part of the installed modules, any idea how to add it?
Hello Dear friends From Last couple of days I struck in issue while doing bitbake for stm32mp1 mpu dk2 board.When i do $ bibake st-image-core (Enter)I got error's which posted with snap shots To resolve the issue i did changes to set max value sudo sysctl -w fs.inotify.max_user_watches=65536but still i am not able to bitbake Please help in this regards
Hello everyone,we have a custom board with STM32MP157F. The board is equipped with SD and eMMC. We do not have USB on endproduct. Our plan flashing eMMC is as follows: 1. create yocto image for eMMC 2. create SD image 3. generate SD raw image with the script "create_sdcard_from_flashlayout.sh" 4. dd the sd raw image onto SD card 5. boot from SD After this point, there will be a custom script/program, which will flash the eMMC.Currently all information requires the usage of STM32CubeProgrammer, which will be in our production and post-production service-technicians not feasible. The plan for flashing eMMC is:1. activate both boot partitions on eMMC2. dd TF/A onto these partitions3. dd generated raw eMMC image containing the partitions and fill the partitions with images (rootfs, optee...) Is this supported at all?Are there any offsets to take care for dd boot partitions?Which parameters should be used to activate the boot partitions?Is there any o
Dear community,I'm currently having a problem setting up an OPCUA client. Using the open62541 package, I was able to connect to an OPCUA server created in Node-Red. I was able to both read and write to the server's addresses. The connection was made synchronously (ua_client_connect).However, when I used another computer, the connection to the Node-Red server is made asynchronously (the ua_client_connect function doesn't work, but the ua_client_connect_async function does). Unfortunately, I'm not able to do either reading or writing because the read and write functions are not identical to those of the synchronous connection.Therefore, do you have an example of an OPCUA client using the open62541 library that allows asynchronous reading and writing?I've already used the following link (https://github.com/open62541/open62541/blob/master/examples/client_async.c) but the problem is that the UA_SessionState is not equal to UA_SESSIONSTATE_ACTIVATED.Board used : B-U585I-IOT02AThanks for your
Hello,I'd like to setup a DMA transfer to feed a SPI Display with 8192 bytes per DMA cycle. To offload the MP1 I want to do this with the help of the M4 coprocessor. For my tests I am using the CubeIDE and a custom board. As a basis for learning I tried the example "SPI_FullDuplex_ComDMA_Master". The example (FW_MP1_V1.6.0) itself waits for a keypress and then starts exactly one DMA transfer, I can see the clock pulses on the scope.Since I need a peridoc refresh of the display, I tried as an experiment to wrap a simple loop together with a delay around the DMA-Send section but for some reason the DMA does not repeat, it gets stuck in ahspi->State = HAL_SPI_STATE_BUSY_TX_RXstate and the error handler is called. while(1) { if(HAL_SPI_TransmitReceive_DMA(&hspi4, (uint8_t*)aTxBuffer, (uint8_t *)aRxBuffer, BUFFERSIZE) != HAL_OK) { Error_Handler(); } HAL_Delay(50); } Why is the "DMA-in-a-loop" not working?I can increase the time to HAL_Delay(1000) but that makes n
We designed a STM32MP135 based SOM, without using the ST I2C PMIC, I was able to disable the PMIC driver in TF-A by removing the i2c 4 node in TF-A's dts file, while I could not get the same result for optee-os, even I removed the i2c-4 node in optee-os' dts file, I still got message saying panic, following is the full log: NOTICE: CPU: STM32MP135D Rev.YNOTICE: Model: STMicroelectronics STM32MP135F-DK Discovery BoardWARNING: VDD unknownINFO: Reset reason (0x4):INFO: Pad Reset from NRSTINFO: FCONF: Reading TB_FW firmware configuration file from: 0x2ffe0000INFO: FCONF: Reading firmware configuration information for: stm32mp_ioINFO: Using SDMMCINFO: Instance 1INFO: Boot used partition fsbl1NOTICE: BL2: v2.6-stm32mp1-r2.0(debug):2021.05-5963-ga40218f3c9(a40218f3)NOTICE: BL2: Built : 09:55:01, Jul 5 2023INFO: BL2: Doing platform setupINFO: RAM: DDR3-1066 bin F 1x4Gb 533MHz v1.53INFO: Memory size = 0x20000000 (512 MB)INFO: BL2: Loading image id 1INFO: Loading image id=1 at a
Hello Everyone, I am working on a custom board based on STM32MP157F-DK2. Our custom board have two external ADC (AD74413R) connected to the main processor. I have changed the device tree added proper driver for the external ADC. While reading the files from iio folder, i am getting "Connection timeout error". Device tree and error message is shown below.Device tree&spi4 {pinctrl-names = "default", "sleep";pinctrl-0 = <&spi4_pins_b>;pinctrl-1 = <&spi4_sleep_pins_b>;//chip select -> PA10 for ext ADC0cs-gpios = <&gpioa 10 GPIO_ACTIVE_LOW>;//enable SPI4status = "okay";ad74413r@0 {compatible = "adi,ad74413r";//this is chip select address 0reg = <0>;//base address and register size#address-cells = <1>;#size-cells = <0>;//max. frequency 10Mhzspi-max-frequency = <10000000>;spi-cpol;//ADC_READY -> PA5//alert pin - >PA4interrupt-parent = <&gpioa>;interrupts = <5 IRQ_TYPE_EDGE_FALLING>;//add sense resist
Hi,I’m new bee to to this processor based development.I’m currently starting with STM32MP1 can someone help me what tools are required to start exploring
Hello,I want to enable more uarts on stm32mp157d-dk1 CA7 , the goal is send/receive data over uart using python3-pyserial library Any idea ?
Dear all,on a custom board based on STM32MP157D I successfully managed to configure an LCD display that works perfectly using "modetest -s" and "psplash-drm". But I cannot run the examples in the st-example-image-qt because I always get the same error: # /usr/share/examples/opengl/hellowindow/hellowindowQEGLPlatformContext: Failed to create context: 3005and nothing is shown on the display. Here is the my /usr/share/qt5/cursor.json:{ "device": "/dev/dri/card0", "hwcursor": false, "pbuffers": false, "outputs": [ { "name": "DPI-1", "mode": "640x480", "touchDevice": "/dev/input/event0" } ]} Attached you can find also some verbose logs that could help troubleshooting:- modetest.txt: output of the command "modetest -Mstm"- verbose-hellowindow.txt: output of the command "hellowindow" after setting verbose QPA logs- dmesg.txt: dmesg output running "psplash-drm" and "hellowindow" Do you have any hint?Thank you!
I wrote u-boot video driver for my board. Everything is fine but I cant find the place where STMLinux disables the DSI power loading the kernel. Has anyone succeeded in keeping the u-boot splash screen on during the boot?
As Mickledore is no longer supported (by yocto) when can we expect an updated yocto release from ST for the stm32mp1 series?
I want to make my rootfs writable read only for STM32mp135f processor using https://github.com/marcusfolkesson/meta-readonly-rootfs-overlay/tree/mickledore this layer. Although I am adding this layer into my build process successfully but my rootfs is not becoming overlay type rootfs(means if edit some file in it then changes should not exist after reset). I have used this layer for Renesas processor where this layer incorporate into init script and works properly.Kindly give some solution !
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.