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
Is there a recommended minimum SMT package size and power rating for resistor R4 (8R2) please?
We have a board with PMIC attached to I2C2. I've followed the directions in https://wiki.st.com/stm32mpu/wiki/PMIC_hardware_components#TF-A to add the i2c2 node to the device tree. I have the I2C2 clock set to use HSI. No matter how I configure the clocks I can't get I2C2 to be initialized properly. Here is the message I get in TF-A:ERROR: I2C clock rate is 0ERROR: Cannot initialize I2C 40013000 (-22)
Dear ST Team,The kernel recipe in Scarthgap branch has following packaging:FILES:${KERNEL_PACKAGE_NAME}-image += "boot/ ${KERNEL_IMAGEDEST}"FILES:${KERNEL_PACKAGE_NAME}-imagebootfs = "boot/*.dtb boot/${KERNEL_IMAGETYPE}"Which has following side effects.The base class in openembedded-core layer defines packaging in meta/classes-recipe/kernel.bbclass as followsFILES:${KERNEL_PACKAGE_NAME}-image = ""FILES:${KERNEL_PACKAGE_NAME}-dev = "/${KERNEL_IMAGEDEST}/System.map* /${KERNEL_IMAGEDEST}/Module.symvers* /${KERNEL_IMAGEDEST}/config* ${KERNEL_SRC_PATH} ${nonarch_base_libdir}/modules/${KERNEL_VERSION}/build"By placing everything from the "boot" directory into the image package you hide "dev" package completely and it becomes empty.The "imagebootfs" package repacks devicetrees, thus hiding kernel-devicetree package from openembedded-core layer. If you need custom package for any reason, I suggest you set run-time dependencies rather than re-arranging the files. FTR, devicetree packaging is do
Hi,On my STm32MP157c-dk2 with openstlinux-eglfs, I configured in device tree (*.dts file) CAN and works . Now I would like to set pin PH11 as GPIO input.... Please help me how sholud looks my *.dts file, and wher in linux userspace I should find file with this GPIO ? Also I can not generate device tree for GPIO configuration using STM32CubeMX, please look below :
Hi , I built openstlinux-5.15-yocto-kirkstone-mp1-v22.07.27 (openstlinux-eglfs), SDK, configure QtCreator and prepare my first app, but some library mising on target device - STM32MP157F-DK2. Below log, after deploy: id: 'weston': no such user id: 'weston': no such user QML debugging is enabled. Only use this in a safe environment. QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root' No modes available for output "HDMI1" qt.qpa.input: xkbcommon not available, not performing key mapping QQmlApplicationEngine failed to load component qrc:/qml/dashboard.qml:55:1: module "QtQuick.Extras" is not installed qrc:/qml/dashboard.qml:54:1: module "QtQuick.Controls.Styles" is not installed qrc:/qml/dashboard.qml:53:1: module "QtQuick.Controls" is not installed qrc:/qml/dashboard.qml:55:1: module "QtQuick.Extras" is not installed qrc:/qml/dashboard.qml:54:1: module "QtQuick.Controls.Styles" is not installed qrc:/qml/dashboard.qml:53:1: module "QtQuick.Controls" is not ins
Hello, I am having an issue when I try to download the Developer package in the wiki. I am using this link (https://wiki.st.com/stm32mpu/wiki/STM32MPU_Developer_Package#Installing_the_Starter_Package) in the 5.2 section, there, it redirects me to (https://www.st.com/en/embedded-software/stm32mp1dev.html#get-software). In the last link, when I try to download the file, it downloads the wrong file, since it downloads the SDK instead of the Developer package. Probably there is an error in the API and it gets the wrong file. Does anyone else experiences the same issue?
I have two STM32MP157C-DK2 dev boards, they still have the demo software on it.They collected a lot of dust, over the past years.The problem is the 3d cube demo slowing down after days.After a reset it is fast again. Perhaps a memory leak?Because it needs a reset every day or maybe every hour, I never was willing to start developing software on it.I'm cleaning up, and I am about to throw these kits in the trashbin.But, what's the undelying problem? Is there a solution to keep de kits running stable and at full speed anyway?
Hi! I wonder if it's possible to use OpenCV on STM32MP2 and configure so the neural networks use the NPU for faster classification and detection. Thanks
Is there a way to increase code size which is used on M4 MCU? I saw some memory regions in device tree, but it is not clear how to do a change. Any info will be appreciated.Best regards,Nenad
Hi everyone, I was finally able to get to the kernel and use the shell using the sd card (yay!). However, we want to boot from the emmc (sd card was for dev purposes but we want only emmc) and I am running into an issue. Here is my boot log from booting on emmc after flashing with DFU: NOTICE: CPU: STM32MP131D Rev.Y NOTICE: Model: STM32MP1 LED Controller - openstlinux-6.6-yocto-scarthgap-mpu-v24.11.06 INFO: PMIC version = 0x21 NOTICE: Reset reason (0x1035): INFO: Power-on Reset (rst_por) INFO: FCONF: Reading TB_FW firmware configuration file from: 0x2ffe0000 INFO: FCONF: Reading firmware configuration information for: stm32mp_fuse INFO: FCONF: Reading firmware configuration information for: stm32mp_io INFO: Using EMMC INFO: Instance 2 INFO: Boot used partition fsbl1 NOTICE: BL2: v2.10-stm32mp1-r1.0(debug):lts-v2.10.5-dirty(7c229848) NOTICE: BL2: Built : 16:19:31, Jun 28 2024 INFO: BL2: Doing platform setup INFO: RAM: DDR3-DDR3L 16bits 533Mhz INFO: Memory size = 0x
Please help me add support for USB-UART converters of the CP210x and CH341 series on the STM32MP157F-DK2 board. I expect to see ttyUSBx, but no new devices appear after connection. I am using the Distribution Package, and in the kernel configuration, I have activated the following settings: # USB port drivers # CONFIG_USB_SERIAL=y # CONFIG_USB_SERIAL_CONSOLE is not set CONFIG_USB_SERIAL_GENERIC=y CONFIG_USB_SERIAL_SIMPLE=m # CONFIG_USB_SERIAL_AIRCABLE is not set # CONFIG_USB_SERIAL_ARK3116 is not set # CONFIG_USB_SERIAL_BELKIN is not set CONFIG_USB_SERIAL_CH341=m # CONFIG_USB_SERIAL_WHITEHEAT is not set # CONFIG_USB_SERIAL_DIGI_ACCELEPORT is not set CONFIG_USB_SERIAL_CP210X=m But when connecting a CP210x- or CH340-based converter to any of the four USB-A ports on the board, I only get the following in dmesg: [1619.270102] usb 1-1.3: new full-speed USB device number 4 using ehci-platform At the same time, I can see my adapter when running lsusb: Bus 001 Device
Hello,I have a custom board with the STM32MP257FAK processor. I am having issues booting into u-boot from emmc. I can boot into u-boot fine using dfu-util over usb. But once I program in fsbl, ssbl, and meta data into the emmc and try to boot from it I get a error with the metadata partition. See log below.Any ideas what could cause this error?
Hello,to retrieve the temperature in the M4 domain I use the documentation RM0436, page 1571 (description) and DS12505Rev6 page 209 (characteristics)Q1: what adc resolution is to be used to be compliant to the reference values (calibration values) that are to be read from address 0x5C00525C?Q2: I am using Vref=2.048V. Can I scale the calibration values by the factor 2048 / 3300?Q3: At the address 0x5C00525C I read TS_CAL1 = 12192 (adc value @30°C) and TS_CAL2 = 16270 (adc value @130°C). Is this a reasonable / correct reading?Q4: the formula on page 1571 (RM0436) gives as a result not a temperature but an adc value (".... + TS_CAL1"), though it is supposed to return a value in °C. Is the formula correct?Q5: So the values TS_CALx_TEMP are [°C] and the values TS_CALCx are raw adc values? Anyway: Is there an example for the coprocessor M4? I was not able to create one with th Cube MX tool...Thanks!
Hello,I am building the SDK toolchain out of the ST Yocto Layer so I can use in on a local machine. I am having the following issue:WARNING: nativesdk-cmsis-svd-0.4+gitAUTOINC+f487b5ca7c-r0 do_fetch: Failed to fetch URL git://github.com/posborne/cmsis-svd.git;protocol=https;branch=master, attempting MIRRORS if available ERROR: nativesdk-cmsis-svd-0.4+gitAUTOINC+f487b5ca7c-r0 do_fetch: Fetcher failure: Unable to find revision f487b5ca7c132b8f09d11514c509372f83a6cb75 in branch master even from upstream ERROR: nativesdk-cmsis-svd-0.4+gitAUTOINC+f487b5ca7c-r0 do_fetch: Bitbake Fetcher Error: FetchError('Unable to fetch URL from any source.', 'git://github.com/posborne/cmsis-svd.git;protocol=https;branch=master') ERROR: Logfile of failure stored in: /home/xxxx/dev/xxx-os/build-xxxx-yyyy/tmp-glibc/work/x86_64-nativesdk-ostl_sdk-linux/nativesdk-cmsis-svd/0.4+gitAUTOINC+f487b5ca7c-r0/temp/log.do_fetch.1538562 ERROR: Task (virtual:nativesdk:/home/xxxx/dev/xxx-os/layers/meta-st/meta-st-stm32mp/r
Hi,I am compiling a yocto custom layer, I am using this layerspoky/meta-poky \ poky/meta-yocto-bsp \ meta-openembedded/meta-oe \ meta-openembedded/meta-python \ meta-st-stm32mp \ custom-image \I was able to connect the LBEE5KL1DX Murata module to wifi via STA, however, I would like to use switch to the AP mode, I followed the steps in the post https://wiki.stmicroelectronics.cn/stm32mpu/wiki/How_to_configure_a_WLAN_interface_on_hotspot_mode After that, i am able to see the AP when I look in a smartphone, but after logging with the password configured, I see the message "IP configuration failure " on my smartphone.One thing I see suspicious is the inet when i run the command "ifconfig"Another thing i see weird is when i run the "networkctl status wlan0" command, specifically the Network File variable I also tried executing the bash script from a repository and it didn't work either https://github.com/STMicroelectronics/meta-st-openstlinux/blob/dunfell/recipes-sa
Hi I am trying to reset M33 with IWDG4. I configured the IWDG4 and enable IWDG4 Reset Interrupt in EXTI2. Now I see it loop into the IWDG4_RST_IRQHandler. But M33 not reset. Can anyone help to figure it out? Thanks a lot
HiI have STM32MP157F-DK2 board and I am following StarterPackage Wiki document.(https://wiki.st.com/stm32mpu/index.php/STM32MP15_Discovery_kits_-_Starter_Package) I am following wiki and my STM32MP157F-DK2 board is not entering DFU mode. Here are the steps I tried to enter DFU mode. DeepSwitch is set to off and I am using 5V 3A charger for power. I connected OTG cable and inserted microSD into slot, turned on power and pressed Reset button. However, when I execute 'STM32_Programmer_CLI -l usb' command on PC, only 'No STM32 device in DFU mode connected' response is returned. What did I miss? I tested it on Windows PC and Ubuntu 20.04 PC respectively. Any help is very appreciated, thank you,
hi all, I am usingtoolchain: http://sources.buildroot.net/toolchain-external-arm-arm/arm-gnu-toolchain-13.3.rel1-x86_64-arm-none-linux-gnueabihf.tar.xzu-boot: git clone -b v2023.10-stm32mp https://github.com/STMicroelectronics/u-boot.gitTF: git clone -b v2.10-stm32mp-r1 https://github.com/STMicroelectronics/arm-trusted-firmware.git export CROSS_COMPILE to extracted toolchain: arm-gnu-toolchain-13.3.rel1-x86_64-arm-none-linux-gnueabihf/bin/arm-none-linux-gnueabihf-Build u-bootmake ARCH=arm stm32mp15_defconfigmake DEVICE_TREE=stm32mp157f-dk2TF:make PLAT=stm32mp1 ARCH=aarch32 ARM_ARCH_MAJOR=7 STM32MP_SDMMC=1 STM32MP_EMMC=1 AARCH32_SP=sp_min DTB_FILE_NAME=stm32mp157f-dk2.dtb BL33_CFG=../u-boot/u-boot.dtb BL33=../u-boot/u-boot-nodtb.bin all fip copy the generated tf-a-stm32mp157f-dk2.stm32 and the fip.bin to the fsbl1 fsbl2 and fip partitions of the SD card. On board it hangs onNOTICE: BL2: Booting BL32 Do I need some additional menuconfig to set for u-boot?Exactly
We're moving to the latest scarthgap release (v24.11.06) of the ST distro (building from yocto). We have a custom board.Generating the device tree from STM32CubeMX 6.13.0 no longer seems to define the pinctrl settings in the device tree?I clicked the option to migrate the .ioc file.Apart from a few whitespace changes, the device tree differs only in terms of missing pinctrl configuration. This doesn't seem right to me, I don't see where else that is being defined and will be required for our pin muxing. The STM32M4 firmware base code also output is missing configuration for the GPIO?Why are there no Pinctrl definitions any more? Is there a configuration, or is STM32CubeMX broken? I've reinstalled it and the packages.(we migrated .ioc file and regenerated the device tree successfully several times for mickledore)
Hello,I encountered a problem with optee that I could not resolve due to a misunderstanding of debug information.During boot up the board, I get the following debug logSpoiler (Highlight to read)...F/TC:0 0 __clk_enable:1195 Clock 192 has been enabledD/TC:0 0 probe_driver_node:550 element: stm32-rtc on node rtc@5c004000 initializedF/TC:0 0 probe_driver_node:543 Probing stm32-iwdg on node watchdog@5a002000F/TC:0 0 pager_deploy_page:1469 Mapped 0x30023000 -> 0x2fffa000F/TC:0 0 pager_deploy_page:1469 Mapped 0x30056000 -> 0x2ffea000F/TC:0 0 pager_deploy_page:1469 Mapped 0x30021000 -> 0x2fffd000D/TC:0 0 gic_it_set_cpu_mask:410 cpu_mask: writing 0xff000000 to 0x349218b4D/TC:0 0 gic_it_set_cpu_mask:412 cpu_mask: 0x3000000D/TC:0 0 gic_it_set_prio:426 prio: writing 0x1 to 0x349214b7D/TC:0 0 dt_driver_device_from_node_idx_prop:370 Property resets missing in node watchdog@5a002000F/TC:0 0 __clk_enable:1195 Clock 58 has been enabledD/TC:0 0 iwdg_wdt_get_version_and_status:528 Watchdog is
Hi Team,There are two version of OSTL i.e. v4.0.0 STM32 MPU OpenSTLinux release note - v4.0.0 - stm32mpu-ecosystem-v4 and v4.1.0 STM32 MPU OpenSTLinux release note - v4.1.0 - stm32mpu-ecosystem-v4. what is difference between them both are at 5.15.x kernel and using Kirkstone? Is OSTL v4.1.0/v4.1.1/v4.1.2 backward compatible with v4.0.0/v4.0.1/v4.0.2? @OlivierK Thank you.
Hi:Recently, I have been transplanting Debian on the stm32mp2 platform, but Xfce cannot be started, and the following error keeps occurring. Can you give some suggestions? startx X.Org X Server 1.21.1.7 X Protocol Version 11, Revision 0 Current Operating System: Linux myd-ld25x 6.1.82 #1 SMP PREEMPT Mon Sep 9 07:52:16 UTC 2024 aarch64 Kernel command line: root=PARTUUID=e91c4e10-16e6-4c0e-bd0e-77becf4a3582 rootwait rw earlyprintk earlycon loglevel=8 console=ttySTM0,115200 xorg-server 2:21.1.7-3+deb12u8 (https://www.debian.org/support) Current version of pixman: 0.42.2 Before reporting problems, check http://wiki.x.org to make sure that you have the latest version. Markers: (--) probed, (**) from config file, (==) default setting, (++) from command line, (!!) notice, (II) informational, (WW) warning, (EE) error, (NI) not implemented, (??) unknown. (==) Log file: "/var/log/Xorg.0.log", Time: Sun Dec 1 14:13:50 2024 (==) Using system config directory "/usr/share/X11/xorg.conf.d" (EE
Hello,I am currently using Linux kernel version v5.15-stm32mp-r2.tar.gz and U-Boot version v2021.10-stm32mp-r2.tar.gz for my project based on the STM32MP family. I have recently upgraded the Linux kernel to linux-5.15-stm32mp-r2.2.However, I am unsure which U-Boot version is compatible with linux-5.15-stm32mp-r2.2. I tried using U-Boot version v2022.10-stm32mp-r2 with this kernel, but encountered the following error during compilation: Error: arch/arm/dts/.stm32mp157c-ccb-mx.dtb.pre.tmp:1478.1-6 Label or path sram not found FATAL ERROR: Syntax error parsing input tree Check /home/vivekb/workspace/source/NGACEM-269/SSB-buildroot/output/build/uboot-custom/arch/arm/dts/.stm32mp157c-ccb-mx.dtb.pre.tmp for errors make[4]: *** [scripts/Makefile.lib:336: arch/arm/dts/stm32mp157c-ccb-mx.dtb] Error 1 make[3]: *** [dts/Makefile:44: arch-dtbs] Error 2 make[2]: *** [Makefile:1173: dts/dt.dtb] Error 2 make[1]: *** [package/pkg-generic.mk:293: /home/vivekb/workspace/source/NGACEM-269/SSB-buildr
I'm encountering difficulties while attempting to connect and debug my STM32 microcontroller, and I'm seeking guidance from the community. I have erased the full chip flash memory and uploaded my code but suddenly I start getting these error messages,Error Messages:1. In ST-Link Utility:Can not connect to target!If you're trying to connect to an STM32W1xx device, please select Normal or HotPlug mode from Target->Settings menu.If you're trying to connect to a low-frequency application, please select a lower SWD Frequency mode from Target->Settings menu.
I want to know why I downloaded the latest JAVA, but I can't install STM32CubeProgrammer.*This post has been translated from Chinese to comply with the ST Community guidelines.
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.