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 ST Community, @Erwan SZYMANSKI I’ve been working on integrating a Qt example from ~/Qt/Examples/Qt-6.7.2/quickcontrols/imagine into my custom Yocto layer for an STM32 board. I created a recipe for this and updated my local.conf accordingly. After building the image and flashing it to my board, I encountered the following error when running the application. I have added my .bb recipe file and local.conf file. (I have qt5 layer installed too) nesnes@nesnes-ABRA-A5-V19-2:~/STM32MPU-Ecosystem-v5.1.0/Distribution-Package/build-openstlinuxweston-stm32mp15-disco$ bitbake automotive NOTE: Started PRServer with DBfile: /home/nesnes/STM32MPU-Ecosystem-v5.1.0/Distribution-Package/build-openstlinuxweston-stm32mp15-disco/cache/prserv.sqlite3, Address: 127.0.0.1:33289, PID: 89725 Loading cache: 100% |########################################################################################################################################################################| Time: 0:00:00 Loade
The 'of_device_id' in my module is as follows:static const struct of_device_id gcnano_of_match[] = { { .compatible = "st,gcnano" }, { .compatible = "vivante,gc" }, { /* end node */ } };In the device tree:compatible = "vivante,gc";When using the 'modprobe' command to load the module, it was unable to match successfully and the 'probe' function of the module was not executed. The 'compatible' property of the module is the same as the 'compatible' property of the device tree, but I changed both the 'compatible' property of the module and the device tree to 'vivante_1, gc_1' to match successfully and execute the 'probe' function. I have tried many times to change it to anything, as long as I change it back to 'vivante, gc', it won't work. Has anyone encountered this problem?
Does anyone know how to view and modify the current CPU frequency of STM32MP157D? I also cannot use the following command: root@stm32mp1:/sys# cat /proc/cpuinfo processor : 0 model name : ARMv7 Processor rev 5 (v7l) BogoMIPS : 48.00 Features : half thumb fastmult vfp edsp thumbee neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm CPU implementer : 0x41 CPU architecture: 7 CPU variant : 0x0 CPU part : 0xc07 CPU revision : 5 processor : 1 model name : ARMv7 Processor rev 5 (v7l) BogoMIPS : 48.00 Features : half thumb fastmult vfp edsp thumbee neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm CPU implementer : 0x41 CPU architecture: 7 CPU variant : 0x0 CPU part : 0xc07 CPU revision : 5 Hardware : STM32 (Device Tree Support) Revision : 0000 Serial : 003C00403132510831323338 root@stm32mp1:/sys# cd / root@stm32mp1:/# cat /proc/cpuinfo processor : 0 model name : ARMv7 Processor rev 5 (v7l) BogoMIPS : 48.00 Features : half thumb fastmult vfp edsp thumbee neon vfpv3 tls vfpv4 idiva
x linux-5.15-stm32mp-r2 for our puposes. I have also attached the pps-gpio source code in case it is useful.
Hi, when trying the new ST BSP release base on linux kernel 6.1.82 on my stm32mp157f-dk2 I noticed that the legacy framebuffer support is not working anymore.this was working perfectly on the previous release with linux kernel 6.1.28.I didn't succeed in getting it working again, here is a fragment of my linux kernel configuration: CONFIG_DRM=yCONFIG_DRM_STM=yCONFIG_DRM_STM_DSI=yCONFIG_DRM_PANEL_ORISETECH_OTM8009A=yCONFIG_DRM_SII902X=yCONFIG_FB=yCONFIG_FB_SIMPLE=yCONFIG_BACKLIGHT_CLASS_DEVICE=yCONFIG_BACKLIGHT_PWM=yCONFIG_BACKLIGHT_GPIO=yCONFIG_FRAMEBUFFER_CONSOLE=yCONFIG_FRAMEBUFFER_CONSOLE_ROTATION=yCONFIG_DRM_FBDEV_EMULATION=yCONFIG_LOGO=ycan you please advice how to get it working again ? I don't plan to use DRM. Best regards
The Linux version I am using is 6.1.28, and the chip is STM32MP157D. Currently, the USB-OTG chip uses FUSB302. I tried the online driver and found some issues. When I plugged in the USB device, there was no response. However, setting the USB-OTG to host or peripheral mode separately is normal, so I suspect it may be a problem with the FUSB302 driver.
I have only one MMC, in this case it's an eMMC on SDMMC2. I have some issues when I loading over the TF-A and the FIP.bin file.Update:I have change the clock frequency to 49.5 MHz and measured the v3v3 signal to 3.3V and the vdd signal to 3.3V as well. I got still the same issue. &sdmmc2{ pinctrl-names = "default", "opendrain", "sleep"; pinctrl-0 = <&sdmmc2_pins_mx>; pinctrl-1 = <&sdmmc2_opendrain_pins_mx>; pinctrl-2 = <&sdmmc2_sleep_pins_mx>; status = "okay"; /* USER CODE BEGIN sdmmc2 */ non-removable; no-sd; no-sdio; st,neg-edge; bus-width = <8>; vmmc-supply = <&v3v3>; vqmmc-supply = <&vdd>; mmc-ddr-3_3v; /* USER CODE END sdmmc2 */ }; This is the debug output. Here we can see that I have only one eMMC. I don't know if the log says that the eMMC is mounted on 0, or if it's the first index. Second suspect is "Loading Enviroment from nowhere... OK". So that means...what? An empty system?&nb
Hello We have built OpenSTLinux(Openstlinux-6.1-yocto-mickledore-mp1-v23.06.21) for stm32mp157f-dk2 Board and I have built st-image-weston image. Iam new to this Yocto,so I request you to help with the following:How to make changes in dts & dtsi files (u-boot & Linux) and source files and build the image.And Iam working on display, I would like to write an application and run it on the display. So hoping to get help regarding how to add Qt (Qt5) packages and the respective libraries so that i could run a GUI on the display. Thanks & RegardsSrikanth.R
I never heard about the PER clock. I'm looking inside CubeMX, but I don't see any PER clock at all. I guess it's periferial clock. So how do I start it? My U-boot won't boot. I guess that if PER will be like 24 MHz, then U-boot will continue. Or am I wrong? D/TC:0 0 call_initcalls:40 level 6 stm32mp1_init_lp_states() D/TC:0 0 stm32mp1_init_lp_states:230 Power configuration: shutdown to 6, suspend to 2 D/TC:0 0 call_initcalls:40 level 6 regulator_core_init() D/TC:0 0 call_initcalls:40 level 7 stm32_rng_release() D/TC:0 0 call_initcalls:40 level 7 regulator_core_cleanup() D/TC:0 0 regulator_core_cleanup:916 disable usb33 D/TC:0 0 regulator_core_cleanup:916 disable reg18 D/TC:0 0 regulator_core_cleanup:916 disable reg11 D/TC:0 0 call_initcalls:40 level 7 release_probe_lists() D/TC:0 0 call_finalcalls:59 level 1 release_external_dt() I/TC: Primary CPU switching to normal world boot serial_stm32 serial@40010000: pinctrl_select_state_full: uclass_get_device_by_phandle_id: err=-19
Custom STM32MP151A board with 512MB DDR2.I am trying to write via UART communication with STM32CubeProgrammer, but BL32 processing does not start.What should I do to investigate the cause? [2024-01-12 14:11:52.591] NOTICE: CPU: STM32MP151AAC Rev.Z[2024-01-12 14:11:52.591] NOTICE: Model: STMicroelectronics custom STM32CubeMX board - openstlinux-5.15-yocto-kirkstone-mp1-v22.11.23[2024-01-12 14:11:52.623] INFO: PMIC version = 0x21[2024-01-12 14:11:52.623] WARNING: VDD unknown[2024-01-12 14:11:52.623] INFO: Reset reason (0x14):[2024-01-12 14:11:52.696] INFO: Pad Reset from NRST[2024-01-12 14:11:52.696] INFO: FCONF: Reading TB_FW firmware configuration file from: 0x2ffe2000[2024-01-12 14:11:52.696] INFO: FCONF: Reading firmware configuration information for: stm32mp_io[2024-01-12 14:11:52.696] INFO: Using UART[2024-01-12 14:11:52.696] INFO: Instance 8[2024-01-12 14:11:52.696] INFO: Boot used partition fsbl1[2024-01-12 14:11:52.696] NOTICE: BL2: v2.6-stm32mp1-r2.0(debug):v2.6-dirty(a1f0
stm32mp157f, I need to use uart5 to drive an rs485 but the hardware supplied DE pin is already in use. So I need to configure a different GPIO to use. If the device tree binding rts-gpios is supported, then the task is simplified. We can modify the board to use the gpio. Follow up to that, if it is supported do I still add "linux,rs485-enabled-at-boot-time;"
I'm facing the issue were the USB connection is re-connecting, which results that STM32CubeProgrammer re-flashing the device over and over again when the fip-boot has be fully loaded. So what can cause this restarting and re-connection? Is it something with U-boot?I have heard that CubeProgrammer may having some issues with timeouts, but in this case, the board is just restarting itself. FAQ : STM32MP1 STM32CubeProgrammer USB reconnect e... - STMicroelectronics CommunityHere is the flashlayout: #Opt Id Name Type IP Offset Binary - 0x01 fsbl-boot Binary none 0x0 arm-trusted-firmware/tf-a-stm32mp151a-stm32-computer-firmware-mx-usb.stm32 - 0x03 fip-boot FIP none 0x0 fip/fip-stm32mp151a-stm32-computer-firmware-mx-optee-emmc.bin P 0x04 fsbl1 Binary mmc1 boot1 arm-trusted-firmware/tf-a-stm32mp151a-stm32-computer-firmware-mx-optee-emmc.stm32 P 0x05 fsbl2 Binary mmc1 boot2 arm-trusted-firmware/tf-a-stm32mp151a-stm32-computer-firmware-mx-optee-emmc.stm32 P
Hi,We are using STM32MP157CAA3T processor. We have implemented USB, UART and SD card for Booting purpose.And currently we are programming the processor via UART8 by using USB to UART convertor.Used UART4 Debug port for troubleshooting the board.Problem is that, we are not able to program the board. And also USB, UART and SD card are failing to boot the processor.
I think this one might be very easy. It's just a configuration I need to set, but I don't know what configuration I need to write.We can begin with the error log. The error is about the clock for the MPU. It as not been set yet and I don't know why. D/TC:0 0 get_opp_freqvolt_from_dt_subnode:1426 Invalid opp-supported-hw 0x2 D/TC:0 0 get_opp_freqvolt_from_dt_subnode:1426 Invalid opp-supported-hw 0x2 D/TC:0 0 stm32_cpu_opp_is_supported:558 Not supported opp-supported-hw 0x2 D/TC:0 0 stm32_cpu_opp_is_supported:558 Not supported opp-supported-hw 0x2 D/TC:0 0 stm32_cpu_opp_is_supported:558 Not supported opp-supported-hw 0x2 D/TC:0 0 stm32_cpu_opp_get_dt_subnode:623 Found OPP 0 (650000kHz/1200mV) from DT D/TC:0 0 stm32_cpu_opp_is_supported:558 Not supported opp-supported-hw 0x2 D/TC:0 0 set_voltage_then_clock:151 opp = 0, cpu_opp.dvfs[opp].volt_mv = 1200 D/TC:0 0 _set_opp_clk_rate:92 opp = 0, cpu_opp.dvfs[opp].freq_khz = 650000 D/TC:0 0 stm32mp1_set_opp_khz:3856 freq_khz = 650000
I have seen an example diagram of STM32MP13X + RTL8363NB in the AN5474 document, how can RCC be implemented in software to provide 125MHz and where can I find the code for that example?
It's fun to debugging the output when I flashing the processor/eMMC from CubeProgrammer via USB. But it's less fun to not knowing the cause of the error.What can it be in this case?Do I have forgot the sett the board ID, is the unknown VDD the error?What I have done, is to copy the most of stm32mp15xx-dk1.dtsi into stm32mp15x-<your project device tree>-mx.dts because my custom made bord is the same as STM32MP157D-DK1 + eMMC boot. See the post here: Debug Output UARTMy device tree .dts files: Device Tree STM32MP151AAC3
I'm having some trouble booting my custom board containing a STM32MP157F. I'm able to program everything using STM32CubeProgrammer, but i'm not able to boot:WARNING: Firmware Image Package header check failed.WARNING: Failed to obtain reference to image id=2 (-2)ERROR: BL2: Failed to load image id 2 (-2)If I'm right image id 2 is HW_CONFIG. What worries me are the following lines in the log:partitions on mmc1: Writing GPT: success!doneErasing fip-b on mmc 1:Caution! Your devices Erase group is 0x300The erase range would be change to 0x2c00~0x4bffdoneErasing u-boot-env on mmc 1:Caution! Your devices Erase group is 0x300The erase range would be change to 0x4c00~0x4fffCould this be the reason why image 2 won't load? Some kind of eMMC alignment issue?The whole log is attached.
is it possible to OpenSTlinux distribution Package SD card images , flashing directly on board(STM32MP157F -DK2) in EMMC. I do not want to use SD card for booting. please help me out this.
Hello,I have a Yocto Project with st-stm32mp1 layer, using Poky distribution along with customized CubeMX machine that I created using st-stm32mp1-addons layersI need to use the spi5 module, so I activated it through CubeMX for the "A7NS" runtime context.I compiled and run the machine, but during boot I get this message:[ 1.533147] spi_stm32 44009000.spi: clk rate = 0 [ 1.536942] spi_stm32: probe of 44009000.spi failed with error -22 I also tried with spi1 and got the same error message.All my kernel variables are default ( SPI=y, SPI_MASTER=y, SPI_STM32=y, SPI_SPIDEV=y) I also haven't touch any clock configuration in CubeMX, everything should be default.I uploaded my boot log as attachment, you can find the error message at line 223. There are two messages because I tried with both spi1 and spi5.I have also uploaded my machine configuration file, along with the cubeMX projectAny idea wh
Yes. I know that is possible to program the STM32MP by using ST-link V2 in CM4 inside STM32CubeIDE.I want to know if its possible to generate e.g .bin/.stm32 files from CM4 and paste them into a FlashLayout, and then later program it over STM32CubeProgammer.My goal is to run bare bones code and program that over USB.
root@stm32mp1:~# /sbin/depmod -aroot@stm32mp1:~# syncroot@stm32mp1:~# modprobe vivid[ 1124.915416] cfbcopyarea: exports duplicate symbol cfb_copyarea (owned by kernel)modprobe: ERROR: could not insert 'vivid': Exec format errorroot@stm32mp1:~# 如何使用开发者包进行交叉编译 - stm32mpu (stmicroelectronics.cn)I strictly followed the steps in section 6.1 of the contentI used stm32mp1-openstlinux-6.1-yocto-mickledore-mpu-v24.06.26The latest package, my development board is STM32MP135F-DK, I don't know why. I need your help我严格按照6.1节的步骤操作我使用的是stm32mp1-openstlinux-6.1-yocto-mickledore-mpu-v24.06.26最新的软件包,我的开发板是STM32MP135F-DK,我不知道为什么。我需要你的帮助
I have been following a series of tutorials on Yocto and STM32MP1 by Digikey. I do have a question I am hoping you can give me some pointers on, while building the custom image after activating the i2cdetect, i get the following errorERROR: busybox-1.31.1-r0 do_package: Error executing a python function in exec_func_python() autogenerated:The stack trace of python calls that resulted in this exception/failure was:File: 'exec_func_python() autogenerated', lineno: 2, function: <module>0001:*** 0002:ptest_update_alternatives(d)0003:File: '/home/raymond/Projects/yocto/poky/meta/classes/ptest.bbclass', lineno: 98, function: ptest_update_alternatives0094: for alt_name, alt_link, alt_target, _ in alternatives:0095: # Some alternatives are for man pages,0096: # check if the alternative is in PATH0097: if os.path.dirname(alt_link) in bin_paths:*** 0098: os.symlink(alt_target, os.path.join(ptest_bindir, alt_name))0099:}0100:0101:do_configure_ptest_base[dirs] = "${B}"0102:do_compile_pt
I built the root file system using 'build root', which previously automatically loaded 'galcore. ko' when the system started. But today I accidentally reset the configuration of 'build root', and since booting up, this module has been unable to load automatically. It needs to be manually loaded every time. Does anyone know which configuration affects its automatic loading?
Hello I Want to configure HDMI support for stm32mp157f-dk2 board using Buildroot. I am actually able to run an application on display but I couldn't do it with HDMI.The version of buildroot i am working on is Buildroot 2024.05. Thanks in advanceSrikanth
I used buildroot to build the root file system and encountered the following error while running the qt example:penat(AT_FDCWD, "/dev/galcore", O_RDWR) = -1 ENOENT (No such file or directory) openat(AT_FDCWD, "/dev/graphics/galcore", O_RDWR) = -1 ENOENT (No such file or directory) clock_nanosleep(CLOCK_REALTIME, 0, {tv_sec=1, tv_nsec=0}, 0xbe8ec8d0) = 0 write(2, "[ 1] Failed to open device: "..., 72) = 72I loaded galcore.ko, but there are indeed no galcore and graphics/galcore under/dev/:# dmesg | grep galcore [ 9.490473] galcore: loading out-of-tree module taints kernel. # ls /dev/galcore* ls: /dev/galcore*: No such file or directoryI used tslib to test touch and modetest to test LCD, both of which were normal. Why does my Qt still not run properly?
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.