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 would like to use the I2C_EXT channel on the EV1. The only devices in STLinux are /dev/i2c-1, /dev/i2c-2We are evaluating for purpose of supplanting development on R.Pi with something more industrial, like MP1.2 things I want to accomplish:1: have kernel / OS complete connection chain in orderwhat are the steps I need to take to make this happen?2: use PYTHON SMBus to communicate to my devicesapt-get install does not find anything beyond low-level I2C utils prepackaged, sowhat are the step I need to take to get SMBus in PYTHON operating? thanks. -PUP.
Hi!I installed st-example-image-x11 on the board STM32MP157x-DK2.I can not log in :(In the comments, I read that I need to fix the rootfs / etc / lxdm / lxdm.conf file.Here is the file with my corrections[base]## uncomment and set autologin username to enable autologinautologin=root## uncomment and set timeout to enable timeout autologin,## the value should >=5#timeout=10## default session or desktop used when no systemwide config#session=/usr/bin/startlxdesession=/usr/bin/openbox-session## uncomment and set to set numlock on your keyboard# numlock=0## set this if you don't want to put xauth file at ~/.Xauthority# xauth_path=/tmp# not ask password for users who have empty passwordskip_password=1## greeter used to welcome the usergreeter=/usr/libexec/lxdm-greeter-gtk[server]## arg used to start xserver, not fully functionarg=/usr/bin/X -s 0# uncomment this if you really want xserver listen to tcp# tcp_listen=1# uncoment this if you want reset the xserver after logou# reset=1[display]
Hi guys.i can quickly and easily access SYSRAM in engineering mode.i read in RM0436 Reference manual:backhand_index_pointing_down: SYSRAM is implicitly allocated to the MPU. So there is no enable bit for the MPU to allocate this memory. But when the MCU wants to access the SYSRAM, the memory must be enabled via RCC AXI Periph. Enable For MCU Set Register ...I enabled the SYSRAM peripheral clocks, But nothing has changed yet:pensive_face: . i have no idea what to do...thanks in advance for all your help:folded_hands:
I want to use a Winbond W25M02Gxx 256MByte (2x1Gbit) on MP157 QSPI1 port. It seems that the boot mode supports the use of Serial NAND Flash.Anyone tried this?
Hi everyone,Can I assign, for example, UART to Cortex M4 runtime context, and generate appropriate device tree files for STM32MP1, and then after boot, reassign UART to Cortex A7 runtime context somehow? Best regards, Nenad
Hello everyone,I managed to build st-example-image-qt on my STM32MP157C-DK2 with some extra image features.Now i just want to run bitbake meta-toolchain-qt5 but the build end up with errors that i can't solve.I attached the output console when i try to build it. Do you have any clue how to resolve this ?Thank you.
Hi,I want to generate a new distro for MP1 with distribution package and qt-examples. I downloaded all of the packages via fetchall command to avoid getting an internet connection error during generating. After that, I have tried to generate an image including qt examles. However, it wasn't completed for 2 days(it didn't compile qtwebkit for 2 days). I then have cleaned qtwebkit with "bitbake -c clean qtwebkit" command and tried compile only it(bitbake qtwebkit) but get an error is error 1 again. Why does it compile? And, how can I disable it from the image?
Hello On a STM32MP1-DK2 discovery board, running the latest starter image, flooding the ethernet interface with SYN packages leads to a reboot of the system. This behavior is reproducible and appears after around 30 secs.I stress tested the network interface of the STM32MP1-DK2 board with high loads, generated by a self written SYN flood application.The board is connected via Gbit Ethernet to a developer PC, which sends the SYN packets (around 400Mb/s on sender device).After around 30 seconds the boards reboots due to a stack exception. Is this issue already known?I appended the debug print over the serial interface during the network attack.Thank you and best regardsFlorian
Hi all,I'm developing a custom board based on STM32MP153 SoC, and I need to use the internal RTC. I also need to output its 32.768kHz reference clock from I8 pin.As stated at https://wiki.st.com/stm32mpu/wiki/RTC_device_tree_configuration, into the Linux dts I enabled the internal RTC using this node:&rtc { st,lsco = <RTC_OUT2_RMP>; pinctrl-0 = <&rtc_out2_rmp_pins_a>; pinctrl-names = "default"; status = "okay"; };but at the boot I get this log message:stm32_rtc 5c004000.rtc: Can't enter in init mode. Prescaler config failed. stm32_rtc: probe of 5c004000.rtc failed with error -110The driver is not loaded, thus I don't have the 32.768kHz clock on I8 pin.Could you help me to figure out what I'm doing wrong?Thanks in advance, regardsMauro
Hello thereI'm not familiar with building linux for embedded systems. I need to build an yocto openstlinux distro with arm-ostl-linux-gnueabi-gcc to be able to compile at least simple "helloworld" on STM32MP157-DK1My extra packages in local.conf are:CORE_IMAGE_EXTRA_INSTALL += " \mc \minicom \gcc \libgcc \glibc \bluez5 \binutils \"But when i run compilation (DISTRO=openstlinux-weston MACHINE=stm32mp1 source layers/meta-st/scripts/envsetup.sh , bitbake st-image-weston), i get errors:root@stm32mp1:~# arm-ostl-linux-gnueabi-gcc -o helloworld helloworld.chelloworld.c:1:10: fatal error: stdio.h: No such file or directory #include <stdio.h> ^~~~~~~~~compilation terminated./usr/local/include doesn't exist and do not contain any headersWhich packages should I add in local.conf to avoid this error and compile 'helloworld'?
Hi!I'm in search of a better GUI programming path :) Now trying Xlib.Here is a simple program from the Internet#include <stdio.h> #include <stdlib.h> #include <string.h> #include <errno.h> #include <X11/Xlib.h> extern int errno; int main( void ) { Display *d; Window w; XEvent e; char *msg = "Hello, World!"; int s; if( ( d = XOpenDisplay( getenv("DISPLAY" ) ) ) == NULL ) { // Connect X server printf( "Can't connect X server: %s\n", strerror( errno ) ); exit( 1 ); } s = DefaultScreen( d ); w = XCreateSimpleWindow( d, RootWindow( d, s ), 10, 10, 200, 200, 1, BlackPixel( d, s ), WhitePixel( d, s ) ); XSelectInput( d, w, ExposureMask | KeyPressMask ); XMapWindow( d, w ); &nbs
I faced crashes when implementing IPCC on M4 (Hard Fault Crash) and A7 (Kernel Ooops or dead system). Observations on M4: - Once I 'solved' the issue by disabling Uart7- Once I 'solved' it by removing the FreeRTOS (which was configured with CubeMX default values).I assume to have bad configured HW resources (Memory, Device Tree).To verify this I have the following questions: 1) How can I integrate the device tree files created by CubeMX to Yocto? Do I need to erase the patch files from meta-st layer to modify the device tree files? Details: The instruction on https://wiki.st.com/stm32mpu/wiki/How_to_create_your_own_machine, topic 'Generate device tree' is not clear: the directory 'mx' does not exist. And 'browsing with STM32CubeMX' seems useless to me. Is it meant to create the directory mx and put the Device Tree files inside there? Then bitbake again?2) How can I verify and modify the memory map of M4 and A7? (as it is done for example in the .icf file of IAR) Is it done through
Hi!Simple program on board STM32MP157C-DK2#include <gtk/gtk.h>gint width = 400;gint height = 200;gint X = 20; gint Y = 20;gint x; gint y;GtkWidget *window;int main (int argc, char *argv[]){ gtk_init(&argc, &argv); window = gtk_window_new(GTK_WINDOW_TOPLEVEL); gtk_window_set_title(GTK_WINDOW(window), "Hello"); gtk_window_set_default_size(GTK_WINDOW(window), width, height); gtk_window_move (GTK_WINDOW (window), X, Y); gtk_widget_show(window); gtk_main(); return 0;line gtk_window_move (GTK_WINDOW (window), X, Y); - not work :(a window is created anywhere on the screenhow to control the position of the window?Best regardsAlexander.P.S. on PC (Ubuntu 16.04), this program works fine.
With the Distribution Package for STM32MP1 I created my own machine (STM32MP151A) and I was able to generate a the flashlayout for both sdcard and emmc.I don't see any script to create the image for emmc, like `create_sdcard_from_flashlayout.sh`.Is there such a template or I am on my own?
board: stm32mp157a-dk1device-tree:pinctrl{ usart2_pins_b: usart2-0 { pins1 { pinmux = <STM32_PINMUX('F', 5, AF7)>; /* USART2_TX */ bias-disable; drive-push-pull; slew-rate = <0>; }; pins2 { pinmux = <STM32_PINMUX('F', 4, AF7)>; /* USART2_RX */ bias-disable; }; }; usart2_idle_pins_b: usart2-idle-0 { pins1 { pinmux = <STM32_PINMUX('F', 5, ANALOG)>; /* USART2_TX */ }; pins2 { pinmux = <STM32_PINMUX('F', 4, AF7)>; /* USART2_RX */ bias-disable; }; }; usart2_sleep_pins_b: usart2-sleep-0 { pins { pinmux = <STM32_PINMUX('F', 5, ANALOG)>, /* USART2_TX */ <STM32_PINMUX('F', 4, ANALOG)>; /* USART2_RX */ }; };};&usart2 { pinctrl-names = "default", "sleep", "idle"; pinctrl-0 = <&usart2_pins_b>; pinctrl-1 = <&usart2_sleep_pins_b>; pinctrl-2 = <&usart2_idle_pins_b>; status = "okay";};error info:[ 0.574170] STM32 USART driver initialized[ 0.574825] stm32-usart 4000
Hello,Is there any STM processors that can run OpenSTLinux and support 3 lane MIPI DSI? I was planning on using STM32MP1 series but it only supports 2 lanes. Thanks!
I am confused by the different packages ,Starter, Distribution and Developer.Which one do I need to install/setup/build to have as the end result a "minimal" cli/shell based SD card image with support for all hardware on the DK2 board ? a "clean" rootfs with no examples, no Wayland/X11 .. just command line and all drivers for the board installed ?
..
Hello All,I make an introduction, it is my first experience in the stm32 world, but I've been working with Linux embedded, MPUs MCUs etc.. for several years.In this days I'm starting to understand and try the M4 core in DK2 evk, following the wiki i'm able to use it. Now I would like to create a new project from zero, but I have a small problem.If I start new project in CubeMX, I can enable freertos but if I try to generete code i have the follow alert:Ok, i can try to change the TIMEBASE Source but is not possible (seems in use):Can someone help me?Best regards to allLuigi
Following https://wiki.st.com/stm32mpu/wiki/How_to_cross-compile_with_the_Distribution_Package4 Adding an external out-of-tree Linux kernel moduleWhen doing this step, error occurs.PC $> devtool build mymodule...WARNING: /home/tim/STM32MP15-Ecosystem-v1.2.0/Distribution-Package/openstlinux-20-02-19/build-openstlinuxweston-stm32mp1/workspace/recipes/mymodule/mymodule.bb: Exception during build_dependencies for do_installWARNING: /home/tim/STM32MP15-Ecosystem-v1.2.0/Distribution-Package/openstlinux-20-02-19/build-openstlinuxweston-stm32mp1/workspace/recipes/mymodule/mymodule.bb: Error during finalise of /home/tim/STM32MP15-Ecosystem-v1.2.0/Distribution-Package/openstlinux-20-02-19/build-openstlinuxweston-stm32mp1/workspace/recipes/mymodule/mymodule.bbERROR: Unable to parse /home/tim/STM32MP15-Ecosystem-v1.2.0/Distribution-Package/openstlinux-20-02-19/build-openstlinuxweston-stm32mp1/workspace/recipes/mymodule/mymodule.bb...Need your help.Regards,Tim
I designed a board based on the schematic of dk1, but I2C failed on HDMI output
Hi,I have to change the CPOL and CPHA of SPI, because I'm communicating with different SPI-Devices. This worked fine on a Nucleo-Board with a Cortex M7.On the Cortex M4 of the STM32MP157-DK2 it ends up in HAL-Timeout :(After some time I found a solution.I added this in front of the code changing the SPI-settings:HAL_SPI_DeInit(&hspi5); HAL_SPI_Init(&hspi5); /** code to change settings of CPOL und CPHA **/Now it works perfectly fine :)My question is now: why?regards Lukas
CM4:基于官方给出的例�?,我去掉通过IO�?�数�?�采样,采用填充固定数�?�进入缓冲区的方法,在传递到DDR的相应缓冲区中。A7:基于官方的测试例�?,�?写入文件,直接将接收到的数�?�显示到频幕上。我�?�现,在多次数�?�传输�?�,Linux应用程�?读�?�的DDR数�?�出现错误,这些数�?�以64字节为�?��?。如下图所示,我填充的时0x1f,但是缓冲区中出现了0x1c和0x16,他们都是之�?写入的数�?�。请问这个问题�?�能是怎样造�?的。
I'm writing an Yocto recipe to integrate Kivy (kivy.org) into the st-image-weston image for STM32MP157C-DK2. Main questions:1) Is there recommended GUI framework for openSTLinux, beside QT (license issues).2) Did someone ever add Kivy successfully to openSTLinux? 3) Has someone solutions for my isuse (below)?What I did so far for Kivy:- Using Kivy source from https://pypi.org/project/Kivy- Write recipe (see below) for two versions of Kivy Results: -- for version 1.11.1 --> many issues of dependencies (gstreamer, sdl2, ..) -- for version 1.10.1 --> Seems better as it has less dependencies. But Cython is missing, even though it has been added to st-image-weston.bbpython3-kivy_1.10.1.bb:SUMMARY = "kivy for Python" LICENSE = "MIT" PYPI_PACKAGE = "Kivy" # version 1.11.1 #LIC_FILES_CHKSUM = "file://LICENSE;md5=d273d63619c9aeaf15cdaf76422c4f87" #SRC_URI[md5sum] = "638c6ca80dd079e2576b4acc56597669" #SRC_URI[sha256sum] = "4d0e596f74271e901b551f77661dde238df4765484f
Hi,According to this link https://wiki.st.com/stm32mpu/wiki/ETZPC_device_tree_configuration#DT_configuration_-28board_level-29it is possible to configure the ETZPC peripheral in the device tree of TF-A. I am using a distribution package, so I modified and built the tf-a-stm32mp recipe using devtool. However, by adding the lines mentioned in the wiki link into TF-A device tree, the STM freezes on boot and doesnt respond, the only way is to flash the backup image in fsbl2 partition. I have added following lines in the stm32mp157c-dk2.dts file in the fdts directory:&etzpc { st,decprot = < DECPROT(STM32MP1_ETZPC_I2C5_ID, DECPROT_MCU_ISOLATION, DECPROT_UNLOCK) >; };I want to isolate the I2C5 peripheral for the Cortex M4 only, but without any luck. Is there any other configuration I am missing? Or perhaps it is the wrong file to edit?
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.