We have an AM335x + TPS65217C based design and we are observing that the system shuts down but reboots after 1s when trying to execute "shutdown -h now".
Particulars of the circuit
1. Circuit has BAT pins shorted to GND via 1K resistor (battery not used)
2. Power provision is given from AC as well as USB pins.
Test conditions
1. Power is supplied from AC pins (5V)
2. USB cable is not connected
3. Communication to laptop is via Debug UART
4. Command entered "shutdown -h now"
Observations
1. PWR_EN goes low then has a spike of around 50ms duration and then goes back to LOW.
2. After 1 s of power down, the board reboots. VSYS rises again and power up sequence starts.
3. For the same test conditions, when USB is also connected, the board shuts down properly and permanently.
Diagram with no USB cable, only 5V external DC voltage powering the board. (reboots after 1s)
Diagram with USB cable connected and also 5V external powering the board. (permanent shutdown)
I have seen this issue being discussed in multiple threads, but couldnot get a conclusive solution on how to deal with this.