cancel
Showing results for 
Search instead for 
Did you mean: 

No boot after flashing the STM32MP157f-dk2 SD card

anpa
Associate II

Hi all,


I just got the board and off course now want to follow the official page (https://wiki.stmicroelectronics.cn/stm32mpu/wiki/Getting_started/STM32MP1_boards/STM32MP135x-DK/Let%27s_start/Populate_the_target_and_boot_the_image) for flashing.

OS windows 10.

STMCubeProgrammer v2.18.0

  1. inserted SD card to board, SW1 set to USB, connected PC with CN7
  2. started the STMCubeProgrammer and successfully connected to USB1 (so drivers OK)
  3. downloaded en.FLASH-stm32mp1-openstlinux-6.6-yocto-scarthgap-mpu-v24.11.06.tar.gz and unpacked
  4. run in cmd: C:\Program Files(x86)\STMicroelectronics\STM32Cube\STM32CubeProgrammer\bin>STM32_Programmer_CLI.exe -c port=usb1 -w C:\<path>\FlashLayout_sdcard_stm32mp157f-dk2-optee.tsv
  5. see result Download.png (as I never saw a correct log I think here something went wrong after "Reconnecting the device ...")
  6. on display: "DFU alt info setting: done"
    "crq->brequest: 0x0"
  7. power off, SW1 set to SD card (position oppostite from USB), power ON
  8. nothing on display and on uart

Regards

11 REPLIES 11
anpa
Associate II

Hi,

 

anpa_0-1734603799481.png

Regards

anpa
Associate II

HI PatrickF,

 

Good news, I found a way to download.

  • I run again start "STM32 USB DFU DRIVER" pnputil -i -a %0\..\Driver\STM32Bootloader.inf but without connected USB and I got a message success (but not sure was this step actual needed).
  • Open CubeProgrammer.
  • So first attempt is like I described and crashes the programmer The usb state is Product ID : DFU in HS Mode @Device ID /0x500, @Revision ID /0x0000.
  • Than without resetting the board I reopen the programmer connect the board but than it is reported Product ID : USB download gadget@Device ID /0x500, @Revision ID /0x2001, @Name /STM32MP157FAC Rev.Z so I thought it will work, but crashes again.
  • Luckily the 3 attempt works until the end and downloads ALL (important dont reset the board leave the state from 2nd attempt)

 

anpa_0-1734862733335.png

Attached the uart log with all 3 attempts.

This issue is resolved!!!!

Regards & thx for support,

anpa