Power Mode Switch Application in IMX8QM-MEK

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Power Mode Switch Application in IMX8QM-MEK

1,774 Views
vinothkumars
Senior Contributor IV

Hi All,

I done the following for build the power_mode_switch demo application with Arm Cortex-M4 on IMX8QM-MEK. power_mode_switch demo application is running but android is not booting.

diff --git a/mcu-sdk-auto/SDK_MEK-MIMX8QM/boards/mekmimx8qm/demo_apps/power_mode_switch/cm4_core1/armgcc/CMakeLists.txt b/mcu-sdk-auto/SDK_MEK-MIMX8QM/boards/mekmimx8qm/demo_apps/power_mode_switch/cm4_core1/armgcc/CMakeLists.txt
index 74063f6..0a2e979 100644
--- a/mcu-sdk-auto/SDK_MEK-MIMX8QM/boards/mekmimx8qm/demo_apps/power_mode_switch/cm4_core1/armgcc/CMakeLists.txt
+++ b/mcu-sdk-auto/SDK_MEK-MIMX8QM/boards/mekmimx8qm/demo_apps/power_mode_switch/cm4_core1/armgcc/CMakeLists.txt
@@ -1404,4 +1404,4 @@ target_link_libraries(power_mode_switch_m41.elf optimized nosys)
 TARGET_LINK_LIBRARIES(power_mode_switch_m41.elf -Wl,--end-group)

 ADD_CUSTOM_COMMAND(TARGET power_mode_switch_m41.elf POST_BUILD COMMAND ${CMAKE_OBJCOPY}
--Obinary ${EXECUTABLE_OUTPUT_PATH}/power_mode_switch_m41.elf ${EXECUTABLE_OUTPUT_PATH}/m4_1_image.bin)


+-Obinary ${EXECUTABLE_OUTPUT_PATH}/power_mode_switch_m41.elf ${EXECUTABLE_OUTPUT_PATH}/m4_image.bin)

diff --git a/imx8q/mek_8q/AndroidUboot.mk b/imx8q/mek_8q/AndroidUboot.mk
index 518af15..6210c59 100644
--- a/imx8q/mek_8q/AndroidUboot.mk
+++ b/imx8q/mek_8q/AndroidUboot.mk
@@ -2,9 +2,9 @@
 MAKE += SHELL=/bin/bash
 ATF_TOOLCHAIN_ABS := $(realpath prebuilts/gcc/$(HOST_PREBUILT_TAG)/aarch64/aarch64-linux-android-4.9/bin)
 ATF_CROSS_COMPILE := $(ATF_TOOLCHAIN_ABS)/aarch64-linux-androidkernel-
-MCU_SDK_IMX8QM_DEMO_PATH := $(IMX_MCU_SDK_PATH)/mcu-sdk-auto/SDK_MEK-MIMX8QM/boards/mekmimx8qm/demo_apps/rear_view_camera/cm4_core1/armgcc
+MCU_SDK_IMX8QM_DEMO_PATH := $(IMX_MCU_SDK_PATH)/mcu-sdk-auto/SDK_MEK-MIMX8QM/boards/mekmimx8qm/demo_apps/power_mode_switch/cm4_core1/armgcc
 MCU_SDK_IMX8QM_CMAKE_FILE := ../../../../../../tools/cmake_toolchain_files/armgcc.cmake
-MCU_SDK_IMX8QX_DEMO_PATH := $(IMX_MCU_SDK_PATH)/mcu-sdk-auto/SDK_MEK-MIMX8QX/boards/mekmimx8qx/demo_apps/rear_view_camera/armgcc
+MCU_SDK_IMX8QX_DEMO_PATH := $(IMX_MCU_SDK_PATH)/mcu-sdk-auto/SDK_MEK-MIMX8QX/boards/mekmimx8qx/demo_apps/power_mode_switch/armgcc
 MCU_SDK_IMX8QX_CMAKE_FILE := ../../../../../tools/cmake_toolchain_files/armgcc.cmake

 UBOOT_M4_OUT := $(TARGET_OUT_INTERMEDIATES)/MCU_OBJ
@@ -97,7 +97,7 @@ define build_imx_uboot
                                if [ -f $(IMX_MKIMAGE_PATH)/imx-mkimage/$$MKIMAGE_PLATFORM/m4_image.bin ]; then \
                                        rm -f $(IMX_MKIMAGE_PATH)/imx-mkimage/$$MKIMAGE_PLATFORM/m4_image.bin; \
                                fi; \
-                               cp  $(UBOOT_M4_OUT)/MIMX8QX/$(UBOOT_M4_BUILD_TYPE)/rear_view_camera.bin $(IMX_MKIMAGE_PATH)/imx-mkimage/$$MKIMAGE_PLATFORM/m4_image.bin; \
+                               cp  $(UBOOT_M4_OUT)/MIMX8QX/$(UBOOT_M4_BUILD_TYPE)/power_mode_switch.bin $(IMX_MKIMAGE_PATH)/imx-mkimage/$$MKIMAGE_PLATFORM/m4_image.bin; \
                        fi; \
                fi; \
        fi; \

Task 1 is working now
 
MCU wakeup source 0x80...
 
####################  Power Mode Switch Task ####################
 
    Build Time: May 28 2020--17:50:43
    Core Clock: 264000000Hz
    Power mode: RUN
 
Select the desired operation
 
Press  A for enter: RUN      - Normal RUN mode
Press  B for enter: WAIT     - Wait mode
Press  C for enter: STOP     - Stop mode
Press  D for enter: VLPR     - Very Low Power Run mode
Press  E for enter: VLPW     - Very Low Power Wait mode
Press  F for enter: VLPS     - Very Low Power Stop mode
Press  G for enter: LLS      - Low Leakage Stop mode
Press  H for enter: VLLS     - Very Low Leakage Stop mode
Press  R for using WDOG trigger M4 partition reset.
 
Waiting for power mode select..

Log from M4 Console,

            After android is not booting.

So, Please check my configuration and provide the proper configuration to build power_mode_switch application.

Thanks & Regards,

VinothS,

Regards,
Vinothkumar Sekar
0 Kudos
Reply
3 Replies

1,625 Views
vinothkumars
Senior Contributor IV

Power mode switch application get compiled and run when we select CAR2 build variant.

Regards,

VinothS

Regards,
Vinothkumar Sekar
0 Kudos
Reply

1,625 Views
igorpadykov
NXP Employee
NXP Employee

Hi VinothS

one can look at link for creating image for i.MX8

i.MX8 Boot process and creating a bootable image 

and build steps in Android documentation

i.MX Software and Development Tools | NXP 

Make sure that used release supports i.MX8QM (supported processors are

described in Release Notes) and SCFW version (also described in Release Notes).

Then try to rebuild all image from scratch.

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos
Reply

1,625 Views
vinothkumars
Senior Contributor IV

Thank you Igor for the reply.

Do you have any user guide to power mode switch application in IMX8 series ?

Is power mode switch application controlled the Application Processor ?

Thanks & Regards,

VinothS,

Regards,
Vinothkumar Sekar
0 Kudos
Reply