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,I'm looking at the wic file for STM32MP13 and see two metadata partitions for ATF firmware update. I'm wondering how are these partitions secured from access / modifications from non-trusted world? Since write (and optionally read) operation should only be performed from secure world what is the mechanism that prevents doing this from non secure world? Is there any? If so, how is this configured? I'm also curious whether the same mechanism applies to STM32MP2
I'm trying to debug a problem in my system where on rare occasions, a message gets dropped in the M4->A7 direction of RPMsg channels (M4 sends it without error and A7 never sees a message arrive). The project was started a long time ago using an older version of CubeMX and CubeIDE (versions 5.4.0 and 1.7.0 respectively), so as a first step I wanted to update the M4's SDK and tools to the latest versions to make sure it's not a driver issue that's already been fixed (versions 6.8.0 and 1.12.0). After updating the tools and regenerating the code (and resolving a couple of FreeRTOS conflicts since a couple files moved), everything seems to be running except that the RPMsg TTY devices aren't showing up in /dev/. Since getting those devices to show up is basically just init code at the start of main in the M4 and this code works in the older version of the SDK, I was hoping someone could do a quick sanity check of my startup code and make sure it's correct for the latest versions of the
I tried to replace the uImage and .dtb file inside the starter package.First I copied over the kernel and .dtb file.sudo mount -o loop st-image-bootfs-openstlinux-weston-stm32mp1.ext4 /mnt/bootfs sudo cp ../linux-6.1.82/build/arch/arm/boot/uImage /mnt/bootfs/ sudo cp ../linux-6.1.82/build/arch/arm/boot/dts/stm32mp151a-stm32-computer-firmware-mx.dtb /mnt/bootfs sudo umount /mnt/bootfs Then I booted the Linux kernel. See the log file log.txt. It stopped at the USB Hub decleration. So I guess that linux kernel was booted, but not initrd.I tried to boot the system manually via U-boot and this happen.STM32MP> part list mmc 0 Partition Map for MMC device 0 -- Partition Type: EFI Part Start LBA End LBA Name Attributes Type GUID Partition GUID 1 0x00000400 0x000007ff "metadata1" attrs: 0x0000000000000000 type: 8a7a84a0-8387-40f6-ab41-a8b9a5a60d23 (8a7a84a0-8387-40f6-ab41-a8b9a5a60d23) guid: 92f0b426-e174-4bac-9287-019e4f858971 2 0x00000800 0x00000bff "metadata2" attrs: 0x
Background:I'm trying to bring up a custom board with an STM32MP157D and DDR3. When I tried flashing the BSP, I got an error: "ERROR: DDR addr bus test: can't access memory @ 0xc0000004". I decided to try using STM32DDRFW-UTIL to test the DDR before proceeding. I downloaded the code and compiled and debugged the project for an STM32MP157C-DK2. The image sucessfully loaded via the ST-Link in engineering mode and I saw the UART with the expected DDR tool interface. My custom board does not have an ST-Link connection, so I was going to try to flash the image into sysram using USB. I'm still working with the DK2 as a proof of concept.Issue:When I try to flash the image using STM32_Programmer_CLI, the utility does not start. I am using the binary in the Binaries folder of STM32DDRFW-UTIL and trying to flash it with "STM32_Programmer_CLI -c port=usb1 -d STM32MP157C-DK2_DDR_UTILITIES_A7.stm32 0x01 -s 0x01". I get the following output and nothing on the UART:--------------------
I'm getting the following log when trying to boot to a custom DTS. I've already attempted the suggestion mentioned in this st forum post (https://community.st.com/t5/stm32-mpus-products/op-tee-error-tzc-permission-failure-on-new-v5-0-0-sdk/td-p/584339) with no luck.I/TC: Primary CPU switching to normal world bootD/TC:0 tee_entry_exchange_capabilities:101 Asynchronous notifications are disabledD/TC:0 tee_entry_exchange_capabilities:110 Dynamic shared memory is enabledD/TC:0 0 core_mmu_xlat_table_alloc:526 xlat tables used 4 / 10F/TC:? 0 entry_open_session:362 entry_open_sessionF/TC:? 0 entry_open_session:373 uuid: 1880204936 56798 16467F/TC:? 0 tee_ta_open_session:675 uuid: 1880204936 56798 16467D/TC:? 0 tee_ta_init_pseudo_ta_session:296 Lookup pseudo TA 7011a688-ddde-4053-a5a9-7b3c4ddf13b8D/TC:? 0 tee_ta_init_pseudo_ta_session:309 Open device.ptaD/TC:? 0 tee_ta_init_pseudo_ta_session:326 device.pta : 7011a688-ddde-4053-a5a9-7b3c4ddf13b8F/TC:? 0 plat_prng_add_jitter_entropy:73 0x24BDD/T
i am facing the issue like i could not able to access the PWM pinsi want like this only (/sys/class/pwm/pwmchipX/).but i get output like this only. {root@stm32mp1:~# cd /sys/class/pwm/root@stm32mp1:/sys/class/pwm# lsroot@stm32mp1:/sys/class/pwm# ls}Note: i am using qt quick i want to read Pins as a PWM and get back to display.
Spoiler (Highlight to read) Hello,I am trying to configure an ADC channel using IIO library to work in triggered buffer with high frequency (preferably more than 100kHz). I configured ADC and timers as described here (including trigger configuration in kernel device tree) and tested the its performance:https://wiki.st.com/stm32mpu/wiki/How_to_use_the_IIO_user_space_interface Testing MethodI tested the configuration by measuring 100Hz sinusoidal signal made with a function generator at different sampling frequencies. The sampling frequency value was set to 10000Hz in iio user space as displayed in iio_info (important later):attr 0: sampling_frequency value: 10000The signal was measured with the iio_readdev | hexdump command and ploted on a graph Blue is 100Hz, 1Vpp amplitude, 1V DC offset sine (ignore orange).The sine looks good and it takes 10kHz/100Hz=100 samples to display a full sine period, so everything works correctly. The ProblemThe sampling rate was then se
STM32MP157D-DK1https://github.com/STMicroelectronics/oe-manifest.git -b refs/tags/openstlinux-6.1-yocto-mickledore-mp1-v23.11.15DISTRO=openstlinux-weston MACHINE=stm32mp1 source layers/meta-st/scripts/envsetup.shbitbake st-image-westoni2c and USB touchHow do I find a compatible LCD touch screen for STM32MP157D-DK1?Also, I need a guide to set up the driver.I am not sure which of the USB type and I2C type is better in terms of price, reliability, and driver settings.Please, help me.
As the title says, when I add the (with or without "regulator-always-on") vdd: vdd { compatible = "regulator-fixed"; regulator-name = "vdd"; regulator-min-microvolt = <3300000>; regulator-max-microvolt = <3300000>; }; or vdd_ddr: vdd_ddr { compatible = "regulator-fixed"; regulator-name = "vdd_ddr"; regulator-min-microvolt = <1350000>; regulator-max-microvolt = <1350000>; regulator-always-on; }; the boot stops NOTICE: CPU: STM32MP135D Rev.Y NOTICE: Model: MYIR STM32MP135F Board ERROR: nvmem node board_id not found without any further messages. Why? JHi
Hello,I am currently using the STM32MP157D to develop some tests. It seems that a specific U-BOOT has been developed by ST and flashed in the default factory eMMC.On this specific U-BOOT, some self-test commands are interesting.Could it be possible to share the software of these commands in order to re-implement on my u-boot version the "Self-Test-NAND" ?The version is :U-Boot 2019.10-stm32mp-20-01-15-00229-gdffcf0a (Feb 20 2020 - 16:55:29 +0100)Regards,MJ
Hi, I have a board that I designed that's not booting and I am struggling to workout why.I don't see any output on UART4 when booting and I also noticed that openocd reports the program counter as the following which I believe means that its still in the BootROM.pc: 0x0000f738 .I have built the image by using Yocto (St-Image-Core) and flashed it onto an SD Card.I have attached the log file from the ROM Trace analyzer.I do have a design issue where I failed to add a pull down onto OSC_OUT and I am using the HSE in Bypass mode, could this be the reason I am failing to boot into the FSBL when booting from an SD card?
I have used the cube programmer to load fsbl1, fsbl2 and fip.bin onto DDR3 from forced uart boot mode. I am trying to execute the loaded files from RAM itself and get access to the u-boot console.The files i have used were taken from the build directory of core-image-minimal build that was created using yocto.Ive attached the .tsv file i used for the cube programmer.Does anyone know how to make u-boot rub from the RAM?? I've been stuck for days
Hello, I am following the wiki article: https://wiki.st.com/stm32mpu/wiki/STM32MP25_Evaluation_boards_-_Starter_Package, in order to bring up the STM32MP257F-EV1 Development board and I am unable to run the STM32_Programmer_CLI when trying to boot the board. I am able to run it when in my home directory but that's it. The instructions in section 2.1 in the wiki article don't seem to work and I am unsure if I am doing it wrong. Here are the paths to the CLI and the Starter-Package respectively:STMicroelectronics/STM32Cube/STM32CubeProgrammer/bin/STM32_Programmer_CLI /STM32MPU-Ecosystem-v5.1.0/Starter-Package/stm32mp2-openstlinux-6.1-yocto-mickledore-mpu-v24.06.26/images/stm32mp2Any help would be greatly appreciated. Thanks!
Hi, I’m new to the stm32mp15 series and I’ve been trying to convert code over from a previous microcontroller (stm32f429i-disc1) onto my new MPU. I try to read an input voltage value by running the HAL_ADC_GetValue driver but when I run live expressions to read the variable for my adc value, it is just maxed out at whatever I set the resolution to be (i.e., ADC1 resolution is 12 bits so the value is stuck at 4095). I use STM32CubeMX right now, I enabled continuous conversions but I get stuck at this 4095 value every time I debug and run. Any help or suggestions?
Hi, I am having trouble building my ISPU project. When I attempt to build i get 3 errors:1- fatal error: neuton_generated/neuton_user_types.h: No such file or directory ispu line 13, external location: C:\Human_Movements_Recognition_8_float_off_scale_unique\neuton\include\neuton\nn\neuton_nn.h C/C++ Problem2- Description Resource Path Location Typemake: *** [makefile:48: all] Error 2 ispu C/C++ Problem3- Description Resource Path Location Typemake[1]: *** [src/subdir.mk:20: src/main.o] Error 1 ispu C/C++ ProblemI have included neuton_generated already but it doesn't seem to want to find itAny Ideas?
I compiled the linux kernel uImage and corresponding .dtb file with CubeIDE.Then I mounted the st-image-bootfs-openstlinux-weston-stm32mp1.ext4 and changed the extlinux.conf inside the folder /bootfs/mmc0_extlinux to # Generic Distro Configuration file generated by OpenEmbedded MENU BACKGROUND /splash_landscape.bmp TIMEOUT 20 LABEL OpenSTLinux KERNEL /uImage FDTDIR /stm32mp151a-stm32-computer-firmware-mx.dtb INITRD /st-image-resize-initrd APPEND root=PARTUUID=e91c4e10-16e6-4c0e-bd0e-77becf4a3582 rootwait rw console=${console},${baudrate} Then I successfully flashed my emmc0 and U-boot started the linux kernel. I have some thoughts about the UART output log.Does my processor communicate with my PMIC?Why could it not find the /stm32mp151a-stm32-computer-firmware-mx.dtb file at the beginning of the log?Is my Ethernet working? I cannot se any LED-lamp blinking when I plug in the cable, only the orange LED is active, but not blinking.Why doe
MP135 是否具有带双网络端口的裸机程序?客户使用 ThreadX+NetDuoX。
Hi Team, We are currently working on a UAV detection project and are in the process of implementing Fast Fourier Transform (FFT) for signal processing. Our setup includes an ADC with a data rate of 1 MSPS (Mega Samples Per Second). We are looking for a suitable Digital Signal Processor (DSP) that can efficiently handle this data rate and perform real-time FFT processing.Could you please recommend a DSP that would be best suited for our application? Additionally, if there are any available FFT driver files or libraries compatible with the suggested DSP, I would greatly appreciate it if you could provide those references or links.Thank you in advance for your assistance.Best regards,Aravind
Hello, I am using Hyper-V as my VM, since I am on windows, and trying to bring up the STM32MP257F-EV1 development board. I have verified the programmer is installed correctly and have verified that Hyper-V's enhanced mode is running but every time I run the command STM32_Programmer_CLI -l usb it says "No STM32 device in DFU mode connected" I have been following the guide: STM32MP25 Evaluation boards - Starter Package - stm32mpuIs there anything additional I should be doing that I am missing? Any help would be greatly appreciated.
I don't have the knowledge to look at the LCD touch screen specifications to determine if it can be used on my board.I am looking for a 7-inch LCD touch screen that can be used with openstlinux on STM32MP157D-DK1.openstlinux was set up like this:repo init -u https://github.com/STMicroelectronics/oe-manifest.git -b refs/tags/openstlinux-6.1-yocto-micckledore-mp1-v23.11.15repo syncDISTRO=openstlinux-weston MACHINE=stm32mp1 source layers/meta-st/scripts/envsetup.shbitbake -k st-image-westonLinux stm32mp1 6.1.28 #1 SMP PREEMPT Thu May 11 14:04:52 UTC 2023 armv7l GNU/LinuxPlease help me.
I compiled the linux kernel with STM32CubeIDE and notice that the linux kernel vmlinux is about 242 Mb.Why so large?Or do I looking at the wrong folder? I'm standing inside the build folder.
Hello I have built the st-example-image-qt using openstlinux(Openstlinux-5.15-yocto-kirkstone-mp1-v23.07.26) to run a qt application for stm32mp157f-dk2 board.I could run the application the application successfully.It would be very helpful to move forward with my further development, if i could get the clarifications regarding the below mentioned points :1.How to enable window manager support in the example image that i am working with.2.How to implement debugging of QT Application using remote gdb server.3.How to display on application on DSI and HDMI simultaneously. Thanks in AdvanceSrikanth
Hi,I want to create a custom machine for my board. I've found the wiki page "how to create your own machine" but this assumes you create your own layer/machine inside meta-st, but I want my machine to be inside /layers/.I want this outside meta-st because I want to add the machine inside a git repo, meta-st-stm32mp-addons is already a git repo on its own.I want to setup my distribution package the following way, is this possible, and how?repo init -u https://github.com/STMicroelectronics/oe-manifest.git -b refs/tags/openstlinux-6.1-yocto-mickledore-mp1-v23.06.21repo syncgit clone <git server/repo that contains custom layer + machine> ./layers/meta-mylayer/DISTRO=openstlinux-weston MACHINE=my-custom-machine(inside meta-mylayer) source layers/meta-st/scripts/envsetup.shbitbake st-image-core
I would like to only use cgroup v2 and would like to modify the kernel cmdline boot arguments as follows:, . I searched internet and suggestion is to useadd systemd. unified_cgroup_hierarchy=1 under /etc/default/grub , followed by sudo update-grub .My current command line is:cat /proc/cmdlineroot=PARTUUID=e91c4e10-16e6-4c0e-bd0e-77becf4a3582 rootwait rw console=ttySTM0,115200root@stm32mp1:/dev# stat -fc %T /sys/fs/cgrouptmpfs**cgroup v1 and cgroup v2 enabled.I added to new file /etc/default/grouproot@stm32mp1:/dev# cat /etc/default/grubGRUB_CMDLINE_LINUX="$GRUB_CMDLINE_LINUX systemd.unified_cgroup_hierarchy=1"I tried update-grub and grub2-mkconfig, but both commands did not executeroot@stm32mp1:/dev# update-grub-bash: update-grub: command not foundroot@stm32mp1:/dev# grub2-mkconfig-bash: grub2-mkconfig: command not foundroot@stm32mp1:/dev# echo $PATH How do I update GRUB on STM32MP157F-EV1 system?
NOTICE: CPU: STM32MP157FAC Rev.ZNOTICE: Model: STMicroelectronics STM32MP157F-DK2 Discovery BoardINFO: PMIC version = 0x21INFO: Reset reason (0x14):INFO: Pad Reset from NRSTINFO: FCONF: Reading TB_FW firmware configuration file from: 0x2ffe2000INFO: FCONF: Reading firmware configuration information for: stm32mp_ioINFO: Using SDMMCINFO: Instance 1INFO: Boot used partition fsbl1NOTICE: BL2: v2.8-stm32mp1-r1.0(debug):lts-v2.8.6-dirty(ff0bd5f9)NOTICE: BL2: Built : 17:57:15, Apr 21 2023INFO: BL2: Doing platform setupINFO: RAM: DDR3-DDR3L 16bits 533000kHzINFO: Memory size = 0x20000000 (512 MB)INFO: BL2: Loading image id 1INFO: Loading image id=1 at address 0x2ffff000INFO: Image id=1 loaded: 0x2ffff000 - 0x2ffff1eaINFO: FCONF: Reading FW_CONFIG firmware configuration file from: 0x2ffff000INFO: FCONF: Reading firmware configuration information for: dyn_cfgINFO: FCONF: Reading firmware configuration information for: stm32mp1_firewallINFO: BL2: Loading image id 4INFO: Loading image id=4 at addre
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.