2024-07-04 06:59 AM - last edited on 2024-07-04 07:37 AM by Andrew Neil
I followed the instructions on https://wiki.st.com/stm32mpu/index.php?title=STM32MPU_Distribution_Package&sfr=stm32mpu to flash my build image on my STM32MP15. After step 6: Where I build the image with the command "bitbake st-image-weston" I go to "STM32MPU-Ecosystem-v5.0.0/Distribution-Package/build-openstlinux-weston-stm32mp15-disco/tmp-glibc/deploy/images/stm32mp15-disco/flashlayout_st-image-weston/optee/FlashLayout_sdcard_stm32mp157f-dk2-optee.tsv" (From Developer Package (SDK) have been built for this st-image-weston image in the documentation). When I tried to flash it to the board with "STM32_Programmer_CLI -c port=usb1 -w FlashLayout_sdcard_stm32mp157f-dk2-optee.tsv" I received "Error: File does not exist: /home/nesnes/STM32MPU-Ecosystem-v5.0.0/Distribution-Package/build-openstlinuxweston-stm32mp15-disco/tmp-glibc/deploy/images/stm32mp15-disco/flashlayout_st-image-weston/optee/st-image-bootfs-openstlinux-weston-stm32mp15-disco.ext4 Error: TSV flashing service failed"
Even though the file I want to flash is in the "STM32MPU-Ecosystem-v5.0.0/Distribution-Package/build-openstlinuxweston-stm32mp15-disco/tmp-glibc/deploy/images/stm32mp15-disco/flashlayout_st-image-weston/optee/FlashLayout_sdcard_stm32mp157f-dk2-optee.tsv" directory, I am receiving an error for "STM32MPU-Ecosystem-v5.0.0/Distribution-Package/build-openstlinuxweston-stm32mp15-disco/tmp-glibc/deploy/images/stm32mp15-disco/flashlayout_st-image-weston/optee/st-image-bootfs-openstlinux-weston-stm32mp15-disco.ext4"
What is the cause of this error and how can I fix it?
Solved! Go to Solution.
2024-07-09 02:19 AM
@nesnes ,
Typo : ./flashlayout_st-image-weston/optee/FlashLayout_sdcard_stm32mp157f-dk2-optee.tsv
Rgs,
Erwan
2024-07-08 07:00 AM
I am still having problem with this error. I tried different images to built but still face same problem and could not flash my image
WARNING: linux-stm32mp-6.1.82-stm32mp-r2-r0 do_package_qa: QA Issue: File /usr/src/debug/linux-stm32mp/6.1.82-stm32mp-r2-r0/drivers/tty/vt/consolemap_deftbl.c in package linux-stm32mp-src contains reference to TMPDIR
File /usr/src/debug/linux-stm32mp/6.1.82-stm32mp-r2-r0/lib/oid_registry_data.c in package linux-stm32mp-src contains reference to TMPDIR
File /usr/src/debug/linux-stm32mp/6.1.82-stm32mp-r2-r0/arch/arm/include/generated/asm/mach-types.h in package linux-stm32mp-src contains reference to TMPDIR [buildpaths]
How can I solve this problem , built my image successfully and flash it to the board ?
2024-07-09 12:47 AM
Hello @nesnes ,
I think you tried to run the Cube Programmer from the wrong folder. And to solve your issue you tried to move files manually.
Can you please try to make the CubeProgrammer command at the same place as explained here : https://wiki.st.com/stm32mpu/wiki/STM32MP15_Evaluation_boards_-_Starter_Package#Via_STM32CubeProgrammer_tool
So in your stm32mp15-disco folder.
Something like :
PC $> cd <path_to_stm32mp15-disco>
PC $> STM32_Programmer_CLI -c port=usb1 -w flashlayout_st-image-weston/optee/FlashLayout_sdcard_stm32mp157f-dk2-optee.tsv
Kind regards,
Erwan
2024-07-09 01:21 AM
In distribution package the .tsv folder is in the the
~/STM32MPU-Ecosystem-v5.1.0/Distribution-Package/build-openstlinuxweston-stm32mp15-disco/tmp-glibc/deploy/images/stm32mp15-disco/flashlayout_st-image-weston/optee$
direction . I already did the starter package and flash image now I am doing distribution package. I have followed the recommended directory
2024-07-09 01:22 AM
2024-07-09 01:30 AM
@nesnes ,
On your last picture, the second command, you are in the right folder but please precise the relative path to find the .tsv file: ./flashlayout_st-image-weston/optee/Flashlayout_sdcard_stm32mp157f-dk2-optee.tsv
Rgs,
Erwan.
2024-07-09 01:37 AM - edited 2024-07-09 01:39 AM
2024-07-09 02:19 AM
@nesnes ,
Typo : ./flashlayout_st-image-weston/optee/FlashLayout_sdcard_stm32mp157f-dk2-optee.tsv
Rgs,
Erwan
2024-07-09 03:10 AM
Thank you for your help , it seems to work right now . Although I have questions about why it didn't work even tho my direction before were right too.