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
Hello ST Teams!We're testing another one stm32MP1 custom board (battery powered), and i've issue with poweroff command line function:Each time i use this function, board is rebooting instead of poweroffing (...)With these info from tfa:INFO: Reset reason (0x814):INFO: Pad Reset from NRSTI've see a similar post on ST Forum, but it doesn't help me!We are using a STM32MP1 from your Octavo partner, and i will post on their forum too.Octavo have encapslulated STM32MP1+PMIC+DDR on a single chip, so PMIC should be correctly wired.We have a PONKEY wired on the board, witch works perfectly, i can shutdown and wakeup by an action on "power" button.I've tried lot of distribution configuration, looked at PMIC internal registry, but i've no hints on what cause this.I've tried to use a "generic" Octavo Distribution (BRK one), stopped booting at uboot, to avoid unnecessary software issue, but i've the same behaviour.I'm feeling that there is an hardware i
After linux bootup on STM32MP157C custom board with kernel build 5.4.31, I load and start M4 with remoteproc successfully, but every time when linux access uart8@40019000, M4 side firmware stopped, the two command i used to test is "echo 123 > /dev/ttySTM1" or "stty -F /dev/ttySTM1 -a", both command stopped the M4 firmware, and my M4 firmware is toggling a GPIO when it's running, so it's been confirmed by using logic analyzer.Would anyone can tell me what's going on, and device tree dts file has been attached.Another thing I observed is, if I load M4 firmware by u-boot, during linux side boot up, M4 firmware been stopped by some driver, I suspecting it's stopped when remoteproc driver been probed.With kernel 5.10.10, the stm32-rproc driver failed to reset M4 and probe M4. would someone can confirm it?
I am trying to record instruction traces on-chip via ETF on a stm32mp157a-dk1 board, but the data read from FIFO through RRD is always 0. During the debugging process, I found the value of ETM_AUTHSTAT is 0x08, which means non-secure non-invasive debug disabled.... uint32_t ret; void __iomem *vaddr = ioremap(ETM_AUTHSTAT, 4); ret = __raw_readl(vaddr); iounmap(vaddr); ...After that, I tried to read DBG_AUTHSTAT and BSEC_DENABLE respectively:[10725.551984] Check some registers...... [10725.555600] BSEC_DENABLE:047F [10725.565686] DBG_AUTHSTAT:00FFIt seems all debug signals are 1.So what I want to confirm is whether the trace function is disabled on my board? Is it because stm32mp1 supports the Security Extensions?
Hi everyone, hope everything is OK. We are trying to use the STM32MP157-DK1 board for a project, but we notices that the ST-LINK included in the board consumes current even if we are not using it. There is a way to disable the ST-LINK by software? or do we have to modify hardware? We are using the board with openSTLinux as the operating system built with the YOCTO project.Thanks for your answers.
Hi I have list of unused pins need to configure as a GPIO, and some as a AF's, do we have any driver which shall facilated unused pins by default set pins state., we have in imx6 IOMUX which does that job in kernel., in mp1 i didnt find that.
Hello. I'm working with STM32MP15-DK1. There is the Realtek IC: RTL8211F-CG. Driver for this IC situates in SDK: linux-5.10.10/drivers/net/phy/realtek.cThere are two defines in this file: #define RTL8211F_TX_DELAY BIT(8)#define RTL8211F_RX_DELAY BIT(3)These defines are used in function: static int rtl8211f_config_init (struct phy_device *phydev)There are 2 strings in this function:ret = phy_modify_paged_changed (phydev, 0xd08, 0x11, RTL8211F_TX_DELAY, val_txdly);ret = phy_modify_paged_changed (phydev, 0xd08, 0x15, RTL8211F_RX_DELAY, val_rxdly);https://datasheet.lcsc.com/lcsc/1912111437_Realtek-Semicon-RTL8211F-CG_C187932.pdfBut in the datasheet we can see that there is no 0x11 address of the register on the 0xd08 page. And we can't change bit 3 in register 0x15 of page 0xd08 because it is OR bit.My device operates correctly, but I think I don't understand how it operates. Please, help me realise it.
I'm using STM32MP157A-DK1 development board, in this we are using it for audio application,I'm porting stlinux in the board by yocto BSP.I wanted to know the codec(CS42l51) available on the board at what default clock it is operating and is it using software clock or hardware clock.And if it is Software what are the files responsible for clock freq. change.and also what is the method to change the clock from internal to external and vice versa.
Hi,We are using Stm32mp157A-DK1 We have done IPCC between A7 and M4 in polling method by Registers. Now we are trying IPCC between A7 and M4 in Interrupt Mode But we unable to get Interrupts between A7 and M4. Would you please help us in this regards.Thanks in Advance.
We are using St distribution source code and we compile the source code in buildroot tool. But we unable to get User login page. How can i get the User login page.Would you help in this regards.Thanks in Advance.
Hi all,Is it possible to load .elf to an external STM32 MCU at the boot time of STM32MP1?I specifically want to target an external STM32MCU not the internal M4.How it can be achieved?
Hi ,How can i increase the size of rootfs correctly? I tried using gparted , but it looks like the tf-a iss't very happy with it and tries to reset it in correct way. So i would like to understand how can i increase its size more correctly since installing a lot of packages causes low disk space in rootfs and i would like to leverage space left on other drives to be used.Any leads will be highly appreciated.
Hey guys,Having some issues with running through the kernel setup and dont understand the errors returned back as iv followed all the steps to a T.Attached my terminal history. This in on the https://wiki.st.com/stm32mpu/wiki/Getting_started/STM32MP1_boards/STM32MP157x-DK2/Develop_on_Arm%C2%AE_Cortex%C2%AE-A7/Modify,_rebuild_and_reload_the_Linux%C2%AE_kernelI honestly dont understand what i may have done wrong here. if possible id like to understand the method to understanding errors within linux as this is my first ish run with native linux installed Also to note i did have a look at the readmes within the file system to which i think they differ slightly to whats whats on the wiki.Error:andreas@andreas-desktop:~/STM32MPU_workspace/STM32MP15-Ecosystem-v3.0.0/Developer-Package/en.SOURCES-kernel-stm32mp1-openstlinux-5.10-dunfell-mp1-21-03-31/stm32mp1-openstlinux-5.10-dunfell-mp1-21-03-31/sources/arm-ostl-linux-gnueabi/linux-stm32mp-5.10.10-r0/linux-5.10.10$ make -j2 ARCH=arm modules&nbs
Hello Friends,I am newly using STM32MP1 DK2 If I create python exe file, can I run python exe on st Linux?Share me details how to run python exe in st Linux on STM32MP1 DK2Thank you friends.
Of the many things I have been struggling withmSTM32MP157F-DK2 throughout this summer, one of them is the interprocessor communication between A7 and M4. I want A7 to process data and send the refined result to M4 for further low level actions. As many users may agree, information in this wiki is scattered with many branches, and while following one topic you encounter references to many links that end up blowing you out if the device is new to you. I am one blown out that way.I was reading this post https://wiki.st.com/stm32mpu/wiki/Coprocessor_resource_table and found that I have to have this code somewher in my M4 firwarewhich I managed (by trial and error) to add in my rsc_table.c as (note sure if that was correct) Then found rhat I also have to add this code somewhere, but not sure where: whether it is in A7 Linux userland or in M4 firware. Played around many times for over 14 hours and got frustrated.can anyone help me?
The gcc variant in STM32MPU Embedded Software distribution components is 'arm-ostl-linux-gnueabi-gcc'. Then what's the difference between 'arm-ostl-linux-gnueabi-gcc' and 'arm-none-linux-gnueabi-gcc'?Thanks.
I've build all part (linux, tf-a, u-boot) in stm32cubeide, acording to my device tree configured in cube.I would like to ask if there is short way to create sd-card image from cube gui? If not, could any one share way how to do that from build to ready image.I found this tutorial https://wiki.stmicroelectronics.cn/stm32mpu/wiki/How_to_populate_the_SD_card_with_dd_commandbut i can't find the script.i'm using vitrual machine with ubuntu 20.04Sory if question will be trival. I'm new in linux compilation. Usualy i used already prepared.
Hey , In the OTG block diagram (attached below ) pin PA11 and PA12 can be configured as OTG_FS but using CubeMx we can't set the functionality of these pins.
Hi,I want to generate Interrupts from Core0(First A7) to Core1(Second A7)in stm32mp157A at Uboot Level .We are using St distribution Uboot source Code.Can Anyone Tell the Procedure for Generation of Interrupts .
Hello , Is the BlueZ supported or added in the Distribution or developer or starter image?I tried running bluetoothd -v to get the version of the bluetoothd (and hence the Bluez which has this demon built) but I got this :root@stm32mp1:~# bluetoothd -v-sh: bluetoothd: not foundI then tried building the Distribution package which has this meta-connectivity layer where there is BlueZ is in add on Recipes ( https://wiki.st.com/stm32mpu/wiki/STM32MP15_OpenSTLinux_release_note)bluez5meta-st/meta-st-openstlinux/recipes-connectivity/bluez5/bluez5_%.bbappendDo I have to add this layer? or will it be built by bitbake st-image-weston? Using bitbake st-image-weston and fishing the image gives the same result.Please tell the steps to build and use BlueZ and all the utilities it provides (bluetoothd,meshctl)Thanks in advance !Regards,D
I designed my robot control system using STM32MP157f-K2 board I use the M4 core to read an IMU through SPI, read encoders and generate PWM for controlling the motors by using timers. I use A7 to read USB vision cameras, read a radar by using CAN bus, and read a lidar using ethernet. After processing the data, it sends the results to M4 for fusing with encoder and gyrometer data to make better control decisions.I have the M4 firmware created using STM32CubeMx, and a A7 application compiled in linux. I expect them to communicate one way from A7 to M4 through virtul_uart0. I haven't been able to test the codes since I don't know how to start the Me firmware, When I loaded it directly from STM32CubeMx, I got into problems I had to reflush the board. My questions are two, and I will appreciate any advice(1) How can I open the Linux shell on the on-board LCD screen instead of mapping it to my computer using STLink(2) How can I start both the A7 application and M4 firmware automatically and d
Hi all,I am trying to achieve DDR data transfer between M4 and A7.So I followed How to exchange data buffers with the coprocessor - stm32mpu article and built a yocto image. I have stripped down the logic analyzer application : here . On CM4 side it just transfers data from a another MCU pushing in data at UART7 and transferring that via DMA to DDR buffer. SDB Driver unchanged.On the Application side , I have removed all GTK related things and just stripped it down to receive data to DDR buffer and print to a console.I have few questions of concerns: In case of the CM4 code provided here : LinkThere no support in the latest cube-mx to create an RPMSG_HDR_HandleTypeDef type object which might be labelled as /dev/tpmsg-sdb type in user space application.Although the data structure is similar to VIRT_UART_HandleTypeDef. So I went ahead and made and rpmsg-sdb object of the later type. Now when I run my stripped down application part of attached zip. I get below error on A7-console : CA7 :
Hello Team,We are using a product build around STM32MP157C. We have a requirement for programming the OTP with MAC Id. Here is my understanding on the same:The OTP_57 and OTP_58 are meant for MAC addressMAC address can be programmed from the uboot using the fuse commandMAC address can be programmed from user space (with kernel booted up) using the sysfs interface.We boot up our platform in basic mode. However, there was a mention that by default, OTP can be updated only in the secure mode. So, want to check if there is any setting which allows to update the MAC address specific OTP in basic mode?Also, want to understand if there is any automated tool which would efficiently allows the MAC address to updated during the Mass Production?
I am building softwares for my cutom board based on STM32MP1 using OpenSTLinux. I get lot of kernel-module-* packages installed in the rootfs. I found they are build because fragment-03-systemd.config is added to kernel config if systemd is used.Can you explain why all theses modules are added and if they are really needed ? Can I simply remove fragment-03-systemd.config or should I edit it ?Many thanks in advance
i‘m not using qt or other 3rd gui framweork, no weston, no x, just direct use drm api,i need switch off lcd after some time is not operated,i google it a while,It looks i need a complete desktop environment to do that,so i want know is any way to do that easily.now i can simply switch off backlight to look like the lcd is off
Hi,I have a STM32MP157a-dk1 discovery board and a SX 1280 – Semtech (E28 2G4M27S - E-Byte) module. With CubeMX I add SPI5 to the architecture and get the outputs (Kernel, TF-A and U-boot files.) Then by using these output files I can generate the DTB file and can flash this at DK1 card side. Below SPI loopback test is OK also.https://wiki.st.com/stm32mpu/wiki/How_to_use_SPI_from_Linux_userland_with_spidevWhat I want to learn is:Actually, I am very new to Embedded Linux concept. I don't even know what is the structure of driver. But as I see I need to apply my SX 1280 Lora IC's communication specs to STM32MP1 series MPU side.Can any one offer me where to start? As you can see I am thinking to use MPU side of the IC. Maybe MCU side can also be used as well.I want to get data from ethernet then need to send this data over SX 1280.
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.