This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

QSPI current is high at nRF52840DK

Hi,

I have measured QSPI current consumption on our product at no access period, and got 1mA (too high current!).

So I tried to check with nRF52840 DK to confirm our source code is wrong or not.

 I tested SDK14.2 example of QSPI (examples/peripheral/qspi) with nRF52840 DK measuring with PPK board.

I put the following code to main.c, and check current  by 2 cases.

white (true) {
    __WFE();
}

case1. put them just after startup of main() -> 2uA.

 (this is just check board setting is correct)

case2. put them after read instruction(after NRF_LOG_INFO("Data read"))  -> about 1mA

Do you have any idea to reduce this 1mA current?

Best regard, 

Parents
  • Hi

    In order to achieve current below ~900uA, you will have to uninitialize the QSPI driver and go to standby (WFE). In order to uninitialize it correctly while taking anomaly 122 into consideration, you should add something like this before calling the WFE.

        *(volatile uint32_t *)0x40029010ul = 1ul;
        *(volatile uint32_t *)0x40029054ul = 1ul;
        nrf_drv_qspi_uninit();

    Do you have to configure the memory every time you initialize the QSPI? If so, I don't think you will get the current consumption very much lower while the QSPI driver is running.

    Best regards,

    Simon

Reply
  • Hi

    In order to achieve current below ~900uA, you will have to uninitialize the QSPI driver and go to standby (WFE). In order to uninitialize it correctly while taking anomaly 122 into consideration, you should add something like this before calling the WFE.

        *(volatile uint32_t *)0x40029010ul = 1ul;
        *(volatile uint32_t *)0x40029054ul = 1ul;
        nrf_drv_qspi_uninit();

    Do you have to configure the memory every time you initialize the QSPI? If so, I don't think you will get the current consumption very much lower while the QSPI driver is running.

    Best regards,

    Simon

Children
Related