Can't flash st image with stm32cubeprogrammer on stm32mp157f-dk2
HI there STM team!
I want to build a embedded linux image where I can load my QT application. I'm installing the starter package following: https://wiki.st.com/stm32mpu/wiki/STM32MP15_Discovery_kits_-_Starter_Package#Checking_the_material but I'm having problems when executing this command:
STM32_Programmer_CLI -c port=usb1 -w flashlayout_st-image-weston/optee/FlashLayout_sdcard_stm32mp157c-dk2-optee.tsv
The download starts but then it says "reconnecting the device..." and it fails with:
Error: Unable to reconnect the target device: time out expired
Error: Start operation failed at partition 0x03
Error: TSV flashing service failed
Following other posts it seems there's a problem with the tsv file: https://community.st.com/t5/stm32-mpus-products/fail-the-image-flashing-on-stm32mpu157f-dk2/m-p/217050#M6509
I downloaded the file and rename it to: FlashLayout_sdcard_stm32mp157f-dk2-optee-trial.tsv
Now, when I run this command:
STM32_Programmer_CLI -c port=usb1 -w flashlayout_st-image-weston/optee/FlashLayout_sdcard_stm32mp157f-dk2-optee-trial.tsv
I get the following error:
-------------------------------------------------------------------
STM32CubeProgrammer v2.17.0
-------------------------------------------------------------------
USB speed : High Speed (480MBit/s)
Manuf. ID : STMicroelectronics
Product ID : DFU in HS Mode @Device ID /0x500, @Revision ID /0x0000
SN : 002000403132511831373339
DFU protocol: 1.1
Board : --
Device ID : 0x0500
Device name : STM32MP15xx
Device type : MPU
Revision ID : --
Device CPU : Cortex-A7
Start Embedded Flashing service
Error: File does not exist: /home/gomez/Documents/openstlinux/starter-package/en.FLASH-stm32mp1-openstlinux-6.1-yocto-mickledore-mpu-v24.06.26/stm32mp1-openstlinux-6.1-yocto-mickledore-mpu-v24.06.26/images/stm32mp1/flashlayout_st-image-weston/optee/fip/fip-stm32mp157c-dk2-optee.bin
Error: TSV flashing service failed
I downloaded the latest starter package version, so, my directory doesn't look like that path in the error, but I don't want to mess with the folder structure without knowledge...
Thanks a lot in advance!
