cancel
Showing results for 
Search instead for 
Did you mean: 

BUG: Label or path X_pins_y not found - Compiling the TF-A firmware

DMårt
Senior III

I have installed OpenSTLinux SDK + Sources (linux, tf-a, u-boot, optee-os) on a STM32CubeIDE project.

I have compiled optee-os for my custom board, but it did not work so well for tf-a.

This is clearly a bug because I cannot add "i2c2_pin_a" into the .dts file of stm32mp151-stm32-computer-pin-configuration-mx.dts. If I rename

i2c4_pins_mx -> i2c2_pins_a

manually inside the .dts file, then the error disapear when I compile. But I cannot do that in STM32CubeIDE because it does not allow me to add "i2c2" for TF-A.

So is there any walk around for this bug?

 

23:03:35 **** Build of configuration Default for project stm32-computer-pin-configuration_CA7_tf-a-2.8.15-r2 ****
make -f ../Makefile.sdk.ide TF_A_DEVICETREE=stm32mp151a-stm32-computer-pin-configuration-mx TF_A_CONFIG=optee-sdcard stm32 metadata 
Wrapper for /opt/st/stm32cubeide_1.16.0/plugins/com.st.stm32cube.ide.mpu.linux.toolchain_2.1.0.202305092038/tools/bin/make
FIP_DEPLOYDIR_ROOT: /home/lubuntu/Dokument/GitHub/stm32-computer/STM32CubeIDE/stm32-computer-pin-configuration/CA7/tf-a-2.8.15-r2/tf-a-stm32mp-v2.8.15-stm32mp-r2/../../FIP_artifacts
+ case "$command" in
+ exec make -f ../Makefile.sdk.ide TF_A_DEVICETREE=stm32mp151a-stm32-computer-pin-configuration-mx TF_A_CONFIG=optee-sdcard stm32 metadata
make[1]: Nothing to be done for 'all'.
make[1]: Entering directory '/home/lubuntu/Dokument/GitHub/stm32-computer/STM32CubeIDE/stm32-computer-pin-configuration/CA7/tf-a-2.8.15-r2/tf-a-stm32mp-v2.8.15-stm32mp-r2'
Including bl32/optee/optee.mk
Trusted Firmware-A built for OP-TEE payload support
PSA_FWU_SUPPORT is an experimental feature
  CPP     /home/lubuntu/Dokument/GitHub/stm32-computer/STM32CubeIDE/stm32-computer-pin-configuration/CA7/tf-a-2.8.15-r2/tf-a-stm32mp-v2.8.15-stm32mp-r2/../build/optee-sdcard-stm32mp15-stm32mp151a-stm32-computer-pin-configuration-mx/fdts/stm32mp151a-stm32-computer-pin-configuration-mx-bl2.dts
  DTC     /home/lubuntu/Dokument/GitHub/stm32-computer/STM32CubeIDE/stm32-computer-pin-configuration/CA7/tf-a-2.8.15-r2/tf-a-stm32mp-v2.8.15-stm32mp-r2/../build/optee-sdcard-stm32mp15-stm32mp151a-stm32-computer-pin-configuration-mx/fdts/stm32mp151a-stm32-computer-pin-configuration-mx-bl2.dts
