cancel
Showing results for 
Search instead for 
Did you mean: 

STM32MP157C-DK2 not getting populated.

Puranjay Mohan
Associate II

I am trying to flash a 32gb sd card with stlinux for STM32MP157C-DK2 using the guide at https://wiki.st.com/stm32mpu/wiki/Getting_started/STM32MP1_boards/STM32MP157C-DK2/Let%27s_start/Populate_the_target_and_boot_the_image

The SD card that came with the kit boot perfectly, I just want to flash another sd card.

I am using Ubuntu 16.04 LTS on my laptop

details about my STM32MP157C-DK2

Serial number(below pcb) : DK32MP157C2$AU1

These are the commands I ran and the output I got on console :

$ STM32_Programmer_CLI -c port=usb1 -w flashlayout_st-image-weston/FlashLayout_sdcard_stm32mp157c-dk2-trusted.tsv
      -------------------------------------------------------------------
                        STM32CubeProgrammer v2.2.0                  
      -------------------------------------------------------------------
 
 
 
USB speed   : High Speed (480MBit/s)
Manuf. ID   : STMicroelectronics
Product ID  : DFU in HS Mode @Device ID /0x500, @Revision ID /0x0000
SN          : 002900333338510939303435
FW version  : 0x0110
Device ID   : 0x0500
Device name : STM32MPxxx
Device type : MPU
Device CPU  : Cortex-A7
 
 
Start Embedded Flashing service
 
 
 
Memory Programming ...
Opening and parsing file: tf-a-stm32mp157c-dk2-trusted.stm32
  File          : tf-a-stm32mp157c-dk2-trusted.stm32
  Size          : 245364 Bytes
  Partition ID  : 0x01 
 
Download in Progress:
[==================================================] 100% 
 
File download complete
Time elapsed during download operation: 00:00:00.666
 
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-stm32mp157c-dk2-trusted.stm32
  File          : u-boot-stm32mp157c-dk2-trusted.stm32
  Size          : 805514 Bytes
  Partition ID  : 0x03 
 
Download in Progress:
[==================================================] 100% 
 
File download complete
Time elapsed during download operation: 00:00:00.989
 
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

13 REPLIES 13

You use a supply which is not USB Type-C compliant !

Error is issued because uBoot does not detect the right CC lines levels as required by the USB standard. So boot process stop (This is a SW choice for our DK2 started package, you are free to modify/rebuilt uBoot to ignore this).

Please have a look to this post which list some tested supplies: https://community.st.com/s/question/0D50X0000Bftr1ySQA/power-supply-for-stm32mp157cdk2

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.

Thanks for the info,

Can you provide me with some resources related to development using the DK2 Kit, I want build a user interface for a project.

I am familiar with MCUs but when using an MPU such as in the DK2, how would one make a solution where when the device is booted up, a user interface opens automatically for some HMI and the user can interact using the screen, I also want it to be able to connect to wifi. How can one build something like this using the DK2.

Please help me.

Thanks in advance.

I was thinking about writing a GTK3 application and sending it to the DK2, but how would connect to wifi and send API requests to server.

Bernard PUEL
ST Employee

Yes it is a good idea to use GTK, you will find many help from the community and some basic samples applications developed by ST (GTK + Python) on the starter packages.

see: https://wiki.st.com/stm32mpu/wiki/GTK_demo_launcher