<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Imx8qxp M4 GPIO_PinInit failed in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Imx8qxp-M4-GPIO-PinInit-failed/m-p/1263920#M172774</link>
    <description>&lt;P&gt;This test failed, please help to solve it.&lt;BR /&gt;There is no way to proceed now.&lt;/P&gt;</description>
    <pubDate>Mon, 19 Apr 2021 01:42:07 GMT</pubDate>
    <dc:creator>relax-wu</dc:creator>
    <dc:date>2021-04-19T01:42:07Z</dc:date>
    <item>
      <title>Imx8qxp M4 GPIO_PinInit failed</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Imx8qxp-M4-GPIO-PinInit-failed/m-p/1262520#M172623</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; SCFW has allocated the group of gpio IMX8QXP_QSPI0A to M4.&lt;BR /&gt;&amp;nbsp; &amp;nbsp; Failed to initialize GPIO in M4&lt;BR /&gt;&amp;nbsp; &amp;nbsp; Modify as follows:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;diff --git a/android_build/vendor/nxp/mcu-sdk-auto/SDK_MEK-MIMX8QX/boards/mekmimx8qx/demo_apps/rear_view_camera/isi_board.c b/android_build/vendor/nxp/mcu-sdk-auto/SDK_MEK-MIMX8QX/boards/mekmimx8qx/demo_apps/rear_view_camera/isi_board.c
index 36fede3..7784fd6 100644
--- a/android_build/vendor/nxp/mcu-sdk-auto/SDK_MEK-MIMX8QX/boards/mekmimx8qx/demo_apps/rear_view_camera/isi_board.c
+++ b/android_build/vendor/nxp/mcu-sdk-auto/SDK_MEK-MIMX8QX/boards/mekmimx8qx/demo_apps/rear_view_camera/isi_board.c
@@ -76,6 +76,21 @@
 #define CAMERA_RST_PIN_IDX 0
 #define CAMERA_PD_PIN_IDX 1
 
+/*
+ * nvp6324 Camera en pin:
+ *
+ * QSPI0A :
+ * Camera1 En Pin: LSIO_GPIO3_IO13
+ * Camera2 En Pin: LSIO_GPIO3_IO9
+ * Camera3 En Pin: LSIO_GPIO3_IO10
+ * Camera4 En Pin: LSIO_GPIO3_IO11
+ */
+#define CAMERA_EN_GPIO LSIO__GPIO3
+#define CAMERA1_EN_PIN_IDX 13
+#define CAMERA2_EN_PIN_IDX 9
+#define CAMERA3_EN_PIN_IDX 10
+#define CAMERA4_EN_PIN_IDX 11
+
 #elif ISI_EXAMPLE_CI == ISI_CI_PI
 /*
  * Camera reset pin and power down pin:
@@ -1389,6 +1404,12 @@ void BOARD_PrepareCamera(void)
 	};
 
 	GPIO_PinInit(CAMERA_GPIO, CAMERA_RST_PIN_IDX, &amp;amp;gpioConfig);
+
+	/* camera enable */
+	GPIO_PinInit(CAMERA_EN_GPIO, CAMERA1_EN_PIN_IDX, &amp;amp;gpioConfig);
+	GPIO_PinInit(CAMERA_EN_GPIO, CAMERA2_EN_PIN_IDX, &amp;amp;gpioConfig);
+	GPIO_PinInit(CAMERA_EN_GPIO, CAMERA3_EN_PIN_IDX, &amp;amp;gpioConfig);
+	GPIO_PinInit(CAMERA_EN_GPIO, CAMERA4_EN_PIN_IDX, &amp;amp;gpioConfig);
 #endif
 
     /* Enable ISI interrupt. */
