2024-07-18 07:35 AM
I have built my own STM32MP15XXAC board from scratch DanielMartensson/STM32-Computer: STM32 Computer were Linux can be deployed onto (github.com)
Instead of SD-card, it has eMMC. Now I want to flash the eMMC with OpenSTLinux. How can I do that with STM32CubeProgrammer?
I find lack of information how to install Linux or other kind of Linux-OS onto eMMC for STM32MP15XXAC.
2024-07-18 08:05 AM
Hi @DMårt ,
It works in the same way as with an SD card, you just have to be sure that the file you're sending is for emmc.
Regards,
Grégory
2024-07-18 08:12 AM
Thank you for your reply.
But where do I start?
I have downloaded the software STM32CubeProgrammer. So now I need some image right or firmware? Where can I find that?
2024-07-18 08:21 AM
You can adapt the ostl to your physical characteristics, using either
Then follow this example to flash your EMMC : https://wiki.st.com/stm32mpu/wiki/Getting_started/STM32MP1_boards/STM32MP157x-EV1/Let%27s_start/Populate_the_target_and_boot_the_image
Regards,
Grégory
2024-07-18 12:22 PM
Hi!
There is no pre-compiled OS image?
Compile the linux kernel for this processor can take weeks.
2024-07-18 05:45 PM - edited 2024-07-18 05:47 PM
Now I have flashed the board. Is this correct?
I did not get any pop-up that saying "Flash complete"
02:42:03 : STM32CubeProgrammer API v2.17.0 | Windows-64Bits
02:42:10 : Read TSV File: C:\Users\danie\Downloads\stm32mp1-openstlinux-6.1-yocto-mickledore-mpu-v24.06.26\images\stm32mp1\flashlayout_st-image-weston\optee\FlashLayout_emmc_stm32mp157a-ev1-optee.tsv
02:42:10 : Number of partitions: 13
02:43:38 : UR connection mode is defined with the HWrst reset mode
02:43:38 : USB speed : High Speed (480MBit/s)
02:43:38 : Manuf. ID : STMicroelectronics
02:43:38 : Product ID : DFU in HS Mode @Device ID /0x500, @Revision ID /0x0000
02:43:38 : SN : 002600373431510433383938
02:43:38 : DFU protocol: 1.1
02:43:38 : Board : --
02:43:38 : Device ID : 0x0500
02:44:01 : Start Embedded Flashing service
02:44:01 : Memory Programming ...
02:44:01 : Opening and parsing file: tf-a-stm32mp157a-ev1-usb.stm32
02:44:01 : File : tf-a-stm32mp157a-ev1-usb.stm32
02:44:01 : Size : 220.41 KB
02:44:01 : Partition ID : 0x01
02:44:01 : Download in Progress:
02:44:03 : File download complete
02:44:03 : Time elapsed during download operation: 00:00:02.465
02:44:03 : RUNNING Program ...
02:44:03 : PartID: :0x01
2024-07-18 11:53 PM
Hi @DMårt ,
There is no pre-compiled OS image?
We have a starter package, but it may not work with your hardware.
Now I have flashed the board. Is this correct?
If you've followed the steps in the starter package, it should work.
If you don't get a message, your eMMC was not flashed correctly, and as I said above, this is probably due to your hardware modification.
Regards,
Grégory
2024-07-19 03:24 AM - edited 2024-07-19 04:09 AM
Hi! I get an error message now.
I don't know if the eMMC is broken, not soldered correctly or the software is not suitable for the hardware.
The problem with buildning own linux, is that most of the configurations gave me errors.
Update:
I notice that the eMMC was not correctly soldered. I did a reflow with my air heating gun and saw that the eMMC become much more flat because it was tilting some 0.05mm i Z-axis. So I reflowed it and move it a little bit with a tweezer and it sure looks like it fits the pads.
So it must definitely be a software issue. I reflashed the eMMC with STM32CubeProgrammer and I got the same error as below.
12:06:47 : STM32CubeProgrammer API v2.17.0 | Windows-64Bits
12:07:08 : UR connection mode is defined with the HWrst reset mode
12:07:08 : USB speed : High Speed (480MBit/s)
12:07:08 : Manuf. ID : STMicroelectronics
12:07:08 : Product ID : DFU in HS Mode @Device ID /0x500, @Revision ID /0x0000
12:07:08 : SN : 002600373431510433383938
12:07:08 : DFU protocol: 1.1
12:07:08 : Board : --
12:07:08 : Device ID : 0x0500
12:07:20 : Read TSV File: C:\Users\danie\Downloads\stm32mp1-openstlinux-6.1-yocto-mickledore-mpu-v24.06.26\images\stm32mp1\flashlayout_st-image-weston\optee\FlashLayout_emmc_stm32mp157a-ev1-optee.tsv
12:07:20 : Number of partitions: 13
12:07:29 : Start Embedded Flashing service
12:07:29 : Memory Programming ...
12:07:29 : Opening and parsing file: tf-a-stm32mp157a-ev1-usb.stm32
12:07:29 : File : tf-a-stm32mp157a-ev1-usb.stm32
12:07:29 : Size : 220.41 KB
12:07:29 : Partition ID : 0x01
12:07:29 : Download in Progress:
12:07:31 : File download complete
12:07:31 : Time elapsed during download operation: 00:00:02.475
12:07:31 : RUNNING Program ...
12:07:31 : PartID: :0x01
12:18:36 : Error: an error occured while uploading data from the virtual partition 0xF1
12:18:36 : Error: Start operation failed at partition 0x01
12:18:36 : Error: TSV flashing service failed
12:18:54 : Disconnected from device.
.
2024-07-22 11:33 PM
Hi @DMårt ,
I see you create a new post for this issue ( https://community.st.com/t5/stm32-mpus-embedded-software/stm32cubeprogrammer-on-timeout-for-stm32mp1/td-p/699791 ) and you've already had some answers. So I'll let you continue with this other post.
Regards,
Grégory