Question
Can't boot from SD card on STM32MP157A-EV1
I am trying to get this board up and running again after being away from it for a while, but I've been running into problems trying to boot from the SD card. I followed the instructions from the wiki here: https://wiki.st.com/stm32mpu/wiki/STM32MP15_Evaluation_boards_-_Starter_Package
I tried flashing in DFU mode:
~/Downloads/stm32mp1-openstlinux-5.4-dunfell-mp1-20-06-24/images/stm32mp1$ STM32_Programmer_CLI -tm 20000 -c port=usb1 -w flashlayout_st-image-weston/trusted/FlashLayout_sdcard_stm32mp157a-ev1-trusted.tsv
-------------------------------------------------------------------
STM32CubeProgrammer v2.5.0
-------------------------------------------------------------------
Warning: Timeout is forced to 20000 ms
USB speed : High Speed (480MBit/s)
Manuf. ID : STMicroelectronics
Product ID : DFU in HS Mode @Device ID /0x500, @Revision ID /0x0000
SN : 003E003E3438511638333630
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-stm32mp157a-ev1-serialboot.stm32
File : tf-a-stm32mp157a-ev1-serialboot.stm32
Size : 241984 Bytes
Partition ID : 0x01
Download in Progress:
[==================================================] 100%
File download complete
Time elapsed during download operation: 00:00:00.634
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: u-boot-stm32mp157a-ev1-trusted.stm32
File : u-boot-stm32mp157a-ev1-trusted.stm32
Size : 874861 Bytes
Partition ID : 0x03
Download in Progress:
[==================================================] 100%
File download complete
Time elapsed during download operation: 00:00:01.154
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 failedI have also tried populating the SD card directly with dd, the results:
NOTICE: CPU: STM32MP157AAA Rev.B
NOTICE: Model: STMicroelectronics STM32MP157A eval daughter on eval mother
NOTICE: Board: MB1263 Var1.0 Rev.C-01
INFO: Reset reason (0x15):
INFO: Power-on Reset (rst_por)
INFO: PMIC version = 0x10
INFO: Using SDMMC
INFO: Instance 1
INFO: Boot used partition fsbl1
ERROR: stm32_sdmmc2_read: timeout 1s (status = 81000)
INFO: SDMMC_POWER = 0x13
INFO: SDMMC_CLKCR = 0x134002
INFO: SDMMC_ARGR = 0xfffff1
INFO: SDMMC_CMDR = 0x146
INFO: SDMMC_RESPCMDR = 0x6
INFO: SDMMC_RESP1R = 0x900
INFO: SDMMC_RESP2R = 0x0
INFO: SDMMC_RESP3R = 0x0
INFO: SDMMC_RESP4R = 0x0
INFO: SDMMC_DTIMER = 0xffffffff
INFO: SDMMC_DLENR = 0x40
INFO: SDMMC_DCTRLR = 0x62
INFO: SDMMC_DCNTR = 0x40
INFO: SDMMC_MASKR = 0x0
INFO: SDMMC_ACKTIMER = 0x0
ERROR: stm32_sdmmc2_send_cmd_req: CTIMEOUT (cmd = 12,status = 804)
WARNING: CMD12, Retry: 0, Error: -60
ERROR: stm32_sdmmc2_send_cmd_req: CTIMEOUT (cmd = 12,status = 804)
WARNING: CMD12, Retry: 1, Error: -60
ERROR: stm32_sdmmc2_send_cmd_req: CTIMEOUT (cmd = 12,status = 804)
WARNING: CMD12, Retry: 2, Error: -60
ERROR: stm32_sdmmc2_send_cmd_req: CTIMEOUT (cmd = 12,status = 804)
WARNING: CMD12, Retry: 3, Error: -60
ERROR: SDMMC1 init failed
PANIC at PC : 0x2ffd7911
Exception mode=0x00000016 at: 0x0000f289