2020-10-15 03:11 PM
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 failed
I 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
2020-10-16 12:30 AM
Hi @CC ,
Very weird and unusual issue ...
Could you share SDCard memory model you are using ?
Do you have a chance to try with another one ?
Olivier
2020-10-16 09:18 AM
Hi @Community member , thanks for looking into this.
I have tried a SanDisk Edge 16 GB Class 10, SanDisk Ultra 32 GB SDHC Class 10, and a Kingston 8 GB Class 4, all with the same results.
2020-10-20 05:15 AM
Hi,
Could you share precise boards references and serial number ?
To confirm if there is a undetected regression in our deliveries, could you give a try with the previous starter package ?
e,g, selecting v1.2.0 on this link :https://www.st.com/content/st_com/en/products/embedded-software/mcu-mpu-embedded-software/stm32-embedded-software/stm32-mpu-openstlinux-distribution/stm32mp1starter.html#get-software
2020-10-23 09:59 AM
@PatrickF
I tried v1.2.0 and v1.0.0, same results.
I'm not exactly sure where to find board reference number and serial number, I don't have the original packaging with me at the moment (I can get it if necessary). Hopefully this picture captures it? Thanks
2020-10-26 02:11 AM
Please check carefully that all jumpers are set to their default (according to board UserManual).
Maybe worth to try to Flash and Boot using embedded eMMC.
Sound very strange that board is partially booting, you might have a weird HW issue around the SD-Card. BootROM and first level boot are using 1-bit data, then 4-bit data is used at one point of time, which might explain that the boot is starting ok then failing.
Regards.