Dear NXP,
I'm using imx8dxl with cortex-M4F.
When I test sc_pm_set_resource_power_mode() to power off of A35, A35 is always Power On mode.
Dear Aldo,
Thank you for reply.
Firstly, I made a hello_world without flag. It's working well.
./../mkimage_imx8 -soc DXL -rev A0 -append mx8dxlb0-ahab-container.img -c -flags 0x00200000 -scfw scfw_tcm.bin -ap u-boot-atf.bin a35 0x80000000 -p3 -m4 m4_image.bin 0 0x88000000 -dummy 0x87fc0000 -out flash.bin
Secondly, I made with flags. but I think it's halt. it's not displayed "hello world" on M4.
./../mkimage_imx8 -soc DXL -rev A0 -append mx8dxlb0-ahab-container.img -c -flags 0x00200000 -flags SC_BD_FLAGS_NO_AP -scfw scfw_tcm.bin -ap u-boot-atf.bin a35 0x80000000 -p3 -m4 m4_image.bin 0 0x88000000 -dummy 0x87fc0000 -out flash.bin
Could you comment for me.
PS : When I used power_mode_switch demo, I got same result.
Thank you.
Hello,
Sorry for the confusion, but please note that extra work is needed if you want for M4 to control the boot process.
First on SCFW, you'll need to isolate the M4 subsystem in its own partition (pt_m4_0), with its own resources. The remaining will live within the OS partition (pt_boot). For this you'll need to adapt the alt_config definition on the SCFW.
Next, while compiling SCFW you'll need to use this 2 flags:
SC_BD_FLAGS_ALT_CONFIG
SC_BD_FLAGS_NO_AP
First one will use the alternate configuration for hardware partitioning you have done above, the second one will prevent A35 from booting.
Please try it and let us know of the results.
Best regards/Saludos,
Aldo.