diff --git a/android_build/vendor/nxp/mcu-sdk-auto/SDK_MEK-MIMX8QX/boards/mekmimx8qx/demo_apps/rear_view_camera/pin_mux.c b/android_build/vendor/nxp/mcu-sdk-auto/SDK_MEK-MIMX8QX/boards/mekmimx8qx/demo_apps/rear_view_camera/pin_mux.c
index dbd2976..cf285ab 100644
--- a/android_build/vendor/nxp/mcu-sdk-auto/SDK_MEK-MIMX8QX/boards/mekmimx8qx/demo_apps/rear_view_camera/pin_mux.c
+++ b/android_build/vendor/nxp/mcu-sdk-auto/SDK_MEK-MIMX8QX/boards/mekmimx8qx/demo_apps/rear_view_camera/pin_mux.c
@@ -131,6 +131,31 @@ void BOARD_InitPins(sc_ipc_t ipc)                          /*!&amp;lt; Function assigne
   {
       assert(false);
   }
+
+  //camera enable gpio
+  err = sc_pad_set_all(ipc, BOARD_INITPINS_QSPI0A_DQS_PIN_FUNCTION_ID, 4U, SC_PAD_CONFIG_NORMAL, SC_PAD_ISO_OFF, 0x0 ,SC_PAD_WAKEUP_OFF);/* IOMUXD_QSPI0A_DQS register modification value */
+  if (SC_ERR_NONE != err)
+  {
+      assert(false);
+  }
+
+  err = sc_pad_set_all(ipc, BOARD_INITPINS_QSPI0_DATA0_PIN_FUNCTION_ID, 4U, SC_PAD_CONFIG_NORMAL, SC_PAD_ISO_OFF, 0x0 ,SC_PAD_WAKEUP_OFF);/* IOMUXD_QSPI0A_DATA0 register modification value */
+  if (SC_ERR_NONE != err)
+  {
+      assert(false);
+  }
+
+  err = sc_pad_set_all(ipc, BOARD_INITPINS_QSPI0_DATA1_PIN_FUNCTION_ID, 4U, SC_PAD_CONFIG_NORMAL, SC_PAD_ISO_OFF, 0x0 ,SC_PAD_WAKEUP_OFF);/* IOMUXD_QSPI0A_DATA1 register modification value */
+  if (SC_ERR_NONE != err)
+  {
+      assert(false);
+  }
+
+  err = sc_pad_set_all(ipc, BOARD_INITPINS_QSPI0_DATA2_PIN_FUNCTION_ID, 4U, SC_PAD_CONFIG_NORMAL, SC_PAD_ISO_OFF, 0x0 ,SC_PAD_WAKEUP_OFF);/* IOMUXD_QSPI0A_DATA2 register modification value */
+  if (SC_ERR_NONE != err)
+  {
+      assert(false);
+  }
 #elif (ISI_EXAMPLE_CI == ISI_CI_PI)
   err = sc_pad_set_all(ipc, BOARD_INITPINS_BB_CSI_D0_PIN_FUNCTION_ID, 0U, SC_PAD_CONFIG_NORMAL, SC_PAD_ISO_OFF, 0x0 ,SC_PAD_WAKEUP_OFF);/* IOMUXD_CSI_D00 register modification value */
   if (SC_ERR_NONE != err)
diff --git a/android_build/vendor/nxp/mcu-sdk-auto/SDK_MEK-MIMX8QX/boards/mekmimx8qx/demo_apps/rear_view_camera/pin_mux.h b/android_build/vendor/nxp/mcu-sdk-auto/SDK_MEK-MIMX8QX/boards/mekmimx8qx/demo_apps/rear_view_camera/pin_mux.h
index b9dac2d..cab9c43 100644
--- a/android_build/vendor/nxp/mcu-sdk-auto/SDK_MEK-MIMX8QX/boards/mekmimx8qx/demo_apps/rear_view_camera/pin_mux.h
+++ b/android_build/vendor/nxp/mcu-sdk-auto/SDK_MEK-MIMX8QX/boards/mekmimx8qx/demo_apps/rear_view_camera/pin_mux.h
@@ -269,6 +269,42 @@
 #define BOARD_INITPINS_BB_CSI_RST_B_PIN_FUNCTION_ID               SC_P_CSI_RESET   /*!&amp;lt; Pin function id */
 #define BOARD_INITPINS_BB_CSI_RST_B_LABEL                "BB_CSI_RST_B/J13E[37]"   /*!&amp;lt; Label */
 #define BOARD_INITPINS_BB_CSI_RST_B_NAME                          "BB_CSI_RST_B"   /*!&amp;lt; Identifier name */