Error: /home/lubuntu/Dokument/GitHub/stm32-computer/STM32CubeIDE/stm32-computer-pin-configuration/CA7/tf-a-2.8.15-r2/tf-a-stm32mp-v2.8.15-stm32mp-r2/../build/optee-sdcard-stm32mp15-stm32mp151a-stm32-computer-pin-configuration-mx/fdts/stm32mp151a-stm32-computer-pin-configuration-mx-bl2.pre.dts:946.18-29 Label or path fmc_pins_a not found
Error: /home/lubuntu/Dokument/GitHub/stm32-computer/STM32CubeIDE/stm32-computer-pin-configuration/CA7/tf-a-2.8.15-r2/tf-a-stm32mp-v2.8.15-stm32mp-r2/../build/optee-sdcard-stm32mp15-stm32mp151a-stm32-computer-pin-configuration-mx/fdts/stm32mp151a-stm32-computer-pin-configuration-mx-bl2.pre.dts:947.18-30 Label or path i2c2_pins_a not found
make[1]: Leaving directory '/home/lubuntu/Dokument/GitHub/stm32-computer/STM32CubeIDE/stm32-computer-pin-configuration/CA7/tf-a-2.8.15-r2/tf-a-stm32mp-v2.8.15-stm32mp-r2'
Error: /home/lubuntu/Dokument/GitHub/stm32-computer/STM32CubeIDE/stm32-computer-pin-configuration/CA7/tf-a-2.8.15-r2/tf-a-stm32mp-v2.8.15-stm32mp-r2/../build/optee-sdcard-stm32mp15-stm32mp151a-stm32-computer-pin-configuration-mx/fdts/stm32mp151a-stm32-computer-pin-configuration-mx-bl2.pre.dts:948.18-30 Label or path i2c4_pins_a not found
Error: /home/lubuntu/Dokument/GitHub/stm32-computer/STM32CubeIDE/stm32-computer-pin-configuration/CA7/tf-a-2.8.15-r2/tf-a-stm32mp-v2.8.15-stm32mp-r2/../build/optee-sdcard-stm32mp15-stm32mp151a-stm32-computer-pin-configuration-mx/fdts/stm32mp151a-stm32-computer-pin-configuration-mx-bl2.pre.dts:950.18-34 Label or path qspi_bk1_pins_a not found
Error: /home/lubuntu/Dokument/GitHub/stm32-computer/STM32CubeIDE/stm32-computer-pin-configuration/CA7/tf-a-2.8.15-r2/tf-a-stm32mp-v2.8.15-stm32mp-r2/../build/optee-sdcard-stm32mp15-stm32mp151a-stm32-computer-pin-configuration-mx/fdts/stm32mp151a-stm32-computer-pin-configuration-mx-bl2.pre.dts:951.18-34 Label or path qspi_bk2_pins_a not found
Error: /home/lubuntu/Dokument/GitHub/stm32-computer/STM32CubeIDE/stm32-computer-pin-configuration/CA7/tf-a-2.8.15-r2/tf-a-stm32mp-v2.8.15-stm32mp-r2/../build/optee-sdcard-stm32mp15-stm32mp151a-stm32-computer-pin-configuration-mx/fdts/stm32mp151a-stm32-computer-pin-configuration-mx-bl2.pre.dts:952.18-34 Label or path qspi_clk_pins_a not found
Error: /home/lubuntu/Dokument/GitHub/stm32-computer/STM32CubeIDE/stm32-computer-pin-configuration/CA7/tf-a-2.8.15-r2/tf-a-stm32mp-v2.8.15-stm32mp-r2/../build/optee-sdcard-stm32mp15-stm32mp151a-stm32-computer-pin-configuration-mx/fdts/stm32mp151a-stm32-computer-pin-configuration-mx-bl2.pre.dts:953.18-35 Label or path sdmmc1_b4_pins_a not found
Error: /home/lubuntu/Dokument/GitHub/stm32-computer/STM32CubeIDE/stm32-computer-pin-configuration/CA7/tf-a-2.8.15-r2/tf-a-stm32mp-v2.8.15-stm32mp-r2/../build/optee-sdcard-stm32mp15-stm32mp151a-stm32-computer-pin-configuration-mx/fdts/stm32mp151a-stm32-computer-pin-configuration-mx-bl2.pre.dts:954.18-36 Label or path sdmmc1_dir_pins_a not found
Error: /home/lubuntu/Dokument/GitHub/stm32-computer/STM32CubeIDE/stm32-computer-pin-configuration/CA7/tf-a-2.8.15-r2/tf-a-stm32mp-v2.8.15-stm32mp-r2/../build/optee-sdcard-stm32mp15-stm32mp151a-stm32-computer-pin-configuration-mx/fdts/stm32mp151a-stm32-computer-pin-configuration-mx-bl2.pre.dts:955.18-36 Label or path sdmmc1_dir_pins_b not found
Error: /home/lubuntu/Dokument/GitHub/stm32-computer/STM32CubeIDE/stm32-computer-pin-configuration/CA7/tf-a-2.8.15-r2/tf-a-stm32mp-v2.8.15-stm32mp-r2/../build/optee-sdcard-stm32mp15-stm32mp151a-stm32-computer-pin-configuration-mx/fdts/stm32mp151a-stm32-computer-pin-configuration-mx-bl2.pre.dts:956.18-35 Label or path sdmmc2_b4_pins_a not found
Error: /home/lubuntu/Dokument/GitHub/stm32-computer/STM32CubeIDE/stm32-computer-pin-configuration/CA7/tf-a-2.8.15-r2/tf-a-stm32mp-v2.8.15-stm32mp-r2/../build/optee-sdcard-stm32mp15-stm32mp151a-stm32-computer-pin-configuration-mx/fdts/stm32mp151a-stm32-computer-pin-configuration-mx-bl2.pre.dts:957.18-35 Label or path sdmmc2_b4_pins_b not found
Error: /home/lubuntu/Dokument/GitHub/stm32-computer/STM32CubeIDE/stm32-computer-pin-configuration/CA7/tf-a-2.8.15-r2/tf-a-stm32mp-v2.8.15-stm32mp-r2/../build/optee-sdcard-stm32mp15-stm32mp151a-stm32-computer-pin-configuration-mx/fdts/stm32mp151a-stm32-computer-pin-configuration-mx-bl2.pre.dts:958.18-36 Label or path sdmmc2_d47_pins_a not found
Error: /home/lubuntu/Dokument/GitHub/stm32-computer/STM32CubeIDE/stm32-computer-pin-configuration/CA7/tf-a-2.8.15-r2/tf-a-stm32mp-v2.8.15-stm32mp-r2/../build/optee-sdcard-stm32mp15-stm32mp151a-stm32-computer-pin-configuration-mx/fdts/stm32mp151a-stm32-computer-pin-configuration-mx-bl2.pre.dts:959.18-36 Label or path sdmmc2_d47_pins_b not found
Error: /home/lubuntu/Dokument/GitHub/stm32-computer/STM32CubeIDE/stm32-computer-pin-configuration/CA7/tf-a-2.8.15-r2/tf-a-stm32mp-v2.8.15-stm32mp-r2/../build/optee-sdcard-stm32mp15-stm32mp151a-stm32-computer-pin-configuration-mx/fdts/stm32mp151a-stm32-computer-pin-configuration-mx-bl2.pre.dts:960.18-36 Label or path sdmmc2_d47_pins_c not found
Error: /home/lubuntu/Dokument/GitHub/stm32-computer/STM32CubeIDE/stm32-computer-pin-configuration/CA7/tf-a-2.8.15-r2/tf-a-stm32mp-v2.8.15-stm32mp-r2/../build/optee-sdcard-stm32mp15-stm32mp151a-stm32-computer-pin-configuration-mx/fdts/stm32mp151a-stm32-computer-pin-configuration-mx-bl2.pre.dts:961.18-36 Label or path sdmmc2_d47_pins_d not found
Error: /home/lubuntu/Dokument/GitHub/stm32-computer/STM32CubeIDE/stm32-computer-pin-configuration/CA7/tf-a-2.8.15-r2/tf-a-stm32mp-v2.8.15-stm32mp-r2/../build/optee-sdcard-stm32mp15-stm32mp151a-stm32-computer-pin-configuration-mx/fdts/stm32mp151a-stm32-computer-pin-configuration-mx-bl2.pre.dts:963.18-31 Label or path uart4_pins_a not found
Error: /home/lubuntu/Dokument/GitHub/stm32-computer/STM32CubeIDE/stm32-computer-pin-configuration/CA7/tf-a-2.8.15-r2/tf-a-stm32mp-v2.8.15-stm32mp-r2/../build/optee-sdcard-stm32mp15-stm32mp151a-stm32-computer-pin-configuration-mx/fdts/stm32mp151a-stm32-computer-pin-configuration-mx-bl2.pre.dts:964.18-31 Label or path uart4_pins_b not found
Error: /home/lubuntu/Dokument/GitHub/stm32-computer/STM32CubeIDE/stm32-computer-pin-configuration/CA7/tf-a-2.8.15-r2/tf-a-stm32mp-v2.8.15-stm32mp-r2/../build/optee-sdcard-stm32mp15-stm32mp151a-stm32-computer-pin-configuration-mx/fdts/stm32mp151a-stm32-computer-pin-configuration-mx-bl2.pre.dts:965.18-31 Label or path uart7_pins_a not found
Error: /home/lubuntu/Dokument/GitHub/stm32-computer/STM32CubeIDE/stm32-computer-pin-configuration/CA7/tf-a-2.8.15-r2/tf-a-stm32mp-v2.8.15-stm32mp-r2/../build/optee-sdcard-stm32mp15-stm32mp151a-stm32-computer-pin-configuration-mx/fdts/stm32mp151a-stm32-computer-pin-configuration-mx-bl2.pre.dts:966.18-31 Label or path uart7_pins_b not found
Error: /home/lubuntu/Dokument/GitHub/stm32-computer/STM32CubeIDE/stm32-computer-pin-configuration/CA7/tf-a-2.8.15-r2/tf-a-stm32mp-v2.8.15-stm32mp-r2/../build/optee-sdcard-stm32mp15-stm32mp151a-stm32-computer-pin-configuration-mx/fdts/stm32mp151a-stm32-computer-pin-configuration-mx-bl2.pre.dts:967.18-31 Label or path uart7_pins_c not found
Error: /home/lubuntu/Dokument/GitHub/stm32-computer/STM32CubeIDE/stm32-computer-pin-configuration/CA7/tf-a-2.8.15-r2/tf-a-stm32mp-v2.8.15-stm32mp-r2/../build/optee-sdcard-stm32mp15-stm32mp151a-stm32-computer-pin-configuration-mx/fdts/stm32mp151a-stm32-computer-pin-configuration-mx-bl2.pre.dts:968.18-31 Label or path uart8_pins_a not found
Error: /home/lubuntu/Dokument/GitHub/stm32-computer/STM32CubeIDE/stm32-computer-pin-configuration/CA7/tf-a-2.8.15-r2/tf-a-stm32mp-v2.8.15-stm32mp-r2/../build/optee-sdcard-stm32mp15-stm32mp151a-stm32-computer-pin-configuration-mx/fdts/stm32mp151a-stm32-computer-pin-configuration-mx-bl2.pre.dts:969.18-32 Label or path usart2_pins_a not found
Error: /home/lubuntu/Dokument/GitHub/stm32-computer/STM32CubeIDE/stm32-computer-pin-configuration/CA7/tf-a-2.8.15-r2/tf-a-stm32mp-v2.8.15-stm32mp-r2/../build/optee-sdcard-stm32mp15-stm32mp151a-stm32-computer-pin-configuration-mx/fdts/stm32mp151a-stm32-computer-pin-configuration-mx-bl2.pre.dts:970.18-32 Label or path usart2_pins_b not found
Error: /home/lubuntu/Dokument/GitHub/stm32-computer/STM32CubeIDE/stm32-computer-pin-configuration/CA7/tf-a-2.8.15-r2/tf-a-stm32mp-v2.8.15-stm32mp-r2/../build/optee-sdcard-stm32mp15-stm32mp151a-stm32-computer-pin-configuration-mx/fdts/stm32mp151a-stm32-computer-pin-configuration-mx-bl2.pre.dts:971.18-32 Label or path usart2_pins_c not found
Error: /home/lubuntu/Dokument/GitHub/stm32-computer/STM32CubeIDE/stm32-computer-pin-configuration/CA7/tf-a-2.8.15-r2/tf-a-stm32mp-v2.8.15-stm32mp-r2/../build/optee-sdcard-stm32mp15-stm32mp151a-stm32-computer-pin-configuration-mx/fdts/stm32mp151a-stm32-computer-pin-configuration-mx-bl2.pre.dts:972.18-32 Label or path usart3_pins_a not found
Error: /home/lubuntu/Dokument/GitHub/stm32-computer/STM32CubeIDE/stm32-computer-pin-configuration/CA7/tf-a-2.8.15-r2/tf-a-stm32mp-v2.8.15-stm32mp-r2/../build/optee-sdcard-stm32mp15-stm32mp151a-stm32-computer-pin-configuration-mx/fdts/stm32mp151a-stm32-computer-pin-configuration-mx-bl2.pre.dts:973.18-32 Label or path usart3_pins_b not found
Error: /home/lubuntu/Dokument/GitHub/stm32-computer/STM32CubeIDE/stm32-computer-pin-configuration/CA7/tf-a-2.8.15-r2/tf-a-stm32mp-v2.8.15-stm32mp-r2/../build/optee-sdcard-stm32mp15-stm32mp151a-stm32-computer-pin-configuration-mx/fdts/stm32mp151a-stm32-computer-pin-configuration-mx-bl2.pre.dts:974.18-32 Label or path usart3_pins_c not found
Error: /home/lubuntu/Dokument/GitHub/stm32-computer/STM32CubeIDE/stm32-computer-pin-configuration/CA7/tf-a-2.8.15-r2/tf-a-stm32mp-v2.8.15-stm32mp-r2/../build/optee-sdcard-stm32mp15-stm32mp151a-stm32-computer-pin-configuration-mx/fdts/stm32mp151a-stm32-computer-pin-configuration-mx-bl2.pre.dts:975.18-41 Label or path usbotg_fs_dp_dm_pins_a not found
Error: /home/lubuntu/Dokument/GitHub/stm32-computer/STM32CubeIDE/stm32-computer-pin-configuration/CA7/tf-a-2.8.15-r2/tf-a-stm32mp-v2.8.15-stm32mp-r2/../build/optee-sdcard-stm32mp15-stm32mp151a-stm32-computer-pin-configuration-mx/fdts/stm32mp151a-stm32-computer-pin-configuration-mx-bl2.pre.dts:976.18-35 Label or path usbotg_hs_pins_a not found
FATAL ERROR: Syntax error parsing input tree
make[1]: *** [Makefile:1453: /home/lubuntu/Dokument/GitHub/stm32-computer/STM32CubeIDE/stm32-computer-pin-configuration/CA7/tf-a-2.8.15-r2/tf-a-stm32mp-v2.8.15-stm32mp-r2/../build/optee-sdcard-stm32mp15-stm32mp151a-stm32-computer-pin-configuration-mx/fdts/stm32mp151a-stm32-computer-pin-configuration-mx-bl2.dtb] Error 1
make: *** [../Makefile.sdk:232: tf-optee-sdcard-stm32mp15] Error 1
"make -f ../Makefile.sdk.ide TF_A_DEVICETREE=stm32mp151a-stm32-computer-pin-configuration-mx TF_A_CONFIG=optee-sdcard stm32 metadata" terminated with exit code 2. Build might be incomplete.

