Skip to main content
Visitor II
April 24, 2023
Solved

STM32MPU157F-DK2 issue with flashing the built image with Distribution Package

  • April 24, 2023
  • 1 reply
  • 3326 views

Hey,

I was able to successfully flash the Starter Package following this article and after building the OpenSTLinux distribution following this, I'm having trouble with flashing it. After completeing the build process, inside the flashlayout_st-image-weston, there are 3 folders optee, extensible and deleteall. I was looking for trusted folder like in starter package but it is not available. Then I tried to follow article found here with cube programmer interface and through terminal with FlashLayout_sdcard_stm32mp157f-dk2-optee.tsv but i'm getting following error.

Error: failed to download Segment[0]
 
Error: failed to download the File
 
Error: Download partition 0x05 failed
 
Error: TSV flashing service failed

After that I tried to flash with FlashLayout_sdcard_stm32mp157c-dk2-optee.tsv in Starter Package but it also showed the same issue. I have attached the cube programmer terminal output. Apreciate if anyone can help me with this.

Thanks.

    This topic has been closed for replies.
    Best answer by ISach.1

    Hi @PatrickF​ ,

    Thanks for your reply.

    I was able to enable truested boot by uncommenting

    BOOTSCHEME_LABELS += "trusted"

    in stm32mp15-disco.conf file. To flash the firmware, there was this mentioning to use 157c-dk2 tsv files instead of 157f-dk2. With that, I was able flash the board. Issue was mentioned as when running at 800MHz. Is there any other solution for this ? What is the real reason behind this ?

    I have attached the board console log below.

    Thanks.

    1 reply

    Technical Moderator
    April 28, 2023

    Hi @ISach.1​ 

    could you please provide board console log ?

    Regards.

    ISach.1AuthorAnswer
    Visitor II
    April 29, 2023

    Hi @PatrickF​ ,

    Thanks for your reply.

    I was able to enable truested boot by uncommenting

    BOOTSCHEME_LABELS += "trusted"

    in stm32mp15-disco.conf file. To flash the firmware, there was this mentioning to use 157c-dk2 tsv files instead of 157f-dk2. With that, I was able flash the board. Issue was mentioned as when running at 800MHz. Is there any other solution for this ? What is the real reason behind this ?

    I have attached the board console log below.

    Thanks.

    Technical Moderator
    May 2, 2023

    Good to see you overcome the issue.

    In fact trusted boot (TF-A SP-MIN) is not recommended anymore (that's explain why it is commented) and future OpenSTLinux packages will support only OP-TEE.

    Regards.