Error: TSV flashing service failed(STM32CubeProgrammer)

created at 01-15-2022 views: 8

problem

An exception occurs when using STM32CubeProgrammer to program the BearPi-HM_Micro_small development board

error message:

09:43:24 : Error: Error while reading the file
09:43:25 : Error: Download partition 0x22 failed
09:43:25 : Error: TSV flashing service failed

Abnormal cause analysis

  • Use Hyper-v to create a virtual machine Ubuntu20.04, and the network adopts the internal network mode.

Hyper-v create a vm

  • The IP address adopts static IP address.

static IP address

  • The physical host network adopts the bridging method.

physical host network

Preliminary analysis of the reasons

Cause: Physical hosts and virtual hosts cannot use bridged network settings.

solution

  1. Cancel the bridge network settings for physical and virtual machines
  2. Hyper-v uses default network switching
  3. The ubuntu network is set up in DHCP mode.

After the setting is completed, burn the original program again and burn it successfully.

10:30:31 : STM32CubeProgrammer API v2.5.0
10:30:35 : USB speed : High Speed (480MBit/s)
10:30:35 : Manuf. ID : STMicroelectronics
10:30:35 : Product ID : USB download gadget@Device ID /0x500, @Revision ID /0x2001, @Name /STM32MP157AAC Rev.Z,
10:30:35 : SN : 003C00343030510B34343437
10:30:35 : FW version : 0x0110
10:30:35 : Device ID : 0x0500
10:30:52 : Read TSV File: M:\BearPi_Micro\bearpi-hm_micro_small\applications\BearPi\BearPi-HM_Micro\tools\download_img\flashlayout\bearpi-hm_micro.tsv
10:30:52 : Number of partitions: 8
10:31:04 : Start Embedded Flashing service
10:31:04 : Memory Programming ...
10:31:04 : Opening and parsing file: rootfs_vfat.img
10:31:04 : File : rootfs_vfat.img
10:31:04 : Size : 18175 KBytes
10:31:04 : Partition ID : 0x22
10:31:04 : Download in Progress:
10:31:16 : File download complete
10:31:16 : Time elapsed during download operation: 00:00:12.118
10:31:16 : RUNNING Program ...
10:31:16 : PartID: :0x22
10:31:16 : Start operation done successfully at partition 0x22
10:31:16 : Memory Programming ...
10:31:16 : Opening and parsing file: userfs_vfat.img
10:31:17 : File : userfs_vfat.img
10:31:17 : Size : 50 MBytes
10:31:17 : Partition ID : 0x23
10:31:17 : Download in Progress:
10:31:50 : File download complete
10:31:50 : Time elapsed during download operation: 00:00:33.689
10:31:50 : RUNNING Program ...
10:31:50 : PartID: :0x23
10:31:50 : Start operation done successfully at partition 0x23
10:31:50 : Flashing service completed successfully
created at:01-15-2022
edited at: 01-15-2022: