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 Folks,I am trying to build openstlinux-eglfs/st-example-image-qt using yocto/openstlinux distribution (please see details below) for stm32mp157c-dk2 board. After fixing compilation problem with qt3d (scene2d example failed to compile) I was able to boot from SD card.There is STM background on HDMI and bootloader splashscreen on attached screen (which remains black if no HDMI connected). Whatever example I am trying to run using seral console, they does not work with following errors:root@stm32mp1:/usr/share/examples/gui/openglwindow# ./openglwindow No usable crtc/encoder pair for connector "DSI1"qt.qpa.input: X-less xkbcommon not available, not performing key mappingCould not set DRM mode for screen HDMI1 (Permission denied)Could not queue DRM page flip on screen HDMI1 (Permission denied)(last message repeated continuously)I would highly appreciate any hints how to make eglfs image/examples work.Best regards,Andrey.~/stm32mp157c-dk2/Distribution-Package/openstlinux-4.19-thud-mp1-19-
Hi,I am currently using the STM32MP1-DK1 board in engineering modeWhen I am debugging the program and stepping instruction by instruction in IAR, the debugging process is lost at a time during the execution.I can execute the program and and I can insert breakpoint wherever I want. But, before the instruction msr msp, r0 in the function vPortStartFirstTask in the file portasm.s has been executing, if we stop the program execution by inserting a breakpoint, the debugging process is lost with the error:A vector table read fault has occurred. The processor has escalated a configurable-priority exception to HardFault. An MPU or Execute Never (XN) default memory map access violation has occurred on an instruction fetch (CFSR.IACCVIOL, MMFAR). A precise data access error has occurred (CFSR.PRECISERR, BFAR) at data address 0x34020000. Exception occured at PC = 0x1000ced8, LR = 0x10006e9d
I'm trying to get the OpenSTLinux build environment up & running for the 1st time, following the instructions on the wiki step-by-step.So far I have:Built a Ubuntu 18 Virtual machine in Virtualbox - (18.04.5LTS, 4 cores, 8GbRAM, 500Gb HDD)Followed all the Starter package / Distribution package install & setup stepsProgrammed the DK2 and EVB with the Starter Packages (tip: you need Virtualbox Extensions enabling USB2.0 & add STMicroelectronics* as a USB filter)But now I am trying to actually build the whole project using BitBake and it keeps failing.I have not modified the OpenSTLinux at all, I have set it all up using the directory structure suggested in the Wiki, initialised the environment per the instructions, and invoked:bitbake -v st-image-weston 2>&1 | tee build.logAnd the process appears to have failed, which is rather dissappointing, although I can't tell if the error is a "real" error or just something that doesn't really matter.Here's errors from the log:ER
In our custom board we are using I2C1 to control and configure STPMIC1. I'd like to use I2C1 in TF-A so PMIC can be configured to power DDR during boot. I2C1 is not supported by default in TF-A, but looks like there is a way to do it as described in https://wiki.st.com/stm32mpu/wiki/PMIC_hardware_components#TF-A I followed the procedure described in the above link, but still when I include the reference to &i2c1 in my stm32mp153c-<project>.dts it throws the following build error| Building stm32mp1| Error: fdts/stm32mp153c-<project name>.dts:355.1-6 Label or path i2c1 not found| FATAL ERROR: Syntax error parsing input treeAm I missing something?Thanks,Nikhil
Hey,As a hardware engineer, I worked for a long time with the M7 controller.For a Specific Algorithm, It seems like I should use a stronger core then the M7 480Mhz, when the purpose is to Calculate in Real-time.one of the options is to use the MP153/157 with 2 cores 800Mhz each, for Better performance.in case that I would like to work Bare metal- without operating system like Linux, and the entire purpose of the MPU is to calculate and send the data in serial communication, what is the minimum periphery the MPU Demands?external DRAM is necessary ?in simple words, can I just “supply�? the component?what are the Consequences in using MPU Vs MCU, except from Power Consumption? Best regards peleg
I want to use remoteproc to load and start firmware on Coretex-M4 from Cortex-A7.I refer to the following Wiki page.https://wiki.st.com/stm32mpu/wiki/Linux_remoteproc_framework_overviewIn above Wiki page, I have tried [4.1.1 Remote processor boot through sysfs].However, I can't find "remoteprocX(e.g. remoteproc0)" directory in "/sys/class/remoteproc/" directory.("/sys/class/remoteproc/" directory has no any sub-directory or files at all)What should I do to create "remoteprocX(e.g. remoteproc0)" directory in "/sys/class/remoteproc/" directory?Do I have to modify Linux kernel configuration or Device Tree? For the reference, [Support for Remote Processor subsystem] and [STM32 remoteproc support] is enabled in Linux kernel configuration as modules , and these have being loaded by "modprobe" command.Best regards.H. Masuda
Using the ST provided altium design files for the STM32MP157A-DK1, I've run the design rule check on the PCB as default which shows about 400 violations. Are the design rules set up correctly for this project or am I doing something incorrectly? I'd like to use the PCB file as the base for my project but would like the design rules to be correct before continuing.Thanks
Hi, I'm trying to build a Yocto-Linux for an specific STM32MP157 board. I was working with "thud", but now "dunfell" is required, as it is supposed to be long term stable.The system is built after ST's manual:https://wiki.st.com/stm32mpu/wiki/How_to_create_your_own_machinetf-a-stm32mp-2.2u-boot-stm32mp-2020.01The Device Tree was adapted and Bitbake is compiling it. But now system get stuck while it executes the TF-A Boot (from SD).Is there any way to debug or get the reason for image load fail?When I try to flash it via STProgrammer a "Panic at PC" appears.Thanks in advance for any advise!KaiNOTICE: CPU: STM32MP157AAD Rev.B NOTICE: Model: STMicroelectronics custom STM32CubeMX board WARNING: VDD unknownINFO: Reset reason (0x17): INFO: Power-on Reset (rst_por) INFO: Using SDMMC INFO: Instance 1 INFO: Boot used partition fsbl1 NOTICE: BL2: v2.2-r1.0(debug):v2.2-dirty NOTICE: BL2: Built : 13:36:23, Oct 22 2019 INFO: Using crypto library 'stm32_crypto_lib' INFO: BL2: Doing platform setup IN
I want to know how to specify the address to load Cortex-M4 firmware when U-Boot or Linux Kernel load the firmware of Cortex-M4 in Retention RAM.And, how to specify the address to load Cortex-M4 firmware if I load the firmware of Cortex-M4 in Retention RAM and MCUSRAM separately?In addition, if I load the firmware of Cortex-M4 in Retention RAM and MCUSRAM separately, is the swithing of RetentionRAM and MCUSRAM done by MPU without the programmer being aware of it?
I'm trying to boot an STM32MP157 using the v5.4-stm32mp branch of ST's Linux kernel, and it doesn't appear that peripherals under the simple-bus node in the DTS file are getting probed. I copied the stm32mp157d-dk1.dts file as a starting point, but since my board doesn't have a PMIC, I commented out the PMIC element and instead pass a dummy regulator to the SDMMC peripherals. With no other changes, I got absolutely no output from the console. When I enabled earlyprintk support, I got output that stopped at "printk: console [tty0] enabled." I thought, "hmm, that's weird. Why isn't it loading my UART driver?" I edited the boot arguments to pass console=ttySTM0,115200 to the kernel (obviously it should be getting picked up from the device tree file), and this fixed the console printing issue, but I now have the attached log file.As you can see, the device tree is getting loaded, and the memory pools / CPU settings are handled. However, none of the STM32 peripheral drivers are getting load
want to exchange large data buffers with the coprocessor.I have done following wiki page.https://wiki.st.com/stm32mpu-ecosystem-v1/wiki/How_to_exchange_large_data_buffers_with_the_coprocessor_-_example#Source_codeI want to analyze Cortex-M4 source code, So I have get following source code. https://github.com/STMicroelectronics/logicanalyserI want to build the source code, but README says that "Drivers and Middleware are not included in the project; current assumption is that STM32Cube_FW_MP1_V1.2.0RC2 package is located at the same level as the project root folder."How can I get STM32Cube_FW_MP1_V1.2.0RC2?Or I have to investigate how to build the source code without STM32Cube_FW_MP1_V1.2.0RC2?Best Regards.H. Masuda
I am on environment 2.0.0 and a custom board with PMIC and STM32MP151 booting via serial interface with the STM32CubeProgrammer using UART4 for debug output.I managed to get the TF-A running up until it is in BL32 (sp_min) and prints "Preparing exit to normal world". This seems to be the last message before U-Boot is supposed to print something. Which it does not.I tried to enable early debug, but i am not exactly sure where and how to set those options.I added CONFIG_DEBUG_UART_BOARD_INIT=yCONFIG_DEBUG_UART=yCONFIG_DEBUG_UART_STM32=yto the stm32mp15_basic_defconfig, but this has no effect.I did fill all the user sections in the DT as far as i can think of. Using one of the eval boards as a template.I attached both DT for TF-A and U-Boot as well as a UART Trace.Any idea where to start looking?
Trying to run some test code on the M4 core of a custom stm32mp151a board and can't seem to get far. I have been successful in getting u-boot working on the A core, so the majority of the board has been proven functional.I will attach my make file as well as a simple project that fails. The board is configured to boot in engineering mode.gdb indicates the crash is in memset from _start. I double checked it was pulling in the right version of thumb code for the library, and the .map file says it is.I used the bss loop to write a known value and then verified the startup code was clearing the bss section. The crash appears to happen after that is complete.I've also tried skipping the c _start function and calling __libc_init_array directly and it crashes in there. Skipping the _start altogether on the simple project runs without incident.The indication from gdb at crash with the backtrace is...Loading section .text, size 0x3f4 lma 0x10000000 Loading section .rodata, size 0x4 lma 0x100003
I'm looking for CAD symbols and footprint for STM32MP15x in LFBGA-354 package. Could you guys help me on this? Thank you.
Hello ST Teams!I'd like to know if it's possible to upgrade Python version and at the same time stay at 1.2 SDK.I've read the "STM32MP1 Ecosystem known bugs and common pitfalls" post and "https://community.st.com/s/question/0D53W00000Ab3toSAB/how-to-upgrade-to-python-36"its seems we cannot do it easily?Any advice?We aim to build a st-image-core with embedded upgraded python version.Have a nice weekend!
Hi, i moved to new ecosystem v2.0 "dunfell" and added my layers of wifi,camera, openCV and python packages from old Yocto ecosystem. first boot serial-getty@ttySTM0 working fine. on second boot it died and in /var/log/messeges i got: Unit serial-getty@ttySTM0.service is bound to inactive unit dev-ttySTM0.device. Stopping, tooI can't understand what i did wrong in Yocto layers that making this bug. did someone had this issue?
I want to implement the program that exchange large data with each other on Cortex-A7 and Cortex-M4 by using DDR.Thanks to following wiki page, I have understand the mechanism that exchange large data from Cortex-M4 to Cortex-A7 by using DDR.https://wiki.st.com/stm32mpu-ecosystem-v1/wiki/How_to_exchange_large_data_buffers_with_the_coprocessor_-_principleNow, I want to know the way that exchange large data from Cortex-A7 to Cortex-M4 by using DDR.I especially want to know how to read data on DDR from Cortex-M4.I would be grateful if there is any sample source code.Is there any sample source code that transfer large data from Cortex-A to Cortex-M?Best Regards,H. Masuda
I have generated a project with cubemx and tried all the instructions from this article..https://wiki.st.com/stm32mpu/wiki/How_to_compile_the_device_tree_with_the_Distribution_PackageMy layer.conf look like thisBBPATH .= ":${LAYERDIR}" BBFILES += "${LAYERDIR}/recipes-*/*/*.bb \ ${LAYERDIR}/recipes-*/*/*.bbappend" BBFILE_COLLECTIONS += "meta-my-demo-layer" BBFILE_PATTERN_meta-my-demo-layer = "^${LAYERDIR}/" BBFILE_PRIORITY_meta-my-demo-layer = "6" EULA_FILE_ST_stm32mpmydemo = "${LAYERDIR}/conf/eula/${MACHINE}" EULA_FILE_ST_MD5SUM_stm32mpmydemo = "8b505090fb679839cefbcc784afe8ce9" LICENSE_PATH += "${LAYERDIR}/files/licenses" STM32MP_MY_DEMO_BASE = "${LAYERDIR}" LAYERVERSION_meta-my-demo-layer = "1" LAYERDEPENDS_meta-my-demo-layer = "stm-st-stm32mp-mx" LAYERVERSION_meta-my-demo-layer = "1" LAYERDEPENDS_meta-my-demo-layer = "core" LAYERSERIES_COMPAT_meta-my-demo-layer = "dunfell"My machine configurations look like this ...#@TYPE: Mac
I see that the page related to the installation on java is still under construction on the wiki, but I urgently want to install jre and want help in doing so.I am using st-example-image-qt for my project and I need to add java to it, I have already added other packages like python, etc. using the IMAGE_INSTALL_append = python3, but when I add openjdk-7-jre in it after adding the meta-java layer, it gives an error that x11 is required in DISTRO_FEATURES.Please help me fix this.Thanks and Regards
I'm trying to generate dtb files (kernet, u-boot, tf-a) for a custom board with STM32MP157C (OSD32MP157C by Octavo Systems) following the instructions from ST (https://wiki.st.com/stm32mpu/wiki/How_to_compile_the_device_tree_with_the_Developer_Package).Here some details:*.dts and *.dtsi files are generated with CubeMXIde 1.4.0Environment is setup in a Ubuntu 20.04 LTS (using WSL).Source files: en.SOURCES-stm32mp1-openstlinux-5-4-dunfell-mp1-20-06-24.tar.xzSDK files: en.SDK-x86_64-stm32mp1-openstlinux-5.4-dunfell-mp1-20-06-24.tar.xzError log: arch/arm/dts/stm32mp157c-test_master_1-mx.dtb: ERROR (duplicate_label): /sram@10050000: Duplicate label 'sram' on /sram@10050000 and /soc/sram@10000000ERROR: Input tree has errors, aborting (use -f to force output)make[2]: *** [scripts/Makefile.lib:308: arch/arm/dts/stm32mp157c-test_master_1-mx.dtb] Error 2make[1]: *** [dts/Makefile:38: arch-dtbs] Error 2make: *** [Makefile:1087: dts/dt.dtb] Error 2Checking inside the files and includes I can see "
Hi,Can I access APB5 bus in engineering mode to run I2C4 with I2C4_SCL = PZ4, I2C4_SCL = PZ5?
Hello.I'm trying to connect MP1's eth to Marvell 88E6352. Switch connected to cpu via RGMII.Because switch don't have output 125MHZ clock, eth configured to use internal clock, how described in this article: https://community.st.com/s/question/0D50X0000B8iBSB/stm32mp157-ethernet-problem After all connections and configurations Linux can see Marvell's switch. But when I try to enable eth, it's not started and write this to console:root@stm32mp1:~# ifconfig eth0 up [ 107.460160] Generic PHY fixed-0:00: attached PHY driver [Generic PHY] (mii_bus:phy_addr=fixed-0:00, irq=POLL) [ 108.476843] stm32-dwmac 5800a000.ethernet: Failed to reset the dma [ 108.481623] stm32-dwmac 5800a000.ethernet eth0: stmmac_hw_setup: DMA engine initialization failed [ 108.490893] stm32-dwmac 5800a000.ethernet eth0: stmmac_open: Hw setup failed ifconfig: SIOCSIFFLAGS: Device or resource busyI can't solve this problem by myself.
Following the instructions found in en.FLASH-stm32mp1-openstlinux-5-4-dunfell-mp1-20-06-24.tar.xz and using create_sdcard_from_flashlayout.sh to write the data to an SD card did not work for me. When I inserted the card on the stm32mp157c-dk2 dev board and power up, nothing happens on the serial port or the units display. Things are working with the card shipped with the unit, so the HW is working.Is there a pre-built SD card image to write to a card to get the v2.0.0 equivalent of what was on the card that came with the dev board?As I'm posting this and scrolling back in my terminal window I notice warnings about sgdisk. Are those fatal? Here is a log of what I tried:```$ ./create_sdcard_from_flashlayout.sh ../flashlayout_st-image-weston/trusted/FlashLayout_sdcard_stm32mp157c-dk2-trusted.tsv [WARNING]: A previous raw image are present on this directory[WARNING]: ../flashlayout_st-image-weston/trusted/../../FlashLayout_sdcard_stm32mp157c-dk2-trusted.raw[WARNING]: would
Is there a way to directly start M4 and run M4 firmware from BootRom.I am aware of the Engineering mode, however it requires the help of a debugger to copy the M4 firmware into the memory and run it. I like to do the same but in stand alone mode.I am also aware that M4 can be started and run M4 firmware using SSBL, however we want the M4 firmware to configure clocks instead SSBL. Some could point out why not then use a M4 based microcontroller instead of the MPU, but we have a specific requirement to boot from BootRom to M4 on the MPU.I am thinking about an idea to store M4 firmware as FSBL with the correct headers on one of the Flash devices (NOR/NAND Flash), once FSBL is stated by bootRom, copy M4 firmware and run it.I have not come across such approach, that is why I like to ask if this is going to be even possible?
Hi all,I am trying to understand this commit [1] in u-boot, which removes the fdt_high variable from the environment for stm32mp1 boards.Before this commit, the FDT was initially loaded from persistent storage to address 0xc4000000, and then used in place:## Flattened Device Tree blob at c4000000 Booting using the fdt blob at 0xc4000000 XIP Kernel Image ... OK Using Device Tree in place at c4000000, end c40160d0After this commit, the FDT is loaded from persistent storage to address 0xc4000000, and then relocated to a different position:## Flattened Device Tree blob at c4000000 Booting using the fdt blob at 0xc4000000 XIP Kernel Image Loading Device Tree to cffea000, end cffffc12 ... OKWhy is the extra relocation needed? What problem does it solve?Thank you,Guillermo [1]: https://github.com/STMicroelectronics/u-boot/commit/ec244f6770454e8fd0bb3a33a36339de53e5f59a
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.