23:03:37 Build Failed. 31 errors, 0 warnings. (took 1s.745ms)

 

 

 

 And the .dts file is:

 

 

 

// SPDX-License-Identifier: (GPL-2.0-or-later OR BSD-3-Clause)
/*
 * Copyright (C) 2024, STMicroelectronics - All Rights Reserved
 * Author: STM32CubeMX code generation for STMicroelectronics.
 */

/* For more information on Device Tree configuration, please refer to
 * https://wiki.st.com/stm32mpu/wiki/Category:Device_tree_configuration
 */

/dts-v1/;

#include <dt-bindings/pinctrl/stm32-pinfunc.h>
#include <dt-bindings/clock/stm32mp1-clksrc.h>
#include "stm32mp15-mx.dtsi"

#include "stm32mp151.dtsi"
#include "stm32mp15xa.dtsi"
#include "stm32mp15xxac-pinctrl.dtsi"
#include "stm32mp15-ddr.dtsi"

/* USER CODE BEGIN includes */
/* USER CODE END includes */

/ {
	model = "STMicroelectronics custom STM32CubeMX board - openstlinux-6.1-yocto-mickledore-mpu-v24.06.26";
	compatible = "st,stm32mp151a-stm32-computer-pin-configuration-mx", "st,stm32mp151";

	memory@c0000000 {
		device_type = "memory";
		reg = <0xc0000000 0x20000000>;

		/* USER CODE BEGIN memory */
		/* USER CODE END memory */
	};

	/* USER CODE BEGIN root */
	/* USER CODE END root */

	clocks {
		/* USER CODE BEGIN clocks */
		/* USER CODE END clocks */

		clk_hsi: clk-hsi {
			clock-frequency = <64000000>;

			/* USER CODE BEGIN clk_hsi */
			/* USER CODE END clk_hsi */
		};
		clk_lse: clk-lse {
			clock-frequency = <32768>;
			st,drive = < LSEDRV_MEDIUM_HIGH >;

			/* USER CODE BEGIN clk_lse */
			/* USER CODE END clk_lse */
		};
		clk_hse: clk-hse {
			clock-frequency = <24000000>;

			/* USER CODE BEGIN clk_hse */
			/* USER CODE END clk_hse */
		};
	};

}; /*root*/

