cancel
Showing results for 
Search instead for 
Did you mean: 

STM32MP157DAB1 custom board eMMC recognition problem

jaehoon
Associate II

Hello, I built FIP artifacts following wiki, `STM32MPU Developer Package`, 5.2. Installing the OpenSTLinux BSP packages.

And I could get binary files:

1. TF-A binary: tf-a-stm32mp157d-smp4-mx-optee-emmc.stm32
2. OPTEE binary: tee-*.bin files
3. u-boot binary: u-boot{,-nodtb,-dtb}.bin files

I did not build linux kernel yet. I want to check PMIC's 1.35v output in current step, because I've read somewhere in ST wiki that works when TF-A is flashed.

But Cube Programmer disconnected from the device before doing something.  <-- This was soldering problem. after resoldering, its fixed.

and even more, eMMC is not detected in cube programmer.

 

10:12:34 : UR connection mode is defined with the HWrst reset mode
10:12:35 : USB speed   : High Speed (480MBit/s)
10:12:35 : Manuf. ID   : STMicroelectronics
10:12:35 : Product ID  : DFU in HS Mode @Device ID /0x500, @Revision ID /0x0000
10:12:35 : SN          : 003B00413432510735313430
10:12:35 : DFU protocol: 1.1
10:12:35 : Board       : --
10:12:35 : Device ID   : 0x0500
10:12:36 : Warning: Connection to device 0x500 is lost
10:12:36 : Disconnected from device.
10:12:38 : UR connection mode is defined with the HWrst reset mode
10:12:39 : USB speed   : High Speed (480MBit/s)
10:12:39 : Manuf. ID   : STMicroelectronics
10:12:39 : Product ID  : DFU in HS Mode @Device ID /0x500, @Revision ID /0x0000
10:12:39 : SN          : 003B00413432510735313430
10:12:39 : DFU protocol: 1.1
10:12:39 : Board       : --
10:12:39 : Device ID   : 0x0500
10:12:43 : Disconnected from device.

 

 

Schematics:

STM32_Q1.pngSTM32_Q2.pngSTM32_Q3.png

 

---

eMMC recognition problem.

partitions.png

 

No partitions are related for eMMC. should I flash first partition and FSBL?

Or how can I check this problem?

3 REPLIES 3
PatrickF
ST Employee

Hi,

did you load a correct flashlayout file to CubeProgrammer ?

https://wiki.st.com/stm32mpu/wiki/STM32CubeProgrammer_flashlayout#e-E2-80-A2MMC

 

Here is an example on how to flashload a board (here it is SD-Card, but will be similar for eMMC, apart different flashlayout file)

https://wiki.st.com/stm32mpu/wiki/Getting_started/STM32MP1_boards/STM32MP157x-EV1/Let%27s_start/Populate_the_target_and_boot_the_image#Populate_the_SD_card

 

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.

Hello, Ah, I tried to flash my boards with customized TSV file.
and it includes just custom TF-A binary and FIP binary. but Cube programmer returns following message:

18:13:56 : Download in Progress:
18:13:57 : File download complete
18:13:57 : Time elapsed during download operation: 00:00:00.662
18:13:57 : RUNNING Program ...
18:13:57 : PartID: :0x01
18:13:57 : Error: Start operation failed at partition 0x01
18:13:57 : Error: TSV flashing service failed

 

And then, Cube programmer is crashed to desktop.
Is this a problem on TF-A's device tree? @PatrickF 

hi @jaehoon ,

worth to look at board console output if any messages. TF-A is probably crashing.

Did you check your DDR settings/behavior with DDRFW-UTIL ?

 

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.