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

How to solve this BUG?[89] GPIOTE: Static 400 µA current while using GPIOTE

Dear employee

for bug 89,

According to <nRF52832_Rev_1_Errata_v1.8>

It is mean below?(spi with blocking mode)

    nrf_drv_spi_init(&m_inst, &spi_conf, NULL);
    nrf_drv_spi_transfer(&m_inst, &pkg[0], 2, NULL, 0)
	nrf_drv_spi_uninit(&m_inst);

	*(volatile uint32_t *)0x40003FFC = 0;
	*(volatile uint32_t *)0x40003FFC;
	*(volatile uint32_t *)0x40003FFC = 1;

But I think it should be this

   	*(volatile uint32_t *)0x40003FFC = 0;
	*(volatile uint32_t *)0x40003FFC;
	*(volatile uint32_t *)0x40003FFC = 1;
	
	nrf_drv_spi_init(&m_inst, &spi_conf, NULL);
    nrf_drv_spi_transfer(&m_inst, &pkg[0], 2, NULL, 0)
	nrf_drv_spi_uninit(&m_inst);

	*(volatile uint32_t *)0x40003FFC = 1;
	*(volatile uint32_t *)0x40003FFC;
	*(volatile uint32_t *)0x40003FFC = 0;

when transfer complate ,should I close the power of spi,not open the power of spi,is it right?

Thanks and Regards

Victor

Parents Reply Children
No Data
Related