Get ready for the STM32 Summit 2026 | Online, November 3
Ask questions and find answers on STM32 microprocessors, including hardware, power, DRAM, flashing, interfacing, device tree, and peripherals.
Most recent activity
Hi, i dont know if it is a stupid question or not but anyways, I was following the STM32MP157A-DK2 tutorial for developing on ARM Cortex A7 i maked the example given for hello_world.c with given makefike. It works fine on my linux pc but the borad i cant run it on the board. it gives this error every time. @@@@�0hello_world: line 1: can't open @8 0 ��: no such file ./gtk_hello_world: line 1: ./gtk_hello_world: line 6: : not found ./gtk_hello_world: line 1: �qXX���+�l��: not found ELF: not found ./gtk_hello_world: line 1: ?h?p?x?�?��?: not found ./gtk_hello_world: line 6: ./gtk_hello_world: line 2: �? �? �?�?�?�?��H�H��/H��t��H���5�/��%�h���������h���������h���������h��������h��������h��������h��������h��q��������a������h: not found can't open-�8?8@0 @00*@0�: no such file./gtk_hello_world: line 3: ��A������h ��1������h ��������h��������h�����������%�.D����%.D����%�-D����%�-D����%�-D����%�-D����%�-D����%�-D����%�-D����%�-D����%�-D����%�-D����%�-D����%�-D����%�-D����%�-D����%�-D�H�=
Hello totgehet,i wanted to build a Kernelmodule for my Projekt so i started to install the SDK and wrote a simple Programm to see if i can make a Programm in the userspace. This works fine. My next step was to Building and deploying the Linux kernel. For that I followed the installation https://wiki.st.com/stm32mpu/wiki/STM32MP1_Developer_Package. But when I want to Compile and install on a build directory I get this error from the makefil:make ARCH=arm uImage vmlinux dtbs LOADADDR=0xC2000040 O="$PWD/../build"make[1]: Entering directory '/opt/st/stm32mp1/3.1-openstlinux-5.4-dunfell-mp1-20-11-12/stm32mp1-openstlinux-5-4-dunfell-mp1-20-11-12/sources/arm-ostl-linux-gnueabi/linux-stm32mp-5.4.56-r0/build' GEN Makefilescripts/kconfig/conf --syncconfig Kconfig GEN Makefile SYSHDR arch/arm/include/generated/uapi/asm/unistd-common.h SYSHDR arch/arm/include/generated/uapi/asm/unistd-oabi.h SYSHDR arch/arm/
HelloI got a problem accessing a Rest point server.In what follows I will give you the verbose output on my STM32MP1 (Running under Buildroot)And the second one my Laptop (Ubuntu 18.04)I don't understand why is it working on one and not on the secondThank you
..
Hi, I tried to follow the example in the youtube workshop, moving a pwm timer to the a7 side. I was able to create a dts file with cube mx but when running make to build the dtb i get"reference to non existent node or label "ethernet_mac_address""Is it possibly some mismatch between versions of cube and the openst dist?Thanks
Dear STM32 MPU Community,We are please to announce that New MP1 Ecosystem V2.1.0 is available. Please check out the Release note on STM32 Wiki to get complete description of content and new features. Please pay attention to the following : Ubuntu 20.04 supportComplete ecosystem has been validated with Ubuntu 18.04 and Ubuntu 20.04Ubuntu 16.04 is no longer validated and so recommended. PC_prerequisite has been updated accordingly X11 sample image was removed from OpenSTLinux distribution as X11 will be tagged as a future "Abandonware" versus Waylandsee [link]QT eglfs sample image was improved to reach better performancesQT wayland sample image was added: more relevant for the OpenSTLinux distributionsee How_to_build_and_use_an_SDK_for_QTNew Cube Firmware package STM32CubeMP1-v1.3.0, General updates to fix known defects and enhancements implementation for HAL, LL, CMSIS, BSPNew SMARTCARD HAL driverSTM32CubeMX New Boards 800 MHz support - STM32MP157
Hi,I need to supply external VREF for ADC which is assigned to M4 runtime context. Now when I start M4 firmware VREFBUF is activated (I'm measuring 2.5V on AVDD pin on DK2 kit). I suppose that I need to edit device tree, but I'm not sure. Can I for example set 3v3 supply in device tree and then connect wire between 3v3 and AVDD on DK2 board? How this can be done?Thanks in advance,Nenad
when i using a 100M network cable in a gigabit network,It should be recognized as a 100M network under normal circumstances,But STM32MP1 is recognized as Gigabit,at this time the network is useless,led is light but not blink,I changing cable to a Gigabit Ethernet cable solved the problem,I am using stm32mp157c-dk2
Hello,My goal is to harden my Hardware security. I am using an STM32MP157C and buildroot as main distro.What exactly do I need to know when it comes to security? I am dealing with the hardware part and I am working on an IoT project.My colleague takes care of the server Tel. We have already successfully transferred sensor data to the server. But I don't think I can improve network security from a hardware point of view, do I? I don't have access to the server.I want to secure my hardware, but in my mind I don't see many options (not my domain) besides managing file permissions and isolating some personal scripts in another user profile.For hardware security, we can start with a hardened kernel that custom compiles with priority over priority. Then we can have the root encrypted using LUKS or another option out of many. Data encryption before sending it to a server may be considered here. I also can use strong passwords and use a password manager like pass or even the Gnome keyring.A nu
Are there any specific kernel config options to get the console to work on UART4?I feel like I've tried every permutation of build, DT, and loading configuration at this point.I'm working on a custom board with a new 'machine' building on the Distribution packageI have the choosen node in the Device Tree with stdout-path set to the aliases uart4, deubg UART options enabled along with early printf, I tried disabling all display and touchscreen options.The output is correctly directed for u-boot and tf-a.I was able to configure and attach the debugger and the kernel appears to be running.
I have a custom board I made with the STM32MP1 and I seemed to have royally messed up the clock circuit. I have an ASDMB-24.000MHZ-LC-T clock chip generating a square wave clock but HSE_OUT is being pulled high which puts the STM32MP1 into analog-bypass mode. The chip does not seem to be booting to the point where I can access USB or UART DFU mode. UART lines are both low and I would expect the TX line to be high until a start bit is sent. I am assuming this is because the chip is not getting clocked properly. Looking to the experts to tell me if this really is the case or if I am chasing a red herring and it should work OK on analog-bypass with a square wave clock. I have attached a photo of the clock signal, best I have right now but I can get a better one later if it's required. I plan on attempting to perform some board surgery to cut the trace pulling the HSE_OUT high and tie it low but was looking for some input before I go do that. PA13 is low as well which I would expect to be
Hi AllWhen building "Eco system V2.1.0" distribution of Custom Board based on STM32MP151C chip, there is a problem that devicetree symbolic link is not created.Symbolic link of custom board devicetree is not created in "tmp-glibc/work-shared/stm32mp1-fiscal/kernel-source/arch/arm/boot/dts" folder."TF-A" and "U-Boot" also do not create symbolic link of custom board device tree.Due to the above, an error occurs because there is no "xxxxxxx.dtb" file when building with the "bitbake st-image-core" command.Please let me know if there is a way to fix it without manually creating the symbolic link.Thanks and regardsMachilus
Hi, I am currently looking at how to enable a GPIO pin on the M4 with the MP157A-DK1 kit. In the datasheet it is unclear to me how I can assign the gpio pin specifically to one of the two processors (A7 or M4) or is this not necessary?Thanks, Rens
Helloi'm trying to get started with the STM32MP1 env, and I'm having some issues building the trusted firmware boot image, after following the steps from: https://wiki.st.com/stm32mpu/wiki/STM32MP15_TF-AI'm, building it with the following commands, on the v2.2-stm32mp branch, with gcc version 9.3.0 (Ubuntu 9.3.0-17ubuntu1~20.04) , no changes on the git branch:make distclean make CROSS_COMPILE=arm-linux-gnueabihf- ARCH=aarch32 ARM_ARCH_MAJOR=7 PLAT=stm32mp1 DTB_FILE_NAME=stm32mp157a-dk1.dtb FDT_SOURCES=fdts/stm32mp157a-dk1.dts DEBUG=1 STM32MP_SDMMC=1 dtbs make CROSS_COMPILE=arm-linux-gnueabihf- ARCH=aarch32 ARM_ARCH_MAJOR=7 PLAT=stm32mp1 DTB_FILE_NAME=stm32mp157a-dk1.dtb FDT_SOURCES=fdts/stm32mp157a-dk1.dts DEBUG=1 STM32MP_SDMMC=1I can see the following messages on the serial console:NOTICE: CPU: STM32MP157AAC Rev.B NOTICE: Model: STMicroelectronics STM32MP157A-DK1 Discovery Board NOTICE: Board: MB1272 Var1.0 Rev.C-01 INFO: Reset reason (0x15): INFO: Power-on Reset (rst_po
I am installing all of the prerequisites and have some issues. This is on Windows 10 running VirtualBox with a Linux environment running Ubuntu 20.04.1 LTS. Everything seems relatively smooth but some of the apt-get commands don't seem to work, specifically:sudo apt-get updateOKsudo apt-get install gawk wget git-core diffstat unzip texinfo gcc-multilib build-essential chrpath socat cpio python python3 python3-pip python3-pexpect xz-utils debianutils iputils-pingOKsudo apt-get install libsdl1.2-dev xtermOKsudo apt-get install make xsltproc docbook-utils fop dblatex xmltoOKsudo apt-get install python-gitReading package lists... DoneBuilding dependency tree Reading state information... DonePackage python-git is not available, but is referred to by another package.This may mean that the package is missing, has been obsoleted, oris only available from another sourceHowever the following packages replace it: python-git-docE: Package 'python-git' has no installatio
I executed the following command in linux system:make -f Makefile.sdk all TF_A_CONFIG=trusted FTA_DEVICETREE=stm32mp15c-ev1but there is the following fault information:/bin/sh: 22: stm32wrapper4dbg: not foundI have a try to install it, this is not successful. (sudo spt-get install stm32wrapper4dbg)How to fix this question?
Hello I am trying to curl from a server using this command from my STM32MP157C-DK2curl -i -k -X POST -H "Content-Type: application/json" --data '{ "id":"2","timestamp":"200","data":"100"}' https://dv7knsjzph.execute-api.eu-central-1.amazonaws.com/prod/boxtronic-devices/2/data/but I am gettingcurl: (7) Failed to connect to dv7knsjzph.execute-api.eu-central-1.amazonaws.com port 443: No route to hostvi /etc/hosts/ gives me:127.0.0.1 localhost 127.0.1.1 buildrootHow can I do that. Thank you
Is it possible to boot over UART on the STM32MP157C-DK2? I set the BOOT pins as following:BOOT0 - OFFBOOT1 - OFFI am using the FT232 UART-USB Adapter and have connected the following pins:UART GND - CN16 GNDUART VCC - CN16 3.3VUART TX - CN14 ARD_D1UART RX - CN14 ARD_D0Here is the CubeProgrammer command and its output:´´´$ STM32_Programmer_CLI -c port=/dev/ttyUSB0 ------------------------------------------------------------------- STM32CubeProgrammer v2.5.0 -------------------------------------------------------------------Serial Port /dev/ttyUSB0 is successfully opened.Port configuration: parity = even, baudrate = 115200, data-bit = 8,  
Hello,No dev kit is available for STM32MP151x microprocessors, do you know if it is possible to replace the STM32MP157 chip by a STM32MP151 one on the STM32MP157A-DK1 ?I have read that STM32MP1 are pin to pin compatible, but I want to be sure and if someone has already done this, that would be interesting.Thank you in advance.Charles Blanchard
I am working on STM32MP1 DK2 as a Hobby Project, can anyone suggest me a complex project to get to a linux + RTOS based project developement. I want to get an hands on idea on RTOS + Linux project. I saw a video of Zephyr project with Intel which ran linux and RTOS by partitioning SD Card, I would like to work on such a complex project. Please help me with good resources on such projects?
We have a custom board based on the STM32MP157 series, and are trying to get the TF-A boot chain working. We have downloaded and compiled the linux kernel, u-boot, and arm-trusted-firmware for the STLinux ecosystem v2. We can boot to u-boot, and the kernel decompresses and begins running, but it appears that none of the peripheral clocks are accessable (I2C, SPI, SDMMC etc).My question is what part of the boot chain is repsonsible for initilizeing the non-secure rtt clocks? Is it uboot? I don't see any initialization there. I don't think it's the kernel, but please correct me if I am wrong. I see some Cortex M4 code generated by the CubeMX took, is it REQUIRED that the M4 initialize the non-secure rtt clocks?
Hi AllIf you create a distribution with RTL8723BU enabled in the Linux kernel and boot, you will see the error message below.[ 30.102790] usb 2-1.2: 1f8: ff ff ff ff ff ff ff ff[ 30.106213] usb 2-1.2: RTL8723BU rev E (SMIC) 1T1R, TX queues 3, WiFi=1, BT=1, GPS=0, HI PA=0[ 30.118408] usb 2-1.2: RTL8723BU MAC: 34:c9:f0:8d:fc:72[ 30.124300] usb 2-1.2: rtl8xxxu: Loading firmware rtlwifi/rtl8723bu_nic.bin[ 30.131982] usb 2-1.2: Direct firmware load for rtlwifi/rtl8723bu_nic.bin failed with error -2[ 30.141236] usb 2-1.2: request_firmware(rtlwifi/rtl8723bu_nic.bin) failed[ 30.146569] usb 2-1.2: Fatal - failed to load firmware[ 30.155477] rtl8xxxu: probe of 2-1.2:1.2 failed with error -11If you search for the "rtl8723_nic.bin" file on the entire Linux system, it doesn't exist.Is there any other way to use RTL8723BU in "Ecosystem V2.0.0"?The method shown on the ST WiKi site is not a solution as it assumes
Hello,I try to build the kernel for the first time on my Ubuntu 18.04 new install.Following the step by step Wiki build kernel.make ARCH=arm uImage vmlinux dtbs LOADADDR=0xC2000040The compilation runs fine for many files until this step.Thank you by advance for any suggestion.Regards*****************drivers/clk/clk-stm32mp1.c:1925:12: error: 'PCLK1' undeclared here (not in a function); did you mean 'PCLK'? 1925 | DIV_TABLE(PCLK1, "pclk1", "ck_mcu", CLK_IGNORE_UNUSED, RCC_APB1DIVR, 0, | ^~~~~drivers/clk/clk-stm32mp1.c:1260:9: note: in definition of macro 'DIV_TABLE' 1260 | .id = _id,\ | ^~~drivers/clk/clk-stm32mp1.c:1928:12: error: 'PCLK2' undeclared here (not in a function); did you mean 'PCLK'? 1928 | DIV_TABLE(PCLK2, "pclk2", "ck_mcu", CLK_IGNORE_UNUSED, RCC_APB2DIVR, 0,
Hi, I'm trying to generate secure boot keys using native linux tools. I assumed the secureboot format would be documented, but all I found was links to STM32MP_KeyGen.I can use openssl to generate ECDSA keys, and also get publik keys out. I am at teh point where I can take the private key from STM32MP_KeyGen, and convert it to a public key:openssl ec -in private-key.pem -pubout -out public-key.pemHowever, what I can't figure out is how to get the SHA256 hash of the public key in a way that I can burn in the OTP fuses. openssl hash functions give a different result than the one generated by STM32MP_KeyGen. What is the format that the chip expects?
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.