Disable system power configuration on B5 SOM

How is system power configuration disabled, for systems where a PMIC is not connected?

According to docs, when there is no (external) PMIC ex. with B5 SOM, system power configuration should be disabled in order to use the pins for other purposes, but the provided example seem to do the opposite (restore it):

System.setPowerConfiguration(SystemPowerConfiguration());

https://docs.particle.io/reference/device-os/firmware/boron/#b-series-som

1 Like

I think I found it here:

1 Like

Is this also the correct way to do it on 2.0.1?

1 Like

Well poor guy, nobody ever answered you.

Anyway Thank you for raising this issue. I’m facing the same problem and will try to implement what you have found.

I believe you might need to use this now:

System.setPowerConfiguration(SystemPowerConfiguration().feature(SystemPowerFeature::DISABLE));

I believe it’s safe to do this from STARTUP() if necessary.

void disable()
{
    SystemPowerConfiguration conf;
    conf.feature(SystemPowerFeature::DISABLE);
    System.setPowerConfiguration(conf);
}
STARTUP(disable());
1 Like

Also note that B5 modules are not configured to work on 2G out of the box. A painfull debug, with deliberately obfuscated data sheet schematics, and customer service unwilling to disclose what components are actually in the power rail on the module: