Ask questions and find answers on STM32 microprocessors and dedicated embedded software solutions, such as Yocto SDK, Qt, and OP-TEE.
Most recent activity
Hi, everyone. :)I am planning to make communication system with stm MCU.AND, at the same time, I should boot up 'Linux' OS on stm MCU, for matching with other systems.I'm just wondering that stm MCU can carry on Linus OS.If stm MCU can use Linux OS, Which MCU is suitable for debugging and operating?Please, give wisdom.Thank you!
While learning how eMMC partitioning works, I issued a mmc create gp command from Linux and since then I cannot flash a new image on a EV1 board. The error message I get is:Message from Embedded Flash Loader : ssbl (0x6): invalid address 0x80000 (min=0x400000)I can boot using the sdcard and access eMMC from there, I need to know how to restore eMMC so it will accept flashing commands.I could recreate partitions using the gpt command on u-boot and "dd" ext4 fs images to the partitions. The boot process start on the eMMC but since UUIDs don't match what is in the image, it does not finish booting. Which leads back to cube programmer and being unable to flash a new linux image.My question is essentially how to put eMMC back in a state I can flash it.Regards.
I'm working on STM32MP157a-dk1I followed the link https://wiki.st.com/stm32mpu/wiki/STM32MP1_Distribution_Package and used these steps to create a imageSteps:PC $> cd <working directory path>/Distribution-PackagePC $> mkdir openstlinux-5.10-dunfell-mp1-21-03-31 PC $> cd openstlinux-5.10-dunfell-mp1-21-03-31PC $> repo init -u https://github.com/STMicroelectronics/oe-manifest.git -b refs/tags/openstlinux-5.10-dunfell-mp1-21-03-31PC $> repo syncPC $> DISTRO=openstlinux-weston MACHINE=stm32mp1-disco source layers/meta-st/scripts/envsetup.shPC $> bitbake st-image-westonbuild creates the image openstlinux-5.10-dunfell-mp1-21-03-31/build-openstlinuxweston-stm32mp1-disco/tmp-glibc/deploy/images/stm32mp1-disco/flashlayout_st-image-weston/trusted/FlashLayout_sdcard_stm32mp157c-dk2-trusted.tsvbut it doesn't create image for stm32mp157a-dk1.how to make image for stm32mp157a-dk1 with additional debian packages
I would like to run Azure RTOS application on Cortex-M of STM32MP1 SOC. Is Azure RTOS available for Cortex-M of STM32MP1 devices? any example code?
Hello everyone, i want to onfigure my stm machine on yocto using the meta-st layer:i want to make two root partitions on the sd card (since i'm using the stm32mp157c-dk2)the root partitions i need to integrate rauc updater in my machine.since i installed rauc the generated st-image-weston won't boot anymore. And i think it's because of the root partitions. (rauc uses two partitions to installl an update on the first one and boot from the second one).Please help me. Thank you
Hello,I'm trying to define some GPIOs as simple input/output for STM32MP157. I'm using the STM32CubeMX tool, but I can't find where to assign the GPIOs to A7 or M4. In the pinout view, I correctly set them as input/output but when I generate the code, I don't find their definition, nor in the device tree .dts, neither in the m4 code (only clock enable is present).Thanks
Hello, I'm trying to create the Distribution package for my STM32MP157D-DK1. When I first installed and ran, it said it was running, It stayed that way for the afternoon. I let it 'run' overnight to the same line. I ^C'd out of it. Since then I get this (I just gave the last try)NOTE: Retrying server connection (#7)... (Traceback (most recent call last): File "/mnt/c/projects/Distribution-Package/openstlinux-5.10-dunfell-mp1-21-03-31/layers/openembedded-core/bitbake/lib/bb/main.py", line 438, in setup_bitbake server = bb.server.process.BitBakeServer(lock, sockname, configuration, featureset) File "/mnt/c/projects/Distribution-Package/openstlinux-5.10-dunfell-mp1-21-03-31/layers/openembedded-core/bitbake/lib/bb/server/process.py", line 407, in __init__ self.sock.bind(os.path.basename(sockname))OSError: [Errno 95] Operation not supported)WARNING: /mnt/c/projects/Distribution-Package/openstlinux-5.10-dunfell-mp1-21-03-31/layers/openembedded-core/bitbake/lib
Hello,I am going through building the base Android Distro for use in the STM32MP1 Discovery board, when I go to call the disco i.e. lunch aosp_disco-eng I get the error listed in the question.When I call lunch aosp_eval-eng then I get no error and we begin building. Do I need to custom generate a make file for the discovery board of the STM32MP1? Or am I forgetting to download a file?Best regards and thank you for assisting with this!Oscar
I'm a newbie with embedded topics, for educational purposes I'm trying to set up my ST32MP157C-DK2 using Buildroot.Using menuconfig I pointed Kernel, TF-A and U-boot to the latest label releases of ST forked repos. But it did not work because it asked for FIP image. I enabled FIP image using menuconfig, but building fails. After investigating a bit, I realized Buildroot is missing a value for the variable BL33_CFG, which from some documentation I understand it should be set to the U-Boot dtb.Looking at the code and makefiles I couldn’t find a properly supported pattern for this, so I have made few changes: Buildroot to copy u-boot.dtb to the output folder, and set from menuconfig an additional variable for ARM_TRUSTED_FIRMARE: BL33_CFG=$(BINARIES_DIR)/u-boot.dtb.and also defined BR2_TARGET_ARM_TRUSTED_FIRMWARE_UBOOT_BL33_IMAGE=�?u-boot-nodtb.bin�? Now building succeed without issues apparently.The next step would be to flash using STM32CubeProgrammer, I use this tsv file:———– #
Hi,I'm interested in all possible mechanisms of M4 waking A7. I know that this can be done with virtual UART and GPIO pins (6 of them if I'm right), but are there other ways to do it?Nenad
Moreover, when I play the demo video, core usage reaches up to 70%, so is the GPU really working? The blacklist file:root@stm32mp1:~# cat /etc/modprobe.d/blacklist.conf blacklist etnavivDmesg:root@stm32mp1:~# dmesg | grep galcore [ 19.326759] galcore: loading out-of-tree module taints kernel.Lsmod:root@stm32mp1:~# lsmod | grep galcore galcore 319488 6Core usage while playing video:10:56:40 CPU %usr %nice %sys %iowait %irq %soft %steal %guest %gnice %idle 10:56:41 all 78.92 0.00 12.43 0.00 0.00 0.00 0.00 0.00 0.00 8.65 10:56:41 0 82.18 0.00 16.83 0.00 0.00 0.00 0.00 0.00 0.00 0.99 10:56:41 1 75.00 0.00 7.14 0.00 0.00 0.00 0.00 0.00 0.00 17.86Thanks
CubeMX generates pinctrl bindings inside ltdc node, while here : https://wiki.st.com/stm32mpu/wiki/LTDC_device_tree_configuration pinctrl bindings reside inside panel node
I'm shopping for MCU / MPU hybrid processors like the STM32MP1, targeting applications that need Ethernet connectivity to both the MCU and the MPU. Simultaneous connectivity would be easiest to plan for, but selectable connectivity might also work.I would like to understand the topology of the Ethernet connection within the STM32MP1 among the Cortex-M and Cortex-A. I've scoured all of the STM32MP1 documentation and can find information only about the Ethernet component itself, and nothing on how it can be assigned or shared among the integral Cortex-M and Cortex-As. The STM32MP1 product introduction states that "most peripherals can be allocated to either the Cortex-A7 or Cortex-M4 cores". If this applies to the Ethernet MAC, does that mean that it can be allocated to only one of these at a time, not both? Can the allocation be changed on a running system, and does this require a reboot? Where is the mechanism for allocation documented?If the Ethernet interface is allocated to the Cort
hi all ,i have a situation,1. external supply vdd given to cpu, with application running on it2. usb-otg is connected from computer to stm32mp1 which provides v5.3. power off/take off external power supplyideally unit should be OFF, but CPU is getting supply from PC-computer, has any one have suggestion ?how to make only power on and off via external board supply only after application running?
1) Where can I get information on these GPIOs ?2) Can I safely reassign, say GPIOz ?https://github.com/MYiR-Dev/myir-st-linux/blob/develop/arch/arm/boot/dts/stm32mp15xxac-pinctrl.dtsi
Hi, Please, I still trying all the ways to have Perl so far I know I should recompile it but using the toolchain I having errors out of the box.echo ${CONFIGURE_FLAGS}--target=arm-ostl-linux-gnueabi --host=arm-ostl-linux-gnueabi --build=x86_64-linux --with-libtool-sysroot=/home/boaretti/Development/stm32/DeveloperPackage/SDK/sysroots/cortexa7t2hf-neon-vfpv4-ostl-linux-gnueabiFollow the error when using ./configure ${CONFIGURE_FLAGS}Configuring primary perl executable for arm-ostl-linux-gnueabi (arm-ostl-linux-gnueabi)Checking perl version ... perl5-5.30.1Checking for cc ... ERROR: Supplied arm-ostl-linux-gnueabi-gcc -mthumb -mfpu=neon-vfpv4 -mfloat-abi=hard -mcpu=cortex-a7 --sysroot=/home/boaretti/Development/stm32/DeveloperPackage/SDK/sysroots/cortexa7t2hf-neon-vfpv4-ostl-linux-gnueabi is not usableERROR: configure --mode=target failedAny suggestion ?Thank You so much !
Hi All,Please I`m working on a project that uses kvssink ( Aws Kinesis Gstreamer Plugin) that project uses log4cplus and openssl what uses Perl. During the cross compilation there are many perl modules missing from the SYSROOT what is the latest DevelopmentPackage . In fact checking the SYSROOT folder the files and modules are really missed. Those files are present on the DistributionPackage I had used to populate my STM32MP157C-DK2. So, finally the question...Why those files are missing if the Perl is installed on the DevelopmentPackage ?How can add / install those files to the DevelopmentPackage Sysroot ?Thank You All !Fabio Boaretti dos Santos
Hi,i´m using a stm32mp157-dk2 and want to increase the size of the rootfs partition to 2GB.To create the image follwed the instructions from https://wiki.st.com/stm32mpu/index.php/STM32MP1_Distribution_Package#Installing_the_OpenSTLinux_distribution .Before running the bitbake command changed as suggested in https://community.st.com/s/question/0D53W00000EaFPwSAN/rootfs-size-increasing-on-avenger961) /meta-st/meta-st-stm32mp/conf/machine/include/st-nachine-common-stm32mp.incIMAGE_ROOTFS_MAXSIZE ?= "2097152" ROOTFS_PARTITION_SIZE ?= "2097152"2) /meta-st/meta-st-stm32mp/recipes-devtools/sdcard-raw-tools/sdcard-raw-tools/create_sdcard_from_flashlayout.shDEFAULT_RAW_SIZE=4096 DEFAULT_ROOTFS_PARTITION_SIZE=2097152Then while running the bitbake command an error showed up "The initramfs size 181612 (K) exceeds INITRAMFS_MAXSIZE: 131072 (K) You can set INITRAMFS_MAXSIZE a larger value.... ". To avoid this error i increased INITRAMFS_MAXSIZE to 262144 in layers/openembedded-core/meta/conf/bitbak
I was planning on using the STM32MP157A-DK2 to drive a three lane DSI display but the Microcontroller only supports two lanes..
Hi,I have already post a similar issue in the previous post.I'm using initramfs shell using initramfs-framework in Yocto environment.I found that watchdog reboots after some time (the default is 32 seconds) if the initramfs doesn't fully boot the system by entering systemd.The weird thing is though, this happens even WATCHDOG_HANDLE_BOOT_ENABLED is set correctly.According to the source code of watchdog_dev.c in Linux Kernel if WATCHDOG_HANDLE_BOOT_ENABLED=y is set the kernel watchdog thread should handle watchdog correctly until a userspace program (systemd?) takes over /dev/watchdog. However, watchdog still reboots the board.https://elixir.bootlin.com/linux/v4.14/source/drivers/watchdog/watchdog_dev.c#L1124I set similar yocto environments (with WATCHDOG_HANDLE_BOOT_ENABLED=y) in Raspberry Pi 3 and Beaglebone Black, and their kernel seems to handle watchdog correctly as they don't reboot in initramfs environment for a long time. Only STM32MP1 seems to have problems with watchdog.
Hello,How to install a USB printer support? I've tried apt-get install cups but this no work. Thanks,Alex.
We are using the STM32MP15-ecosystem-v2.0.0 on an EV1 board.We need to disable the sdmmc1 / sdmmc2 nodes in the DT, so we are adding the following at the end stm32mp157c-ev1.dts:&sdmmc1 { status = "disabled"; }; &sdmmc2 { status = "disabled"; };However this results in a kernel crash, apparently related to the NAND code.I am attaching (part of) the kernel traces here:[ 3.906739] ubi0: attaching mtd3 [ 6.876347] ubi0: scanning is finished [ 6.893628] ubi0: attached mtd3 (name "UBI", size 1018 MiB) [ 6.897839] ubi0: PEB size: 262144 bytes (256 KiB), LEB size: 253952 bytes [ 6.904740] ubi0: min./max. I/O unit sizes: 4096/4096, sub-page size 4096 [ 6.911450] ubi0: VID header offset: 4096 (aligned 4096), data offset: 8192 [ 6.918459] ubi0: good PEBs: 4068, bad PEBs: 4, corrupted PEBs: 0 [ 6.924558] ubi0: user volume: 6, internal volumes: 1, max. volumes count: 128 [ 6.931778] ubi0: max/mean erase counter: 2/0, WL threshold: 4096, image sequence number: 404136786 [ 6.940914]
I am trying to enable some GPIO as external interrupts and have run the GPIO example where the user button is set as an interrupt. Is there any resources that show what GPIO can be used as external interrupts? For example, I would like to set one of the Arduino GPIO as an external interrupt pin if possible.
Hello again dark electronics wizards.I've been looking for some documentation about how to use an external flash memory with my stm32 designs.Is there any magic way to do this? Or could anyome point me to the right way?My goal is to add a qspi controlled flash chip instead of a sd card for my mass storage usb thing.Many thanks in advanceCheers
I have read in the wiki that the xlinux packages for ai inference and etc are only for evaluation purposes. I need to have more clarifications so to decide to use it in our product! Is there a coming release of software ready for production for example.
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.