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
I see the following when I try to download the latest or select any other version of the tool
I had an error while building the image. I didn’t try to figure out why and why it was necessary to turn off the network. I just removed the entire function. After that everything build together.https://github.com/karu2003/stm32mp1_note openembedded-core/bitbake/lib/bb/utils.py def disable_network(uid=None, gid=None): """ Disable networking in the current process if the kernel supports it, else just return after logging to debug. To do this we need to create a new user namespace, then map back to the original uid/gid. """ return
Hi there, we are developing a custom STM32MP135 board to run openstlinux on it. It will be our first experience with embedded linux (linux) systems, so we have some tasks that we don't know if it can be done. These tasks are the following:Can we access the hardware directly?Can we get gpio interrupt on openstlinux.Can we send data over spi, i2c, canbus, usart etc.?Can we get rx interrupt from usart canbus etc.?The MPU we have chosen is single core, can you guide us on how to do these tasks? Would these tasks be easier if we use dual core MPU?
Hello,I am currently using the MOOC hands-on lab examples to understand how to use inter processor communication between the A7 and M4. The lab is using the STM32MP157C-DK2 board, whereas I am using the STM32MP157F-DK2 board. Currently, I made a new CubeMX project for the STM32MP157F-DK2 board and tried to import the lab example project to into the new project but the import project option is grayed out in CubeMX. How can I port the inter processor lab examples to run on the STM32MP157F-DK2 board using STM32CubeMX? I appreciate any help with this, thank you.
Hello everyone,I am currently working on a project involving the STM32MP microprocessor and I've been exploring the Real-Time Clock (RTC) functionality in the Linux kernel for timekeeping purposes.From what I've gathered so far, the datasheet (RM0441 - Chapter 48.3.12) mentioned that the RTC can be synchronized with a remote clock using the sub-second field (RTC_SSR or RTC_TSSSR). Additionally, the RTC_SHIFTR register can be used for fine adjustments, delaying and advancing the RTC's clock by a fraction of a second. However, I am unsure whether this feature is currently implemented in the Linux kernel for the STM32MP platform.If any of you have experience with this feature or are aware of its current status in the main Linux kernel for STM32MP, I would greatly appreciate any information you could provide. Here are my specific queries:Is it already implemented in the latest Linux kernel release?If it is not yet developed, would it be feasible to implement this feature for the
Hello We are using STM32MP157 in our custom board. We are trying to trigger Cortex-M4 from Cortex - A7 BareMetal software. In this we generated cortex-M4 code in CubeMX and debugging with ST32CubeIDE and in debug it's working fine. we configured memory in cortex-M4 as per following MEMORY { RETRAM_interrupts (xrw) : ORIGIN = 0x00000000, LENGTH = 0x00000600 SRAM1_text (xrw) : ORIGIN = 0x10000000, LENGTH = 128K SRAM2_data (xrw) : ORIGIN = 0x10020000, LENGTH = 128K } We take a .bin file of Cortex-M4 and triggered from Cortex-A7 BareMetal software, while triggered getting following observations1) If SRAM1_text is < 64KB, it has triggered from Cortex-A7 and working fine.2) If SRAM1_text is >64KB, it has not trigg
I am currently flashing a custom mickledore distro on a STM32MP151CAA3T and after the fsbl1 i get this error : ERROR: DDR addr bus test: can't access memory @ 0xc0000004 PANIC at PC : 0x2ffdf9d9 Can someone explain how to solve this issue?
First acquaintance with STM32mp157FDK2. A couple of weeks ago I bought two sets to try. In a week I figured out how to put together my image with Yocto. And today what was supposed to happen happened. I connected the KIT to the power supply with PD3. KIT is broke. The thermal camera shows strong heating. STPMIC1APQR short circuit STPMIC1APQR. burned out. Unsuccessful test STM32mp1. Andrew.
I am a 100% new to the stm32mp1 series. I have been working with the stm32f3 most recently.I need help with direction on where should I start, down to the selected hardware. (not sure if stm32mp1 is even the right choice)So here is what at trying to accomplish:HTML5 Integration Protocol, Client Application Link:The client (stm32) sends a multicast JSON message containing information. The MFD parses the JSON message and, when appropriate, display the webpage with the icon.I need to know how to send the contents in the .json file, it would be nice if I could upload my .json file to sd card send it the via ethernet.Any direction would be much appreciated!!I am truly sorry for the lack of knowledge.
I know this is probably a really *** question but how do I actually use the data I send from the A4 to the M7 of the STM32MP1 chips? I ran the examples that are clearly setup to send messages from the M4 to the A7 via the virtual UART, which are then echoed onto the Linux Console. Let's say I wanted to send a command to the A7. If I sent the text "gotosleep" from the M4 to the A7 over the virtual UART, which would then trigger the A7 to run "systemctl suspend" to put the A7 in suspend mode, how would I approach that? I haven't quite figure out how to essentially trigger the A7 to execute a script (such as putting it to sleep) from the A4. It seems like it's probably a pretty simple process, I'm just not sure where to look. Any help you can give me would be greatly appreciated. Thanks!
Hi, I have a STM32MP157F-DK2 with a firmware running with remoteproc and using remoteproc and rpmsg drivers to communicate with userspace through ttyRPMSG0, created at firmware init with libmetal and openAMP libraries. After multiple days of research, I couldn't find any way to implement another ttyRPMSG in order to have, for example, ttyRPMSG0 handling data_0 and ttyRPMSG1 handling data_1. - I tried to create a second endpoint to the existing channels : 2 ttyRPMSG are created but managing ring buffers is a pain as there are only 2 and it seems like they share their mailbox (That's like i have 2 RPMSG but are in fact one). Moreover, the dest_addr of the second endpoint seems to not be set (the first endpoint dest addr value is set to a specific value by the driver, but the second one stays at 0xffffffff : default value).- I tried to add a device managing its own channel and so that he can create endpoints as it wants, but my device tree seems to not handle very well mult
Hi,I have a current project using the M7 that I need to port over to the A7. The goal is to be running bare-metal code on the A7, like we are on the M7. Currently, I am following this open source guide to run bare-metal on the A7 and it seems to work fine. Does ST provide any support for running bare-metal on the A7? Does the stmCubeIDE allow for this? Is there a guide on porting a project from the M7 over to the A7? Any help or information regarding this would be helpful! Thanks!
Hello! I am developing a custom board based on STM32MP151C MPU (TFBGA 361pins) with a RMII Ethernet PHY, and I have a simple question regarding to the PHY interrupt signal -sorry if this is a duplicated question, I haven't found a related topic in the forum-.Is it mandatory to route the PHY interrupt output signal to a ETH1_PHY_INTN pin (any of the pins with this alternate function available) to capture interrupts? I have checked evaluation boards, and:MB1263 board (STM32MP157FAA1) uses PG0, which does not has ETH1_PHY_INTN as an AFMB1272 board (STM32MP157CAC3) uses PA6, which does not has ETH1_PHY_INTN as an AFIf PHY interrupt pin can be routed to any MP1 interrupt-capable pin, what is the purpose of the ETH1_PHY_INTN alternate function?Many thanks in advance. Regards,
Hi there, I'm trying to integrate in my linux distribution (custom board based on STM32MP153) a LTE Modem (uBlox Lena R8) which is controllable via USB. At the powerup is see that the device tries to enable the USB (it should bring up 8 virtual COM/ttyUSBx): [ 1168.245519] usb 2-1: new high-speed USB device number 2 using ehci-platform [ 1169.475865] usb 2-1: USB disconnect, device number 2 [ 1171.745516] usb 2-1: new high-speed USB device number 3 using ehci-platform but no ttyUSB is created. I'm pretty sure now that some driver is missing, because if I connect the usb from the module on a physical USB port on a desktop environment, it shows all the ttyUSB endpoint correctly. from lsusb command I can see that the module is recognized hw side: Bus 001 Device 003: ID 1782:4d10 Spreadtrum Communications Inc. UNISOC-8910 So I think that some usb serial / Spreadtrum driver is needed... Does anybody have an idea? H
I'm trying to run QT examples on a build created using st-example-image-qt (Ecosystem v2.1) on our custom board. We have a simple RGB display 800x480 resolution, so I modified the cursor.json on the board as follows{ "device": "/dev/dri/card0", "outputs": [ { "name": "DPI1", "mode": "800x480", "size": "800x480" } ], "hwcursor": falseBut when I try to run any QT example I get the following errorroot@stm32mp1-midmark:/usr/share# psplash-drm-quitroot@stm32mp1-midmark:/usr/share# export QT_QPA_EGLFS_ALWAYS_SET_MODE="1"root@stm32mp1-midmark:/usr/share# examples/opengl/hellowindow/hellowindow[ 1] Failed to open device: No such file or directory, Try again...[ 2] Failed to open device: No such file or directory, Try again...[ 3] Failed to open device: No such file or directory, Try again...[ 4] Failed to open device: No such file or directory, Try again...[ 5] _OpenDevice(
Hello,I am using a STM32MP157C development board from Myirtech and trying to interface the board with a CAN device.I am able to bring up the can0 interface. It can send data, I can see it from oscilloscope over Can Hi and Lo pins. The dmesg output is below: [ 1.687071] can: controller area network core (rev 20170425 abi 9) [ 1.687246] can: raw protocol (rev 20170425) [ 1.687258] can: broadcast manager protocol (rev 20170425 t) [ 1.687277] can: netlink gateway (rev 20190810) max_hops=1 [ 1.846934] stm32-dma 48000000.dma: no dma pool: can't use MDMA: 0 [ 1.849379] stm32-dma 48001000.dma: no dma pool: can't use MDMA: 0 [ 4.300816] m_can_platform 4400e000.can: m_can device registered (irq=54, version=32) ... [ 138.115515] m_can_platform 4400e000.can can0: bitrate error 0.3% [ 138.115550] m_can_platform 4400e000.can can0: bitrate error 0.3% [ 140.445788] IPv6: ADDRCONF(NETDEV_CHANGE): can0: link becomes ready But when the device on the can bus sends data, the board does not
Hello,we are developing IoT device for which we are planning to use STM32MP135D MPU placed on our custom SoM.To do test before SoM is ready, I have obtained a STM32MP135F-DK. There are some concerns about the 'factory programming' of such device.With the STM32MP135F-DK the method I have tried is to set all Boot switches (BOOT0, BOOT1, BOOT2 pins) to 0. Then the device boots into "Force USB boot for programming" mode, and the firmware can be uploaded using STM32 Programmer CLI running on PC. It works fine.As pic. 1 shows, also USART3 can be used for factory programming and that was the plan for SoM. Of course first I wanted to try it with DK. But unfortunately, the default USART3 TX and RX pins aren't accessible at STM32MP135F-DK GPIO connector. After research I came to conclusion that also USART6, UART4, UART5, UART7, UART8 are not accessible at that STM32MP135F-DK.1. Is my conlusion right? Can I somehow test factory programming using USART instead of USB with STM32MP135F-DK?2. Maybe w
We have made a custom board which uses the STPMIC but it is on I2C2. Unfortunately we do not have time to remake the board to move the STPMIC to I2C4 or I2C6 so I am trying to get Linux to boot with a modified STM32MP157D-DK1. I have connected pins PD7 and PG15 (I2C2_SDA and I2C2_SCL respectively) to I2C pull-up resistors. I made the patch to ARM Trusted Firmware as detailed on the PMIC page: https://wiki.st.com/stm32mpu/wiki/PMIC_hardware_components and ARM Trusted Firmware boots to the point of loading BL32 (OPTEE-OS). My understanding of the log attached is that the driver for the I2C2 is failing (along with the IWDG but I think that is because I haven't specified any timeouts). I am going to continue debugging the driver but if there was any more guidance it would be great? Thank you for your time :)
Good morning, I've been trying to get EFI boot working from emmc. After configuring flash layouts to contain fat32 efi partition and getting through uboot and optee configuration to properly flash using cube programmer, I can't seem to figure out why the uboot fails to load the EFIed kernel during boot process. It would seem as if the kernel image is missing the efi stub, but my kernel config would suggest otherwise.Any ideas on how to get the EFI boot to work?
Hello,I am currently using a STM32MP157C. The OTG controller is used to add a USB device port with the OTG FS PHY transceiver.The signals connected are:OTG_FS_DPOTG_FS_DMOTG_VBUSI made the following configuration in the device tree: usbotg_no_id_pin: usbotg-no-id-pin {}; usbotg_fs_dp_dm_pins_a: usbotg-fs-dp-dm-0 { pins { pinmux = <STM32_PINMUX('A', 11, ANALOG)>, // OTG_FS_DM <STM32_PINMUX('A', 12, ANALOG)>; // OTG_FS_DP }; }; &usbotg_hs{ status = "okay"; compatible = "st,stm32mp15-fsotg", "snps,dwc2"; pinctrl-names = "default"; pinctrl-0 = <&usbotg_no_id_pin &usbotg_fs_dp_dm_pins_a>; dr_mode = "peripheral"; usb-role-switch; snps,need-phy-for-wake role-switch-default-mode = "peripheral"; }; The USB device port is working correctly with the gadget serial driver.Once the board is suspended (with echo mem > /sys/power/state), I would like to wake it up when I plug or unplug an USB host. Or in others words, when a voltage modificati
First time trying to get OPTEE working on custom board. The boot stops when OPTEE panics NOTICE: CPU: STM32MP157AAC Rev.Z NOTICE: Model: STMicroelectronics custom STM32CubeMX board - openstlinux-6.1-yocto-mickledore-mp1-v23.06.21 NOTICE: BL2: v2.8-stm32mp1-r1.0(release):custom() NOTICE: BL2: Built : 12:30:08, Apr 11 2024 NOTICE: BL2: Booting BL32 I/TC: Early console on UART#4 I/TC: I/TC: Pager is enabled. Hashes: 3040 bytes I/TC: Pager pool size: 92kB I/TC: Embedded DTB found I/TC: OP-TEE version: Unknown_3.19 (gcc version 10.3.1 20210621 (GNU Toolchain for the A-profile Architecture 10.3-2021.07 (arm-10.29))) #3 Fri Apr 12 07:13:59 UTC 2024 arm I/TC: WARNING: This OP-TEE configuration might be insecure! I/TC: WARNING: Please check https://optee.readthedocs.io/en/latest/architecture/porting_guidelines.html I/TC: Primary CPU initializing E/TC:0 0 regulator_set_flag:484 vdd_usb lacks set_flag handler E/TC:0 0 fixed_regulator_probe:69 regulator_register(vdd_usb) failed with 0xffff000
Hi,How can I install a USB serial adaptateur https://ftdichip.com/products/chipi-x10/When the usb adaptateur is connected there is not ttyS0 or ttyUSB0 !thank you.
Hello, We are currently in the process of bringing up and industrializing an embedded STM32MP1 board with eMMC as main data storage. We would like to flash the eMMC via U-boot using a tsv file. We have a couple of tsv files that are working correctly, but some aren't and it's been really hard (not to say a real pain) to debug precisely the issue of why exactly the file is wrong. Using the following command : ./STM32_Programmer_CLI -c port=usb1 -d board-emmc.tsv, the error I get is the following : Error: TSV file proto-new.tsv not conform: it may miss some columns or fieldsError: TSV flashing service failed This is generic and provides no detailed infos about the actual error.Is there any tools or ways to further debug tsv files ? Sorry if I'm missing something obvious ... Quentin
Hi,How can I install pyserial.py python modul on Discovery kit STM32MP135F.I would like also install pip Thank you for your help.Olivier
Hi all,I would like to design a device with the following features:Dual Gigabit ethernet,Encrypted communication: SNMPv3, HTTPS, SMTPS.I am looking for a SoC that makes it possible to achieve this functionality. After doing some research, I have found the STM32MP135F which seems to be able to achieve this functionality. There is a development board of the mentioned SoC, but it has 2 ethernet ports that run only at 100Mb/s. Regarding the STM32MP135F datasheet, it is able to run two gigabit ports by having two RGMII interfaces.My Concerns are:1) Is it possible to run gigabit ethernet by using the STM32MP135F SoC?2) If yes, then I am wondering if there is an easy way to test it?3) Can I test the GbE link by using the STM32MP135F-DK board? 4) Are there other ICs (that would require less complicated design), that allow to achieve the same functionality?Any help is apprecciated!
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.