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
I have installed the developer package and activated the samebut not able to compile dts filesfollowing are the commands I have used with the first 13 lines of dts file
Hello , I see from the stm32mpu wiki RTC is not available for CM4. I am porting one RTC project from F411 to CM4 . Is there any alternate to this which i can use having same functionality?Br,D
Hello, There may be another variant of this question available but I am reposting it as I couldn't get any success so far redirecting prinf messages to uart4 and viewing them on serial terminal utility.below are the snapshots which shows I have mapped the PUTCHAR method, configured UART4 in the fw and also the serial port utility is having the same connections but I am not able to get any data on the terminal. The code has a comment: LD Linker > Libraries > Small printf > am I missing this step? Where do I have to do this in the IDE Settings?Regards,D
Hello , I am building one application using Open gl es code. but gettign this error.Not sure if it is error as the final applications is building fine but giving error while elaunching .No package 'wayland-client-protocol' foundFinished building target: my applicationon launching this application it gives : ========== init_wayland_system ==========Error : No such file or directorycan't connect to wayland display========== init_wayland_system ==========WHats happening here?Regards,D
I can read the eeprom in uboot and the kernel. If I add ethernet@...{ local-mac-address = [ 00 01 02 030 40 05]; }; to the device tree it will be used by the kernel. I can't seem to get any other device tree modifications to work. I'm using a stock kernel, and I'm not sure what other information might be relevant. That you for your attention.-russ
Hi all, I am using stm32mp157f-dk2 with ecosystem 3.1.During development, I need to update the device tree and kernel config very often.My current approach is to do bitbake -c cleansstate <image> bitbake virtual/kernel -c menuconfig bitbake <image>However, I found that bitbake -c cleansstate will reset all my kernel config that I have done in menuconfig. This mean I need to reconfig my kernel every time I update my device tree, which is quite troublesome. There should be some better way to do this.Regards, Leung
Hello , Currently, i am working on STM32MP157. I am trying to change the device tree USB type C configuration into a USB type A host.I've disabled usbotg option under stm32mp1571.dtsi file. I would like to know where i could add USB A host configuration. Thank you
I am writing an application for STM32MP157F MPU which required TCP and UDP sockets. Is there any example?
Hi,I am working on a functionFS usb gadget based on gmidi. Following the gadget_configfs.rst and using stm32_usbotg_eth_config.sh as starting point was straight forward. After writing the shell script and modifying my device tree configuration to support high-speed OTG in the usb-c port as explained in the USB device tree guide, the usb gadget loaded with no errors and it was recognised by Mac, Windows and Linux hosts as usb-midi. USB-MIDI Shell script:configfs="/sys/kernel/config/usb_gadget" g=g1 #Gadget name c=c.1 #Configuration name d="${configfs}/${g}" #gadget path func_midi=midi.usb0 #Midi Function declaration #Product and Vendor for getting recognised VENDOR_ID="0x1d6b" PRODUCT_ID="0x0104" #Take the serial from the MP1 and make it a serial for our USB MIDI get_mac_address_from_serial_number(){ sha1sum /proc/device-tree/serial-number \ | fold -1 \ | sed -n '1{h;d};2{y/1235679abdef/000444888ccc/;H;d};13{g;s/\n//g;p;q};s/^/:/;N;H;d' } #To call the gadget do_start() { #Call depen
CPU: STM32mp153CACProblem: CPU is unable to boot further because of error:"ERROR: Node system_off_soc_mode not found"I have temporarily commented out the panic in the TF-A This allows us to boot further into u-boot and then linux. But I'm worried that this is creating problems down the line. We do not use STPMIC1 chip, can this be the reason for this error?I suspect that something is missing in the device-tree. I have attached it.
This is how I would like to use rs485:&usart3{ pinctrl-names = "default", "sleep"; pinctrl-0 = <&usart3_pins_mx>; pinctrl-1 = <&usart3_sleep_pins_mx>; status = "okay"; uart-has-rtscts; linux,rs485-enabled-at-boot-time; rs485-rts-delay-ns = <800 300>; };But it does not work.The setup function stm32_usart_config_rs485() in drivers/tty/serial/stm32-usart.c does not get executed. This seems wrong. Could you elaborate on this?When configuring rs485 from userland by using the ioctl, the setup function stm32_usart_config_rs485() does get executed and rs485 does work.
Hello, I am looking for the right documentation for creating a custom poject using stm32mpu M4 cortex but using the peripheral connected to 40 pin header and not the Arduino connector.please let me know and also the limitation if any if i connect an i2c sensor to the 40 pin header instead of i2c on the Arduino connectors. i think they are not inter-connected (40 pin to Arduino connector), please correct me !Br,D
Hi all, I am studying the pmic of stm32mp157f-dk2.My ultimate goal is to write a device tree structure for other pmic chip like tps65 series to replace the stpmic&i2c4{ ... stusb1600@28{ compatible = "st,stusb1600"; reg = <0x28>; ... }; pmic:stpmic@33{ compatible = "st,stpmic1"; reg = <0x33>; ... }; };I am interested in how the reg variable(0x28 and 0x33) are determined. So I go through the data sheet of stm32mp157f.In table 357, it suggests that 0x00-0x28 are used. As the device tree claim the stusb register should start with 0x28, their register are overlapping with each other. But stusb1600 datasheet, table 16 suggests that 0x0-0x0a of stusb1600 is reserved.Although their register are overlapping, they are reserved in stusb1600, so only the mp1 i2c are using those space. So far, so good.but for the stusb1600, it require up to 2Fh space. why are the pmic start with 0x33, Shouldn't the pmic register start with 28+2F=57?I must be missing something important
I have a STM32MP157F-DK2 board.I have installed the distribution package from the tutorials from st.com. I want to install the lxml package which seems to need the libxml2 and libxslt development packages as dependencies, but these packages are not available in the apt manager. How do I install them with the present distribution package. I am very much newbie in this field, so providing step-by-step methods or reference to an easily understandable documentation is appreciated :)
This is an STM32MP157c based board design with Micrel KSZ9021GN PHY in 100 MII mode. Have you ever seen this situation before? Here are the relevant parts of the boot, the early kernel part looks normal and the LEDs are on.... [ 2.507568] stm32-dwmac 5800a000.ethernet: PTP uses main clock [ 2.512079] stm32-dwmac 5800a000.ethernet: no reset control found [ 2.518073] stm32-dwmac 5800a000.ethernet: No phy clock provided... [ 2.524955] stm32-dwmac 5800a000.ethernet: User ID: 0x40, Synopsys ID: 0x42 [ 2.531304] stm32-dwmac 5800a000.ethernet: DWMAC4/5 [ 2.536191] stm32-dwmac 5800a000.ethernet: DMA HW capability register supported [ 2.543532] stm32-dwmac 5800a000.ethernet: RX Checksum Offload Engine supported [ 2.550811] stm32-dwmac 5800a000.ethernet: TX Checksum insertion supported [ 2.557657] stm32-dwmac 5800a000.ethernet: Wake-Up On Lan supported [ 2.563937] stm32-dwmac 5800a000.ethernet: TSO supported [ 2.569235] stm32-dwmac 5800a000.ethernet: Enable RX Mitigation via HW Watchdog Timer [
Hello,I am having difficulties initializing the USB OTG in the ST Ecosystem 3.1.0 with the STM32MP157C in the Octavo OSD32MP15x SiP. With the ST Ecosystem 2.1.0 there was no issue and the previous image still works on my development board. I only need the host mode because we have only an LTE module connected to it.The kernel log says the device timeouted when probing.dmesg |grep usb [ 0.112487] usbcore: registered new interface driver usbfs [ 0.112570] usbcore: registered new interface driver hub [ 0.112642] usbcore: registered new device driver usb [ 1.595777] usb33: supplied by regulator-dummy [ 1.648809] usbcore: registered new interface driver pegasus [ 1.648893] usbcore: registered new interface driver asix [ 1.648970] usbcore: registered new interface driver ax88179_178a [ 1.649033] usbcore: registered new interface driver cdc_ether [ 1.649112] usbcore: registered new interface driver smsc75xx [ 1.649192] usbcore: registered new interface driver smsc95xx [ 1.649265] usbcore: reg
Hello every one I am starting with the STM32MP157, and i wonder if there is a schematis that i can follow that doesn't require the use of external DRAM or any IC meaning without (linux) using bare meatal code through the IDE. just to operate the ADC ? in this case i please seek your help for experts or any one that has a clue on STM32MP1s. thank you
Hi,Out kit use the chip stm32mp157C.The schematic show the PHY configuration.dts_file_relate2eth.txt: my device tree code related to the ethernet.loginfo.txt: show error information.Please advise how to solve it.Thanks,QiZhang
We are using OpenSTLinux as base distro for configuring and developing product on a custom STM32MP1 based embedded board. We plan to develop some testing and validation plans for the same. Just wanted to understand what sort of testing is carried out for the OpenSTLinux to ensure the stability? How can we request access to those if needed?
OpenStLinux 5.4 Dunfell 06 22 20 Boot chain of TF-A, U-Boot and kernel. I had forked the three .dts files with custom board names. TF-A starts fine.But in u-boot, hangs before it starts. With exact same dts contents just using original dts name as the DEVICE_TREE then u-boot runs fine. I have heard that the "compatible" property needs to be the same, which it is, but that seems to have no effect.Example u-boot build:make DEVICE_TREE=my-device-tree-name #won't bootmake DEVICE_TREE=original-device-tree-name #bootsAny ideas?
Hello, I see two folders with the same name(STM32MP1xx_HAL_Driver) - one inside the CM4 and another one level above it.For the development of CM4 which folder to consider for the drivers?If it is the one inside the CM4 do I need to move the CMSIS as well inside it?Same question for the middleware folder, which one to be considered? the one inside the CM4 or outside it? I see that enabling any Middleware component it generates the source code inside both the Middleware folder.(e.g Free RTOS)Br,D
I have a design based on the STM32MP157C (technically the Octavo SiP) which simulatenously uses PA0, PA1, ANA0, and ANA1. While measuring analog signals on the device, I'm noticing that the CPU is biasing the ANA0 and ANA1 signals -- based on a measurement across a filter resistor which has a higher voltage on the CPU side than on the measurement side.CubeMX did not generate any special pin control definitions for my use of ANA0 and ANA1; but I'm suspcious that there's either a pull up I need to disable, or the ANAx_SEL bits in SYSCFG_PMCR are not being set correctly.What pin control settings, or ADC configuration settings, should be present in the device tree for best performance of the ANA0 and ANA1 pins?
Hi everybody,I would like to simulate a USB scanner device using libcomposite, so I modified the USB FIFO sizes in the DTS as follows:usbotg_hs{ u-boot,dm-pre-reloc; pinctrl-names = "default", "sleep"; pinctrl-0 = <&usb_otg_hs_pins_mx>; pinctrl-1 = <&usb_otg_hs_sleep_pins_mx>; status = "okay"; /* USER CODE BEGIN usbotg_hs */ phys = <&usbphyc_port1 0>; /* 0: UTMI switch selects the OTG */ phy-names = "usb2-phy"; u-boot,force-b-session-valid; u-boot,force-vbus-detection; dr_mode = "peripheral"; g-rx-fifo-size = <256>; g-np-tx-fifo-size = <256>; g-tx-fifo-size = <128 128 64 16 16 16 16 16>; /* USER CODE END usbotg_hs */ }; This allows me to open the device declaring USB packet sizes of 512 bytes instead of the maximum which would be allowed by stm32mp151.dtsi (64 bytes, the kernel panics declaring 512). After the configuration of configfs I pull up my application device-side, which borrows from the kernel example in to
..
Hey I have the same problem as in this link:https://community.st.com/s/question/0D53W00001Te4msSAB/how-to-setup-rs485-with-linuxrs485enabledatboottimeCan you please help us?
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.