Reducing power consumption when sd card is unmounted

Our custom development board uses an nrf52840 chip together with attached sensors. The data from sensors are stored in sd card. For this purpose, the Zephyr fs library is used. In general, sensors' data are written into sd card successfully. The sd card is unmounted after the writing procedure by calling the fs_unmount function. I would assume that the power consumption should be reduced to a level equal to the initial value but this does not happen. It seems that sd card pins remain in the high state.

I found a similar problem (devzone.nordicsemi.com/.../383088but in this case, nrfx SPIM driver was used instead of Zephyr.

I was trying to define the spi instance based on sdhc0 node and then I could call the spi_release method. The spi release method seems to not work as an uninitialized method in nrfx SPIM driver. To conclude, I would like to turn off FS driver without extra power consumption after the writing procedure is completed.

Samo

Related