&pinctrl {
	i2c4_pins_mx: i2c4_mx-0 {
		pins {
			pinmux = <STM32_PINMUX('D', 12, AF4)>, /* I2C4_SCL */
					 <STM32_PINMUX('D', 13, AF4)>; /* I2C4_SDA */
			bias-disable;
			drive-open-drain;
			slew-rate = <0>;
		};
	};

	sdmmc2_pins_mx: sdmmc2_mx-0 {
		pins1 {
			pinmux = <STM32_PINMUX('A', 8, AF9)>, /* SDMMC2_D4 */
					 <STM32_PINMUX('B', 3, AF9)>, /* SDMMC2_D2 */
					 <STM32_PINMUX('B', 4, AF9)>, /* SDMMC2_D3 */
					 <STM32_PINMUX('B', 9, AF10)>, /* SDMMC2_D5 */
					 <STM32_PINMUX('B', 14, AF9)>, /* SDMMC2_D0 */
					 <STM32_PINMUX('B', 15, AF9)>, /* SDMMC2_D1 */
					 <STM32_PINMUX('C', 7, AF10)>, /* SDMMC2_D7 */
					 <STM32_PINMUX('E', 5, AF9)>, /* SDMMC2_D6 */
					 <STM32_PINMUX('G', 6, AF10)>; /* SDMMC2_CMD */
			bias-disable;
			drive-push-pull;
			slew-rate = <1>;
		};
		pins2 {
			pinmux = <STM32_PINMUX('E', 3, AF9)>; /* SDMMC2_CK */
			bias-disable;
			drive-push-pull;
			slew-rate = <3>;
		};
	};

	uart4_pins_mx: uart4_mx-0 {
		pins1 {
			pinmux = <STM32_PINMUX('B', 2, AF8)>; /* UART4_RX */
			bias-disable;
		};
		pins2 {
			pinmux = <STM32_PINMUX('G', 11, AF6)>; /* UART4_TX */
			bias-disable;
			drive-push-pull;
			slew-rate = <0>;
		};
	};

	usb_otg_hs_pins_mx: usb_otg_hs_mx-0 {
		pins {
			pinmux = <STM32_PINMUX('A', 10, ANALOG)>; /* USB_OTG_HS_ID */
		};
	};

	/* USER CODE BEGIN pinctrl */
	/* USER CODE END pinctrl */
};

