2021-01-29 01:24 AM
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.
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?
Solved! Go to Solution.
2021-02-01 07:29 AM
Hi @KMalt.2 ,
Can you try using CubeProgrammer under Windows ?
Thx
Olivier
2021-01-29 02:20 AM
Hi @KMalt.2
Can you please share your exact board reference and complete Cubeprogrammer and UART console logs ?
Thx
Olivier
2021-01-29 03:14 AM
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).
2021-02-01 07:29 AM
Hi @KMalt.2 ,
Can you try using CubeProgrammer under Windows ?
Thx
Olivier
2021-02-05 02:33 AM
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
2021-02-05 05:13 AM
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