+
+/* QSPI0A_DQS (number AL11), QSPI0A_DQS */
+#define BOARD_INITPINS_QSPI0A_DQS_PERIPHERAL                         LSIO__QSPI0   /*!&amp;lt; Device name: LSIO__QSPI0 */
+#define BOARD_INITPINS_QSPI0A_DQS_SIGNAL                              qspi_a_dqs   /*!&amp;lt; LSIO__QSPI0 signal: qspi_a_dqs */
+#define BOARD_INITPINS_QSPI0A_DQS_PIN_NAME                            QSPI0A_DQS   /*!&amp;lt; Pin name */
+#define BOARD_INITPINS_QSPI0A_DQS_PIN_FUNCTION_ID                SC_P_QSPI0A_DQS   /*!&amp;lt; Pin function id */
+#define BOARD_INITPINS_QSPI0A_DQS_LABEL                             "QSPI0A_DQS"   /*!&amp;lt; Label */
+#define BOARD_INITPINS_QSPI0A_DQS_NAME                              "QSPI0A_DQS"   /*!&amp;lt; Identifier name */
+
+/* QSPI0A_DATA0 (number AK14), QSPI0_DATA0 */
+#define BOARD_INITPINS_QSPI0_DATA0_PERIPHERAL                        LSIO__QSPI0   /*!&amp;lt; Device name: LSIO__QSPI0 */
+#define BOARD_INITPINS_QSPI0_DATA0_SIGNAL                            qspi_a_data   /*!&amp;lt; LSIO__QSPI0 signal: qspi_a_data */
+#define BOARD_INITPINS_QSPI0_DATA0_CHANNEL                                     0   /*!&amp;lt; LSIO__QSPI0 qspi_a_data channel: 0 */
+#define BOARD_INITPINS_QSPI0_DATA0_PIN_NAME                         QSPI0A_DATA0   /*!&amp;lt; Pin name */
+#define BOARD_INITPINS_QSPI0_DATA0_PIN_FUNCTION_ID             SC_P_QSPI0A_DATA0   /*!&amp;lt; Pin function id */
+#define BOARD_INITPINS_QSPI0_DATA0_LABEL                           "QSPI0_DATA0"   /*!&amp;lt; Label */
+#define BOARD_INITPINS_QSPI0_DATA0_NAME                            "QSPI0_DATA0"   /*!&amp;lt; Identifier name */
+
+/* QSPI0A_DATA1 (number AR13), QSPI0_DATA1 */
+#define BOARD_INITPINS_QSPI0_DATA1_PERIPHERAL                        LSIO__QSPI0   /*!&amp;lt; Device name: LSIO__QSPI0 */
+#define BOARD_INITPINS_QSPI0_DATA1_SIGNAL                            qspi_a_data   /*!&amp;lt; LSIO__QSPI0 signal: qspi_a_data */
+#define BOARD_INITPINS_QSPI0_DATA1_CHANNEL                                     1   /*!&amp;lt; LSIO__QSPI0 qspi_a_data channel: 1 */
+#define BOARD_INITPINS_QSPI0_DATA1_PIN_NAME                         QSPI0A_DATA1   /*!&amp;lt; Pin name */
+#define BOARD_INITPINS_QSPI0_DATA1_PIN_FUNCTION_ID             SC_P_QSPI0A_DATA1   /*!&amp;lt; Pin function id */
+#define BOARD_INITPINS_QSPI0_DATA1_LABEL                           "QSPI0_DATA1"   /*!&amp;lt; Label */
+#define BOARD_INITPINS_QSPI0_DATA1_NAME                            "QSPI0_DATA1"   /*!&amp;lt; Identifier name */
+
+/* QSPI0A_DATA2 (number AJ13), QSPI0_DATA2 */
+#define BOARD_INITPINS_QSPI0_DATA2_PERIPHERAL                        LSIO__QSPI0   /*!&amp;lt; Device name: LSIO__QSPI0 */
+#define BOARD_INITPINS_QSPI0_DATA2_SIGNAL                            qspi_a_data   /*!&amp;lt; LSIO__QSPI0 signal: qspi_a_data */
+#define BOARD_INITPINS_QSPI0_DATA2_CHANNEL                                     2   /*!&amp;lt; LSIO__QSPI0 qspi_a_data channel: 2 */
+#define BOARD_INITPINS_QSPI0_DATA2_PIN_NAME                         QSPI0A_DATA2   /*!&amp;lt; Pin name */
+#define BOARD_INITPINS_QSPI0_DATA2_PIN_FUNCTION_ID             SC_P_QSPI0A_DATA2   /*!&amp;lt; Pin function id */
+#define BOARD_INITPINS_QSPI0_DATA2_LABEL                           "QSPI0_DATA2"   /*!&amp;lt; Label */
+#define BOARD_INITPINS_QSPI0_DATA2_NAME                            "QSPI0_DATA2"   /*!&amp;lt; Identifier name */
+
 /*!
  * @addtogroup pin_mux
  * @{&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Apr 2021 01:35:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Imx8qxp-M4-GPIO-PinInit-failed/m-p/1262520#M172623</guid>
      <dc:creator>relax-wu</dc:creator>
      <dc:date>2021-04-22T01:35:28Z</dc:date>
    </item>
    <item>
      <title>Re: Imx8qxp M4 GPIO_PinInit failed</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Imx8qxp-M4-GPIO-PinInit-failed/m-p/1262585#M172628</link>
      <description>&lt;P&gt;MCU-SDK：android_build/vendor/nxp/mcu-sdk-auto/SDK_MEK-MIMX8QX/boards/mekmimx8qx/demo_apps/rear_view_camera&lt;/P&gt;&lt;P&gt;When this function is executed, an error occurs and the program dies&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;//vendor/nxp/mcu-sdk-auto/SDK_MEK-MIMX8QX/devices/MIMX8QX6/drivers/fsl_gpio.c
void GPIO_PinInit(GPIO_Type *base, uint32_t pin, const gpio_pin_config_t *Config)
{
    ......

	/* Enable GPIO clock. */
    CLOCK_EnableClock(s_gpioClock[GPIO_GetInstance(base)]);

    ......
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Apr 2021 07:44:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Imx8qxp-M4-GPIO-PinInit-failed/m-p/1262585#M172628</guid>
      <dc:creator>relax-wu</dc:creator>
      <dc:date>2021-04-15T07:44:57Z</dc:date>
    </item>
    <item>
      <title>Re: Imx8qxp M4 GPIO_PinInit failed</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Imx8qxp-M4-GPIO-PinInit-failed/m-p/1262680#M172640</link>
      <description>&lt;P&gt;Hi relax&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;the same IMX8QXP_QSPI0A signals may be used in other ..driver_examples/flexspi sdk example, so&lt;/P&gt;
