Forums › Reference, Evaluation, and Development Boards › OSD32MP1-RED › STM32 Programmer segmentation fault when flashing eMMC
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:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 | ------------------------------------------------------------------- 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?
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
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.
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.
Octavo Systems LLC all rights reserved
OCTAVO is registered in the U.S. Patent and Trademark Office. OSD, C-SiP, and the Octavo Logo are trademarks of Octavo Systems LLC.
"*" indicates required fields
"*" indicates required fields
"*" indicates required fields
"*" indicates required fields