Ask questions and find answers on STM32 microprocessors and dedicated embedded software solutions, such as Yocto SDK, Qt, and OP-TEE.
Most recent activity
Hello everyone,I'm getting yocto build for STM32MP1 mickledore. There is no problem with compilation. The images were produced without any problems. The system is up but I get the following error while generating the SDK. ERROR: core-image-minimal-1.0-r0 do_populate_sdk: Could not invoke dnf. Command '/home/faruk/Desktop/projects/801.01/SOFTWARE/801.01_plnx/tmp/work/stm32mp1-poky-linux-gnueabi/core-image-minimal/1.0-r0/recipe-sysroot-native/usr/bin/dnf -v --rpmverbosity=info -y -c /home/faruk/Desktop/projects/801.01/SOFTWARE/801.01_plnx/tmp/work/stm32mp1-poky-linux-gnueabi/core-image-minimal/1.0-r0/sdk/image/etc/dnf/dnf.conf --setopt=reposdir=/home/faruk/Desktop/projects/801.01/SOFTWARE/801.01_plnx/tmp/work/stm32mp1-poky-linux-gnueabi/core-image-minimal/1.0-r0/sdk/image/etc/yum.repos.d --installroot=/home/faruk/Desktop/projects/801.01/SOFTWARE/801.01_plnx/tmp/work/stm32mp1-poky-linux-gnueabi/core-image-minimal/1.0-r0/sdk/image --setopt=logdir=/home/faruk/Desktop/projec
Hello,I am trying to bring up my custom board with STM32MP157F largely inspired by STM32MP157F-DK2 board but with a dual RAM configuration.I am having a Panic error after ROM boot which states in the line before an error related to "fdt_counter_get", a function that I have no idea what it does and I cannot seem to find where it comes from, anywhere on internet or in my files.I have looked at the usual troobleshooting guidelines and I have no difference with discovery kit devictree configuration regarding HSE (oscillator bypass), I2C4 and PMIC (although I removed some unused configuration for HDMI or audio which I do not have in my board).Here are the logs I get on UART console during boot. Thank you for your help.NOTICE: CPU: STM32MP157FAA Rev.ZNOTICE: Model: STMicroelectronics STM32MP157F-EV1 STM32CubeMX board - openstlinux-6.1-yocto-mickledore-mp1-v23.06.21INFO: PMIC version = 0x21INFO: Reset reason (0x15):INFO: Power-on Reset (rst_por)INFO: FCONF: Reading TB_FW firmware configuratio
So I got the basic yocto build working for the STM32MP157C-DK2 and have been able to modify it to add/ remove/ modify features without any problems both st-image-core and st-image-weston.Then I come to do a custom machine and add it to the build by following:https://wiki.st.com/stm32mpu/index.php/How_to_create_your_own_machineThis build runs until I get the following error:arch/arm/dts/.stm32mp1-test.dtb.pre.tmp:14:10: fatal error: stm32mp157.dtsi: No such file or directory| #include "stm32mp157.dtsi"| ^~~~~~~~~~~~~~~~~| compilation terminated.I have a feeling I have missed something simple but any advice greatly appreciated.
Hi,I have a small problem with the RTC on STM32MP153. From hardware point of view I'm able to see sine waveform on the resonator 32.768kHz which is connected to PC14, PC15.I use the Openstlinux - kirkstone (openstlinux-5.15-yocto-kirkstone-mp1-v22.11.23).I configure rtc section only in tfa file clocks { /* USER CODE BEGIN clocks */ clk_lsi: clk-lsi { clock-frequency = <32000>; }; clk_hsi: clk-hsi { clock-frequency = <64000000>; }; clk_csi: clk-csi { clock-frequency = <4000000>; }; clk_hse: clk-hse { clock-frequency = <24000000>; }; /* USER CODE END clocks */ /* USER CODE BEGIN clk_lse */ clk_lse: clk-lse { st,drive = < LSEDRV_MEDIUM_HIGH >; #clock-cells = <0>; compatible = "fixed-clock"; clock-frequency = <32768>; }; /* USER CODE END clk_lse */ /* USER CODE BEGIN clk_hse */ /* USER CODE END clk_hse */ }; ... &rcc{ status = "okay"; /* USER CODE BEGIN rcc */ /* USER CODE E
Hello,How to clean all demo applications from OpenSTLinux, which came with the starter-package?
Dear All,I want to add some packages like zip, nmap, net-snmp, gdb and apache2 to default package.Could you guide how to add some packages to default package to build kernel?
Hi, "I'm using an STM32MP157F-DK2. I'm struggling with the serial connection between my Linux host and my target board (STM32MP157). I'm using the command 'minicom -D /dev/ttyACM0', but I've been waiting for more than 2 hours for the connection to be established, yet it's still not connected.What can I do to connect to the target device?"
hello@SL2 I am configuring with QuadSPI Dual and encountering an issue where it remains in a busy state and does not resolve.The circuit is not properly connected yet, so I am currently only testing the pin output.I want to output to Bank2 IO. I initialized it as follows: static void MX_QUADSPI_Init(void){ hxspi.Instance = QUADSPI;hxspi.Init.ClockPrescaler = 255;hxspi.Init.FifoThresholdByte = 1;hxspi.Init.SampleShifting = XSPI_SAMPLE_SHIFTING_NONE;hxspi.Init.MemorySize = 0;hxspi.Init.ChipSelectHighTimeCycle = 1;//XSPI_CS_HIGH_TIME_1_CYCLE;hxspi.Init.ClockMode = XSPI_CLOCK_MODE_3;hxspi.Init.MemoryMode = HAL_XSPI_DUAL_MEM;//XSPI_DUALFLASH_ENABLE;if (HAL_XSPI_Init(&hxspi) != HAL_OK){Error_Handler();} } XSPI_ResetChip();HAL_Delay(2);XSPI_AutoPollingMemReady();XSPI_WriteEnable();HAL_XSPI_Command(&hxspi, &sCommand, HAL_XSPI_TIMEOUT_DEFAULT_VALUE);XSPI_Configuration();XSPI_AutoPollingMemReady(); while (1){  
Hi, We have a custom board based on the STM32MP151C CPU and we found that after migration to stm32mpu-ecosystem-v4 (linux-stm32mp 5.15) provided by the meta-st-stm32mp yocto layer (langdale) there are some errors during MMC writing procedure:[ 3358.815661] blk_update_request: I/O error, dev mmcblk0, sector 1199146 op 0x1:(WRITE) flags 0x800 phys_seg 1 prio class 0 [ 3358.815720] EXT4-fs warning (device mmcblk0p12): ext4_end_bio:342: I/O error 10 writing to inode 229382 starting block 599574) [ 3358.815754] Buffer I/O error on device mmcblk0p12, logical block 15893We observe the same behavior on all of our boards, so we have eliminated MMC corruption. The fsck.ext4 doesn't help and the errors still occur.In the previous ecosystem based on linux-stm32mp 5.10 everything was fine and we've never noticed any problems with MMC.Have you faced such an error and know any solution for it? How should we proceed with it?Thank you in advance
HelloWe are Working on a custom board with STM32MP157AAA3 processor.We are using uboot(V2023.10) for checking USB 2nd Port.we referred the below link to configure the dts :https://wiki.st.com/stm32mpu/wiki/USBPHYC_device_tree_configuration We are using the same dts configuration in uboot(V2023.10) and linux(V5.13),It works in linux but not in uboot.We are attaching the dts file below.Hope you could refer and suggest us where we are going wrong. Thanks&RegardsSrikanth.R
Hi,allI noticed that the ethernet driver stm32mp13xx_hal_eth.c in the STM32CubeMP13_V1.1.0 already supports PTP, When will STM32CubeMP2 package be available, and since the STM32MP2 series supports TSN, whether EST(IEEE 802.1Qbv) and FPE(IEEE802.1Qbu) functions are supported in the driver? @MWB_CHa ,I see that PTP function is added by you, so do you know the relevant information?
I have been working with the Secure boot and OPTEE integration in my Custom board. All the repositories are maintained in kirkstone and I don't want to switch them to scarthgap yet. OPTEE works fine with non-secure system when trusted boot is disabled; everything works fine.But when Trusted boot is enabled the size of BL2 increases by 20KB in the sysram and due to this reason the BL32 (OPTEE) when loaded in the sysram Panics the system because it doesn't find enough room to reside itself in the sysram.Here are the error logs. INFO: Memory size = 0x40000000 (1024 MB) INFO: DFU USB START... INFO: phase ID :3, Manifestation 3 at c717a63b INFO: Send detach request INFO: Receive DFU Detach INFO: DFU USB STOP... INFO: BL2: Loading image id 1 INFO: Loading image id=1 at address 0x2ffff000 INFO: Image id=1 loaded: 0x2ffff000 - 0x2ffff1fa INFO: FCONF: Reading FW_CONFIG firmware configuration file from: 0x2ffff000 INFO: FCONF: Reading firmware configuration information for: dyn_cfg INFO: FC
Hi, I recently got this board and learning about it. My demo application will be for Cortex-A7 core with linux.I need to make application which takes input from user say I have Menu with 5 choices and user can provide the choice number. How can I configure this? I am looking for any examples if available. Do I need to configure any pins and re-build the kernel?Any help will be appreciated, Thank you.
Hello We are working on custom board with STM32MP157AAA3 Processor.In Uboot(V2023.10) we are writing 4MB of data using mw command it works fine,but while displaying the data using md command the board resets after displaying 80KB of data.I have tried with various memory locations of DDR3L,But every time i face the same issue. Hope You could suggest me where Iam going wrong. Thanks&RegardsSrikanth.R
Hi all!Environment: I use MX to configure the DCMI Peripheral including DMA!MX generates MX_DMA_Init() and MX_DCMI_Init()After DCMI initialization in main with the above mentioned functions I use the functions HAL_DMA_RegisterCallback(&hdma_dcmi, HAL_DMA_XFER_CPLT_CB_ID, &DcmiDmaFullCplt) and HAL_DMA_RegisterCallback(&hdma_dcmi, HAL_DMA_XFER_HALFCPLT_CB_ID, &DcmiDmaHalfCplt) to register Halffull and Full DMA Callbacks.Both callbacks are registered in the hdma_dcmi structure. Everthing ok so far.Problem:But when I execute HAL_DCMI_Start_DMA(&hdcmi, DCMI_MODE_CONTINUOUS, (uint32_t) ae_dma_buffer, AE_DMA_BUFFER_SIZE); to start the peripheral, the function overwrites the dma full function pointer. Therefore the HAL callback is used and not my dma full callback function (half full works fine). Otherwise if I try to register the callbacks after calling HAL_DCMI_Start_DMA(), the registration is refused because the hdma-->state is different to HAL_DMA_STATE_READY.So how
Hello,I am developing on a custom STM32MP151AAC board, the software is openstlinux-5.15-yocto-kirkstone-mp1-v22.11.23. The board successfully booted, and most of the part works fine. The problem is I cannot make USBOTG run. My board use FUSB302 instead STUSB1600.Now, the problem is I cannot make a usable device tree for usbotg_hs and fusb302, the kernel always complains OF: graph: no port node found in /soc/i2c@5c002000/typec-portc@22 I had try my best to find where the problem is but without success. The device tree file and dmesg are attached in the thread. Could anyone give me some suggestions?Thanks.
Hi! I have tried to compile OP-TEE version 3.19.0-stm32mp-r1.1 for the STM32MP157F-DK2 board. With the official source on STMicroelectronics OP-TEE Github repo ,but I get the following error:$ make CROSS_COMPILE=arm-none-eabi- PLATFORM=stm32mp1-157F_DK2 all GEN out/arm-plat-stm32mp1/core/include/generated/arm32_sysreg.h [...] CC out/arm-plat-stm32mp1/core/mm/core_mmu.o core/mm/core_mmu.c:1514:6: error: conflicting types for 'core_mmu_get_mem_by_type' due to enum/integer mismatch; have 'void(unsigned int, vaddr_t *, vaddr_t *)' {aka 'void(unsigned int, long unsigned int *, long unsigned int *)'} [-Werror=enum-int-mismatch] 1514 | void core_mmu_get_mem_by_type(unsigned int type, vaddr_t *s, vaddr_t *e) | ^~~~~~~~~~~~~~~~~~~~~~~~ In file included from core/include/mm/tee_pager.h:13, from core/include/mm/fobj.h:11, from core/include/mm/sp_mem.h:10, from core/arch/arm/include/kernel/secure_partition.h:14, from core/include/kernel/user_mode_ctx.h:11, from core/mm
I am using the FMC peripheral of the STM32MP157 to access the FPGA, the FMC is configured as a Synchronous read synchronous write PSRAM. For the simplicity of the FPGA logic design I would like to have the burst reads and burst writes with CRAM page size (CPSIZE) fixed at 1024 bits.This is the device tree configuration: &fmc { pinctrl-names = "default", "sleep"; pinctrl-0 = <&fmc_pins_mx>; pinctrl-1 = <&fmc_sleep_pins_mx>; status = "okay"; psram@0,0 { compatible = "mtd-ram"; reg = <0 0x00000000 0x100000>; bank-width = <2>; st,fmc2-ebi-cs-transaction-type = <8>; st,fmc2-ebi-cs-cclk-enable = <1>; st,fmc2-ebi-cs-mux-enable; st,fmc2-ebi-cs-buswidth = <16>; st,fmc2-ebi-cs-clk-period-ns = <60>; st,fmc2-ebi-cs-cpsize = <128>; st,fmc2-ebi-cs-data-latency-ns = <0>; st,fmc2-ebi-cs-write-bus-turnaround-ns = <0>; st,fmc2-ebi-cs-max-low-pulse-ns = <0>; }; psram@1,0 { compatible
Hi there, I'm developing a Linux Embedded system on an STM32MP153-based custom board. I have a problem regarding shutdown vs low power modes. I have a gpio (active low) that acts as a "final switch off" for the whole system (a.k.a. when that gpio goes down, the board is no longer powered). I need this gpio to act like that only when the user asks for a shutdown. When entering any low-power mode (sleep/stop/standby), that gpio is not toggled. Of course, I could lower the signal of the gpio in the user space, but this would cause a dirty power off of the whole system, and that's not good (I think?). Is there a clean/official way to achieve that result? Thanks for your help!
Hello ST Dear ST Community, I'm currently trying to migrate my solution from stm32mp1-openstlinux-5-4-dunfell-mp1-20-06-24 to stm32mp1-openstlinux-5.15-yocto-kirkstone-mp1-v22.06.15 Im using a ST7789V Based LCD, and its working trough /dev/fb0 and fbdev under /video/fbtft and /video/fbdev under dunfell sourceshowever in the kirkstone distro stuff are different , i only see staging/fbtft , i managed to get the right configuration and activate it the LCD driver is loadedin the boot it shows this [ 0.516659] SPI driver fb_st7789v has no spi_device_id for sitronix,st7789v [ 9.137538] systemd[1]: System time before build time, advancing clock. [ 9.248500] ipv6: module verification failed: signature and/or required key missing - tainting kernel [ 9.274214] NET: Registered PF_INET6 protocol family [ 9.314553] Segment Routing with IPv6 [ 9.316896] In-situ OAM (IOAM) with IPv6 [ 9.383063] systemd[1]: systemd 250.4-1-gc3aead5+ running in system mode (+PAM
Hi,I am in the process of migrating from Yocto Dunfell to STM kirkstone and using layers from oe-manifest/default.xml at kirkstone · STMicroelectronics/oe-manifest (github.com).Also, I am using a modified Flashlayout tsv file:#Opt Id Name Type IP Offset Binary - 0x01 fsbl-boot Binary none 0x0 arm-trusted-firmware/tf-a-stm32mp157f-dk2-serialboot.stm32 - 0x03 fip-boot FIP none 0x0 fip/fip-stm32mp157f-dk2-trusted.bin P 0x04 fsbl1 Binary mmc0 0x00004400 arm-trusted-firmware/tf-a-stm32mp157f-dk2-sdcard.stm32 P 0x05 fsbl2 Binary mmc0 0x00044400 arm-trusted-firmware/tf-a-stm32mp157f-dk2-sdcard.stm32 P 0x06 metadata1 Binary mmc0 0x00084400 arm-trusted-firmware/metadata.bin P 0x07 metadata2 Binary mmc0 0x000C4400 arm-trusted-firmware/metadata.bin P 0x08 fip-a FIP mmc0 0x00104400 fip/fip-stm32mp157f-dk2-trusted.bin P 0x12 rootfs FileSystem mmc0 0x05984400 image-stm32mp157f.ext4 I also have enabled `earlycon` in Linux Kernel configuration for debugging purpose.I am able to make the Boar
I enabled fmc in arch/arm/boot/dts/stm32mp157f-dk2.dts:&fmc { status = "okay"; };And this is how i read or write its registers:static inline unsigned int readl(const volatile void *addr) { unsigned int val; __asm__ __volatile__("": : :"memory"); val = *(volatile unsigned int *)addr; __asm__ __volatile__("": : :"memory"); return val; } static inline void writel(unsigned int value, volatile void *addr) { __asm__ __volatile__("": : :"memory"); *(volatile unsigned int *)addr = value; __asm__ __volatile__("": : :"memory"); } int main() { fd = open ("/dev/mem", O_RDWR | O_SYNC); if(fd == 0) { DBG("open mem failed\n"); return -1; } iobase = mmap(NULL, 0x1000, PROT_READ|PROT_WRITE, MAP_SHARED, fd, 0x58002000); if(iobase == MAP_FAILED) { DBG("iobase mmap failed\n"); ret = -1; goto close_fd; } bcr0 = readl(iobase+FMC2_BCR(0)); ... writel(bcr0, iobase+FMC2_BCR(0)); ... }But I guess I did not read the proper values of its registers, which are all 0x000030db. And
I am trying to update dunfell to kirkstone on stm32mp157f-dk2. I am observing below issue in systemd_create_users Configuration error - unknown item 'SYSLOG_SU_ENAB' (notify administrator) Configuration error - unknown item 'SYSLOG_GU_ENAB' (notify administrator) DEBUG: Executing shell function systemd_create_users configuration error - unknown item 'SYSLOG_SU_ENAB' (notify administrator) configuration error - unknown item 'SYSLOG_SG_ENAB' (notify administrator) Usage: useradd [options] LOGIN useradd -D useradd -D [options] Options: --badnames do not check for bad names -b, --base-dir BASE_DIR base directory for the home directory of the new account --btrfs-subvolume-home use BTRFS subvolume for home directory -c, --comment COMMENT GECOS field of the new account -d, --home-dir HOME_DIR home directory of the new account -D, --defaults print or change default useradd configuration -e, --expiredate EXPIRE_DATE expiration date of the new account -f, --inactiv
Hi Team,I am facing issue 5.15.67 kernel version. Starting kernel ...E/TC:0 Panic 'Watchdog' at core/drivers/stm32_iwdg.c:105 <stm32_iwdg_it_handler>E/TC:0 TEE load address @ 0xfe200000E/TC:0 Call stack:E/TC:0 0xfe203cb5E/TC:0 0xfe21b32dE/TC:0 0xfe20ec3dE/TC:0 0xfe21a9edE/TC:0 0xfe237f07E/TC:0 0xfe200340 Can anybody know this fix solution please proRegards,Sateesh
we are following all step i.e mentioned in st.wiki. we have installed the stm32 cubeprogrammer but commant not working .at where i am doing wrong?
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.