Skip to main content
Explorer
July 4, 2024
Solved

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

  • July 4, 2024
  • 2 replies
  • 3510 views

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?

 






 

    This topic has been closed for replies.
    Best answer by Erwan SZYMANSKI

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

    Rgs,
    Erwan

    2 replies

    nesnesAuthor
    Explorer
    July 8, 2024

    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 ?

    Technical Moderator
    July 9, 2024

    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

    nesnesAuthor
    Explorer
    July 9, 2024

    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