Developer support experience survey - We value your feedback
Join conversations with your peers and ST experts. Explore the full potential of STM32 microprocessors for your embedded design.
Most recent activity
Hello We've designed a custom board based on 157F-DK2 with device tree generated from the custom CubeMX project (included in case somebody like to review it.)After flashing it in DFU mode with the image created from openstlinux sdk, TF-A bails out of boot with messagePANIC at PC : 0x2fff1de9 Exception mode=0x00000016 at: 0x2fff1de9Now the troubleshooting guide says this probably stems from clock settings but our clock settings are similar to DK2. Interestingly if I flash the device with the official binary from SDKI getNOTICE: CPU: STM32MP157FAC Rev.Z NOTICE: Model: STMicroelectronics STM32MP157F-DK2 Discovery Board ERROR: I2C device not ready PANIC at PC : 0x2fff0467 Exception mode=0x00000016 at: 0x2fff0467which means we are over the clock problems and there is a problem with communicating with PMIC judging by the BL code ret = stm32_i2c_init(i2c, &i2c_init); if (ret != 0) { ERROR("Cannot initialize I2C %x (%d)\n", i2c->i2c_base_addr, ret); panic(); } &nb
What are the benefits of using OpenStLinux on STM32MP15 and how does it differ from other operating systems?Thank you in advance for your response :)
stm32mp157f-dk2 is not embedded jtag connector,but i want to use jtag debugger.st-link(stm32f103cbt6) embedded in stm32mp157f-dk2 has jtag pin(T_JTCK, T_NRST, T_SWO, T_JTMS)Q1. Can't I use jtag with only ST-LINK USB CONNECTOR (5 pin)?Q2. what should I do if I want to use jtag?Thank you
I'm using spi5 and my device tree settings are &spi5 { pinctrl-names = "default", "sleep"; pinctrl-0 = <&spi5_pins_a>; pinctrl-1 = <&spi5_sleep_pins_a>; #address-cells = <1>; #size-cells = <0>; num-cs = <1>; is-decoded-cs = <0>; cs-gpios = <&gpiof 6 GPIO_ACTIVE_LOW>; /delete-property/dma-names; /delete-property/dmas; status = "okay"; tsc2046@0 { reg = <0>; // CS0 compatible = "ti,tsc2046"; interrupt-parent = <&gpiof>; interrupts = <10 2>; interrupt-controller; spi-max-frequency = <1000000>; pendown-gpio = <&gpiof 10 0>; vcc-supply = <&v3v3>; touchscreen-size-x = <1024>; touchscreen-size-y = <600>; wakeup-source; status = "okay"; };}; The driver of the touch screen is ADS7846. It's currently in-build. Something wrong in the device tree ? Some more info. The chip select line seems to be i
Hello,I'm writing to inquire if there is documentation/support for developing non-linux operating systems using the STM32 MPU discovery kits. So far I've only found Cube support and documentation for ST's custom linux distro. Obviously, a processor being a processor, it can run anything I put in the ROM. But I'd like to be able to utilize some of the development tools that these boards are supposed to support to make the development/debugging experience easier.I'm using a STM32MP157D-DK1, in case that makes any major difference.
I am an embedded Android developer working on eval board STM32MP157f-EV1 ,we started to design a custom hardware based on it .So I downloaded the st-android-11.0.0-2021-01-29 android soft , and flashed the board as mentionned on the wiki hwo to android , the switches are configured to boot from emmc , the startup of android system is ok but without screen , the dispaly is white , the tactil working fine i can see by the logcat all the services are fine even the ST laucher com.stmicroelectronics.stlauncher.Any help please ? , i tried to build locally a soft , flashed to sdcard but i faced the same problem on the dispaly .I attached the full log here
..
Hi,I can currently only find support for STM32MP157A-DK1 and STM32MP157C-DK2 boards in u-boot.Is there a plan to support the STM32MP157F-DK2 board in the near future?Kind regards,Steinar
Hello,I am working on a custom board based on stm32mp157 and I have the need to enable the PWR_USB_SW through the ST PMIC. So far, I identified the bit VBUSOTG_ON in register BST_SW_CR (0x40) but I had no success in configuring it via devicetree or via I2C from userland (ST PMIC resource is busy and I cannot disable the interrupt controller using it). Could you please provide details on how to drive that bit? Could you please confirm that the modifiying the register of the ST PMIC via devicetree is the proper way to configure the peripheral? I had a look at the bindings here, but there is nothing referring to PWR_USB_SW.Thanks in advance, any help is appreciated!Have a nice day!
Hi,I am using STM32CubeProgrammer version 2.12 running on Windows 10 to connect to the STM32MP157F-DK2 board ST-LINK connector CN-11.I managed to connect and when I click "Firmware upgrade" the STLinkUpgrade 3.4.0 window opens.However, when I press "Open in update mode" I get the error message:Error connecting to device ST-LINK/V2-1 (error 0x3); check USB connection and refresh the device listAt this point the connection is dropped and I have to connect again.I also noticed that the "Current Firmware" was not listed as I expected from my experience of upgrading the ST-LINK firmware on other NUCLEO and DISCOVERY boards.Maybe the current version of STM32CubeProgrammer doesn't yet support the STM32MP157F-DK2 board ?Any help would be much appreciated.Kind regards,Steinar
I'm using the STM32MP157F-DK2-ND evaluation board and getting an error when I try to enable SPI5.I have researched previous posts with this errorhttps://community.st.com/s/question/0D53W000006FjAUSA0/error-activating-spi-module-in-yocto-linux-projecthttps://community.st.com/s/question/0D53W00000GZlRVSA1/enabling-devspidevxx-on-openstlinuxhttps://community.st.com/s/question/0D53W00000RS3ynSAD/how-can-i-enable-spi5-on-stm32mp157dk1And reviewed relevant documentationhttps://wiki.st.com/stm32mpu/wiki/How_to_use_SPI_from_Linux_userland_with_spidevhttps://wiki.st.com/stm32mpu/wiki/SPI_overviewhttps://wiki.st.com/stm32mpu/wiki/SPI_device_tree_configurationI've also ensured these options are checked in make linux-menuconfighttps://wiki.st.com/stm32mpu/wiki/SPI_overview#Kernel_configurationStill, I cannot figure out why the clock isn't running.[ 1.533147] spi_stm32 44009000.spi: clk rate = 0 [ 1.536942] spi
Hello all,I am facing a strange issue where the kernel sometimes fails to reboot the system. Here is what I am seeing.I use busybox reboot -f from the command line so that the reboot request goes directly to the kernel, i.e. no init/systemd involved. This simplifies things.I am tracing the reboot syscall up to the psci_sys_reset function of the PSCI device driver (drivers/firmware/psci/psci.c). I am toggling a GPIO just before invoking invoke_psci_fn:static int psci_sys_reset(struct notifier_block *nb, unsigned long action, void *data) { pr_info("reset!\n"); if ((reboot_mode == REBOOT_WARM || reboot_mode == REBOOT_SOFT) && psci_system_reset2_supported) { /* * reset_type[31] = 0 (architectural) * reset_type[30:0] = 0 (SYSTEM_WARM_RESET) * cookie = 0 (ignored by the implementation) */ invoke_psci_fn(PSCI_FN_NATIVE(1_1, SYSTEM_RESET2), 0, 0, 0); } else { // TOGGLE GPIO HERE invoke_psci_fn(PSCI_0_2_FN_SYSTEM_RESET, 0, 0, 0); } return NOTIFY_DONE; }The gpio i
i also find some people say this is a bug,repeatedly click the setting of user label can be solved,but i try it's can‘t figure it out.....By the way,GPT also not give the correct solution (this is why i am here)this is my first question in this commuity,so please forgive the mistake maybe i have done: )
Hi All.I have a stm32mp157C-DK2, I have used the lastest demo from ST(openstlinux-5.15-yocto-kirkstone-mp1-v22.06.15).I have done audio tests and I have found a problem/bug when I play a wav file and next I record a audio. I can see a kernel trace (always happens), indicating that an overrun occurs and the audio record has a cut.I add the traces:root@stm32mp1:~# aplay -D playback_codec /usr/share/sounds/alsa/Front_Left.wav Playing WAVE '/usr/share/sounds/alsa/Front_Left.wav' : Signed 16 bit Little Endian, Rate 48000 Hz, Mono root@stm32mp1:~# arecord -D record_codec -r 48000 -f S16_LE -c 1 -d 5 /tmp/rec.wav Recording WAVE '/tmp/rec.wav' : Signed 16 bit Little Endian, Rate 48000 Hz, Mono [ 3356.405866] st,stm32-sai-sub 4400b024.audio-controller: IRQ Anticipated frame synchro overrun!!! (at least 0.175 ms long)Is this a known issue?Would there be a solution?
Hi all.I am using a stm32mp157c-dk2 with lastest OpenSTLinux Distribution (4.1.0) trusted.In log I saw messages about SCMI driver and a series of protocols not actives.[ 0.150587] arm-scmi firmware:scmi: SCMI Notifications - Core Enabled. [ 0.150709] arm-scmi firmware:scmi: SCMI Protocol v2.0 'ST:' Firmware version 0x0 [ 0.289178] arm-scmi firmware:scmi: Failed. SCMI protocol 23 not active. [ 0.412876] arm-scmi firmware:scmi: Failed. SCMI protocol 21 not active. [ 0.424756] arm-scmi firmware:scmi: Failed. SCMI protocol 19 not active. [ 0.428615] arm-scmi firmware:scmi: Failed. SCMI protocol 17 not active.I should care about this messages?Why are these protocols not active?What are these protocols?Thanks!
Hi there, I'm developing on a STM32MP157 custom board. I'm trying to work with power modes, and I tried to import the OpenAMP_TTY_echo_wakeup example inside our M4 firmware. I already had the IPCC module set up and I use virtUart periperal without any problem. I can send the "*stop" message and I can see that the M4 stops working (and also consumes less), however if I try to send "echo "wakeup" >/dev/ttyRPMSG0" the M4 won't wakeup (the last trace says [00033.410][INFO ]Going into CStop mode ). Is there anything that may be set in the devicetree that i'm not setting? I have a wakeup button to exit from A7 Cstop that works fine. Thanks so much EDIT: probably the clocks (specially M4 side) are not the same. Is there any configuration preferable?
My rgb lcd screen does not display。My board is based on the STM32MP153AAA3 design, using a separate power supply.This is my schematic diagramThis is the timing of the LCD This is the LCD device tree This is some panel-simple driver codeHere are some boot logs Looking forward to your response!
Greetings,in the video STM32MP1 workshop - 9 OpenSTLinux BSP pin Muxing - STM32CubeMX lab after modifying the DK2_TIMER_A7 project in the mx cube directly open the project in workbench from generate code, open the file.On my pc this doesn't happen, this file opens:<?xml version="1.0" encoding="UTF-8"?><workspace> <project> <path>$WS_DIR$\DK2_TIMER_A7.ewp</path> </project> <batchBuild /></workspace>And if I try to open the project directly from workbench I can't open it.When I open workbench it tries to install GCC GNU COMPILER but failsI attach some screenshots
In stm32mp157, I need two partitions for FSBL, and it is working correctly, but I want to make TFA redundant meaning I should be able to update the second partition of FSBL and then shift it on the second partition on restart.I have made roofs redundant, but then I used environment variables inside U-BOOT to switch partitions. TFA (BL2) runs instantly after the ROM code, and I cannot change that.Is there any solution that I can do here? What is the purpose of having two FSBL partitions if it is not for redundant TFA?
I am having trouble how to setup the Linux system on the STM32MP1 so that I can use sftp to upload data gathered by the device to an external server.What happens is that once the connection is established it immediately closes again, so there is no time between lines 13 and 14 in the console text below:root@stm32mp1:~# sftp user@server.com /usr/bin/ssh: Ignoring unknown configuration option 'ForwardX11 no' /usr/bin/ssh: Ignoring unknown configuration option 'PermitLocalCommand no' /usr/bin/ssh: Ignoring unknown configuration option 'ClearAllForwardings yes' /usr/bin/ssh: Ignoring unknown configuration option 'ForwardAgent no' WARNING: Ignoring unknown option -- Host 'server.com' is not in the trusted hosts file. (ssh-ed25519 fingerprint sha1!! .........) Do you want to continue connecting? (y/n) y user@server.com's password: Connected to server.com. sftp> root@stm32mp1:~#This does not happen when I try to reach the sftp server from another linux system with the same comman
I found the pin of PG8 on the GPIO pin map on the board. So I connected to PG8 and GND to connect with oscilloscope.In the picture, the blue line is the oscilloscope's GND port.I connected the board and the oscilloscope like the picture above. And I entered the command to output the PPS signal, but the waveform is not displayed.I looked up various answers and followed the answers such as PTP activation command and adding PG8 to AF11.What am I doing wrong?For your information, I used the following image when I uploaded the image.en.FLASH-stm32mp1-openstlinux-5.15-yocto-kirkstone-mp1-v22.11.23\stm32mp1-openstlinux-5.15-yocto-kirkstone-mp1-v22.11.23\images\stm32mp1\flashlayout_st-image-weston\optee FlashLayout_emmc_stm32mp157d-ev1-optee.tsv
The Linux Kernel maintainers have just updated the longterm release kernels: https://www.kernel.org/category/releases.htmlCould someone from ST please give an information about which kernel version for STM32MP1 will be supported in the future until 2026? Will ST stay on v5.15 or go to v6.1?
Our product has a STM23MP151D, no security features (signed stuff or fuses blown) and the same QSPI NOR as the EV1 board.We have run the microcontroller style DDR tester (STM32DDRFW-UTIL) which took a bit of bashing to run on the 151 but did show our memory (interface) is good..But I cannot for the life of me get TF-A to load (along with U-Boot) via USB from the STCubeProgrammer. TF-A goes in and outputs stuff on the console but it's as if though the ROM knows how to drive the USB and get this far, TF-A does not on this device.I have had to stop TF-A concerning itself with the monotonic counter and bsec_probe(). Things I think this device does not have.What I would really like is confirmation that some version (which ?) of https://github.com/STMicroelectronics/arm-trusted-firmware.git works on the 151 and did you have to do anything to it ? Ideally its IOC and DTS files and anything else.The problem is that there does not appear to be a single dev board or reference design with the 151
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.