&pinctrl_z {
	/* USER CODE BEGIN pinctrl_z */
	/* USER CODE END pinctrl_z */
};

&i2c4{
	pinctrl-names = "default";
	pinctrl-0 = <&i2c4_pins_mx>;
	status = "okay";

	/* USER CODE BEGIN i2c4 */
	/* USER CODE END i2c4 */
};

&rcc{
	status = "okay";

	/* USER CODE BEGIN rcc */
	/* USER CODE END rcc */

	st,clksrc=<
		CLK_CKPER_DISABLED
		CLK_SDMMC12_HCLK6
		CLK_STGEN_HSI
		CLK_I2C46_PCLK5
		CLK_USBO_PLL4R
		CLK_UART24_PCLK1
		CLK_MPU_PLL1P
		CLK_AXI_HSI
		CLK_MCU_HSI
	>;
	st,clkdiv = <
		DIV(DIV_MPU, 1)
		DIV(DIV_AXI, 0)
		DIV(DIV_MCU, 0)
		DIV(DIV_APB1, 0)
		DIV(DIV_APB2, 0)
		DIV(DIV_APB3, 0)
		DIV(DIV_APB4, 0)
		DIV(DIV_APB5, 0)
		DIV(DIV_RTC, 0)
		DIV(DIV_MCO1, 0)
		DIV(DIV_MCO2, 0)
	>;
	st,pll_vco {
		pll2_vco_800Mhz: pll2-vco-800Mhz {
			src=< CLK_PLL12_HSI >;
			divmn = < 3 24 >;
		};
		pll4_vco_480Mhz: pll4-vco-480Mhz {
			src=< CLK_PLL4_HSI >;
			divmn = < 3 29 >;
		};
		/* USER CODE BEGIN rcc_st-pll_vco */
		/* USER CODE END rcc_st-pll_vco */
	};

	pll2:st,pll@1 {
		compatible = "st,stm32mp1-pll";
		reg = <1>;

		st,pll = < &pll2_cfg1 >;

		pll2_cfg1: pll2_cfg1 {
			st,pll_vco = < &pll2_vco_800Mhz >;
			st,pll_div_pqr = < 1 1 0 >;
		};
		/* USER CODE BEGIN pll2 */
		/* USER CODE END pll2 */
	};

	pll4:st,pll@3 {
		compatible = "st,stm32mp1-pll";
		reg = <3>;

		st,pll = < &pll4_cfg1 >;

		pll4_cfg1: pll4_cfg1 {
			st,pll_vco = < &pll4_vco_480Mhz >;
			st,pll_div_pqr = < 3 5 24 >;
		};
		/* USER CODE BEGIN pll4 */
		/* USER CODE END pll4 */
	};

};

