cancel
Showing results for 
Search instead for 
Did you mean: 

How to launch STM32Cubeprogrammer in ubuntu can you please tell me.

MVENN.1
Associate II

i am not able to flash the image in stm32mp157c-dk2

43 REPLIES 43
Olivier GALLIEN
ST Employee

Hi @MVENN.1​ 

Please follow carefully the Getting Started

Just pay attention that when reconnecting during download the USB device is well catch by your Virtual Machine and not your host

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.
MVENN.1
Associate II

look at this once please provide suggestion.

12:03:28 : STM32CubeProgrammer API v2.6.0

12:03:35 : USB speed : High Speed (480MBit/s)

12:03:35 : Manuf. ID : STMicroelectronics

12:03:35 : Product ID : DFU in HS Mode @Device ID /0x500, @Revision ID /0x0000

12:03:35 : SN : 0046003E3338510634383330

12:03:35 : FW version : 0x0110

12:03:35 : Device ID : 0x0500

12:03:41 : Read TSV File: D:\Projects\Tag\stm32MP1\stm32mp1-openstlinux\images\stm32mp1\flashlayout_st-image-weston\FlashLayout_sdcard_stm32mp157c-dk2-trusted.tsv

12:03:41 : Number of partitions: 9

12:03:59 : Start Embedded Flashing service

12:03:59 : Memory Programming ...

12:03:59 : Opening and parsing file: tf-a-stm32mp157c-dk2-trusted.stm32

12:03:59 : File : tf-a-stm32mp157c-dk2-trusted.stm32

12:03:59 : Size : 245364 Bytes

12:03:59 : Partition ID : 0x01 

12:03:59 : Download in Progress:

12:04:00 : File download complete

12:04:00 : Time elapsed during download operation: 00:00:00.534

12:04:00 : RUNNING Program ... 

12:04:00 : PartID: :0x01 

12:04:00 : Start operation done successfully at partition 0x01

12:04:00 : Flashlayout Programming ...

12:04:00 : Running Flashlayout Partition ...

12:04:00 : Flashlayout partition started successfully

12:04:00 : Memory Programming ...

12:04:00 : Opening and parsing file: u-boot-stm32mp157c-dk2-trusted.stm32

12:04:00 : File : u-boot-stm32mp157c-dk2-trusted.stm32

12:04:00 : Size : 805514 Bytes

12:04:00 : Partition ID : 0x03 

12:04:00 : Download in Progress:

12:04:01 : File download complete

12:04:01 : Time elapsed during download operation: 00:00:00.992

12:04:01 : RUNNING Program ... 

12:04:01 : PartID: :0x03 

12:04:01 : reconnecting the device ...

12:04:31 : Error: unable to reconnect the target device: time out expired

12:04:31 : Error: Start operation failed at partition 0x03

12:04:31 : Error: TSV flashing service failed

12:04:31 : Warning: Connection to device 0x500 is lost

12:04:32 : Disconnected from device.

Thanks

please have a look to https://community.st.com/s/article/FAQ-STM32MP1-STM32CubeProgrammer-USB-reconnect-error-at-STM32MP1-boot-device-flashing

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.

Hi PatrickF(ST Employee)

Thank you for reply

I am using 5V/2A power supply. And also red led Blink continue.

can you just tell the where is the mistake i did.

Thank you.

Try to start a console on the VCP provided by the STLINK (115200,n,8,1), there is maybe useful messages

Check BOOT switches

Please have a look to the end of the page for Led blink signification (if the platform start) https://wiki.st.com/stm32mpu/wiki/Getting_started/STM32MP1_boards/STM32MP157x-DK2/Let%27s_start/Populate_the_target_and_boot_the_image

Supply must USB Type-C compliant, uBoot use CC lines advertising to check supply capabilities.

You could try to connect to a PC, it usually start, but with 2 blinks (detected as a 500mA supply). There might be issue if you connect powerful USB peripherals to the DK2.

Example of validated supply are (not limited to) :

  • Raspberry Pi SC0217
  • IKEA ASKSTORM 23W (1CPSW5-23EU-1)
  • ARTESYN DA45C-J3W
  • CHOETECH TC0001
  • etc...
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.

Yes I tried to connect the USb C cable on PC it blink 2 times after that continues ON. So this is the problem ​I am able flash the image in SD card.

Yes I tried to connect USB c cable on PC it blink only 2 timesw after that continue ON.

Is the problem I not able to flash the image in to the SD card. ​

I tried and connect the STLINK but the device name is not showing.

And also I tried to connect the PC its blinking 2 times after that continues ON. This only supply issue. I am not able to flash the image in to the SD card.

MVENN.1
Associate II

Hi

Thank you for given this information.

I can able to flash the image on SD card in STM32CubeProgrammer in Windows.

After Booting( ON position ) i am getting default images like

0693W000005CbPRQA0.jpg0693W000005CbQAQA0.jpgAfter that this image only showing last 10 min onwards

i am not getting this image down one .

0693W000005CbRNQA0.jpg any one can reply.

Thanks.