TF-A Device Tree Comparison DK2 versus Custom Target based on DK2
I'm having trouble getting TF-A to start from USB DFU using the STM32Programmer CLI. Here's what I get:
$ ./xpro_uboot_prgm.sh
-------------------------------------------------------------------
STM32CubeProgrammer v2.11.0
-------------------------------------------------------------------
Warning: Timeout is forced to 30000 ms
USB speed : High Speed (480MBit/s)
Manuf. ID : STMicroelectronics
Product ID : DFU in HS Mode @Device ID /0x500, @Revision ID /0x0000
SN : 003B00403431510930393938
DFU protocol: 1.1
Board : --
Device ID : 0x0500
Device name : STM32MP1
Device type : MPU
Revision ID : --
Device CPU : Cortex-A7
Start Embedded Flashing service
Memory Programming ...
Opening and parsing file: tf-a-stm32mp153a-xpro-mp1-mx-usb.stm32
File : tf-a-stm32mp153a-xpro-mp1-mx-usb.stm32
Size : 220.38 KB
Partition ID : 0x01
Download in Progress:
[==================================================] 100%
File download complete
Time elapsed during download operation: 00:00:02.309
RUNNING Program ...
PartID: :0x01
Error: Start operation failed at partition 0x01
Error: TSV flashing service failedMy assumption is my device tree is not correct and TF-A won't run. I've compared my device tree with TF-A for DK2 and there's a world of difference. I actually can't believe the DK2 device actually works its so short and missing things my tree seems to require (e.g. &pwr_regulators). Attached are the two DTS's.
I found these two wiki links but cannot access them yet. I'm hoping one of these will help me properly define my device tree.
This article below is a guideline to get an initial TF-A device tree from CubeMx and ST reference device tree files.
https://wiki.st.com/stm32mpu/wiki/How_to_create_your_board_device_tree#In_STM32STM32CubeMX
Find further information about device tree HSE pin configuration depending on the choice of Crystal/resonator or Oscillator clock source https://wiki.st.com/stm32mpu/wiki/Clock_device_tree_configuration_-_Bootloader_specific#DT_configuration_for_HSE