&sdmmc2{
	pinctrl-names = "default";
	pinctrl-0 = <&sdmmc2_pins_mx>;
	status = "okay";

	/* USER CODE BEGIN sdmmc2 */
	/* USER CODE END sdmmc2 */
};

&uart4{
	pinctrl-names = "default";
	pinctrl-0 = <&uart4_pins_mx>;
	status = "okay";

	/* USER CODE BEGIN uart4 */
	/* USER CODE END uart4 */
};

&usbotg_hs{
	pinctrl-names = "default";
	pinctrl-0 = <&usb_otg_hs_pins_mx>;
	status = "okay";

	/* USER CODE BEGIN usbotg_hs */
	/* USER CODE END usbotg_hs */
};

&usbphyc{
	status = "okay";

	/* USER CODE BEGIN usbphyc */
	/* USER CODE END usbphyc */
};

&usbphyc_port0{
	status = "okay";

	/* USER CODE BEGIN usbphyc_port0 */
	/* USER CODE END usbphyc_port0 */
};

&usbphyc_port1{
	status = "okay";

	/* USER CODE BEGIN usbphyc_port1 */
	/* USER CODE END usbphyc_port1 */
};

/* USER CODE BEGIN addons */
/* USER CODE END addons */

 

 

 

Skärmklipp.PNG

 

1 ACCEPTED SOLUTION

Accepted Solutions
DMårt
Senior III

Hi!

I found the solution. You MUST add #include "stm32mp-pinctrl.dtsi" here.

Skärmklipp.PNG

View solution in original post

2 REPLIES 2
DMårt
Senior III

Nobody knows why this occurs? 

If you want to rebuild this example. Just do these steps:

 

  1. Start STM32CubeIDE
  2. Create a project for STM32MP151AAC3
  3. Add the SDK to the project
  4. Add the sources to the project
  5. Compile

Then these errors will be reveled. 

DMårt
Senior III

Hi!

I found the solution. You MUST add #include "stm32mp-pinctrl.dtsi" here.

Skärmklipp.PNG