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:I encountered a strange problem when I compiled TF source code separately to generate xxserialboot.stm32 File, but found that there are always errors? eg:make -f $PWD/../Makefile.sdk TFA_DEVICETREE=stm32mp157c-dk2 TF_A_CONFIG=serialboot ELF_DEBUG_ENABLE='1' allBut complain about the compiler:arm-ostl-linux-gnueabi-gcc: error: unrecognized command line option '-mstrict-align'; did you mean '-Wstrict-aliasing'?But it's normal when I compile the trust file alone:make -f $PWD/../Makefile.sdk TFA_DEVICETREE=stm32mp157c-dk2 TF_A_CONFIG=trusted ELF_DEBUG_ENABLE='1' allHow can I fix this problem?Could you give me some advice?Best regards!
Hi,i have a question regarding to the IPCC Communication and the OPENAMP_check_for_message(); function. For example iam sending data from A7 to the M4. So the A7 will cause an RXO Interrupt at the M4. Now my Question ist when this Interrupts is cleared with the TXF Interrupt. Is it straight cleared when the RXO Interrupt occured and the data will only put to a Queue and the Queue of Data is read out via the OPENAMP_check_for_message() Function. Or is it like this that the A7 cant Send Data anymore as long the OPENAMP_check_for_message() didnt get a call, because this Function will trigger the TXF Interrupt. From my understanding it would be more efficient when the Interrupt is cleared straight and the data is enqueued in a Queue.
Hi there,After following this tutorial (and updating the compatible string): https://wiki.st.com/stm32mpu/wiki/OTG_device_tree_configurationI've managed to create a patch that adds these nodes to my device tree:... +&usbphyc { + status = "okay"; +}; + +&usbh_ehci { + phys = <&usbphyc_port0>, <&usbphyc_port1 1>; + phy-names = "usb1-phy", "usb2-phy"; + status = "okay"; +}; + +&usbphyc_port0 { + phy-supply = <&vdd_usb>; + vbus-supply = <&usb1vbus>; + vdda1v1-supply = <&reg11>; + vdda1v8-supply = <&reg18>; +}; + +&usbphyc_port1 { + phy-supply = <&vdd_usb>; + vbus-supply = <&usb2vbus>; + vdda1v1-supply = <&reg11>; + vdda1v8-supply = <&reg18>; +}; + +&usbotg_hs { + compatible = "st,stm32mp15-fsotg", "snps,dwc2"; + pinctrl-names = "default"; + pinctrl-0 = <&usbotg_hs_pins_a &usbotg_fs_dp_dm_pins_a>; /* configure OTG ID and full-speed data pins */ + vbus-supply
Hello I have a question concerning how to build a customized image.I followed this link first to get a general IdeaAfter that, I found that if I need to customize my Kernel and choose my packages (Customer apps) I can follow these links: Customer App and Kernel config1- Should I customize before building my image using "bitbake <image>" or after (I suppose before but just asking) Just to be clear I will give some examples:Customer app will be used to add packages that may not be present Kernel configurations: To activate modules and features for example security, Bluetooth and Wi-Fi features.2- In which file do I need to be in order to apply the modifications that I want in my final image that I will flash.Best regards
My goal is to add i2c5 in the dts for userspace access however it is not visible at /sys/bus/i2c/devices. My steps are as follows:1) bitbake virtual/kernel -c devshell2) in new shell, modify the arch/arm/boot/dts/stm32mp157a-dk1.dts3) in new shell, make dtbs or make stm32mp157a-dk1.dtb, and close the new shell4) in original shell, bitbake virtual/kernel -f -c compile and bitbake virtual/kernel -f -c compile5) build-openstlinuxweston-stm32mp1/tmp-glibc/deploy/images/stm32mp1/scripts/create_sdcard_from_flashlayout.sh ../flashlayout_st-image-weston/trusted/FlashLayout_sdcard_stm32mp157a-dk1-trusted.tsv and create the .raw for dd to the sdcardHowever, with above steps seems the updated dtb file is not populated to the sdcard image. Am I missing some steps?
Hello,I create a custum linux distributuion for specific application. My goal is to use QT framework with OpenGl library trough GPU. To do that I used Buildroot 2019.023.1 and custum linux (V4.19) provided by your github. What parameters should I activeted to run my QT application with the -plateform elgfs argument ?I mean what library should I need (mesa or an other one) to run properly my application ?
Hello,will there be updates to the gcnano-binaries?The latest version (6.4.3) seems to be broken.When trying to start the cog browser (wpewebkit based) it crashes on eglCreateWaylandBufferFromImageWL.After reverting to gcnano 6.4.1 it is working again. Also RDP screen-share is broken in weston with gcnano version 6.4.3 but working with 6.4.1.
Hello! I am trying to get CubeProgrammer to flash a NAND on a custom board.UBOOT detects the NAND chip and mtdparts lists the following:STM32MP> sf probe STM32MP> mtdparts device spi-nand0 <spi-nand0>, # parts = 4 #: name size offset mask_flags 0: fsbl 0x00200000 0x00000000 0 1: ssbl1 0x00200000 0x00200000 0 2: ssbl2 0x00200000 0x00400000 0 3: UBI 0x1fa00000 0x00600000 0 active partition: spi-nand0,0 - (fsbl) 0x00200000 @ 0x00000000 defaults: mtdids : spi-nand0=spi-nand0 mtdparts: mtdparts=spi-nand0:2m(fsbl),2m(ssbl1),2m(ssbl2),-(UBI)It looks as though the FSBL partition size is 0x00200000 and it located at 0x0; however, when I attempt to use cube programmer with this TSV:#Opt Id Name Type IP Offset Binary - 0x01 fsbl1-boot Binary none 0x0 arm-trusted-firmware/tf-a-stm32mp157c-viper-serialboot.stm32 - 0x03 ssbl-boot Binary none 0x0 bootloader/u-boot-stm32mp157c-viper-trusted.stm32 P 0x04 fsbl1 Binary spi-nand0 0x00000000 arm-trusted-firmware/tf-a-s
I've attempted to build my own u-boot image based on the trusted defconfig and a dk1 device tree, i.e.$ make stm32mp15_basic_defconfig $ make DEVICE_TREE=stm32mp157a-dk1 allThe build worked successfully, however when I attempted to use the `u-boot.stm32` image it failed to flash/boot. Getting the older fsbl working to flash my image into the ssbl ended up with failing messages:stm32_smc: Failed to exec in secure mode (err = -3) stm32_smc: Failed to exec in secure mode (err = -3) stm32_smc: Failed to exec in secure mode (err = -3) stm32_smc: Failed to exec in secure mode (err = -3) stpmic1_read: failed to read register 0x22 : -110stpmic1_read: failed to read register 0x22 : -110stpmic1_read: failed to read register 0x22 : -110stpmic1_read: failed to read register 0x22 : -110Can't enable vdda-supply: -110 stpmic1_read: failed to read register 0x22 : -110stpmic1_read: failed to read register 0x22 : -110stpmic1_read: failed to read register 0x22 : -110stpmic1_read: failed to read register
Hello,I'd like to drive a DSI panel using STM32MP157AAC Rev.Z.I have no problem with the panel in the u-boot and everything is ok [i can see the u-boot splash screen].So the hardware on both sides [board and panel] is ok, the panel init sequence, dts config, dsi, ltdc, bridge config and drivers are ok,....but after kernel start, the panel is not working any more:1- I can confirm the initial sequence works fine,2- Even, i can read the internal register of panel in LP mode in kernel boot time.3- drm, bridge, panel connection to ltdc, cma memory allocation are ok, [i add a lot of debuging print], there is no error from any modules and everything seems ok.4- I can confirm pll is ok, The pll and clock config is fully similar to u-boot configs.***But in the DSI video mode, the panel is not showing anything.[Using oscilloscope]: I can see the lanes signal in DSI video mode of u-boot but after entering DSI videos mode in kernel there is no activity in lanes,At this point I am confused, Re
Hello!I see many having similar issues, but I have have yet to find a solution to the reason my boot is not happening.ATF: v2.2-stm32mp-r2.1U-Boot: 2021.01Linux: v4.19-stm32mp-r3.3Works just fineATF: v2.2-stm32mp-r2.1U-Boot: 2021.01 (Edit: and v2020.01-stm32mp-r2.1)Linux: kernel-stm32mp1-openstlinux-5-4-dunfell-mp1-20-11-12.tar.xzResults in the kernel outputting the following (LL debug enabled with highest level)[ 0.398268][ T1] pinctrl core: initialized pinctrl subsystem...[ 0.628638][ T1] bus: 'platform': add driver stm32mp157-pinctrl...[ 1.831777][ T1] device: 'soc:pin-controller@50002000': device_add[ 1.838307][ T1] bus: 'platform': add device soc:pin-controller@50002000[ 1.845361][ T1] PM: Adding info for platform:soc:pin-controller@50002000[ 1.852543][ T1] bus: 'platform': driver
Hello,I have a custom board based on STM32MP151c with an eMMC on it (no SD card). The eMMC is successfully found in the U-Boot and has the following partitioning: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 0x000013ff "ssbl" attrs: 0x0000000000000000 type: 8da63339-0007-60c0-c436-083ac8230908 guid: 81ae02b5-e823-4dfa-909e-f18021275bd7 2 0x00001400 0x000213ff "boot" attrs: 0x0000000000000004 type: 0fc63daf-8483-4772-8e79-3d69d8477de4 type: linux guid: 8691f7b3-c55d-4979-ad45-ab006af4d469 3 0x00021400 0x000293ff "vendorfs" attrs: 0x0000000000000000 type: 0fc63daf-8483-4772-8e79-3d69d8477de4 type: linux guid: c1241248-0452-4a9d-a181-dd26b1b8dc4a 4 0x00029400 0x001a93ff "rootfs" attrs: 0x0000000000000000 type: 0fc63daf-8483-4772-8e79-3d69d8477de4 type: linux guid: e91c4e10-16e6-4c0e-bd0e-77becf4a3582 5 0x001a9400 0x0075fbff "userfs" attrs: 0x0000000000
Hi!So I was reading the wiki here https://wiki.st.com/stm32mpu/wiki/How_to_configure_system_resourcesand they tell you to use PERIPH_LOCK, which is a function that can be found here:https://github.com/STMicroelectronics/STM32CubeMP1/blob/1.3.0/Projects/STM32MP157C-DK2/Templates/Src/lock_resource.cHowever, HAL_HSEM_FastTake does a read lock and not a write lock.When should I be using HAL_HSEM_FastTake() vs HAL_HSEM_Take()? Why does PERIPH_LOCK call HAL_HSEM_FastTake() to get a read lock when it is writing to GPIO/EXTI registers?
I have modified STM32MP157C-DK2 board with NAND flash connected through FMC and it works properly with linux kernel 5.4-stm32mp-r1. I notice that there are some changes to FMC in 5.4-stm32mp-r2 and tried to build my custom linux using the newer release. Unfortunately, the kernel always crashed because it can't open the MTD device. The device can boot TF-A and u-boot properly but it always stuck at the kernel.in 5.4-stm32mp-r1 version I only modify the DK2 device tree by stripping unused nodes, removing nodes that use the same pin as FMC, and adding FMC node by copying the configuration from stm32mp15xx-evx.dtsi. I use the same approach in 5.4-stm32mp-r2 as I assume the configuration from stm32mp15xx-evx.dtsi is enough to make the device boot from NAND.[ 1.158408] UBI error: cannot open mtd UBI, error -2 [ 1.162737] stm32_rtc 5c004000.rtc: setting system clock to 2000-01-16T08:50:47 UTC (948012647) [ 1.173134] VFS: Cannot open root device "(null)" or unknown-block(0,0): error -6 [ 1.179
I am configured both the FDCAN interfaces on the STM32MP1 discovery board with the settings below using STM32CubeMX. FDCAN1: PA11 (RX) PA12 (TX)FDCAN2: PB12 (RX) PB13 (TX)But I can't seem to get any data from either interface. I have a logic analyzer connected and have verified that there are packets going to the discovery board but candump doesn't show anything and cansend doesn't seem to be sending out any frames.I also use the following command to turn on each interface. ip link set can0 type can bitrate 500000ifconfig can0 upAm I missing something in the settings?Thanks,
HelloI built a Yocto based image for my stm32 and made sure that the required packages were installed. When I flashed my Image some packages were not found although before building the image I checked the list of packages to be integrated with bitbake -g st-image-weston && cat pn-buildlist | grep -ve "native" | sort | uniqThe .manifest file also contains the right packages to be installed. Why weren't they included in the image after the build? Thank you.
Hi All,i am have a usb drive enabled in stm32mp1, which works only as a pendrive,but when i connect mouse or keyboard , kernel is not detecting the device.but if i do same procedure in ubuntu machine, the usb port detect pendrive and mouse.what i am missing ?
HelloIn many instances (TF-A, U-Boot, Kernel, FlashLayout_emmc.tsv ...) it is assumed that there is an SD card called "mmc0" and optionally an eMMC "mmc1". Now we ONLY have an eMMC and NO SD. This means that the eMMC is called "mmc0" and not "mmc1". As a result, U-Boot does not boot the correct kernel, the kernel cannot find the root partition, the wrong mmc1 is in the flash layout_emmc, etc. I "just" have to look how to get the patches into the Yocto build system. I have another place where I overwrite the "boot_instance" with 0 in the source code. I would prefer a corresponding configuration so that the source code does not have to be patched. It is not yet clear to me who sets the "boot_instance". In boot mode 0xb010, this is 1 and is then translated (incorrectly) into mmc1 in "bootcmd". U-Boot recognizes the eMMC as mmc0, which means that the UBoot environment cannot be read because it is expected on mmc1.Does anyone have a solution?
Hi, I am using stm32F767zi controller board with STONE 15" display. We are having trouble receiving data from the LCD panel. When we try to receive registry entry (8 Bytes) the system works fine, but when we try to read the variable register, the received (9 Bytes) are not being received correctly. we are using 2 different integer arrays for receiving 8 bytes and 9 bytes of data. Following is the sample codeuint8_t read_var[7]= {0xA5, 0x5A, 0x04, 0x83, 0x00, 0x00}; uint8_t read_page[6]= {0xA5, 0x5A, 0x03, 0x81, 0x03, 0x02}; uint8_t read_sc_rcv[8];uint8_t buff[9]; // Register transmit & receiveHAL_UART_Transmit(&huart3, read_page, 6, 100);HAL_UART_Receive_IT(&huart3, read_sc_rcv,8);//Variable transmit & receiveHAL_UART_Transmit(&huart3, read_var, 7, 100);HAL_UART_Receive_IT(&huart3, buff,9);Thank You
Hello ST community,I was following the link belowhttps://wiki.st.com/stm32mpu/wiki/How_to_integrate_AWS_IoT_Greengrass_on_top_of_openSTLinux_distributionI had completed PC prerequisites by following, https://wiki.st.com/stm32mpu/wiki/PC_prerequisiteswhen I do bitbake st-image-demo-awsIt stops after 49% with error,ERROR: Task (/home/dnk-051/STM32MPU_workspace/STM32MP15-Ecosystem-v2.1.0/Distribution-Package/openstlinux-5.4-dunfell-mp1-20-11-12/layers/meta-openembedded/meta-oe/dynamic-layers/meta-python/recipes-extended/mozjs/mozjs_60.9.0.bb:do_compile) failed with exit code '1'How can I solve the error?Thanks,Nikunj
I want to create my own machine.I'm trying to create with reference to following Wiki Page.https://wiki.st.com/stm32mpu/wiki/How_to_create_your_own_machineIn "2 Generate device tree" in the wiki page, I need to set device tree from STM32CubeMX to "mx" directory.However, OpenSTLinux Distribution Package (openstlinux-20-02-19) that I have install has no "mx" directory in "meta-st-stm32mp-addons".Do I need any other steps to create "mx" directory in "meta-st-stm32mp-addons" automatically?And, in the case that I want to change kernel or u-boot or tf-a device tree, all I need is to change device tree in "mx" directory?Do I need any other steps to reflect the change of device tree setting?For reference, I have tried to create "mx" directory manually and set device tree to "mx" directory, but bitbake failed.(Error message shows "No rule to make target arch/arm/boot/dts/xxxxxxxx.dtb")Best regards,H. Masuda
I'm using FreeRTOS v10.2.1, CMSIS RTOS v1 main.c (generated by CubeMX) has:...osThreadDef(defaultTask, StartDefaultTask, osPriorityNormal, 0, 128);...where osPriorityNormal is zero as defined in cmsis_os.hI spawn all other tasks using the FreeRTOS xTaskCreate call where task priority is from 0..MAX_PRIORITIES-1. How does FreeRTOS task priority maps to CMSIS task priority if it maps at all? The reason i ask is that if i keep StartDefaultTask alive, how does it get scheduled against those tasks created with xTaskCreate?
Hello Guys.I made a custom board from the EV1 circuit base, removing unnecessary parts.(Most of them are the same as the EV1. Only parts that are not in use have been removed.)And after creating Device Tree using CubeMX, I succeeded in making my image.(EMMC's circuit connection and Device Tree are the same as EV1.)But my board can't boot to EMMC if I remove the RJ45 connection.If booting without RJ45 connection (Ethernet), I can check the following message.(The same message could be confirmed even after power reset.)DRAM: 1 GiB Clocks: - MPU : 800 MHz - MCU : 208.878 MHz - AXI : 266.500 MHz - PER : 0 MHz - DDR : 533 MHz Fastboot key pressed, STM32Programmer key pressed, entering download mode... WDT: Started with servicing (32s timeout) NAND: 0 MiB MMC: STM32 SD/MMC: 2, STM32 SD/MMC: 0, STM32 SD/MMC: 1 Loading Environment from MMC... OK In: serial Out: serial Err: serial invalid MAC address in OTP 00:00:00:00:00:00 Net: Error: ethernet@5800a000 address not set. No ethernet found. &
Is it possible to generate mingw32 sdk in Yocto
The drivers/video/stm32 stm32_ltdc.c in this file.The background color is black, and the modification is as follows:It's still white
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.