cancel
Showing results for 
Search instead for 
Did you mean: 

image download to sdcard with STM32MP157D-EV1

HKim.23
Associate III

image download to sdcard with STM32MP157D-EV1

Uploaded Image to SDCARD using VMWARE. However, it does not boot normally.

Below is the log when downloading. lastly, "unable to reconnect" error occurs.

------------------------------------------- log start -------------------------------------

denniskim@denniskim-pc:~/STM32MPU_workspace/STM32MP15-Ecosystem-v3.0.0/Starter-Package/stm32mp1-openstlinux-5.10-dunfell-mp1-21-03-31/images/stm32mp1$ STM32_Programmer_CLI -l usb

  -------------------------------------------------------------------

      STM32CubeProgrammer v2.7.0      

  -------------------------------------------------------------------

===== DFU Interface =====

Total number of available STM32 device in DFU mode: 1

 Device Index   : USB1

 USB Bus Number   : 001

 USB Address Number  : 002

 Product ID    : DFU in HS Mode @Device ID /0x500, @Revision ID /0x0000

 Serial number   : 002500473438511836383238

 Firmware version  : 0x0110

 Device ID    : 0x0500

denniskim@denniskim-pc:~/STM32MPU_workspace/STM32MP15-Ecosystem-v3.0.0/Starter-Package/stm32mp1-openstlinux-5.10-dunfell-mp1-21-03-31/images/stm32mp1$ STM32_Programmer_CLI -c port=usb1 -tm 40000 -w flashlayout_st-image-weston/trusted/FlashLayout_sdcard_stm32mp157d-ev1-trusted.tsv

  -------------------------------------------------------------------

      STM32CubeProgrammer v2.7.0      

  -------------------------------------------------------------------

Warning: Timeout is forced to 40000 ms

USB speed : Full Speed (12MBit/s)

Manuf. ID : STMicroelectronics

Product ID : DFU in HS Mode @Device ID /0x500, @Revision ID /0x0000

SN   : 002500473438511836383238

FW version : 0x0110

Device ID : 0x0500

Device name : STM32MP1

Device type : MPU

Device CPU : Cortex-A7

Start Embedded Flashing service

Memory Programming ...

Opening and parsing file: tf-a-stm32mp157d-ev1-usb.stm32

 File   : tf-a-stm32mp157d-ev1-usb.stm32

 Size   : 225572 Bytes

 Partition ID : 0x01 

Download in Progress:

[==================================================] 100%

File download complete

Time elapsed during download operation: 00:00:04.660

RUNNING Program ... 

 PartID:  :0x01 

Start operation done successfully at partition 0x01

Flashlayout Programming ...

[==================================================] 100% 

Running Flashlayout Partition ...

Flashlayout partition started successfully

Memory Programming ...

Opening and parsing file: fip-stm32mp157d-ev1-trusted.bin

 File   : fip-stm32mp157d-ev1-trusted.bin

 Size   : 1073350 Bytes

 Partition ID : 0x03 

Download in Progress:

[==================================================] 100% 

File download complete

Time elapsed during download operation: 00:00:28.677

RUNNING Program ... 

 PartID:  :0x03 

Reconnecting the device ...

Error: 

Unable to reconnect the target device: time out expired

Error: Start operation failed at partition 0x03

Error: TSV flashing service failed

---------------------------------------------log end-------------------------------------------------------

I found an answer to the same issue.

I tried using windows' stm32cubeprogrammer as a solution to another question.

However, when the download button is pressed, the following error occurs.

 16:54:02 : Error: The file tf-a-stm32mp157d-ev1-usb.stm32 does not exist, please check the file's path

 16:54:02 : Error: Download partition 0x01 failed

 16:54:02 : Error: TSV flashing service failed

1 ACCEPTED SOLUTION

Accepted Solutions
OlivierK
ST Employee

Hello HKim.23 (Community Member) 

1- As you are using VMWare and Windows on the same machine, could you make sure the USB ressources are not shared between the 2 OS while using STM32CubeProgrammer.

2- I've just checked the source files of the starter package,  tf-a-stm32mp157d-ev1-usb.stm32 is indeed present. Make sure you select the right path in the "Binary Path" and double check the file is present (or download again the starter package https://my.st.com/content/my_st_com/en/products/embedded-software/mcu-mpu-embedded-software/stm32-embedded-software/stm32-mpu-openstlinux-distribution/stm32mp1starter.html 

Best Regards,

Olivier

View solution in original post

6 REPLIES 6
OlivierK
ST Employee

Hello HKim.23 (Community Member) 

1- As you are using VMWare and Windows on the same machine, could you make sure the USB ressources are not shared between the 2 OS while using STM32CubeProgrammer.

2- I've just checked the source files of the starter package,  tf-a-stm32mp157d-ev1-usb.stm32 is indeed present. Make sure you select the right path in the "Binary Path" and double check the file is present (or download again the starter package https://my.st.com/content/my_st_com/en/products/embedded-software/mcu-mpu-embedded-software/stm32-embedded-software/stm32-mpu-openstlinux-distribution/stm32mp1starter.html 

Best Regards,

Olivier

OlivierK, Thanks a lot.

Once I succeeded in downloading through Windows.

In order to successfully download in Windows, the bin folder containing STM32_Programmer_CLI is registered as the environment variable PATH.

Then I went to the folder where the Image is and performed the download.

Downloaded normally.

But I still have questions. If you know about this, please reply.

1. When downloading in Windows, the download speed is very slow. Do you have any way to improve this? Now it takes over a minute.

2. If using Vmware, you said "make sure the USB ressources are not shared". Is this possible in Vmware? If you know how to set this up, please guide me.

for reference, to use usb in Vmware linux, I am using as follows.0693W00000D04DHQAZ.png

OlivierK
ST Employee

Hi HKim.23 (Community Member)

  1. Regarding the download speed, what do you mean by very slow? I would select USB 3.0 (instead of USB 2.0) as you shared in the above picture. Apart from this there's nothing much you can do to improve the download speed. Did you try the same using STM32CubeProgrammer on Linux side using VMWare?
  2. I see Oracle Virtual box in the above picture, which is rather different than VMWare. On VMWare Workstation 16 player, once you plug a USB device, a popup window ask whether to allocate the ressource to VMWare or to the Host, there's also a tick box at the bottom to memorize the ressource allocation.

OlivierK
ST Employee

0693W00000D04pPQAR.jpg

HKim.23
Associate III

I confused VMWare and VirtualBox.

I will try what you said.

Thank you for answer.

OlivierK
ST Employee

In order to give better visibility on the answered topics, please click on 'Select as Best' on the reply which solved your issue or answered your question. See also 'Best Answers'