cancel
Showing results for 
Search instead for 
Did you mean: 

STM32MPU257F Stm32CubeProgrammer: Unable to reconnect the target device

pierrelc
Visitor

Hello Experts,


Based on STM32MP257F-EV1 we have designed a custom board. For the DDR, PMIC, and eMMC we tried to follow the EV1 rooting as much as possible. There are few differences on the BOM though: 
Our DDR chips are Alliance Memory AS4C1G16D4A-62BCN
Our eMMC is a Kingston EMMC32G-TS0A-01002

We have build an image that can be flashed into the EV1's eMMC without any issues. 
Things go differently when we try to flash our 2 prototypes.  
The first prototype stops after having properly downloaded the partition 0x3 fip-stm32mp257f:

12:15:04 : Number of partitions: 14
12:15:29 : USB speed   : High Speed (480MBit/s)
12:15:29 : Manuf. ID   : STMicroelectronics
12:15:29 : Product ID  : DFU in HS Mode @Device ID /0x505, @Revision ID /0x2000
12:15:29 : SN          : 0029002A4C4250110038344D
12:15:29 : DFU protocol: 1.1
12:15:29 : Board       : --
12:15:29 : Device ID   : 0x0505
12:15:36 : Start Embedded Flashing service
12:15:36 : Opening and parsing file: tf-a-stm32mp257f-tablet-mx-optee-programmer-usb.stm32
12:15:36 : Memory Programming ...
12:15:36 :   File          : tf-a-stm32mp257f-tablet-mx-optee-programmer-usb.stm32
12:15:36 :   Size          : 198.95 KB
12:15:36 :   Partition ID  : 0x01
12:15:36 : Download in Progress:
12:15:38 : File download complete
12:15:38 : Time elapsed during download operation: 00:00:01.946
12:15:38 : RUNNING Program ...
12:15:38 :   PartID:      :0x01
12:15:38 : Reconnecting the device ...
12:15:38 : USB speed   : High Speed (480MBit/s)
12:15:38 : Manuf. ID   : STMicroelectronics
12:15:38 : Product ID  : DFU @Device ID /0x505, @Revision ID /0x0011,  /STM32MP257FAI Rev.Y,
12:15:38 : SN          : 0029002A4C4250110038344D
12:15:38 : DFU protocol: 1.1
12:15:38 : Board       : --
12:15:38 : Device ID   : 0x0505
12:15:38 : Device name : STM32MP257FAI Rev.Y
12:15:38 : Device type :
12:15:38 : Device CPU  :
12:15:38 : Start operation done successfully at partition 0x01
12:15:38 : Opening and parsing file: fip-stm32mp257f-tablet-mx-ddr-optee-programmer-usb.bin
12:15:38 : Memory Programming ...
12:15:38 :   File          : fip-stm32mp257f-tablet-mx-ddr-optee-programmer-usb.bin
12:15:38 :   Size          : 29.38 KB
12:15:38 :   Partition ID  : 0x02
12:15:38 : Download in Progress:
12:15:38 : File download complete
12:15:38 : Time elapsed during download operation: 00:00:00.054
12:15:38 : RUNNING Program ...
12:15:38 :   PartID:      :0x02
12:15:39 : Reconnecting the device ...
12:15:39 : USB speed   : High Speed (480MBit/s)
12:15:39 : Manuf. ID   : STMicroelectronics
12:15:39 : Product ID  : DFU @Device ID /0x505, @Revision ID /0x0011,  /STM32MP257FAI Rev.Y,
12:15:39 : SN          : 0029002A4C4250110038344D
12:15:39 : DFU protocol: 1.1
12:15:39 : Board       : --
12:15:39 : Device ID   : 0x0505
12:15:39 : Device name : STM32MP257FAI Rev.Y
12:15:39 : Device type :
12:15:39 : Device CPU  :
12:15:39 : Start operation done successfully at partition 0x02
12:15:39 : Opening and parsing file: fip-stm32mp257f-tablet-mx-optee-programmer-usb.bin
12:15:39 : Memory Programming ...
12:15:39 :   File          : fip-stm32mp257f-tablet-mx-optee-programmer-usb.bin
12:15:39 :   Size          : 2.97 MB
12:15:39 :   Partition ID  : 0x03
12:15:39 : Download in Progress:
12:15:43 : File download complete
12:15:43 : Time elapsed during download operation: 00:00:03.658
12:15:43 : RUNNING Program ...
12:15:43 :   PartID:      :0x03
12:15:43 : Reconnecting the device ...
12:16:13 : Error: Unable to reconnect the target device: time out expired
12:16:13 : Error: Start operation failed at partition 0x03
12:16:13 : Error: TSV flashing service failed
12:16:14 : Disconnected from device.

 

The second prototype stops after having downloaded the partition 0x02: 
0x2.jpeg

Please note: 

  • We have seen many threads with "Reconnecting the device ..." issues but we could not find a satisfying solution for our custom board
  • After the reconnection fails, the board needs a complete power cycle OFF/ON, otherwise stm32cubeProgrammer can't detect the "USB1" anymore.
  • We have tried 2 Ubuntu 24.04 PCs, and one Mac (we don't use any VM): Same behaviour.
  • We use 2 different 12v power supplies to power the two prototypes.
  • We tried to flash the generic openstlinuxweston-stm32mp2 image. Same conclusion: EV1 flash+runs perfects. Prototypes stops at part 0x2/0x3.
  • We tried all the eMMC .tsv flashlayouts: optee, opteemin, fastboot, fastboot-opteemin. Again, same conclusion : EV1 flash+runs smoothly. Prototypes stops during flash process.

Any idea what could cause this "Unable to reconnect the target device" ?

Thank you



0 REPLIES 0