TheThingsIndustries / generic-node-se

Generic Node Sensor Edition
https://www.genericnode.com
Other
108 stars 31 forks source link

Is Load Switch 2 for Macronix Flash really necessary? #158

Closed hallard closed 3 years ago

hallard commented 3 years ago

Load Switch 2 fir powering SPI Flash (when off) quiescent current can be 10 (typical) to 250nA (max) and the Macronix flash in power down goes from 7nA (typical) to 350 (max). May be an option to gain some component and remove this one. The con is to be sure to place the flash in power down when finished job, but it's also an interesting option, never used load switch with flash on my boards.

The Load Switch 1 is mandatory, not all I2C components may have descent power down mode.

elsalahy commented 3 years ago

@hallard We asked ourselves the same question in the design process and it all comes down to the vision of having GNSE as a boilerplate.

From a FW perspective the external flash can be any external SPI flash (any external flash supporting SFDB will do the trick), so Macronix is a good option when it comes to low power consumption. The load switch provide assurance that any component that is connected on the SPI bus can be power gated, no matter if it is a component that sleeps well or not.

The cost can be reduced according to customer needs and modifications/optimizations are welcomed.

elsalahy commented 3 years ago

I think that would be a great topic to discuss in the Forum

hallard commented 3 years ago

Makes sense also, in all case would provide assurance device is disconnected :-)

By the way, may be you could add this VCC_flash (output of the switch) going to expansion port, this mean that we would be able to shutdown external sensors (or other such as GPS) populated on the expansion board without need to reproduce all power off circuit on our expansion board (and use another GPIO)

azerimaker commented 3 years ago

Dear @hallard, these are really valuable comments. Thanks a lot.

By the way, may be you could add this VCC_flash (output of the switch) going to expansion port, this mean that we would be able to shutdown external sensors (or other such as GPS) populated on the expansion board without need to reproduce all power off circuit on our expansion board (and use another GPIO)

We also thought about this, in fact on the very first prototype, the I2C expansion was fed by the second load switch (VCC_Flash), but we were afraid that this might cause some confusion if a user wants to add an external sensor and everytime they have to call power-down routine of the flash IC.

Load switches don't add much to the BOM and in the next rev. we will certainly consider adding one only for external use.

hallard commented 3 years ago

Awesome, thanks, yes that's correct, always need to think on users side :-)

elsalahy commented 3 years ago

@hallard is it ok to close this issue?

elsalahy commented 3 years ago

Closing this issue, please re-open if necessary.