cancel
Showing results for 
Search instead for 
Did you mean: 

STM32MPU Flashing fails: Error: File does not exist Distribution-Package/build-openstlinuxweston-stm3

nesnes
Associate III

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"

Screenshot from 2024-07-04 16-49-35.png

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?

 






 

1 ACCEPTED SOLUTION

Accepted Solutions

@nesnes ,
Typo : ./flashlayout_st-image-weston/optee/FlashLayout_sdcard_stm32mp157f-dk2-optee.tsv

Rgs,
Erwan

In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.

View solution in original post

8 REPLIES 8
nesnes
Associate III

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 ?

Erwan SZYMANSKI
ST Employee

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

In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.

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 Screenshot from 2024-07-09 11-19-56.png
Screenshot from 2024-07-09 11-16-32.pngScreenshot from 2024-07-09 11-16-39.pngScreenshot from 2024-07-09 11-16-47.pngScreenshot from 2024-07-09 11-16-54.pngScreenshot from 2024-07-09 11-17-00.pngScreenshot from 2024-07-09 11-17-07.pngScreenshot from 2024-07-09 11-17-12.pngScreenshot from 2024-07-09 11-17-20.pngScreenshot from 2024-07-09 11-17-27.png

Screenshot from 2024-07-09 11-22-16.png

@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.

 

In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.

@nesnes ,
Typo : ./flashlayout_st-image-weston/optee/FlashLayout_sdcard_stm32mp157f-dk2-optee.tsv

Rgs,
Erwan

In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.

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. Screenshot from 2024-07-09 13-07-38.png