WHY DOES MY MAX32620FTHR APPLICATION SWITCH OFF AFTER 4 SECONDS WHILE IN BATTERY POWER?
The MAX32620FTHR is equipped with a PMIC (MAX77650) that if used only by a battery voltage source will automatically trigger the system into power-off after about 4 seconds if the pin PWR_HLD (MAX66750A1) is not driven high by the host µC.
So make sure that your application drives the pin high right at the beginning of the code while initializing the system.
An example can be found here:
https://github.com/amperpirat/MAX77650-Arduino-Library/blob/master/examples/MAX77650_PowerHold_example/MAX77650_PowerHold_example.ino
AFTER MODIFYING CODE AND ADDING A LI+ BATTERY, THE MAX32620FTHR BOARD SHUTS DOWN. WHAT AM I MISSING?
Take a look at the MAX32620FTHR's datasheet and the MAX77650's datasheet page 40.
You can see there is a pin assigned from the MAX32620 to the Power Hold pin of the MAX77650. Therefore, a digital output needs to be assigned and set to ON for the PMIC to stay on.
You can add something like this to your MBED code as part of your initialization:
DigitalOut pw_Hold(P2_2, POWER_HOLD_ON);
|