STM32MP15 ECO 5.0.0 optee build fails with errors and warnings
- September 4, 2023
- 6 replies
- 3849 views
For a custom board configured in CubeMX using
STM32MP157AAA3 , UART4, 512MB DDR3L, (4Gx16) external crystal (HSE, LSE), and discrete power regulator, no PMIC, device trees were generated with CubeMX
when compiling optree errors and warnings occur.
[1] Wrong CFG_DRAM_SIZE 1024MBytes, in device-tree: 512MBytes. The TF-A and U-boot .dts files contain the same setting for memory and do not fail.
memory@c0000000 {
device_type = "memory";
reg = <0xc0000000 0x20000000>;
When setting memory to 0x40000000 instead of 0x20000000 it passes. Why is this ?
[2] Warnings in files (not changed, default provided by ECO system). Audio/I2S is not even configured in CubeMX.
core/arch/arm/dts/stm32mp157.dtsi:20.21-35.5: Warning (avoid_unnecessary_addr_size): /soc/dsi@5a000000: unnecessary #address-cells/#size-cells without "ranges", "dma-ranges" or child "reg" property
core/arch/arm/dts/stm32mp151.dtsi:416.22-428.5: Warning (unique_unit_address): /soc/spi@4000b000: duplicate unit-address (also used in node /soc/audio-controller@4000b000)
core/arch/arm/dts/stm32mp151.dtsi:441.22-453.5: Warning (unique_unit_address): /soc/spi@4000c000: duplicate unit-address (also used in node /soc/audio-controller@4000c000)
core/arch/arm/dts/stm32mp151.dtsi:739.22-751.5: Warning (unique_unit_address): /soc/spi@44004000: duplicate unit-address (also used in node /soc/audio-controller@44004000)
[3] The workshop requires to add nodes in the user section for pinctrl, (uart4) and in user section for addons (uart4,vddcore, cpu0 , cpu1, power regulators) but all these additions cause an error that the device tree cannot be parsed.
Device tree attached.
