STM32 Programmer segmentation fault when flashing eMMC

Forums Reference, Evaluation, and Development Boards OSD32MP1-RED STM32 Programmer segmentation fault when flashing eMMC

Viewing 2 reply threads
  • Author
    Posts
    • #11640
      Manuel Malagon
      Participant

      I’m having a nasty issue with flashing the eMMC. When I execute STM32_Programmer_CLI -c port=USB1 -w FlashLayout_emmc_osd32mp1-red-trusted.tsv I’m getting this:

            -------------------------------------------------------------------
                              STM32CubeProgrammer v2.6.0                  
            -------------------------------------------------------------------
      
      
      
      USB speed   : High Speed (480MBit/s)
      Manuf. ID   : STMicroelectronics
      Product ID  : DFU in HS Mode @Device ID /0x500, @Revision ID /0x0000
      SN          : 002F001E3239511737383434
      FW version  : 0x0110
      Device ID   : 0x0500
      Device name : STM32MP1
      Device type : MPU
      Device CPU  : Cortex-A7
      
      
      Start Embedded Flashing service
      
      
      
      Memory Programming ...
      Opening and parsing file: tf-a-osd32mp1-red.stm32
        File          : tf-a-osd32mp1-red.stm32
        Size          : 245360 Bytes
        Partition ID  : 0x01 
      
      Download in Progress:
      [==================================================] 100% 
      
      File download complete
      Time elapsed during download operation: 00:00:00.495
      
      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-osd32mp1-red-trusted.stm32
        File          : u-boot-osd32mp1-red-trusted.stm32
        Size          : 807668 Bytes
        Partition ID  : 0x03 
      
      Download in Progress:
      [==================================================] 100% 
      
      File download complete
      Time elapsed during download operation: 00:00:00.872
      
      RUNNING Program ... 
        PartID:      :0x03 
      
      reconnecting the device ...
      
      USB speed   : High Speed (480MBit/s)
      Manuf. ID   : STMicroelectronics
      Product ID  : USB download gadget@Device ID /0x500, @Revision ID /0x0000
      SN          : 002F001E3239511737383434
      FW version  : 0x0110
      Device ID   : 0x0500
      Start operation done successfully at partition 0x03
      
      
      Memory Programming ...
      Opening and parsing file: tf-a-osd32mp1-red.stm32
        File          : tf-a-osd32mp1-red.stm32
        Size          : 245360 Bytes
        Partition ID  : 0x04 
      
      Download in Progress:
      [==================================================] 100% 
      
      File download complete
      Time elapsed during download operation: 00:00:00.148
      
      RUNNING Program ... 
        PartID:      :0x04 
      Start operation done successfully at partition 0x04
      
      
      Memory Programming ...
      Opening and parsing file: tf-a-osd32mp1-red.stm32
        File          : tf-a-osd32mp1-red.stm32
        Size          : 245360 Bytes
        Partition ID  : 0x05 
      
      Download in Progress:
      [==================================================] 100% 
      
      File download complete
      Time elapsed during download operation: 00:00:00.149
      
      RUNNING Program ... 
        PartID:      :0x05 
      Start operation done successfully at partition 0x05
      
      
      Memory Programming ...
      Opening and parsing file: u-boot-osd32mp1-red-trusted.stm32
        File          : u-boot-osd32mp1-red-trusted.stm32
        Size          : 807668 Bytes
        Partition ID  : 0x06 
      
      Download in Progress:
      [==================================================] 100% 
      
      File download complete
      Time elapsed during download operation: 00:00:00.521
      
      RUNNING Program ... 
        PartID:      :0x06 
      Start operation done successfully at partition 0x06
      
      
      Memory Programming ...
      Opening and parsing file: octavo-bootfs-debian-lxqt-osd32mp1-red.ext4
        File          : octavo-bootfs-debian-lxqt-osd32mp1-red.ext4
        Size          : 64 MBytes
        Partition ID  : 0x21 
      
      Download in Progress:
      [==================================================] 100% 
      
      File download complete
      Time elapsed during download operation: 00:00:42.436
      
      RUNNING Program ... 
        PartID:      :0x21 
      Start operation done successfully at partition 0x21
      
      
      Memory Programming ...
      Opening and parsing file: octavo-vendorfs-debian-lxqt-osd32mp1-red.ext4
        File          : octavo-vendorfs-debian-lxqt-osd32mp1-red.ext4
        Size          : 16 MBytes
        Partition ID  : 0x22 
      
      Download in Progress:
      [==================================================] 100% 
      
      File download complete
      Time elapsed during download operation: 00:00:10.827
      
      RUNNING Program ... 
        PartID:      :0x22 
      Start operation done successfully at partition 0x22
      
      
      Memory Programming ...
      Opening and parsing file: octavo-rootfs-debian-lxqt-emmc-osd32mp1-red.ext4
        File          : octavo-rootfs-debian-lxqt-emmc-osd32mp1-red.ext4
        Size          : 2967691 KBytes
        Partition ID  : 0x23 
      
      Download in Progress:
      [1]    15206 segmentation fault (core dumped)  STM32_Programmer_CLI -c port=USB1 -w FlashLayout_emmc_osd32mp1-red-trusted.ts

      Does anyone have an idea why I’m getting this segmentation fault?

    • #11643

      Manuel,

      I have seen a similar error, but after the board was finished flashing. You could try re-installing Cube Programmer or using a previous version, may be 2.5/2.4.

      Best,

      Neeraj

      • #11647
        Manuel Malagon
        Participant

        Neeraj,

        You are right, I just moved the boot switches to boot from flash and it is working. I don’t know why it crashes at the end and I guess it doesn’t matter as long as it flashes the eMMC correctly.

        I haven’t tried with 2.5 or 2.4 yet.

    • #11681
      Manuel Malagon
      Participant

      Just in case anyone lands here…

      Do not use STM32CubeProgrammer v2.6.0!! It will corrupt the flash and you will not have HDMI output, (and maybe something else will be wrong). The resulting eMMC image seemed to work correctly for me and the only apparent issue was no HDMI output. But I’m not sure if it had another hidden issue.

      I used STM32CubeProgrammer v2.5.0, it doesn’t crash and it will correctly flash the eMMC.

Viewing 2 reply threads
  • You must be logged in to reply to this topic.
chatsimple