How to implement the graceful shutdown on IMX8M plus

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

How to implement the graceful shutdown on IMX8M plus

605件の閲覧回数
vinay_hasyagar
Contributor III

Hi, we are using iMX8M plus evk. We want to implement graceful shut down when ONOFF button is pressed. The current implementation in the default BSP is, when the ONOFF button is held more than 5s then the system is going to turn off (forceful shut down)

We want to implement a graceful shut down where if we hold the ONOFF button less than 5s then processor should send a PMIC_ON_REQ to external PMIC chip so that system can be turned off. But it should be like graceful shutdown where software can get time to close all the background tasks before system gets tuned off. 

How exactly we can implement this? In which are the files we need to modify? 

Thanks in advance.

ラベル(1)
0 件の賞賛
返信
1 返信

577件の閲覧回数
hector_delgado
NXP TechSupport
NXP TechSupport

Hi @vinay_hasyagar ,

Implementing a shutdown sequence as you describe would be software restricted. That means if the OS freezes completely, this custom shutdown sequence will not work, but if the intended function of this is when the OS is working completely fine, then there would be no issue.

 

Let me know if that would work for you.

Best regards,
Hector.

0 件の賞賛
返信