cancel
Showing results for 
Search instead for 
Did you mean: 

I am not able to burn partitions using STMProgramer and i am not able to read or using the SD card

Jroch.1
Associate II

hello

I am using a STM32M15 into a custom board

i am trying to use STMBoard to burn my system

this is the .tsv that i am using

#Opt   Id     Name   Type   IP     Offset Binary

-      0x01   fsbl1-boot     Binary none   0x0    tf-a-stm32mp157c-ya157c-512d-v2-serialboot.stm32

-      0x03   ssbl-boot      Binary none   0x0    u-boot-stm32mp157c-ya157c-512d-v2-trusted.stm32

P      0x04   fsbl1  Binary mmc1   boot1  tf-a-stm32mp157c-ya157c-512d-v2-trusted.stm32

P      0x05   fsbl2  Binary mmc1   boot2  tf-a-stm32mp157c-ya157c-512d-v2-trusted.stm32

P      0x06   ssbl   Binary mmc1   0x00084400     u-boot-stm32mp157c-ya157c-512d-v2-trusted.stm32

P      0x07   debian System mmc1   0x00384400     fl4-debian-10.ext4

all files are in the same folder

$ ls -l

total 692364

-rw-r--r-- 1 som som        521 Jul 20 14:42 fl4-debian-10-emmc.tsv

-rw-rw-rw- 1 root root 1073741824 Jul 20 12:18 fl4-debian-10.ext4

-rw-r--r-- 1 som som        860 Jul 20 14:51 FlashLayout_emmc_stm32mp157c-ya157c-512d-v2-trusted.tsv

-rw-r--r-- 1 som som     241984 Jul 20 13:36 tf-a-stm32mp157c-ya157c-512d-v2-serialboot.stm32

-rw-r--r-- 1 som som     241984 Jul 20 13:36 tf-a-stm32mp157c-ya157c-512d-v2-trusted.stm32

-rw-r--r-- 1 som som     874729 Jul 20 13:37 u-boot-stm32mp157c-ya157c-512d-v2-trusted.stm32

the error is:

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

                       STM32CubeProgrammer v2.7.0                 

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

Serial Port /dev/ttyUSB0 is successfully opened.

Port configuration: parity = even, baudrate = 115200, data-bit = 8,

                    stop-bit = 1.0, flow-control = off

Activating device: OK

Chip ID: 0x500

BootLoader protocol version: 4.0

Device name : STM32MP1

Device type : MPU

Device CPU : Cortex-A7

Start Embedded Flashing service

Error: TSV file erasing-board.tsv not conform: it may miss some columns or fields

Error: TSV flashing service failed

Then i try to burn a default image from STM resourses:

:~/Downloads/MYD-YA157C-20210520/02_Images/myir-image-full$ STM32_Programmer_CLI -c port=/dev/ttyUSB0 -w flashlayout_myir-image-full/trusted/erase.tsv

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

                       STM32CubeProgrammer v2.7.0                 

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

Serial Port /dev/ttyUSB0 is successfully opened.

Port configuration: parity = even, baudrate = 115200, data-bit = 8,

                    stop-bit = 1.0, flow-control = off

Activating device: OK

Chip ID: 0x500

BootLoader protocol version: 4.0

Device name : STM32MP1

Device type : MPU

Device CPU : Cortex-A7

Start Embedded Flashing service

Memory Programming ...

Opening and parsing file: tf-a-stm32mp157c-ya157c-512d-v2-serialboot.stm32

 File         : tf-a-stm32mp157c-ya157c-512d-v2-serialboot.stm32

 Size         : 241984 Bytes

 Partition ID : 0x01

Download in Progress:

[==================================================] 100%

File download complete

Time elapsed during download operation: 00:00:28.396

RUNNING Program ...

 PartID:     :0x01

Start operation done successfully at partition 0x01

GETPHASE command not acknowledged!

Reemission of GetPhase command

Flashlayout Programming ...

[==================================================] 100%

Running Flashlayout Partition ...

Flashlayout partition started successfully

Memory Programming ...

Opening and parsing file: u-boot-stm32mp157c-ya157c-512d-v2-trusted.stm32

 File         : u-boot-stm32mp157c-ya157c-512d-v2-trusted.stm32

 Size         : 874729 Bytes

 Partition ID : 0x03

Download in Progress:

[==================================================] 100%

File download complete

Time elapsed during download operation: 00:01:42.503

RUNNING Program ...

 PartID:     :0x03

Start operation done successfully at partition 0x03

GETPHASE command not acknowledged!

Reemission of GetPhase command

GETPHASE command not acknowledged!

Reemission of GetPhase command

GETPHASE command not acknowledged!

Error: GetPhase command not acknowledged after 3 retries!

Error: Parition 0xbb not found in TSV File

Error: TSV flashing service failed

I already read the documentation and says that i can not able to change the mappping of the partitions only i can update de content or delete it , but this is not the case because i am not able to burn the default image form the manufactured.

Why is this problem?

How i can to change the eMMC mapping?

How i change the mapping of the partitions without using the SD?

iThank you, i have various days and not progress

This discussion is locked. Please start a new topic to ask your question.
1 REPLY 1
PatrickF
ST Employee

Hi,

maybe need more information on your setup.

Which ecosystem version are your using ?

is your board HW ok ?

Few thought regarding the error:

  • your flashlayout is more one for eMMC than SD-Card, please confirm. Check also https://wiki.st.com/stm32mpu/wiki/STM32CubeProgrammer_flashlayout
  • your uBoot (partition #03) does not work or does not start USB OTG correctly (maybe some UART console log could help you)
  • if you are using Virtual Machine, uBoot will reconnect the USB with a different identity and might need to be set to be visible by the VM

some FAQ

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

https://community.st.com/s/article/FAQ-STM32MP1-Bring-up-procedure

https://community.st.com/s/article/FAQ-STM32MP1-bring-up-troubleshooting-guide

Regards.

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.
Tip of the day: Try Sidekick STM32 AI agent, see here