Bug report: STM32CubeProgrammer flash failure on STM32MP1
On my Ubuntu 20.04, Flashing of STM32MP157C-DK2 with STMCubeProgrammer fails with the following error I easily reproduced using the scripts:
$ STM32_Programmer.sh -c port=usb1 -w FlashLayout_sdcard_stm32mp157c-dk2-trusted.tsv
-------------------------------------------------------------------
STM32CubeProgrammer v2.9.0
-------------------------------------------------------------------
USB speed : High Speed (480MBit/s)
Manuf. ID : STMicroelectronics
Product ID : DFU in HS Mode @Device ID /0x500, @Revision ID /0x0000
SN : 002C002E3338511134383330
FW version : 0x0110
Board : --
Device ID : 0x0500
Device name : STM32MP1
Device type : MPU
Revision ID : --
Device CPU : Cortex-A7
Start Embedded Flashing service
Error: File does not exist: /users/vincent/Documents/03_DEV/STM32MP1/en.FLASH-stm32mp1-openstlinux-5-10-dunfell-mp1-21-11-17_tar_v3.1.0/stm32mp1-openstlinux-5.10-dunfell-mp1-21-11-17/images/stm32mp1/flashlayout_st-image-weston/trusted/arm-trusted-firmware/tf-a-stm32mp157c-dk2-usb.stm32
Error: TSV flashing service failedIndeed, the programmer is looking at a path which does not match with current filesystem.
I have got this errors for all the files the programmer was looking for. I have solved it by adding to symbolic links (instead of moving directories). For example:
0 [30 janv.-16:09:33] vincent@colin:~/Documents/03_DEV/STM32MP1/en.FLASH-stm32mp1-openstlinux-5-10-dunfell-mp1-21-11-17_tar_v3.1.0/stm32mp1-openstlinux-5.10-dunfell-mp1-21-11-17/images/stm32mp1/flashlayout_st-image-weston/trusted
$ ln -s ../../arm-trusted-firmware/ .