2023-03-10 03:06 AM
I cannot load the image into the SD card of the STM32MP157F-DK2 board.
I set the switches to OFF
I start the board that starts in BOOT FOR FLASCHING (only the LD4 led is on steady red)
Through the terminal or graphical STMProgrammer I start the download of the image (file: FlashLayout_sdcard_stm32mp157f-dk2-trusted.tsv)
It loads Partition ID 0x001 correctly, finishes loading Partition ID 0x003, then the board exits the BOOT FOR FLASHING mode (the blue LD8 LED lights up and the LD6 LED flashes red) and the software returns to me Reconnecting the device ...
Solved! Go to Solution.
2023-03-13 02:25 AM
Hi @MMarc.11
Blue led mean uBoot started, and led6 flashing is probably an USB Type-C compliance issue.
To confirm, could you share the board Console log (available thru ST-Link VCP) ?
Regards
2023-03-13 02:25 AM
Hi @MMarc.11
Blue led mean uBoot started, and led6 flashing is probably an USB Type-C compliance issue.
To confirm, could you share the board Console log (available thru ST-Link VCP) ?
Regards
2023-03-13 02:37 AM
Here you are:
10:36:36 : Start Embedded Flashing service
10:36:36 : Memory Programming ...
10:36:36 : Opening and parsing file: tf-a-stm32mp157f-dk2-usb.stm32
10:36:36 : File : tf-a-stm32mp157f-dk2-usb.stm32
10:36:36 : Size : 220,38 KB
10:36:36 : Partition ID : 0x01
10:36:36 : Download in Progress:
10:36:37 : File download complete
10:36:37 : Time elapsed during download operation: 00:00:01.580
10:36:37 : RUNNING Program ...
10:36:37 : PartID: :0x01
10:36:38 : Start operation done successfully at partition 0x01
10:36:38 : Memory Programming ...
10:36:38 : Opening and parsing file: fip-stm32mp157f-dk2-trusted.bin
10:36:38 : File : fip-stm32mp157f-dk2-trusted.bin
10:36:38 : Size : 1,14 MB
10:36:38 : Partition ID : 0x03
10:36:38 : Download in Progress:
10:36:41 : File download complete
10:36:41 : Time elapsed during download operation: 00:00:03.766
10:36:41 : RUNNING Program ...
10:36:41 : PartID: :0x03
10:36:42 : Reconnecting the device ...
2023-03-13 02:40 AM
and after the timeout time you add this:
10:37:42 : Error: Unable to reconnect the target device: time out expired
10:37:42 : Error: Start operation failed at partition 0x03
10:37:42 : Error: TSV flashing service failed
10:37:42 : Warning: Connection to device 0x500 is lost
10:37:42 : Disconnected from device.
if instead I press reset and reconnect the cycle repeats itself indefinitely
2023-03-13 03:00 AM
Hi @MMarc.11
I was meaning the UART console log using a serial terminal on STLink Virtual Com Port.
This is an example on Linux Ubuntu PC : https://wiki.st.com/stm32mpu/wiki/Getting_started/STM32MP1_boards/STM32MP157x-DK2/Let's_start/Execute_basic_commands#Serial_terminal
On W10 or W11 it is very similar, you could use any terminal application like putty or teraterm or else.
Setup is 115200,n,8,1
Regards,
2023-03-14 12:45 AM
I solved the problem, in the logs it showed me the supply current was too low.
Thank you