&lt;P&gt;one can try to comment them there.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;/P&gt;</description>
      <pubDate>Thu, 15 Apr 2021 09:03:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Imx8qxp-M4-GPIO-PinInit-failed/m-p/1262680#M172640</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2021-04-15T09:03:23Z</dc:date>
    </item>
    <item>
      <title>Re: Imx8qxp M4 GPIO_PinInit failed</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Imx8qxp-M4-GPIO-PinInit-failed/m-p/1263920#M172774</link>
      <description>&lt;P&gt;This test failed, please help to solve it.&lt;BR /&gt;There is no way to proceed now.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Apr 2021 01:42:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Imx8qxp-M4-GPIO-PinInit-failed/m-p/1263920#M172774</guid>
      <dc:creator>relax-wu</dc:creator>
      <dc:date>2021-04-19T01:42:07Z</dc:date>
    </item>
    <item>
      <title>Re: Imx8qxp M4 GPIO_PinInit failed</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Imx8qxp-M4-GPIO-PinInit-failed/m-p/1264651#M172846</link>
      <description>&lt;P&gt;Hi igor&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; The configuration steps are simple.&lt;BR /&gt;&amp;nbsp; &amp;nbsp; Now that there is a problem, there are two possibilities:&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1. My configuration is wrong&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2. There is a problem with your SDK(&lt;SPAN&gt;Q10.0.0_2.2.0_AUTO)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; Please feedback to the technical staff to confirm it.&lt;/P&gt;&lt;P&gt;thank you very much&lt;/P&gt;</description>
      <pubDate>Tue, 20 Apr 2021 00:46:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Imx8qxp-M4-GPIO-PinInit-failed/m-p/1264651#M172846</guid>
      <dc:creator>relax-wu</dc:creator>
      <dc:date>2021-04-20T00:46:34Z</dc:date>
    </item>
    <item>
      <title>Re: Imx8qxp M4 GPIO_PinInit failed</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Imx8qxp-M4-GPIO-PinInit-failed/m-p/1275450#M173909</link>
      <description>&lt;P&gt;I solved it myself。&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/t5/i-MX-Processors/imx8qxp-M4-How-to-use-flexspi-pins-as-normal-GPIO/td-p/1268570#M173387" target="_self"&gt;https://community.nxp.com/t5/i-MX-Processors/imx8qxp-M4-How-to-use-flexspi-pins-as-normal-GPIO/td-p/1268570#M173387&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 May 2021 07:44:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Imx8qxp-M4-GPIO-PinInit-failed/m-p/1275450#M173909</guid>
      <dc:creator>relax-wu</dc:creator>
      <dc:date>2021-05-12T07:44:43Z</dc:date>
    </item>
  </channel>
</rss>

