cancel
Showing results for 
Search instead for 
Did you mean: 

An error occurred("Error: an error occured while uploading data from the virtual partition 0xF1") when I was immigrating the images.

EYANG.1
Associate

Hi, I downloaded the image file required by STM32MP157-EV1 from Yocto, but this error occurred when I used ST32CubeProgrammer. Does anyone know how to solve it?

Error:

0693W00000HoLtjQAF.png

Yocto image information:

0693W00000HoLtUQAV.png

4 REPLIES 4
Olivier GALLIEN
ST Employee

Hi @EYANG.1​ ,

Did you succeed to program the Starter Package ?

Could you provide UART log while programming ?

Thanks

Olivier

Olivier GALLIEN
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.

Hi,@Community member​ ,

You are right, I did not program the source code, and this is the only message in UART log when I was immigrating images. Is that the cause of problem?0693W00000HordJQAR.png

And yesterday, I created a new (.dts )and (.dtsi) in /temp/work-shared/stm32mp1/tfa-source folder. But I still do not know how to update it and create a renewed image by Yocto so that I could run it at STM32 board. Do you have good idea?

Thank you

Edward

Hi @EYANG.1​ ,

you need check tf-a device tree. The file should contain the settings of the power supply chip ST PMIC STPMIC1. example for STM32MP157A-DK1:

/* USER CODE BEGIN i2c4 */
	i2c-scl-rising-time-ns = <185>;
	i2c-scl-falling-time-ns = <20>;
	clock-frequency = <400000>;
 
	pmic:stpmic@33{
		compatible = "st,stpmic1";
		reg = <0x33>;
		interrupts-extended = <&exti_pwr 55 IRQ_TYPE_EDGE_FALLING>;
		interrupt-controller;
		#interrupt-cells = <2>;
		status = "okay";
		secure-status = "okay";
 
		regulators{
			compatible = "st,stpmic1-regulators";
			buck1-supply = <&vin>;
			buck2-supply = <&vin>;
			buck3-supply = <&vin>;
			buck4-supply = <&vin>;
			ldo1-supply = <&v3v3>;
			ldo2-supply = <&vin>;
			ldo3-supply = <&vdd_ddr>;
			ldo4-supply = <&vin>;
			ldo5-supply = <&vin>;
			ldo6-supply = <&v3v3>;
			vref_ddr-supply = <&vin>;
			boost-supply = <&vin>;
			pwr_sw1-supply = <&bst_out>;
			pwr_sw2-supply = <&bst_out>;
 
			vddcore:buck1{
				regulator-name = "vddcore";
				regulator-min-microvolt = <1200000>;
				regulator-max-microvolt = <1350000>;
				regulator-always-on;
				regulator-initial-mode = <0>;
				regulator-over-current-protection;
 
				lp-stop{
					regulator-on-in-suspend;
					regulator-suspend-microvolt = <1200000>;
				};
 
				standby-ddr-sr{
					regulator-off-in-suspend;
				};
 
				standby-ddr-off{
					regulator-off-in-suspend;
				};
			};
 
			vdd_ddr:buck2{
				regulator-name = "vdd_ddr";
				regulator-min-microvolt = <1350000>;
				regulator-max-microvolt = <1350000>;
				regulator-always-on;
				regulator-initial-mode = <0>;
				regulator-over-current-protection;
 
				lp-stop{
					regulator-suspend-microvolt = <1350000>;
					regulator-on-in-suspend;
				};
 
				standby-ddr-sr{
					regulator-suspend-microvolt = <1350000>;
					regulator-on-in-suspend;
				};
 
				standby-ddr-off{
					regulator-off-in-suspend;
				};
			};
 
			vdd:buck3{
				regulator-name = "vdd";
				regulator-min-microvolt = <3300000>;
				regulator-max-microvolt = <3300000>;
				regulator-always-on;
				st,mask-reset;
				regulator-initial-mode = <0>;
				regulator-over-current-protection;
 
				lp-stop{
					regulator-suspend-microvolt = <3300000>;
					regulator-on-in-suspend;
				};
 
				standby-ddr-sr{
					regulator-suspend-microvolt = <3300000>;
					regulator-on-in-suspend;
				};
 
				standby-ddr-off{
					regulator-suspend-microvolt = <3300000>;
					regulator-on-in-suspend;
				};
			};
 
			v3v3:buck4{
				regulator-name = "v3v3";
				regulator-min-microvolt = <3300000>;
				regulator-max-microvolt = <3300000>;
				regulator-always-on;
				regulator-over-current-protection;
				regulator-initial-mode = <0>;
 
				lp-stop{
					regulator-suspend-microvolt = <3300000>;
					regulator-on-in-suspend;
				};
 
				standby-ddr-sr{
					regulator-off-in-suspend;
				};
 
				standby-ddr-off{
					regulator-off-in-suspend;
				};
			};
 
			v1v8_audio:ldo1{
				regulator-name = "v1v8_audio";
				regulator-min-microvolt = <1800000>;
				regulator-max-microvolt = <1800000>;
				regulator-always-on;
 
				standby-ddr-sr{
					regulator-off-in-suspend;
				};
 
				standby-ddr-off{
					regulator-off-in-suspend;
				};
			};
 
			v3v3_hdmi:ldo2{
				regulator-name = "v3v3_hdmi";
				regulator-min-microvolt = <3300000>;
				regulator-max-microvolt = <3300000>;
				regulator-always-on;
 
				standby-ddr-sr{
					regulator-off-in-suspend;
				};
 
				standby-ddr-off{
					regulator-off-in-suspend;
				};
			};
 
			vtt_ddr:ldo3{
				regulator-name = "vtt_ddr";
				regulator-always-on;
				regulator-over-current-protection;
				st,regulator-sink-source;
 
				lp-stop{
					regulator-off-in-suspend;
				};
 
				standby-ddr-sr{
					regulator-off-in-suspend;
				};
 
				standby-ddr-off{
					regulator-off-in-suspend;
				};
			};
 
			vdd_usb:ldo4{
				regulator-name = "vdd_usb";
				regulator-min-microvolt = <3300000>;
				regulator-max-microvolt = <3300000>;
 
				standby-ddr-sr{
					regulator-off-in-suspend;
				};
 
				standby-ddr-off{
					regulator-off-in-suspend;
				};
			};
 
			vdda:ldo5{
				regulator-name = "vdda";
				regulator-min-microvolt = <2900000>;
				regulator-max-microvolt = <2900000>;
				regulator-boot-on;
 
				standby-ddr-sr{
					regulator-off-in-suspend;
				};
 
				standby-ddr-off{
					regulator-off-in-suspend;
				};
			};
 
			v1v2_hdmi:ldo6{
				regulator-name = "v1v2_hdmi";
				regulator-min-microvolt = <1200000>;
				regulator-max-microvolt = <1200000>;
				regulator-always-on;
 
				standby-ddr-sr{
					regulator-off-in-suspend;
				};
 
				standby-ddr-off{
					regulator-off-in-suspend;
				};
			};
 
			vref_ddr:vref_ddr{
				regulator-name = "vref_ddr";
				regulator-always-on;
 
				lp-stop{
					regulator-on-in-suspend;
				};
 
				standby-ddr-sr{
					regulator-on-in-suspend;
				};
 
				standby-ddr-off{
					regulator-off-in-suspend;
				};
			};
 
			bst_out:boost{
				regulator-name = "bst_out";
			};
 
			vbus_otg:pwr_sw1{
				regulator-name = "vbus_otg";
			};
 
			vbus_sw:pwr_sw2{
				regulator-name = "vbus_sw";
				regulator-active-discharge = <1>;
			};
		};
	};
	/* USER CODE END i2c4 */

Apparently, at startup, tfa interacts with this chip, and if it is not configured, then fsbl-boot will not be able to load your image via USB.

 I recommend editing the device tree that ST provides

Olivier GALLIEN
ST Employee

Hi @EYANG.1​ ,

I notice you load image for EV1 with MP157D

Which mean 800Mhz support.

Can you confirm it's the actual reference of your board ?

Thanks,

Olivier

Olivier GALLIEN
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.