Get ready for the STM32 Summit 2026 | Online, November 3
Join conversations with your peers and ST experts. Explore the full potential of STM32 microprocessors for your embedded design.
Most recent activity
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.
hi,I use SAI interface for reading data by M4 core in stm32mp157Only in debug M4 mode(M4 is running and A7 isn't running),the read can success.When A7 core is running, the read will be failed(A7 is running ,but SAI is used by M4). when a7 is running.Using HAL_SAI_Receive , time out will bu return .Using HAL_SAI_Receive_DMA ,busy will be return .in device tree ,sai is disable
Hello, I recently purchased the STM32MPU135F-DK and is having an issue with connecting to the discovery kit using the STM32CubeProgrammer Version 2.16.0. It looks like when i try to connect the STM32MPU135F-DK, I get this "Cannot Access Port 0!!!" (Please see picture attached). I have never seen this issue before with any of my STM32 discovery kits.Can you please tell me how to fix this issue?
Hello everyone,I got a yocto build from scratch using yocto/open-embedded/meta-st-stm32mp. Everything is smooth. I can root the kernel while standing. I can establish an ssh connection. Everything is perfect.But I want to create an SDK after the kernel compilation I received. In the next step, I will integrate the SDK I created into cubeide and start developing code. But when I say "bitbake -c populate_sdk core-image-minimal" I get the following error. I've been struggling with this error all day and couldn't solve it. Does anyone have an idea? Sincelery
We are pleased to announce you that the official release of STM32CubeMX V6.12.0 is available. What is new in STM32CubeMX V6.12.0? New MCUs/MPUs series : STM32WB0 ,STM32MP25XX and STM32C071XX Add support new CPNs STM32G4: Add support STM32G4 'Z’ and STM32G414 New Boards are supported: NUCLEO-C071RB , NUCLEO-WB09KE ,NUCLEO-WB07CC ,NUCLEO-WB05KZ ,STM32MP257F-DK , STM32MP257F-EV1 Remove STM32MP15 obsolete boards from CubeMX board selector ( STM32MP157A-DK1 , STM32MP157A-EV1, STM32MP157C-DK2, STM32MP157C-EV1) New Boards are supported by the Start from Board feature: Nucleo-WB09xx Nucleo-WB07xx ,Nucleo-WB05xx ,Nucleo-C0 , NUCLEO-G431RB ,NUCLEO-G474RE ,NUCLEO-G491RE ,NUCLEO-H503RB ,NUCLEO-U545RE ,NUCLEO-WB15CC ,NUCLEO-WB55RG ,P-NUCLEO-WB55 ,P-NUCLEO-WB55 ,NUCLEO-WL55JC1 ,NUCLEO-WL55JC2 ,NUCLEO-WBA52CG ,NUCLEO-WBA55CG Add CMake support for multicontext projects (Multi-Context ,Trust zone , Multi-core) Add the support of the memo
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,
Hello friends,Please, if you can really help me, I'm not an expert in the Linux device tree.I urgently need to understand the commands to execute on the device tree on the powerful STM32MP157 MINI Linux board alientek ATOMIC (Note: Chinese language, please right click google automatically translate from browser):https://www.bilibili.com/video/BV15U4y1E7Bh/https://www.bilibili.com/video/BV1kr4y1c7bv/https://www.alientek.com/Product_Details_17/31.html WiKi Compiler YOCTO Linux Image:https://han-ya.blogspot.com/2024/03/stm32mp157-linux.htmlGUI QThttps://han-ya.blogspot.com/2024/03/stm32mp157-qt-creator . html ADC1+ADC2 - Analog Multi channel IODEVICE TREEIt is essential to create from device tree :- 8 ANALOG type GPIO physical pins on the board (AN0,AN1,AN2, AN3,AN4,AN5,AN6,AN7)- 3 GPIO physical pins of PWM type real time motors on the board (PWM0, PWM1,PWM3)But manufacturing company says only 2 ADC pins can be read,I attach STM32MP157 MINI mappin
Hello,I designed custom board with STM32MP157 and LPDDR3 memory. Due to PCB manufacture restrictions I needed to connect to ground unused signal called DDR_ATO. I want to know if this is a problem, because if it is the case I can just remove 1 ball from the IC and solder it like that, but maybe it is not necessary? Thank you, Dominik.
Good afternoon. I observe very strange behavior when the first few images received from the camera are normal, and then subsequent images are always shifted by 4 bytes. Initial data:1. I am using a STM32MP157A-EV1 device with a screen and camera on board.2. I use the official Distribution-Package firmware based on tag: openstlinux-5.10-dunfell-mp1-21-11-173. To work with the camera I use the following example: https://www.kernel.org/doc/html/v4.11/media/uapi/v4l/capture.c.htmlReceiving images in STREAMING_ON mode, via MMAP.4. In the process_image function I print the first few bytes of each image. Output:root@stm32mp15-eval:~# ./visorik-v4l-exampleprocess_image 0FF D8 FF E0 00 10 4A 46 49 46 00 01 01 01 00 00 00 00 00 00 FF DB 00 43 00 04 03 03 04 03 03 04 04 03 04 05 04 04 05 06 0A ... - goodprocess_image 1FF D8 FF E0 00 10 4A 46 49 46 00 01 01 01 00 00 00 00 00 00 FF DB 00 43 00 04 03 03 04 03 03 04 04 03 04 05 04 04 05 06 0A ... - goodprocess_image 2FF D8 FF E0 00 10 4A 46 49 46 00
This guide uses ubuntu22.04 x86 pc(Probably the same on any other Linux system) as host, and mp2 as device.Its quite a common practice to use NFS as a medium to transfer cross compiled binary to dev board, since using sftp or scp to transfer the file every time you cross compile is tedious and time consuming. Install NFS server and prepare the export directory on host : sudo apt update && sudo apt install nfs-kernel-server sudo mkdir -p /host_export_srv_dir sudo chown -R nobody:nogroup /host_export_srv_dir sudo chmod 777 /home/srv Edit export file on host: sudo vim /etc/exports /home/srv *(rw,sync,no_subtree_check) Export the directory &
I developed a new stm32mp157 board. Do I need to update the firmware to run A7 on stm32mp157? Or is the firmware already updated?
Hello,I made psplash-drm imageand, checked change boot logo.but other issue occurred. display off after about 15s display change psplash-drm image.I think cannot load weston.error log>root@stm32mp1:/home/weston# cat weston.logDate: 2024-06-25 UTC[15:19:58.793] weston 11.0.1https://wayland.freedesktop.orgBug reports to: https://gitlab.freedesktop.org/wayland/weston/issues/Build: 11.0.1[15:19:58.794] Command line: /usr/bin/weston --modules=systemd-notify.so --log=/home/weston/weston.log --use-pixman[15:19:58.794] OS: Linux, 6.1.28, #58 SMP PREEMPT Tue Jun 25 17:21:22 KST 2024, armv7l[15:19:58.794] Flight recorder: enabled[15:19:58.795] warning: XDG_RUNTIME_DIR "/home/weston" is not configuredcorrectly. Unix access mode must be 0700 (current mode is 0755),and must be owned by the user UID 1000 (current owner is UID 1000).Refer to your distribution on how to get it, orhttp://www.freedesktop.org/wiki/Specifications/basedir-specon how to implement it.[15:19:58.801] Using config file
Hello everyone,I'm getting yocto build for STM32MP1 mickledore. There is no problem with compilation. The images were produced without any problems. The system is up but I get the following error while generating the SDK. ERROR: core-image-minimal-1.0-r0 do_populate_sdk: Could not invoke dnf. Command '/home/faruk/Desktop/projects/801.01/SOFTWARE/801.01_plnx/tmp/work/stm32mp1-poky-linux-gnueabi/core-image-minimal/1.0-r0/recipe-sysroot-native/usr/bin/dnf -v --rpmverbosity=info -y -c /home/faruk/Desktop/projects/801.01/SOFTWARE/801.01_plnx/tmp/work/stm32mp1-poky-linux-gnueabi/core-image-minimal/1.0-r0/sdk/image/etc/dnf/dnf.conf --setopt=reposdir=/home/faruk/Desktop/projects/801.01/SOFTWARE/801.01_plnx/tmp/work/stm32mp1-poky-linux-gnueabi/core-image-minimal/1.0-r0/sdk/image/etc/yum.repos.d --installroot=/home/faruk/Desktop/projects/801.01/SOFTWARE/801.01_plnx/tmp/work/stm32mp1-poky-linux-gnueabi/core-image-minimal/1.0-r0/sdk/image --setopt=logdir=/home/faruk/Desktop/projec
Good evening.I'm trying to use the ST's DDR FW UTIL (Github link) to test/verify DDR configuration with said project imported into STM32CubeIDE (latest version).I'm running into trouble with the HAL's RCC configuration in that whatever configuration (Enabled, Analog Bypass or Digital Bypass) I apply to the HSE I never see the HSERDY bit go high in the RCC_OCRDYR register. Without the ready bit going high a timeout occurs and the clock initialization routine fails.My reference is a 3.3V CMOS oscillator at 24.0 MHz. I've verified the output of the oscillator using an oscilloscope--it is proper frequency and waveform.I've also observed curious behavior with the RCC_OCENSETR in that HAL writes to the HSEBYP bit never read back high when stepping through in the (SWD) debugger. Writing to the same register with the debugger is also never able to set the HSEBYP bit.Any idea what might be happening? Thanks
Hello,I am trying to bring up my custom board with STM32MP157F largely inspired by STM32MP157F-DK2 board but with a dual RAM configuration.I am having a Panic error after ROM boot which states in the line before an error related to "fdt_counter_get", a function that I have no idea what it does and I cannot seem to find where it comes from, anywhere on internet or in my files.I have looked at the usual troobleshooting guidelines and I have no difference with discovery kit devictree configuration regarding HSE (oscillator bypass), I2C4 and PMIC (although I removed some unused configuration for HDMI or audio which I do not have in my board).Here are the logs I get on UART console during boot. Thank you for your help.NOTICE: CPU: STM32MP157FAA Rev.ZNOTICE: Model: STMicroelectronics STM32MP157F-EV1 STM32CubeMX board - openstlinux-6.1-yocto-mickledore-mp1-v23.06.21INFO: PMIC version = 0x21INFO: Reset reason (0x15):INFO: Power-on Reset (rst_por)INFO: FCONF: Reading TB_FW firmware configuratio
Hello,I'm a newbie using Yocto so my question maybe doesn't make a lot of sense.I'm trying to add rust 1.78 to an existing image (STM32MP1 OpenSTLinux).1. I cloned the repo in the layers directory (git clone https://github.com/meta-rust/meta-rust.git) .2. I sourced my environment script (DISTRO=openstlinux-weston MACHINE=stm32mp15-disco IMAGE=st-image-weston source layers/meta-st/scripts/envsetup.sh)3. I modified the file "layers/openembedded-core/meta/conf/distro/include/tcmode-default.inc" in order to change RUSTVERSION ?= "1.68%" to RUSTVERSION ?= "1.78%"4. I run bitbake-layers add-layer meta-rust5. I run bitbake-layers show-layers (my new layer is there : (rust-layer /home/hanoi/devel/STM32MP1/distribution-package/layers/meta-rust))6. I compile the image (bitbake st-image-weston)7. I can see the source files for rust-native-1.78.0-r0, cargo-native-1.78.0-r0 and rust-llvm-native-1.78.0-r0 are being fetched and unpackedNow the problems:compiling rust-native-1.78.0-r0-----------------
Following the instructions on the wiki page for getting started, the board does not appear over USB and cannot be recognised by STM32CubeProgrammer. Green power LED is on. Switches are in correct position. STLink is red light is blinking. Power rails seem fine, although DDR is 0 volts. I have tried two different computers, one Linux, one macOS and neither can detect the USB device or connect to it from STM32CubeProgrammer. I have also tried different cables.
Hello,I am developing using the OpenSTLinux Ecosystem 4.1 Distribution package. And I generate "SDK by bitbake -c populate_sdk st-image-core", and obtained the SDK (I think it is the same to the Developer Package offererd by st.com). After that, I run the xxx.sh file inside the deploy/sdk path and finally installed it into /opt directory. Until then, everything is OK.When I open STM32CubeIDE (version 1.15.1) to install the SDK, every time I choose the SDK installation path where there is a sysroot directory, STM32CubeIDE complains that An internal error occurred during: "OpenSTLinux Lookup". java.lang.NullPointerException Here is the directory structures of my own SDK installation. jason@dell15:/opt/st/stm32mp1-dragonli5$ tree 4.0.11-snapshot/ -L 2 4.0.11-snapshot/ ├── environment-setup-cortexa7t2hf-neon-vfpv4-ostl-linux-gnueabi ├── site-config-cortexa7t2hf-neon-vfpv4-ostl-linux-gnueabi ├── sysroots │ ├── cortexa7t2hf-neon-vfpv4-ostl-linux-gnueabi │ └── x86_64-ostl
Hello,I'm encountering an error during USBX initialization.Inside the _ux_device_stack_initialize function: memory = _ux_utility_memory_allocate(UX_NO_ALIGN, UX_REGULAR_MEMORY, sizeof(UX_SLAVE_CLASS) * UX_MAX_SLAVE_CLASS_DRIVER); When executing the _ux_utility_memory_allocate function, the error occurs at:_ux_system_mutex_on(&_ux_system -> ux_system_mutex); What could be causing this error?
Hello I want to 3D print a case for STM32MP135X-DK Board but I could not find any. is there any documents for size or cad file
Dear All,We have been using LCD module which supports touch screen.Currently image can be displayed properly.I just started debugging touch screen.we use SPI2 to interface to touch screen ic, TSC2046.This is setting spi2 in dts.&spi2 {pinctrl-names = "default", "sleep";pinctrl-0 = <&spi2_pins_a>;pinctrl-1 = <&spi2_sleep_pins_a>;cs-gpios = <&gpioi 0 0>;status = "okay"; //spidev@0 { // compatible = "spidev"; // spi-max-frequency = <20000000>; // reg = <0>; //}; ads7846@0 { compatible = "ti,ads7846"; reg = <0x0>; spi-max-frequency = <1000000>; interrupt-parent = <&gpioe>;&n
So I got the basic yocto build working for the STM32MP157C-DK2 and have been able to modify it to add/ remove/ modify features without any problems both st-image-core and st-image-weston.Then I come to do a custom machine and add it to the build by following:https://wiki.st.com/stm32mpu/index.php/How_to_create_your_own_machineThis build runs until I get the following error:arch/arm/dts/.stm32mp1-test.dtb.pre.tmp:14:10: fatal error: stm32mp157.dtsi: No such file or directory| #include "stm32mp157.dtsi"| ^~~~~~~~~~~~~~~~~| compilation terminated.I have a feeling I have missed something simple but any advice greatly appreciated.
Hello,I want to change booting logo image on STM32MP135F-DK.1. I checked first boot image.(/boot/splash_landscape.bmp) 2. I want to change second boot image. 3. I checked after booting, backgroud image.(/usr/share/weston/backgrounds/OpenSTLinux_background_1024x600.png)thanks, reply.
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.