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 installed st-example-image-x11.Matchbox windows manager started on foto.And ! have 2 problem. Till.1st problem.I can not change the orientation of the matchbox panel. I changed the lines in the /usr/bin/matchbox-session file: matchbox-panel --orientation southbut the screen orientation has not changed2nd problemI can't again connect to the X server. Part of my program:int main( void ){ Display *d; Window w; XEvent e; char *msg = "Hello, World!"; int s;if( ( d = XOpenDisplay(DISPLAY) ) == NULL ) { // Connect X server printf( "Can't connect X server: %s\n", strerror( errno ) ); exit( 1 );}return 0;}And I get in the terminal:Can't connect X server: SuccessWhat am I doing wrong?Сan anyone help?Best regardsAlexander.
Hi Guys,I’m having an issue connecting a touch screen to stm32mp157a-dk2. My Qt application crashes with a “Segmentation Fault�? when I touch the screen multiple times in quick succession.Has anyone else reported this problem before?Here is my setup:· stm32mp157a-dk2 with sample LCD/Touch disconnected.· 7�? newhaven display connected using HMDI and usb (should be multitouch, have yet to confirm)· st-example-image-qt image.· EDT FocalTech FT5x06 I2C Touchscreen support, disabled (driver disabled from kernel driver config.)· Goodix I2C touchscreen driver, disabled.· USB Touchscreen Driver=>GeneralTouch Touchscreen device support enabled.· Application is a Q
Hi, i want to use node.js on STM32MP157C-DK2. I found this post https://community.st.com/s/question/0D50X0000B0xovG/installing-nodejs-on-the-stm32mp1 , but I dont want to rebuild the imageIs there a way to install node.js without rebuilding the image?I tried this raspberryPi-tutorial: https://www.instructables.com/id/Install-Nodejs-and-Npm-on-Raspberry-Pi/This works fine until I want to check the version withnode -vI get following error:node: error while loading shared libraries: libatomic.so.1: cannot open shared object file: No such file or directory thanks in advanceLukas
Hi. I have generated a full device tree for the EV1 to add I2C5 pins PA11/PA12 for external connector hookup to some of my I2C widgets using STM32CubeMX. I've place the generated .dts file from the kernel/ folder into <linux-source>/arch/arm/boot/dts.I am now following the Wiki athttps://wiki.st.com/stm32mpu/wiki/How_to_compile_the_device_tree_with_the_Developer_Packagein section 5.3.. . .PC $> pushd $WORKDIR/kernel/kernel-sources(ok)PC $> make O="$PWD/../build" multi_v7_defconfig(ok)PC $> for f in `ls -1 ../../sources/arm-openstlinux_weston-linux-gnueabi/linux-stm32mp-4.19-r0/fragment*.config`; do scripts/kconfig/merge_config.sh -m -r -O $PWD/../build $PWD/../build/.config $f; done(ok)PC $> make oldconfig O="$PWD/../build"(STOP)PROBLEM. The config script starts asking all of its unknown Y/n | y/N questions to which I have absolutely NO CLUE how to answer. Please advise regarding how to proceed to get a correct build.. . .(not done):PC $> make stm32mp157c-mydevicet
I wan to install and develop userinterface programs using, tkinter and PyQt5 frameworks. but can not install both tkinter and pyqt5 , can you help please ?
Hi,Has anyone tried to build latest stm32mp linux release (v4.19-stm32mp-r3) for stm32mp157c-dk2 board? In STM32MP15 ecosystem release v1.2.0 st provides linux v4.19-stm32mp-r0 with some r3 patches and external fragment configs. While I am trying to build latest linux release for dk2 board, usb related drivers fail to build. I have applied provided patches and fragment configs. Is there any way to build and use latest stm32mp linux release with yocto or buildroot?Build logs are attached.
Hi Folks,i created a custom dts and build it via the mx-addons howto. My goal is to activate USART3 on DK2. For USART3 is create the following source in the DT:&usart3{ pinctrl-names = "default", "sleep", "idle"; pinctrl-0 = <&usart3_pins_a>; pinctrl-1 = <&usart3_sleep_pins_a>; pinctrl-2 = <&usart3_idle_pins_a> status = "okay"; /* USER CODE BEGIN usart3 */ /* USER CODE END usart3 */ }; usart3_pins_mx: usart3_mx-0 { u-boot,dm-pre-reloc; pins1 { u-boot,dm-pre-reloc; pinmux = <STM32_PINMUX('B', 10, AF7)>, /* USART3_TX */ <STM32_PINMUX('G', 8, AF8)>; /* USART3_RTS */ bias-disable; drive-push-pull; slew-rate = <0>; }; pins2 { u-boot,dm-pre-reloc; pinmux = <STM32_PINMUX('B', 12, AF8)>, /* USART3_RX */ <STM32_PINMUX('B', 13, AF7)>; /* USART3_CTS */ bias-disable; }; }; usart3_sleep_pins_mx: usart3_sleep_mx-0 { u-boot,dm-pre-reloc; pins { u-boot,dm-
Hi,I am working on a project where the hardware platform is based on STM32MP157c and the OS is Linux 4.19.9 .I am facing on a issue about device tree spi configuration.Following SPI_overview on wiki.st.com kernel config has been modified with: CONFIG_SPI=yCONFIG_SPI_MASTER=yCONFIG_SPI_STM32=yCONFIG_SPI_SPIDEV=ywhile dts file has been modified adding spi2 DT configuration:&spi2{ pinctrl-names = "default", "sleep"; pinctrl-0 = <&spi2_pins_mx>; pinctrl-1 = <&spi2_sleep_pins_mx>; cs-gpios = <&gpioi 0 0>; status = "okay"; /* USER CODE BEGIN spi2 */ spidev@0x00 { compatible = "spidev"; #address-cells = <1>
hi; How to configure the Mclk device tree for I2S.
Hi dear engineers, i can run linux on stm32f429 mcu without any problem, but it failed on Cortex-M MCU in stm32mp157 board.After many hours i realize:error happens in below functionvoid __meminit __free_pages_bootmem...Anyone else had a similar problem? how you resolved it?Shall i change any register address in kernel? (i think every thing is the same in cortex-M4 and stm32f429).Best regards
Hi, I use SPI1 and SPI4 in CM4 context on my custom board. Now, I use SPI_FullDuplex_ComIT_Master_CM4.elf binary to test those SPI controllers. The SPI4 is working, but the SPI1 doesn't working. Below is the log when SPI1 firmware started root@stm32mp1:~# echo "start" > /sys/class/remoteproc/remoteproc0/state [ 47.494072] remoteproc remoteproc0: powering up m4 [ 47.549448] remoteproc remoteproc0: Booting fw image SPI_FullDuplex_ComIT_Master_CM4.elf, size 2009036 [ 47.557833] remoteproc remoteproc0: header-less resource table [ 47.564191] remoteproc remoteproc0: not resource table found for this firmware [ 47.571421] remoteproc remoteproc0: header-less resource table [ 47.637048] rproc-srm-core m4@0:m4_system_resources: bound m4@0:m4_system_resources:serial@4000e000 (ops 0xc0a935f8) [ 47.646744] rproc-srm-core m4@0:m4_system_resources: bound m4@0:m4_system_resources:serial@40011000 (ops 0xc0a935f8) [ 47.672140] rproc-srm-core m4@0:m4_system_resources: bound m4@0:m4_system_resources:d
Hi,Section "4.3.11 NVIC register map" states that the base address of the main NVIC register block is 0xE000E100 and NVIC_ISERx registers starts at offset 0x100 (Table 49. NVIC register map and reset values). The same offset is given in section "4.3.2 Interrupt set-enable register x (NVIC_ISERx)".The problem is that the correct offset is 0x00 and the corresponding sections for registers ISERx, ICERx, ISPRx, ICPRx, IABRx and IPx provides the offsets' values greater by 0x100 than real values.The table 45 "NVIC register summary" and CMSIS source code (core_cm4.h declaration of NVIC_Type struct) provide correct values.
Hi, Is there a way to take screenshots on the STM32MP157C-DK2? thanks in advanceLukas
Hi, how can I disable the autostart of the demo-application on the STM32MP157C-DK2 and make my own application autostart ?thanks in advanceLukas
Hello, I am using STM32MP157C-DK2 evalution board and I successfully booted the board with STM yocto,now I was trying to add a new environment variable in the Uboot.But I was not able to get how to do that.Can anyone suggest how to do this.RegardsSrikanth.
I have successfully built the st-example-image-qt using Bitbake (see first image) and have successfully downloaded it to the stm32mp157c-dk2 board (see second image). But now I cannot SSH into the board. When I use the ip add show eth0 command I can only see the inet6 ip and not inet. Then I tried to follow this article, https://wiki.st.com/stm32mpu/wiki/How_to_perform_ssh_connection, but there is no /etc/init.d/sshd directory and I can't use apt install as I have no wifi connection on the board. Anyone else have this issue with the qt example image?EDIT 1: I also tried this article with no luck although now I do see an inet IP address when I manually set it with the ifconfig command I still can't SSH in, https://wiki.st.com/stm32mpu/wiki/How_to_configure_ethernet_interface. More information, I am using an Ubuntu virtual box as my host computer and using a usb 3 ethernet to USB adapter so not sure if that has anything to do with it? I did try this on a native linux computer with an eth
Hi St-Community,im hanging around with the following Problem:I build up a yocto environment and build sucessfully images. No its time to add a custom devicetree to the linux. So i followed the instructions on:https://wiki.st.com/stm32mpu/wiki/How_to_create_your_own_machineBut i get the following error when i start to build a image with bitbake image-base-minimal.ERROR: u-boot-stm32mp-extlinux-2.0-r0 do_create_multiextlinux_config: No UBOOT_EXTLINUX_CONFIG_FLAGS list defined, nothing to do ERROR: u-boot-stm32mp-extlinux-2.0-r0 do_create_multiextlinux_config: Function failed: update_extlinuxconf_targets ERROR: Logfile of failure stored in: /opt/build/tmp/work/stm32mp1_mustera-poky-linux-gnueabi/u-boot-stm32mp-extlinux/2.0-r0/temp/log.do_create_multiextlinux_config.5058 ERROR: Task (/opt/yocto/meta-st-stm32mp/recipes-bsp/u-boot/u-boot-stm32mp-extlinux.bb:do_create_multiextlinux_config) failed with exit code '1'Have you any hints to me where i can debug. I dont know wehere these variables
I checked out the Yocto based OpenSTLinux distribution, it has `m4projects` recipe in recipes-extended. However, I don't see an easy and modular way to add STM32CubeIDE based projects into the OpenSTLinux framework. Do you have any suggestions on it? I was thinking of developing a yocto layer or a recipe base for it.
STM32MP157DAB1, WINBOND QSPI memory attached to default pins.How to program first stage bootloader trough DFU mode? Boot pins=000STM32CuneProgrammer says:15:11:45:986 : failed to read the requested memory content15:11:46:788 : failed to read the requested memory content15:11:47:790 : failed to read the requested memory contentand nothing able to download. Memory work fine, If I use external SPI FLSH programmer - any diagnostics work well, JEDEC commands (Serial Flash Discoverable Parameters (SFDP), for Serial NOR Flash) to memory pass and get all properties.MPU boot process from SPI memory well done (if boot pins = 001). Then I open my fsbl.stm32, message box about Partition ID appear at download phase, Where I should specify this ID?
EDIT: issue resolved after clearing my tmp
Hi everyone,Can I use SJA1105Q is automotive ethernet swifch IC with mp1? Also, while debugging via SSH can I use it?
Here the output of some commands issued on our target at u-boot stage:> STM32MP> mmc list > STM32 SDMMC2: 0 (SD) > STM32 SDMMC2: 1 > > STM32MP> ls mmc 0:4 > <DIR> 1024 . > <DIR> 1024 .. > <DIR> 12288 lost+found > 8192 uboot.env > 6677056 uImage > 71859 stm32mp151a-<myimage>-mx.dtb > 583 boot.scr.uimg > > STM32MP> mmc list > STM32 SDMMC2: 0 (SD) > STM32 SDMMC2: 1 (eMMC)Two questions:why the eMMC is not enumerated before trying to list anything in the SD device?why both are referred to the SDMMC2 bus? I'm expecting the SD card on SDMMC2 and eMMC on SDMMC1... in other words, how to check if the MPU finds the right device when changing the boot dip-switches to eMMC?
Hello!I try to understand how to exclude some memory from ddr for Linux, but M4 must have to access to that memory, because M4 needs to store about 40 Mb, but not RETRAM or SYSRAM doesn't allow it. So, I try to store this in ddr, but I don't want that Linux can use this memory region.I try to use reserved memory in Linux dts like that: in root node in stm32mp157a-dk1.dtsmemory@c0000000 { reg = <0xc0000000 0x20000000>; }; reserved-memory { #address-cells = <1>; #size-cells = <1>; ranges; m4ddr: m4ddr@0xd7ffffff { reg = <0xd7ffffff 0x4000000>; no-map; };...And in m4 node I added this region to memory-region:&m4_rproc { 
Is it possible to Load/Start the Cortex-M4 from TF-A or uboot ?For our use case we want RTOS in Cortex-M4 running as soon as possible.Well before linux finishes booting.
Hi,I want to use modbus TCP with the libmodbus library (https://libmodbus.org/) on the STM32MP157C-DK2. However I struggle to install/use the library. Any experiences or suggestions on installing/use external libraries with the SDK?For cross-compilation I use the SDK with the development packageregards,Lukas
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.