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
Hi there STM team!I need to build a embedded Linux image for a STM32MP15 target. My application has a QT GUI already implemented. What is the best approach to create this image? I know OpenSTLinux exist but I don't fully understand what's the advantage, compared to doing everything from scrath in yocto. Thanks a lot in advance
Hi all,I'm trying to enable the host functionalities for USB Port1 for MP135: I imported the Host Library and implemented some functions on usbh_conf.c file. Attached to the DK board I have a optic mouse.After some basic initialization I'm in the USBH_LL_Start() function and I have the following debug outputs:Before USBCMD, USB_STS, USBINTR, PORTSC1 set:USBH_LL_Start usbcmd: 0x00080B00; usbsts: 0x00001000PORTSC1: x00002000usbINTR enbl: 0x00000007;Set the Run/Stop bit and wait for !HC_HALTED:usbcmd: 0x00080B01; usbsts: 0x00000000try 0: status 0x00000000usbcmd: 0x00080B01; usbsts: 0x00000000PORTSC1: x00002000Set the PORTPOWER bit for PORTSC1:PORTSC1: x00003000Set CONFIGFLAG_FLAG:usbcmd: 0x00080B01; usbsts: 0x00000004F PORTSC1: x00001803usbINTR enbl: 0x00000007;PORTSC1 set Reset + delayPORTSC1: x00001101POSTSC1 reset Reset ..PORTSC1: x00001101.. wait ..PORTSC1: x00001005 --> Port Enabled + Device present !usbcmd: 0x00080B01; usbsts: 0x00000004 --> Port change DetectIn my undestandin
after following the bellow steps and in build-<distro>-<machine>/tmp-glibc/deploy/images/<machine> directoryi cant find the file system image(FlashLayout_sdcard_stm32mp157d-dk1-optee.tsv) in this directory as i am using stm32mp157d-dk1 and it contains for (FlashLayout_sdcard_stm32mp157f-dk2-optee.tsv).can i use FlashLayout_sdcard_stm32mp157f-dk2-optee.tsv to flash my stm32mp157d-dk1 1.cd <working directory path>/Distribution-Package2.repo init -u https://github.com/STMicroelectronics/oe-manifest.git -b refs/tags/openstlinux-6.1-yocto-mickledore-mpu-v24.06.263.repo sync4. DISTRO=openstlinux-weston MACHINE=stm32mp15-disco source layers/meta-st/scripts/envsetup.sh5.bitbake st-image-weston6.bitbake st-image-weston -c populate_sdk7. cd <Distribution Package installation directory>8.git clone -b v1.0.0 https://github.com/STMicroelectronics/meta-st-x-linux-qt.git layers/meta-st/meta-st-x-linux-qt9. git clone -b scarthgap https://github.com/meta-qt5/met
The following output seems to be the default: root@stm32mp2:~# cat /sys/class/remoteproc/remoteproc0/fw_format TEE However, for debugging purposes, I would like to turn off firmware verification, and make the remoteproc driver accept plain ELF files. How can this be accomplished?
Hello, I am working with the STM32MP257F-EV1 on version 1.16.0 of CubeIDE. Specifically I am following the guide laid out in this link: https://wiki.st.com/stm32mpu/wiki/Getting_started/STM32MP2_boards/STM32MP257x-EV1/Develop_on_Arm%C2%AE_Cortex%C2%AE-M33/Modify,_rebuild_and_reload_the_firmwareI am trying to run the debug but when I do I get the following output:Open On-Chip Debugger 0.12.0+dev-00597-ga5a21219f (2024-06-03-11:02) [https://github.com/STMicroelectronics/OpenOCD]Licensed under GNU GPL v2For bug reports, readhttp://openocd.org/doc/doxygen/bugs.htmlsrst_only srst_pulls_trst srst_gates_jtag srst_open_drain connect_deassert_srstInfo : Listening on port 6666 for tcl connectionsInfo : Listening on port 4444 for telnet connectionsInfo : STLINK V3J15M7B5S1 (API v3) VID:PID 0483:3753Info : Target voltage: 3.284210Info : Unable to match requested speed 5000 kHz, using 3300 kHzInfo : Unable to match requested speed 5000 kHz, using 3300 kHzInfo : clock speed 3300 kHzInfo : stlin
Hi,I am building my STMP157 board using the reference of "STMP15X-SOM" of Olimex. In that the RAM used is K4B4G1646D-BYK0, but I am unable to find the part number in online store. Can you please help me in finding the different RAM which can be used instead of it.If I am changing the RAM what are the changes needed to be done in the U-boot file to run the processor.
Hello everyone,I am using the STM32MP135 SoM from PHYTEC, and I’m creating a custom device tree source (DTS) file tailored to our carrier board. I’m having trouble controlling the backlight PWM signal. I’m unable to enable the PWM and enable signal as expected, although I can change the enable pin status if I remove the enable pin definition from the backlight node. Additionally, there is no [used] indication next to GPIOI pin 0, which I’ve configured as the panel enable GPIO. I suspect this issue may be related to the LCD node configuration.I’ve attached my GPIO states and the DTS file for reference.
Hello. I am trying to get a custom design using STM32MP135F to boot.Unlike the DK, it does not use I2C busses, and I2C is not listed in the DTS files as created by STM32CubeMX.I follow the wiki "How to compile the device tree with developer package" .When I run the make command, I get error messages:i2c4_pins_a not foundalso errors about sdmmc2 pins, which is also not used nor mentioned in the dts.Is there somewhere a dts coupling that I am missing?Thanks for helping.Jan
Development environment: buildroot st/2024.02.3Hardware: STM32MP157DAB1 (The schematic diagram is in "SCH-887T227012(A0)-20240815.pdf" in the attachment). The LCD backlight pin of my board is connected to PF7, and I use the STM32CubeMX configuration as follows:Then modify the generated device tree file to add backlight_pwm node as follows:Then add pwm_backlight and panel_rgb, as shown below:LTDC has also been modified as follows:Screen parameters are written in buildroot/output/build/linux-custom/drivers/gpu/drm/panel/panel-simple.c After compiling and burning, print the following information:[ 12.640841] platform pwm-backlight: deferred probe pending[ 12.645020] platform 5a001000.display-controller: deferred probe pending[ 12.651762] platform panel-rgb: deferred probe pending Please help to see, where is the problem with the configuration, which makes it impossible to load the above drivers?
STM32CubeIDE 1.16.0 was released today on st.com as well as an in-tool update patch. What is new in 1.16.0? Microcontroller and board lists aligned with STM32CubeMX v6.12.0 : STM32C0 ,STM32WB0 and STM32MP25XX Added CMake support for multicontext projects (Multi-Context ,Trust zone , Multi-core) Added new features for CMake project configuration Basic CMake support now also with Ninja Added the OZ in the optimization level to the build settings Main fixed issues: Refer to the STM32 microcontrollers wiki under this link. Known issues fixed and problems and limitations: Refer to the STM32 microcontrollers wiki under this link. Where do I obtain STM32CubeIDE 1.16.0? https://www.st.com/stm32cubeide … Or update your current installation of STM32CubeIDE using: Help > Check for updates
While I got some experience with Cortex M devices - including several STM32 families - and Linux as host OS, I'm pretty new to asymmetrical dual-core systems like the STM32MP1 devices.What sets them apart is the tight integration of both cores, and the ability to run realtime bare-metal applications in close cooperation with Linux as a host OS. Or so I think.What I got already are the MP135-DK on the way, the OpenLinux Dev package installed and running, and a small user space application built. The CubeMP1 and CubeMP13 packages with the CM4 BSP, HAL, and very few examples.And of course the MP1 datasheets/reference manuals, which I browsed.I think I have identified some of the important chapter, but I'm not yet through.So, here my questions.Since I haven't found any such thing yet, is there a single proper documentation of the API for synchronisation and communication between the CA7 and CM4 core ?In particular, configuration of CM4 setting, code deployment (as the CM4 seems to execute
Hi Everyone,I have problem with custom carrier and dts. I am using MP135 SoM from PHYTEC and when I add panel backlight property to the panel node, there is no pwm output, but when I comment out this feature from the panel node, the panel backlight works as expected. Can you check my dts? I am using a generic RGB display. This is my working dts: #include "stm32mp1-phycore-custom-carrier.dtsi" / { model = "CUSTOM CARRIER"; compatible = "phytec,stm32mp135f-pbacd10", "phytec,stm32mp135f-pcl076-emmc", "phytec,stm32mp135f-pcl076", "st,stm32mp135"; memory@c0000000 { reg = <0xc0000000 0x20000000>; }; reserved-memory { #address-cells = <1>; #size-cells = <1>; ranges; optee_framebuffer@dd000000 { reg = <0xdd000000 0x1000000>; no-map; }; optee@de000000 { reg = <0xde000000 0x2000000>; no-map; }; }; panel_rgb: rgb-panel { compatible = "panel-dpi"; label = "dt304b-lcd"; reset-gpios = <&gpioi 0 GPIO_ACTIVE_HIGH>; //backli
Can you please check my device tree configuration?Backlight as a GPIO is working correctly, but when i try to use it as pwm, the pin line is always fixed to low.Inside my .dts:This is my panel definition:panel { compatible = "newkoro,display","simple-panel"; //enable-gpios = <&gpioe 12 GPIO_ACTIVE_HIGH>; //reset-gpios = <&gpioe 11 GPIO_ACTIVE_HIGH>; backlight = <&backlight>; power-supply = <&vdd>; status = "okay"; port@0{ //reg = <0>; panel_in: endpoint { remote-endpoint = <&ltdc_ep0_out>; }; }; }; This is backlight as simple gpio (working)//backlight: panel-backlight { // compatible = "gpio-backlight"; // gpios = <&gpioe 4 GPIO_ACTIVE_HIGH>; //default-off; //}; This is backlight as pwm (not working) backlight: panel-backlight { compatible = "pwm-backlight"; pwms = <&backlight_pwm 0 100000 0>; brig
Hi ST Team,i am facing the issues for installing the browser form the last 15 days, i did not get any browser on my stm32mp157f-dk2. board ,Can you please suggest me to install any browser, just i want to check this board or processor will work for our project or not. qt-wpewebit ---> fails wpe-webkit --> faildpyqt5 --> faild.chromium --> compilation error on mesa libraries.what should i do, which browser can work for stm32mp1.and please let me know i want to use x11 instead of wayland. is it possible ?. if possible then how can i do ?.
I'm trying to install the distribution package but I'm at the point of the proxy issues and I don't know what to do. sudo apt-get update sudo apt-get install corkscrew git config --replace-all --global core.gitproxy "$HOME/bin/git-proxy.sh" git config --add --global core.gitproxy "none for <MyPrivateNetworkDomain>" (optional, for example .st.com or localhost) echo 'exec corkscrew <MyProxyServerUrl> <MyProxyPort> $* $HOME/.git-proxy.auth' > $HOME/bin/git-proxy.sh chmod 700 $HOME/bin/git-proxy.sh echo '<MyProxyLogin>:<MyProxyPassword>' > $HOME/.git-proxy.auth chmod 600 $HOME/.git-proxy.auth Use the command below to test the proxy settings: git ls-remote git://git.openembedded.org/openembedded-core > /dev/null && echo OK || echo KO I have absolutely zero idea of the proxy settings my VM. How can I move pass this step?Also, after those steps it sends me to https://source.android.com/docs/setup/download#installing-repo
Hello, I am working on getting the Developer Package for the STM32MP257F-EV1 board up and running. I am confused on the step where tells us to do the following command:[ "${ARCH}" = "arm" ] && imgtarget="uImage" || imgtarget="Image.gz"export IMAGE_KERNEL=${imgtarget}Followed bymake ${IMAGE_KERNEL} vmlinux dtbs LOADADDR=0xC2000040 O="${OUTPUT_BUILD_DIR}"I am assuming that for ARCH I should be writing arch64 which is proved by the fact that when I try to run that I am getting an error for the first Image target, But I keep getting the error *** No rule to make target 'uImage' or whatever I put for the Image, I have tried a variety of Image names that I found in some of the files like: Image, uImage, zImage, Image.gz, and bzImage. The only one that will not get this error is bzImage, which will end up getting errors with the files later about undeclared variables and it seems that it is making it for x86 architecture. So what is the Image target I should be using and where do I fi
Hello everyone,I am trying to migrate a project for the STM32MP151C from dunfell to kirkstone.The versions of the main components I am using are the following:ComponentVersiontf-a-stm32mpv2.6-stm32mp-r2.2optee-os-stm32mpv3.16.0-stm32mp-r2.2u-boot-stm32mpv2021.10-stm32mp-r2.2linux-stm32mpv5.15.145-stm32mp-r2.2 I used a given .ioc file with a newer version of STM32CubeMX (v6.8.0 - openstlinux-5.15-yocto-kirkstone-mp1-v22.11.23) to re-generate the devicetrees and added the custom changes from the old devicetrees (see devicetrees attached).Eventually during boot following error occurs: I/TC: Primary CPU switching to normal world boot D/TC:0 tee_entry_exchange_capabilities:100 Asynchronous notifications are disabled D/TC:0 tee_entry_exchange_capabilities:112 Dynamic shared memory is enabled D/TC:0 0 core_mmu_xlat_table_alloc:513 xlat tables used 4 / 4 D/TC:? 0 tee_ta_init_pseudo_ta_session:296 Lookup pseudo TA a8cfe406-d4f5-4a2e-9f8d-a25dc754c099 D/TC:? 0 tee_ta_init_pseudo_t
Hello, I am working with the STM32MP257F-EV1 Development board and I am getting stuck. I am following the following guide: https://wiki.st.com/stm32mpu/wiki/Getting_started/STM32MP2_boards/STM32MP257x-EV1/Develop_on_Arm%C2%AE_Cortex%C2%AE-A35/Modify,_rebuild_and_reload_the_Linux%C2%AE_kernel. I am doing the step make ${IMAGE_KERNEL} vmlinux dtbs LOADADDR=0xC2000040 O="${OUTPUT_BUILD_DIR}" and when I run make I get the following output:make[1]: Entering directory '/home/carson.kirk@internal.etherform.com/STM32MPU_Workspace/STM32MPU-Ecosystem-v5.1.0/Developer-Package/stm32mp2-openstlinux-6.1-yocto-mickledore-mpu-v24.06.26/sources/aarch64-ostl-linux/linux-stm32mp-6.1.82-stm32mp-r2-r0/build'GEN MakefileHOSTLD scripts/dtc/dtc/home/carson.kirk@internal.etherform.com/STM32MPU_Workspace/STM32MPU-Ecosystem-v5.1.0/Developer-Package/SDK/sysroots/x86_64-ostl_sdk-linux/usr/lib/gcc/x86_64-ostl_sdk-linux/12.3.0/../../../../lib/libc.so: file not recognized: file format not recognizedcollect2: error: l
Hey there,I have a custom stm32mp153c based board. I adapted bootloaders/optee/kernel from scarthgap branch of meta-st-stm32mp and have everything booting (tf-a 2.8, u-boot 2022.10, optee 3.19, kernel 6.1.28). The only remaining warnings I have are these:root@stm32mp1:~# dmesg | grep pmic[ 0.459590] stpmic1 2-0033: PMIC Chip Version: 0x21[ 0.497690] stpmic1-regulator 5c009000.i2c:stpmic@33:regulators: Failed to create device link (0x180) with 2-0033[ 0.506580] stpmic1-regulator 5c009000.i2c:stpmic@33:regulators: Failed to create device link (0x180) with 2-0033[ 0.516882] stpmic1-regulator 5c009000.i2c:stpmic@33:regulators: Failed to create device link (0x180) with 2-0033 I found only two threads mentioning the issue, but couldn't figure out how to fix it and even got an impression that these are somehow expected?https://community.st.com/t5/stm32-mpus-embedded-software-and/platform-5a001000-display-controller-deferred-probe-pending-why/m-p/710943https://community.st.com/t5/stm32-mp
Hello,I am developing on the STM32MP131FAE board in a bare-metal environment.This chip does not have internal Flash, so I am planning to load a bin file from external Flash at initial boot.The Flash will store two bootloaders and two main firmware images.I understand that when the boot mode pin is set to Flash boot, the ROM code reads data from the external Flash and copies it to the sysram. I have confirmed that it successfully runs bootloader 1 stored in the external Flash.The reason for splitting the bootloader into two parts is due to the sysram size, which is only 128KB. Since the bootloader is expected to exceed 128KB, I plan to execute bootloader 1 first and then jump to bootloader 2. question:What is the maximum size that the ROM code can read from the external Flash? If I can reduce the bootloader to within 128KB, I plan to combine it into a single file, but I have not been able to find information on the maximum number of bytes that the ROM code can read.
Using the latest CubeMX 6.9.0 on Ubuntu 23.04 The following has happened quite a few times in the past years , also on previous Linux and CubeMX versions. Now would like to raise this issue as it's becoming very annoying now doing more work in CubeMX. There are now more situations where the keyboard just does not respond anymore. The mouse does.1. When creating a new project and entering an partnumber, the dialog box sometimes get stuck. Mostly after entering a partnumber that does not exists. You can continue by selecting from the drop down list and then creating the project, but when trying to save you are out of luck, you cannot enter a filename so you have to start all over again. a lot of wasted time.2. When entering a pin number in the dialog box. sometimes this text box get stuck. Luckily you can save the project, but need to close CubeMX and restart it gain. A lot of time wasted. This happens no matter it is an MCU or MPU pro
I have a small micro that needs to run before the MP157 is active. The voltage coming gin is 5V, but I need 3.3V. Is there an always-on LDO in the STPMIC1 for such purpose? I assume the internal LDO is not te be used?Do I need to program the voltage of the LDO or is it set by default to 3.3VRegards
Is there a way to build only optee, etc. up to the level of u-boot?It would help to ease board bringup, checking the dts effects, do some basic testing. Regards,Roland
Hello, I am trying to implement a Hi-Speed USB Device on STM32 baremetal project for STM32MP131Axx by using STM32Cube_FW_MP13_V1.1.0. I am using the internal DMA of USB OTG to get faster the bulk transfer. I have 2 questions since I would like to know the suitable FIFO size when using the internal DMA. Q1I found the following comment in HAL_PCDEx_SetTxFiFo() function in stm32mp13xx_hal_pcd_ex.c.When DMA is used 3n * FIFO locations should be reserved for internal DMA registers I am using the endpoint 1 as bulkout that the max packet size is 512 bytes. In this case, is the comment mean that I need to pass 384 words to HAL_PCDEx_SetTxFiFo() as below? HAL_PCDEx_SetTxFiFo(&hpcd, 1, // Use DIEPTXF1 for endpoint 1. 0x180); // 384 words = 1536 bytes Q2I refered the following post. Is it same for STM32MP13 line that I should not allocate more than (4096 – 72 (for DMA descs)) bytes in total -> 0x3EE words when using DMA?https://com
Hi all,I'd like to move the USB HID/CDC function, implemented in the Ux_Host_HID_CDC_ACM sample, from TypeC OTG port to USB host port.Does it make sense?I started to create a usb_host.c based on usb_otg.c, changing the OTG into the USB Port1 references.But I don't know how to enable the VUSB voltages on the USB connectors: the enables seems to be under control of the USB hub on the DK board.Do I need to send commands via the i2c5 bus?Which commands? Thanks! -- ADDED --Looking better the schematics I note that the resistors connected with the I2C pins are not inserted, so it is impossible communicate with the USB hub chip.So, why the VBUSs on the USB TypeA sockets are not enabled (and then they not feed any USB devices ..) ?? -- ADDED 2 --Why the GPIO PortB Pin2 is set as original implementation of USBH_DriverVBUS() ?? -- ADDED 3 --Definitively I'm not able to point to USB Host port.My guess is that the USB hub is sleeping/disabled cause a configuration error of the
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.