cancel
Showing results for 
Search instead for 
Did you mean: 

Openstlinux and STM32CubeProgrammer

AVazquez
Associate III

Hi, I try upload Openstlinux-5.4-dunfell-mp1-20-06-24 in a stm32mp157c-ev1(Nand).

I used STM32_Programmer_CLI version 2.3.0 and I get the next error:

------------------------STM32_Programmer_CLI ---------------------------------

reconnecting the device ...

USB speed  : High Speed (480MBit/s)

Manuf. ID  : STMicroelectronics

Product ID : USB download gadget@Device ID /0x500, @Revision ID /0x2000, @Name /STM32MP157CAA Rev.B,

SN     : 0026003D3338510439303435

FW version : 0x0110

Device ID  : unknown

Start operation done successfully at partition 0x03

Memory Programming ...

Opening and parsing file: tf-a-stm32mp157c-ev1-trusted.stm32

 File     : tf-a-stm32mp157c-ev1-trusted.stm32

 Size     : 241984 Bytes

 Partition ID : 0x04 

Download in Progress:

Error: failed to download Segment[0]

Error: failed to download the File

Time elapsed during download operation: 00:00:30.005

Error: Download partition 0x04 failed

Error: TSV flashing service failed

-------------------------------------------------------------------------------

-----------------------U-Boot 2020.01-stm32mp-r1 (Board)--------------

U-Boot 2020.01-stm32mp-r1 (Jan 06 2020 - 20:56:31 +0000)

CPU: STM32MP157CAA Rev.B

Model: STMicroelectronics STM32MP157C eval daughter on eval mother

Board: stm32mp1 in trusted mode (st,stm32mp157c-ev1)

Board: MB1263 Var1.0 Rev.C-02

DRAM: 1 GiB

Clocks:

- MPU : 650 MHz

- MCU : 208.878 MHz

- AXI : 266.500 MHz

- PER : 24 MHz

- DDR : 533 MHz

WDT:  Started with servicing (32s timeout)

NAND: 1024 MiB

MMC:  STM32 SD/MMC: 0, STM32 SD/MMC: 1

In:  serial

Out:  serial

Err:  serial

Net:  eth0: ethernet@5800a000

Hit any key to stop autoboot: 0 

Boot over usb0!

partitions : done

DFU alt info setting: using id 'nand0,0'

using id 'nand0,1'

using id 'nand0,2'

using id 'nand0,3'

done

#

UPLOAD ... done

Ctrl+C to exit ...

dfu_write: Wrong sequence number! [0] [2]

------------------------------------------------------------------------------------

With the last release of STM32CubeProgrammer (2.5.0) work and i can upload the Demo.

I would like to know why STM32CubeProgrammer (2.3.0) is not compatible with Openstlinux-5.4-dunfell-mp1-20-06-24. I see changelog of openstlinux and i don't find nothing about it.

Thanks!!

1 ACCEPTED SOLUTION

Accepted Solutions
PDELA.1
Associate II

For information,

in U-Boot for V2.0, "@Name" with full SOC name is provide during USB enumeration:

Product ID : USB download gadget@Device ID /0x500, @Revision ID /0x2000, @Name /STM32MP157CAA Rev.B,

but this field is compatible only with the latest ST32CubePRogrammer version (> 2.4.0)

FYI v2.5.0 is indicated in STM32MP15-ecosystem-v2.0.0 release = https://wiki.st.com/stm32mpu/wiki/STM32MP15_ecosystem_release_note

else the ID is not detected and load failed, it is indicated in the trace by:

...

Device ID  : unknown

....

Patrick

View solution in original post

4 REPLIES 4
TDK
Guru

Probably because Openstlinux-5.4-dunfell-mp1-20-06-24 was released after v2.3.0 and the software is not forwards compatible.

Just a guess.

If you feel a post has answered your question, please click "Accept as Solution".
AVazquez
Associate III

Hi, TDK. Thanks for aswer.

Yes, Openstlinux-5.4-dunfell-mp1-20-06-24 was released after v2.3.0 but v2.4.0 also and with v2.4.0 work fine.

I guess the problem comes from the u-boot but I'd like to know that it's changed. 

PDELA.1
Associate II

For information,

in U-Boot for V2.0, "@Name" with full SOC name is provide during USB enumeration:

Product ID : USB download gadget@Device ID /0x500, @Revision ID /0x2000, @Name /STM32MP157CAA Rev.B,

but this field is compatible only with the latest ST32CubePRogrammer version (> 2.4.0)

FYI v2.5.0 is indicated in STM32MP15-ecosystem-v2.0.0 release = https://wiki.st.com/stm32mpu/wiki/STM32MP15_ecosystem_release_note

else the ID is not detected and load failed, it is indicated in the trace by:

...

Device ID  : unknown

....

Patrick

Hi, Patrick!

That's all I needed to know. 

Thanks you!!