Get ready for the STM32 Summit 2026 | Online, November 3
Ask questions and find answers on STM32 microprocessors, including hardware, power, DRAM, flashing, interfacing, device tree, and peripherals.
Most recent activity
We have encountered a problem with CRYPTO IP core on STM32MP157C.Our setup is STM32MP157C-DK2 with latest image/SDK installed(openstlinux-5.10-dunfell-mp1-21-11-17).1. First of all, our IPSec solution based on strongSwan doesn't work atall when stm32-cryp.ko is loaded: after processing several packetsIPSec connection stucks. The only message we got in kernel ringbuffer is:```[ 102.064269] NOHZ tick-stop error: Non-RCU local softirq work is pending, handler #08!!!```It stucks no matter what cipher is selected or which settings areused. However, if we don't use stm32-cryp at all (e.g. if we unloadthis module), IPSec connection works perfectly.We haven't found a simple way to reprocude this bug without deployingIPSec infrastructure (it's very simple to do it with AlgoVPN [1]), sowe can provide you an access to our test environment or give you moredetails on request.2. Moreover, we have made a performance test using cryptodev-tests([2], but this package is available in Yocto SDK too)
Hi,I create a QT project and run it on the board STM32MP157C-DK2 with command " /tmp/testqt/bin/testqt". The data display on the DSI display is mismatch my testing project's UI.LCD_picture.jpg is DSI display data.QT_UI.jpg is Qt project's UI.Please advise how to solve it.Thanks,QiZhang
..
I am trying to build gui using GLADE designer for STM32 MP157 DK but i have problem in loading the generated GLADE XML in user space project.
According to the wiki here: Boot from serial NOR, the pins required to boot from a serial NOR flash chip in single mode are PB6, PF8, PF9, PF10. These pins are present on the TFBGA257 package. To boot in dual mode, PH2 and PH3 are required, and these pins are *not* present on the TFBGA257 package. So from this, it seems this package supports serial NOR flash booting in single mode only.However, CubeMX does not let me enable the QUADSPI peripheral for BOOTROM. If I try, it highlights all the choices in red and gives the error message: "Pin not available for boot step (boot ROM)".So, is this a bug in CubeMX, or does this package not support single-chip NOR Flash booting? I'm re-designing a board to use this chip instead of a larger package, and we require serial NOR flash booting. So it'd be good to know before committing to the design.thanksDan
Hi,I'm using stm32mp157a-dk1 and I want to drive a pin with the A7.I add and set (as digital output) the pin PF2 (named "Test") to "Cortex-A7 non secure" in the "Pin Reserved" on the IOC file in the window "Pinout & Configuration" of STM32CubeIDE. Then I generate the code, but the dts file does not change and I cannot find a pin named "Test" in the Device Tree of the A7.How can I add the pin on the dts file, so the A7 can drive it?Moreover, where should I put the dts file to build the linux image with yocto?(For yocto I follow the Distribution Package Tutorial for STM32)Thanks in advance,Andrea
Hi,Does anyone know an FM radio receiver IC with Linux driver? Thanks.
Hello, I have sd card with lots of things configured.To save time I want to create backup of this card which I can flash later.Is there any official way to take the backup of the STM32MPU sd card image and also a way to flash the same image on new SD card (with the starter package already installed as well as a new card from the factory ).Looking for an STM32MPU DK2 F board but I think must be valid for all boardsRegards,Thanks in Advance !
Hello, I am using STM32mp157f-dk2 board and I have a peripheral connected on GPIO pin #16 ( PF1)on doing gpoiget gpiochip5 1 > i get 1on doing gpiosetgpiochip5 1=0 i DO NOT get any error but on doing again gpioget gpiochip5 1 > i get 1 againI see it is shared with SDMMC3_CMD . On directly connecting it to Ground , it becomes low , not otherwise from the above commands.Is this the same MMC on which starter image is written?Is it safe to pull it down permanently from the hardware? May I know how to make it low from the software permanenetly.Regards,D
Good afternoon, I have written two versions of the time output test programs to the console for STM32MP157D. Both programs work no more than 2 hours, then the system restarts. What did I do wrong?Sincerely, Alexander. //////////////////////////////////////////////////////////////////////////////def time_show(): await asyncio.sleep(10) os.system("date > time_info.txt") f = open('time_info.txt','r') read_data = f.read() f.close() os.system("rm time_info.txt") print(read_data[11],read_data[12],read_data[13],read_data[14],read_data[15])if __name__ == "__main__": loop = asyncio.get_event_loop() loop.run_until_complete(time_show()) datsa = 10 for i in range(data): time_show() os.system("python3 tablo")//////////////////////////////////////////////////////////////////////////import asyncioimport datetimeimport osimport subprocessimp
Hi,We are using stm32mp157a processor in my custom board.In my custom board we have limited peripherals so i need to disable remaining peripherals like ltdc and hdmi ,etc. I disabled in dts files but it didn't effected. How can i disable peripherals in u boot?
On my Ubuntu 20.04, Flashing of STM32MP157C-DK2 with STMCubeProgrammer fails with the following error I easily reproduced using the scripts:$ STM32_Programmer.sh -c port=usb1 -w FlashLayout_sdcard_stm32mp157c-dk2-trusted.tsv ------------------------------------------------------------------- STM32CubeProgrammer v2.9.0 ------------------------------------------------------------------- USB speed : High Speed (480MBit/s) Manuf. ID : STMicroelectronics Product ID : DFU in HS Mode @Device ID /0x500, @Revision ID /0x0000 SN : 002C002E3338511134383330 FW version : 0x0110 Board : -- Device ID : 0x0500 Device name : STM32MP1 Device type : MPU Revision ID : -- Device CPU : Cortex-A7 Start Embedded Flashing service Error: File does not exist: /users/vincent/Documents/03_DEV/STM32MP1/en.FLASH-stm32mp1-openstlinux-5-10-dunfell-mp1-21-11-17_tar_v3.1.0/stm32mp1-openstlinux-5.10-dunfell-mp1-21-11-17/images/stm32mp1/flashlayout_st-image-weston/trusted/arm
I use a STM32MP157C and connected to MAX24287 PHY by RGMII.After linux booted there is only 100Mbps connection - I put the PHY into Diagnostic Loopback Mode and the situation is the same.My dts:&ethernet0{ pinctrl-names = "default", "sleep"; pinctrl-0 = <&eth1_pins_mx>; pinctrl-1 = <&eth1_sleep_pins_mx>; status = "okay"; /* USER CODE BEGIN ethernet0 */ phy-mode = "rgmii-id"; max-speed = <1000>; phy-handle = <&phy0>; mdio0 { #address-cells = <1>; #size-cells = <0>; compatible = "snps,dwmac-mdio"; reset-gpios = <&gpioa 4 GPIO_ACTIVE_LOW>; reset-delay-us = <10000>; post-reset-delay-us = <1000>; phy0: ethernet-phy@3 { reg = <3>; sfp;/* compatible = "ethernet-phy-ieee802.3-c22"; *//* interrupt-parent = <&gpioa>; *//* interrupts = <9 IRQ_TYPE_EDGE_FALLING>; */ }; }; /* USER CODE END ethernet0 */};The PHY has 25MHz external clock, it gives 125MHz RX_
How can I configure the i2c duty cycle to 50% in the linux device tree for a 33kHz device?I have modified the frequency from 100000 to 33000 but I couldn't find a setting for the duty cycle and right now I measure ~83%.MPU stm32mp153.
Hello there,We are working on a design based on the STM32MP1 eval kit which is using Realtek RTL8211 for Ethernet.However this IC seems to be hard to buy; Realtek distributors are giving lead times of +1 year.Can someone recommend alternatives?Thanks,Guillermo
We are trying to bring-up our custom board and every step of the way we see panic messages, we need some direction in understanding what went wrong. Our board has the following:Processor: STM32MP157FACxQSPI NAND flash memory is our boot device (AS5F18G04SND)PMIC: STPMIC1BDDR memory LPDDR - 32-bit - 128MB memory. All the device trees were generated using the latest CubeMx.Issue1: We had he first panic when flashing partition 1. When the PMIC node in device tree was set as below for buck 1 it fails in flashing partition 1.vddcore:buck1{regulator-name = "vddcore";regulator-min-microvolt = <1200000>;regulator-max-microvolt = <1200000>;regulator-always-on;regulator-initial-mode = <0>;regulator-over-current-protection;};However if I change it to the one below with the max voltage set to 1.35V it completes flashing partition 1 and fails in partition 3.vddcore:buck1{regulator-name = "vddcore";regulator-min-microvolt = <1200000>;regulator-max-microvolt = <1350000>;
From my understanding of the documentation, my steps to lowest power (VBAT mode) on the STM32MP1-DK2 kit would be: Connect Battery to VBATSet BREN in TF-ADisable wake sources other than from PMIC and RTCenter sleep via: "echo mem > /sys/power/state"Is this correct? Am I missing any steps here?Thanks,Ben Beckwith
I've just finished the tutorials on MP1 and have built a few Nucleo projects. When I want to use a GPIO pin on the Nucleo board I go o the ioc file, name a pin and hit Project > Generate Code, and I'll see the pins at the bottom of my Core > main.c file, but when I do that in a new project for the MP1, I don't see anything added to the project.Further, if I search the entire directory for the name of the pin "HEATER" in my case, I don't see it anywhere else but the ioc file.```$ grep -rnw . -e 'HEATER'./test.ioc:647:PA10.GPIO_Label=HEATER```What am I doing wrong?
make ARCH=arm uImage vmlinux dtbs LOADADDR=0xC2000040 GEN Makefile HOSTCC scripts/mod/mk_elfconfig/media/user/H3D1P2/Tools/STM32MP1/STM_ECO_3.10/Developer-Package/SDK/sysroots/x86_64-ostl_sdk-linux/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/11/liblto_plugin.so: error loading plugin: /media/user/H3D1P2/Tools/STM32MP1/STM_ECO_3.10/Developer-Package/SDK/sysroots/x86_64-ostl_sdk-linux/lib/libc.so.6: version `GLIBC_2.33' not found (required by /usr/lib/gcc/x86_64-linux-gnu/11/liblto_plugin.so)collect2: error: ld returned 1 exit statusmake[2]: *** [scripts/Makefile.host:95: scripts/mod/mk_elfconfig] Error 1make[1]: *** [/media/user/H3D1P2/Tools/STM32MP1/STM_ECO_3.10/Developer-Package/stm32mp1-openstlinux-5.10-dunfell-mp1-21-11-17/sources/arm-ostl-linux-gnueabi/linux-stm32mp-5.10.61-stm32mp-r2-r0/linux-5.10.61/Makefile:1214: prepare0] Error 2make: *** [/media/user/H3D1P2/Tools/STM32MP1/STM_ECO_3.10/Developer-Package/stm32mp1-openstlinux-5.10-dunfell-mp1-21
Hi, CommunityI'm building linux based firmware on STM32MP157F ad I need to apply linux RT patches.I'm using STM32MP157F-EV1 for testingAs linuxkernel I'm using ST linux v5.10-stm32mp-r2, of STMicroelectronics linux repo. This tag is v5.10.61 kernel version, so I took patch-5.10.59-rt52.patch.gz, since it is nearest kernel version. The patch was applied without errors, but at startup there is a following exception in pinctrl-stm32 driver:[ 2.905809] ------------[ cut here ]------------ [ 2.905823] WARNING: CPU: 0 PID: 1 at kernel/locking/rtmutex.c:2040 __rt_mutex_trylock+0x110/0x114 [ 2.905860] CPU: 0 PID: 1 Comm: swapper/0 Tainted: G W 5.10.61-rt52agvl-stm32mp157f-ev1 #2 [ 2.905873] Hardware name: STM32 (Device Tree Support) [ 2.905890] [<c010f7c8>] (unwind_backtrace) from [<c010c3c0>] (show_stack+0x10/0x14) [ 2.905919] [<c010c3c0>] (show_stack) from [<c0db0a58>] (dump_stack+0xb4/0xc8) [ 2.905940] [<c0db0a58>] (dump_stack) from [<c012f8f8>] (__w
Hi,Is there any Yocto layer which can be added to ST's Linux distribution to connect smartphones such as Android Auto/Apple CarPlay? Thanks in advance.
hi,we are trying to flash our yocto build on our custom board using the stm32cubeprogrammer via usb in dfu mode. the flashing fails w/ the following message:19:33:39 : Opening and parsing file: tf-a-stm32mp157f-nff-mx-usb.stm3219:33:39 : File : tf-a-stm32mp157f-nff-mx-usb.stm3219:33:39 : Size : 225596 Bytes19:33:39 : Partition ID : 0x0119:33:39 : Download in Progress:19:33:39 : File download complete19:33:39 : Time elapsed during download operation: 00:00:00.55019:33:39 : RUNNING Program ...19:33:39 : PartID: :0x0119:35:29 : Error: an error occured while uploading data from the virtual partition 0xF1on the console we see the following message:on the console we see the following log:PANIC at PC : 0x2ffea97fException mode=0x00000016 at: 0x2ffea97fwe've looked at the following troubleshooting guide:https://c
I'm following the tutorial here but when I define `VIRT_UART_HandleTypeDef huart0;` I get error: unknown type name. It seems like the only include I should need is openamp.h, but that doesn't seem to do the trick.
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.