cancel
Showing results for 
Search instead for 
Did you mean: 

Error flashing weston example to SD Card STM32MP157C EV1

KMalt.2
Associate II

Hello ST Community,

I am starting to work with the STM32MP157C-EV1 board and working through the example https://wiki.st.com/stm32mpu/wiki/Getting_started/STM32MP1_boards/STM32MP157x-EV1/Let%27s_start/Populate_the_target_and_boot_the_image.

While flashing with STMCubeProgrammer (v 2.6.0) the "FlashLayout_sdcard_stm32mp157c-ev1-trusted.tsv" to the SD Card (SanDisk 16Gb), I get an error "TSV Flashing servie failed", "Download partition 0x21 failed". On another try, it failed later during partition 0x23.

I set the "Binaries path" to "*/Starter-Package/stm32mp1-openstlinux-5-4-dunfell-mp1-20-11-12/images/stm32mp1" in the STM32CubeProgrammer GUI. The OS is ubuntu 18.04 in a VM on Windows 10.

The board is powered on, and the USB is connected via USB OTG.

I had a look at https://community.st.com/s/question/0D70X0000075Bxi/detail?s1oid=00Db0000000YtG6&t=1611906706916&s1nid=0DB0X000000DYbd&emkind=chatterCommentNotification&s1uid=0050X000007RRzf&emtm=1562243726800&fromEmail=1&s1ext=0

and tried Flashing the eMMC like PatrickF suggested, but get the same error while flashing to SD Card (Download partition 0x21 failed).

Here the Error log verbosity level1 of the Cube Programmer, while flashing the SD Card:

.....

 09:45:16 : Memory Programming ...

 09:45:16 : Opening and parsing file: st-image-bootfs-openstlinux-weston-stm32mp1.ext4

 09:45:16 :  File         : st-image-bootfs-openstlinux-weston-stm32mp1.ext4

 09:45:16 :  Size         : 64 MBytes

 09:45:16 :  Partition ID : 0x21

 09:45:16 : Download in Progress:

 09:50:20 : Error: failed to download Segment[0]

 09:50:20 : Error: failed to download the File

 09:50:20 : Error: Download partition 0x21 failed

 09:50:20 : Error: TSV flashing service failed

What is my mistake?

1 ACCEPTED SOLUTION

Accepted Solutions
Olivier GALLIEN
ST Employee

Hi @KMalt.2​ ,

Can you try using CubeProgrammer under Windows ?

Thx

Olivier

Olivier GALLIEN
In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.

View solution in original post

5 REPLIES 5
Olivier GALLIEN
ST Employee

Hi @KMalt.2​ 

Can you please share your exact board reference and complete Cubeprogrammer and UART console logs ?

Thx

Olivier

Olivier GALLIEN
In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.
KMalt.2
Associate II

Thanks alot for the quick reply.

STM32MP157C-EV1 (VA32MP157C1$AU1)

Jumpers on the daughter board MB1263: JP4 and JP5 [2 3]; JP3 [1 2]; JP1 removed

Jumpers on the mother board MB1262: JP1 and JP 2 [2 3]; JP3 and JP4 [1 2]; JP5 and JP6 removed; JP7 [1 2].

Boot Mode: Forced USB Boot for flashing -> 1,2,3 off / and 4 on

Is this the information of the exact board reference?

I am unsure how to access the UART console log. How can I access it?

I attached an image of the output on the lcd display, and the complete CubeProgrammer log (verbosity level 2).

0693W000007DBvbQAG.jpg

Olivier GALLIEN
ST Employee

Hi @KMalt.2​ ,

Can you try using CubeProgrammer under Windows ?

Thx

Olivier

Olivier GALLIEN
In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.
KMalt.2
Associate II

Hello @Community member​,

I was not able to try it earlier under Windows, but today I was able to do it.

Now, the image is flashed on the SD card and the board is able to boot and run the GTK Lauchner, like the tutorial.

Thanks alot, so the error was due to complications with my Virtual Machine. Is that common?

Do I have to expect more errors using the CubeIDE with a VM?

Thanks alot

Malte

Hi @KMalt.2​ ,

Thanks for feedback.

No so common, but some instabilities have been reported for USB in some Ubuntu18.04 installation.

Now ST recommend and validate Ubuntu20.04 with VMWare Workstation Player 15 or above.

Worth to try to align with this in order to avoid any environment issue.

Olivier

Olivier GALLIEN
In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.