Is it possible to completely power off an iMX7ULP system using either the 'shutdown 'h now' command from Linux or by using the M4 core.
My application requires system temperature to be monitored and if the temperature is too high then the system needs to completely power off and only be powered back on again via the on/off button.
Are there any code examples available?
Hello,
Yes this may be possible, please have a look to the M4 SDK package, available from here:
https://mcuxpresso.nxp.com/en
Please check the following demo apps:
<SDK installation path>\boards\evkmcimx7ulp\demo_apps\pmc_temperature_sensor
The demo shows how to measure the temperature within the PMC module.
In this demo, the ADC input channel is mapped to an internal temperature sensor. When running the project, typing
any key into debug console would trigger a series of ADC conversions. When the conversions are done, the temperature is
calculated per the specific formula.
<SDK installation path>\boards\evkmcimx7ulp\demo_apps\power_mode_switch
The Power mode switch demo application demonstrates the use of power modes in the KSDK. The demo prints the power mode menu through the debug console, where the user can set the MCU to a specific power mode.
The user can also set the wakeup source by following the debug console prompts. The purpose of this demo is to show how to switch between different power modes, and how to configure a wakeup source and wakeup the MCU from low power modes.
Best regards/Saludos,
Aldo.