Hello nordic.
I've been using the PPK2 to measure the current draw of the nRF9160DK. However, spi peripherals are not included in these measurements. I was told that if you power the peripherals from nRF_ref they would be but I'm not getting any/the right amount of voltage from those pins. Only the regular VDD ports seem to work. My board is in 3v3 mode.
As the sd-card draws current, I need to be able to either cut power to it when not needing it or dismount it when not needed and mount it when needed.
In the first case, I would like to set a GPIO to 3v3 output and control the pin from software, I have tried this but can't get the gpio to supply the same as VDD pin.
The other solution is to mount the sd card only when needed, the problem with that is that the procedure can take 100-500 ms which causes me to lose important data. Is there an easy way to multithread or use DMA such that I can save sensor data to RAM while the sd-card is being mounted and then, once mounted, I can write directly to it? This is the last bump in the road and I need to solve this, I should mention I tried using the external NOR flash of the nrf9160dk but it was not fast enough for a dataflow of 32kB/s.
So to sum up:
1. I need to measure spi-consumption on the PPK2 but the nRF_ref does not provide the same voltage as VDD
2. I need to be able to turn on and off power to the sd-card which requires a configurable pin. That is, I need a gpio pin with an output equal to VDD
3. Is there a way to run the mounting procedure in parallel with data recording to RAM such that I don't miss data? How?
Thanks beforehand

