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! 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,
STM32CubeIDE 1.15.1 was released on st.com as well as an in-tool update patch aligned with STM32CubeMX v6.11.1 that is available for download. Main issues fixed in this patch: Ticket 177978 : Fixed an issue with ST-LINK firmware upgrade concerning the boards with DFU v2 or older in the version 3.14.5 of ST-LINK GDB server. Ticket 178127 : Fixed an issue with the build settings: The build settings do not save the latest linker modified by the user and select the default linker instead. Check the errata under this link for more details. Where do I obtain STM32CubeIDE 1.15.1? For IDE 1.15.1: STM32CubeIDE - Integrated Development Environment for STM32 - STMicroelectronics Or update your current installation of STM32CubeIDE using: Help > Check for updates.
Hello,I'd like to setup a DMA transfer to feed a SPI Display with 8192 bytes per DMA cycle. To offload the MP1 I want to do this with the help of the M4 coprocessor. For my tests I am using the CubeIDE and a custom board. As a basis for learning I tried the example "SPI_FullDuplex_ComDMA_Master". The example (FW_MP1_V1.6.0) itself waits for a keypress and then starts exactly one DMA transfer, I can see the clock pulses on the scope.Since I need a peridoc refresh of the display, I tried as an experiment to wrap a simple loop together with a delay around the DMA-Send section but for some reason the DMA does not repeat, it gets stuck in ahspi->State = HAL_SPI_STATE_BUSY_TX_RXstate and the error handler is called. while(1) { if(HAL_SPI_TransmitReceive_DMA(&hspi4, (uint8_t*)aTxBuffer, (uint8_t *)aRxBuffer, BUFFERSIZE) != HAL_OK) { Error_Handler(); } HAL_Delay(50); } Why is the "DMA-in-a-loop" not working?I can increase the time to HAL_Delay(1000) but that makes n
We designed a STM32MP135 based SOM, without using the ST I2C PMIC, I was able to disable the PMIC driver in TF-A by removing the i2c 4 node in TF-A's dts file, while I could not get the same result for optee-os, even I removed the i2c-4 node in optee-os' dts file, I still got message saying panic, following is the full log: NOTICE: CPU: STM32MP135D Rev.YNOTICE: Model: STMicroelectronics STM32MP135F-DK Discovery BoardWARNING: VDD unknownINFO: Reset reason (0x4):INFO: Pad Reset from NRSTINFO: FCONF: Reading TB_FW firmware configuration file from: 0x2ffe0000INFO: FCONF: Reading firmware configuration information for: stm32mp_ioINFO: Using SDMMCINFO: Instance 1INFO: Boot used partition fsbl1NOTICE: BL2: v2.6-stm32mp1-r2.0(debug):2021.05-5963-ga40218f3c9(a40218f3)NOTICE: BL2: Built : 09:55:01, Jul 5 2023INFO: BL2: Doing platform setupINFO: RAM: DDR3-1066 bin F 1x4Gb 533MHz v1.53INFO: Memory size = 0x20000000 (512 MB)INFO: BL2: Loading image id 1INFO: Loading image id=1 at a
Hi everyone,i am creating a custom machine on a STM32MP151CAA3T using mickledore as yocto layer.when i flash my image, the falshing stops on the first partition, when uses tf-a-usb.stm32 file.What is this file, how is generated and how i customize it in order to have no more this error during flashing?Thanks.
I'm not good at english I tried using stm32cube programmer uart mode.but "Error: Activating device: KO. Please, verify the boot mode configuration and check the serial port configuration. Reset your device then try again..." returned I'm using stm32mp135 custom board, so i read stm32mp135 datasheet and found this part I'm worried about USART3/6 and UART4/5/7/8 on "default pins"I use uart4, but use another pin set.uart4_TX -> PA9uart4_RX -> PD8 Is the error related to this part?
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
DearsI would like to create new project from STM32Cube_FW_MP13_V1.0.0 - based on template "BSP_BasicTemplates"I verified Properties for this project under "Paths and Symbols" - Includes, Libraries, Source ... all looks normal as another project from Application subfolderBut compilation stop on error make -j12 all make: *** No rule to make target 'C:/Users/Drivers/CMSIS/Device/ST/STM32MP13xx/Source/Templates/gcc/startup_stm32mp135c_ca7.c', needed by 'Example/STM32CubeIDE/startup_stm32mp135c_ca7.o'. Stop."make -j12 all" terminated with exit code 2. Build might be incomplete.Where could be problem ? I hope that templates should have all properly configured... Best RegardsRadim
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!
I am trying to achieve hard real-time under 100us on the STM32MP157f-eval, specifically, on the Cortex A7 dual core.Note: I specifically target the Cortex A7 cores because the M4 is already taken for other tasks which requires much smaller latency.What I did so far is:Build the Yocto openst-linuxAdd Preempt-RT patchAdded several software: irqbalance, tuna, hiccups... to monitor and tune the system.Isolate one coreTested high-priority process, also IRQ. Tested with internal clock and external oscilloscope.Tried to disable most driversAfter all those efforts, the jitter improved but I still get ~500us jitter when applying load for enough time.------------------------------I found the following text which brings me to think that FIQ (Fast Interrupts reQuests) are available on this hardware and could possibly be a solution to my quest for low latency and low jitter.https://bootlin.com/blog/fiq-handlers-in-the-arm-linux-kernel/Is there some example code about using those FIQ? Ideally under
Hello We are using STM32CUBE ide (Ver 1.9.0) for debugging of stm32mp157a cortex-m4 core by using j-link programmer. In this, while entered into debug every time we need to select stm32mp157a cortex-m4 in j-link target settings. So, any option is available for store this j-link configuration. It May help and save the time.regardssrikanth
I have a running system (based on bootlin buildroot) with kernel 5.10 and I wanted to update it to use the latest 6.1 and now I have a problem that the BL2 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 ERROR: DDR size: 0x10000000 does not match DT config: 0x20000000 PANIC at PC : 0x2ffeae01 The board is custom and it has 512MB. Any ideas?
Hello Everyone, I am working on a custom board based on STM32MP157F-DK2. Our custom board have two external ADC (AD74413R) connected to the main processor. I have changed the device tree added proper driver for the external ADC. While reading the files from iio folder, i am getting "Connection timeout error". Device tree and error message is shown below.Device tree&spi4 {pinctrl-names = "default", "sleep";pinctrl-0 = <&spi4_pins_b>;pinctrl-1 = <&spi4_sleep_pins_b>;//chip select -> PA10 for ext ADC0cs-gpios = <&gpioa 10 GPIO_ACTIVE_LOW>;//enable SPI4status = "okay";ad74413r@0 {compatible = "adi,ad74413r";//this is chip select address 0reg = <0>;//base address and register size#address-cells = <1>;#size-cells = <0>;//max. frequency 10Mhzspi-max-frequency = <10000000>;spi-cpol;//ADC_READY -> PA5//alert pin - >PA4interrupt-parent = <&gpioa>;interrupts = <5 IRQ_TYPE_EDGE_FALLING>;//add sense resist
Hi, I am encountering some issues while trying to configure the ADC DMA Buffer on the STM32MP135 board , when I execute the following:echo 1000 > /sys/bus/iio/devices/iio:device1/buffer/lengthecho 1 > /sys/bus/iio/devices/iio:device1/scan_elements/in_voltage0_enecho 1 > /sys/bus/iio/devices/iio:device1/buffer/enableI receive the following error after the third command:sh: write error: Invalid argumetBut when reading the ADC's raw output directly via:cat /sys/bus/iio/devices/iio:device1/in_voltage0_rawI am able to obtain a normal reading, which suggests that the basic functionality of the ADC is intact.Operating System: 5.15.24 #1 PREEMPT Sat Apr 13 15:11:38 CST 2024 armv7l GNU/Linux
Hello, I would like to integrate ethernet2 in my bare-metal project. I am aware that not only eth2 pins have to be properly configured, but also a 10th pin of MCP IO expander. However, the eth2 seems to be disabled after all. I am doing the same configuration steps for eth1 and it simply works. The question is, what am I missing? Could it be PMIC? Best,J. Schneider
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.