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 enabled the generation of debug filesystem by adding two variables in file build-openstlinuxweston-stm32mp15-disco/conf/local.conf as shown below to use with GDB. This step is also mentioned in Yocto documentation (Link: https://docs.yoctoproject.org/dev/dev-manual/debugging.html#using-the-gdbserver-method ). IMAGE_GEN_DEBUGFS = "1" IMAGE_FSTYPES_DEBUGFS = "tar.bz2" When this option is enabled I get below dependency(?) error, Does anyone know how to fix this?Additional information:Target HW : STM32MP157F-DK2Target image : st-image-westonThanks,
I have tried to build my own OpenSTLinux by using the SDK and the sources, without sucess. I have been trying to compile for 2 weeks from now and I'm not very pleased over the wiki of ST32MP.Anyway. I have to show a bug. I cannot build an OpenSTLinux Project inside STM32CubeIDE.I first created a project for my STM32MP1 processor, then I tried to attach the SDK with the STM32CubeIDE. But it did not work well.I have STM32CubeIDE 1.16.0 and Lubuntu 22.04 and the latest SDK. So what I'm looking for, is some way to compile the kernel, TF-A, Optee and U-boot with STM32CubeIDE. If it's possible. Or else....it's impossible to follow the wiki of STM32MP. How to install the Yocto Project SDK in STM32CubeIDE - stm32mpuThis is my goal: How to manage OpenSTLinux projects in STM32CubeIDE - stm32mpu
hi i successfully connecting wifi on STM32mp157f-DK2 board through IPhone but the when i pass the command "# ping google.com " then it show temporary failure in name resolution , and also dhcp command not found why this is happen. please reach me out As soon as possible
I have made my own STM32MP1 board with the STM32MP151AAC3 processor. Right now I'm faceing issues with the software STM32CubeProgrammer and I don't know why this happens.My goal is to flash the eMMC via the UBS OTG. I have SDIO2 as eMMC by the way.What we can see here is that:The STM32CubeProgrammer regonize the STM32MP1 processor and its nameThe USB OTG of the STM32MP1 processor is workingI'm using the OpenSTLinux for STM32MP157 processor because it's the only one that are avaiable as Starter Package . It's only a minor difference between STM32MP151, STM32MP153(CAN FD) and STM32MP157(CAN FD + DSI)The flashing fails on 0x1 fsbl-bootThe STM32CubeProgrammer can recognize the partisions when I connect via USB OTGSo the question is simple:Why does STM32CubeProgrammer get timeout? The full log can be found here: https://pastebin.com/q9GttMiR 00:57:35:752 : UR connection mode is defined with the HWrst reset mode 00:57:35:918 : Device Descriptor: 00:57
Hello,I am trying to do bare metal development, and the ETH uses the RGMII interface and the lwIP protocol stack. The routines I have found are mostly for M4 or M7, and the interfaces are all RMII. I tried to port lwIP from the STM32H7, but it's doesn't work. the hardware is right because the network is working when tested on the development board with Linux
I have built my own STM32MP15XXAC board from scratch DanielMartensson/STM32-Computer: STM32 Computer were Linux can be deployed onto (github.com)Instead of SD-card, it has eMMC. Now I want to flash the eMMC with OpenSTLinux. How can I do that with STM32CubeProgrammer?I find lack of information how to install Linux or other kind of Linux-OS onto eMMC for STM32MP15XXAC.
The power supply part of the board I made myself did not use "stpmic", but used a discrete power supply. I encountered an issue when porting OpenSTLinux (5.1.0). After modifying the power supply in the "u boot" device tree and using "STM32CubeProgrammer" to download, it kept downloading repeatedly, as shown in the following figure:I have modified these positions: under "i2c4", the "pmic: stpmic@33 All nodes have been deleted, and the following content has been added to the root node:vddcore: regulator-vddcore { compatible = "regulator-fixed";regulator-name = "vddcore";regulator-min-microvolt = <1200000>;regulator-max-microvolt = <1350000>;regulator-always-on; regulator-boot-on;}; v3v3: regulator-3p3v { compatible = "regulator-fixed"; regulator-name = "v3v3"; regulator-min-microvolt = <3300000>;
I am using the latest OpenSTLinx (5.1.0) Linux version: 6.1.28, and it can display normally when using the official root file system (st-image-eston-openstrinux-eston-stm32mp1. ext4), as shown in the figure below. However, when I use the root file system generated by buildroot myself, it cannot display normally, and there is no output on the screen when using "echo test_ceool>/dev/tty1". Some example screens running qt5 also have no output. Is there anything to pay attention to when building a root file system using buildroot?
We have custom SOM which has been designed with STM32MP157C and we want to enable the backlight of a display panel using a PWM driver in uboot. For this, we tried enabling the pwm_backlight.c driver available in /drivers/video/ in uboot.Following configuration was done to enable the driver:Changes in the dts file Updated the Kconfig in /driver/video/ Updated to Makefile in /driver/video/ obj-$(CONFIG_BACKLIGHT_PWM) += pwm_backlight.oAdded the config in defconfig CONFIG_BACKLIGHT_PWM=y CONFIG_DM_PWM=y The image builds successfully, however looking at the log of lists.c during boot, it is unable to find the driver and hence fails to bind.Another observation is that there is no stm32 core driver file for PWM in uboot. Is this the reason why any of the pwm-based drivers fails to be enabled or is something missing in the configuration mentioned above?TIA.
Hi Team,In the DTS node property mwifiex mentioned below, the default operating frequency is 25 MHz. I would like to update my SDMMC1 clock to 50 MHz and require assistance with configuring it accordingly. Could you please provide me with details or reference documents?&sdmmc1 {pinctrl-names = "default", "opendrain", "sleep";pinctrl-0 = <&sdmmc1_pins_mx>;pinctrl-1 = <&sdmmc1_opendrain_pins_mx>;pinctrl-2 = <&sdmmc1_sleep_pins_mx>;non-removable;st,neg-edge;bus-width = <4>;vmmc-supply = <&scmi_vdd_sd>;mmc-pwrseq = <&wifi_pwrseq>;mmc-ddr-3_3v;#address-cells = <1>;#size-cells = <0>;status = "okay";mwifiex: mwifiex@1 {compatible = "marvell,sd8978";reg = <1>;interrupt-parent = <&gpiof>;interrupts = <3 IRQ_TYPE_LEVEL_LOW>;//marvell,wakeup-pin = <3>; /* FIXME: check */};};Regards,Sateesh
@Erwan SZYMANSKIHello, I am having trouble with another topic . I was learning how to modify my distribution packet . I started with learning how to change backlight of my daughter board (ım using stm32mp157f-dk2). As I was trying to learn I make a patch to change default-brightness-level = <10>; ; panel_backlight: panel-backlight { compatible = "gpio-backlight"; gpios = <&gpiod 13 GPIO_ACTIVE_LOW>; default-on; default-brightness-level = <1>; status = "okay"; }; in the arch/arm/boot/dts/stm32mp157f-ev1.dts file (https://github.com/STMicroelectronics/linux/blob/v6.1-stm32mp/arch/arm/boot/dts/stm32mp157f-ev1.dts ). With that I learned how to do patch and recipes.bb and .bbappend files but ı didn't do them applicable for my target design cause I couldn't find the target node about light. How can ı found it? I looked at all the dts files with my file name but couldn't see it.
Hi, I'm discovering the STM32MP13 Bare metal project. I'm following example given by the STM32CubeMP13 Package. Everything works fine except for the fact that I'm disappointed by the performance. Indeed, if my theory is correct, the following code should change the pin status every second. void testCPUFreq(){ GPIO_InitTypeDef GPIO_InitStruct = {0}; uint32_t i; __HAL_RCC_GPIOH_CLK_ENABLE(); GPIO_InitStruct.Pin = GPIO_PIN_6 ; GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP; GPIO_InitStruct.Pull = GPIO_NOPULL; GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH; HAL_GPIO_Init(GPIOH, &GPIO_InitStruct); while(1){ for(i = 0; i < CPU_FREQUENCY; i++){ } HAL_GPIO_TogglePin(GPIOH, GPIO_PIN_6); } } I made my measurements using a logic analyzer connected to the pin in question. When I run the test on an STM32F7 target running at 200MHz, the pin status changes every second (which is the expected result). When I run
I have tried several times to find the datasheet of the M4 coprocessor inside the MP15xx but actually I was not able to find it. Can someone please point me to the download location?
I created a project using the default port assignments for the STM32MP157D-DK1 board in STM32CubeIDE v1.16 and was able to build it successfully. Following the example of the STM32MP157 Workshop videos I used Device Tree Compiler to create .dtb files from the .dts/.dtsi files, however I got the same syntax error for the kernel, optee-os,tf-a and u-boot .dts files:$ dtc -I dts -O dtb -p stm32mp157d-240702_stm32mp157-dk1-mx.dtb stm32mp157d-240702_stm32mp157-dk1-mx.dts Error: stm32mp157d-240702_stm32mp157-dk1-mx.dts:13.1-9 syntax error FATAL ERROR: Unable to parse input treeHowever the videos do not go into how to use Device Tree Compiler to create the .dtb filesLooking at one of the .dts files starting at line 13:#include <dt-bindings/pinctrl/stm32-pinfunc.h> #include "stm32mp157.dtsi" #include "stm32mp15xd.dtsi" #include "stm32mp15xxac-pinctrl.dtsi" #include "stm32mp15-m4-srm.dtsi" /* USER CODE BEGIN includes */ #include <dt-bindings/gpio/gpio.h> #include <dt-bindings/mf
@Erwan SZYMANSKI I have followed the instructions on "https://wiki.st.com/stm32mpu/index.php?title=STM32MPU_Distribution_Package&sfr=stm32mpu"I received these warnings during the built and errors in the end. How can solve it ? Error: File does not exist: /home/nesnes/STM32MPU-Ecosystem-v5.1.0/Distribution-Package/build-openstlinuxweston-stm32mp15-disco/tmp-glibc/deploy/images/stm32mp15-disco/flashlayout_st-image-weston/optee/arm-trusted-firmware/tf-a-stm32mp157f-dk2-usb.stm32 Error: TSV flashing service failed WARNING: linux-stm32mp-6.1.82-stm32mp-r2-r0 do_package_qa: QA Issue: File /usr/src/debug/linux-stm32mp/6.1.82-stm32mp-r2-r0/drivers/tty/vt/consolemap_deftbl.c in package linux-stm32mp-src contains reference to TMPDIR File /usr/src/debug/linux-stm32mp/6.1.82-stm32mp-r2-r0/lib/oid_registry_data.c in package linux-stm32mp-src contains reference to TMPDIR File /usr/src/debug/linux-stm32mp/6.1.82-stm32mp-r2-r0/arch/arm/include/gen
Hi, can someone help with ADS124S08 SPI ADC and its linux driver? I think the driver is correctly probed. I see /sys/devices/platform/soc/44004000.spi/spi_master/spi0/spi0.0/iio.device0/in_voltage0raw ...etc but it seems the device does not reply.This is my device tree configuration:&spi1 { status = "okay"; pinctrl-names = "default"; pinctrl-0 = <&spi1_pins_a>; cs-gpios = <&gpioz 3 GPIO_ACTIVE_LOW>; #address-cells = <1>; #size-cells = <0>; adc@0 { compatible = "ti,ads124s08"; reg = <0>; /* CS #0 */ spi-max-frequency = <1000000>; spi-cpha; reset-gpios = <&gpioi 2 GPIO_ACTIVE_LOW>; }; };First, i don't see the cs going low when i try to read the voltages. Should the driver do that?Second, the driver ti-ads124s08.c itself seems a bit incoherent with the datasheet. it defines the start conversion command as in the datasheet but then never uses it and instead it uses a made-up command.#define ADS124S08_CMD_START 0x08 #def
Hello , We have built OpenSTLinux(Openstlinux-6.1-yocto-mickledore-mp1-v23.06.21) for stm32mp157d-dk1 Board.Now moving forward we would like to Work with latest the version of u-boot instead U-Boot 2022.10-stm32mp-r1. So we would like to know how we could change the u-boot version.We have followed the below link as our reference.https://wiki.st.com/stm32mpu/wiki/STM32MP1_Distribution_Package#Installing_the_OpenSTLinux_distribution Thanks in Advance Best regardsSrikanth
I am trying to update my distribution (dated ecosystem v.5.0.0) to ecosystem v.5.1.0 ,As repoted inhttps://wiki.st.com/stm32mpu/wiki/STM32MP1_Distribution_Package#Building_the_OpenSTLinux_distributionI ran :` repo init -u https://github.com/STMicroelectronics/oe-manifest.git -b refs/tags/openstlinux-6.1-yocto-mickledore-mpu-v24.06.26`followed by `repo sync`, but I get the following error:error: Cannot fetch meta-st-openstlinux from https://github.com/STMicroelectronics/meta-st-openstlinux Fetching: 100% (1/1), done in 3m14.826s fatal: failed to unpack tree object HEAD error.GitError: Cannot checkout meta-st-openstlinux: Cannot initialize work tree for meta-st-openstlinux error: Cannot checkout meta-st-openstlinux Checking out: 85% (6/7), done in 1.078s error: Unable to fully sync the tree error: Downloading network changes failed. error: Checking out local projects failed. Failing repos: layers/meta-st/meta-st-openstlinux Try re-running with "-j1 --fail-fast" to exit at the first error
Custom board using MYC-YA157C, with Ubuntu 18 on itI'm using RS485 serial communication using python, it communicates well at first, but after a few hours tx stopsUart7 is in use and TX is stopped at tx:2875680I checked that the Python file is still runningCan I see where the problem is?
I'm attempting to run a critical process on Core 1 (A7 processor) while keeping all other processes on Core 0. I've had success with 'taskset' to get my critical process assigned to Core 1. I'm struggling with how to default all other processes to run on Core 0. Can someone show me how to do this on the supplied OpenSTLinux platform for this processor? The internet mentions isolcpus a lot but I'm not finding support for that command on this processor. How can it be done?
I am working on building a Yocto-based Linux distribution for the STM32MP157D SoC. I have already set up the process to build the Linux image successfully. However, I need guidance on the following:Deploying Firmware on M4 CoreWhat is the correct procedure to deploy firmware on the M4 coprocessor core of the STM32MP157D?Are there any best practices or considerations I should keep in mind while deploying firmware on the M4 core?Communication between A7 and M4 CoresHow can I establish communication between the main A7 core (running Linux) and the M4 coprocessor core?Are there any examples or sample code available to demonstrate the communication between the two cores?I would greatly appreciate any guidance, documentation references, or code examples that could help me accomplish these tasks efficiently. Thank you in advance for your assistance.
Hello everyone, I am trying to debug a custom board with STM32MP151 with WM8988 connected with SAI2, the connection is just as STM32MP15x-DK with except that there is no I2S to HDMI. The device tree configuration is a mimic of STM32MP15xx-dkx.dtsi. After bootup, the soundcard was created, and I can run alsamixer.The problem is whenever I try to play a sound, the driver complains about cannot get MCLK because the freq passed to wm8988_set_dai_sysclk() is zero. The log messages shown that the asoc try to configure the dai, but it passed the wrong MCLK freq to wm8988 dai. I don't know why? Is there something I am missing in the device tree? Also, I tried to enable DEBUG in stm32_sai_sub.c and find that stm32_sai_mclk_enable() may not be called because I cannot find “Enable master clock” in dmesg. I am using openstlinux eco system 4, the distro version is 4.0.11. Here is the snipet of the device tree. &i2c4{ pinctrl-names = "default", "sle
Hi, I am working on an Azure RTOS project, which requires jumbo frames capability. My current devkit is a MYD-YF13X to utilize 1 gigabit ethernet PHYs. My goal is to receive 9000-byte packets, but I am not able to receive any bigger than ~2000 bytes.Packets with size over 2kB are simply being ignored, as they wouldn't be transferred. The eth interrupts and respective receive complete callbacks are not being activated for them. I performed the following configuration:I have also configured the YT8521-SH ethernet PHY to work with jumbo framesI have also adapted the size of the buffers respectively. At the end I worked with the OpenSTLinux with both STM32MP13-Devkit and MYD-YF13X. I wanted to resize the MTU of eth interface. With the ifconfig tool I wasn't able to set the MTU to 9000 bytes. Once again, it was constrained to 2000 bytes.Why is the constraint set to ~2000? I would be thankful for any advice and help. Best,J.Schneider
HiI'm using the OpenSTlinux starter package.I want to change the SSH port communicated by dropbear from 22.Setting a file in the device and rebooted, but it doesn't change from SSH port 22.file: /etc/default/dropbearDROPBEAR_PORT=10022 *line added"DROPBEAR_EXTRA_ARGS" setting will take effect after the change.Is it possible to change the SSH port in dropbear settings?Best regards,
I developed a new stm32mp157 board. Do I need to update the firmware to run A7 on stm32mp157? Or is the firmware already updated?
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.