nRF9160 power on

Hello Nordic support:

       We encountered a problem when downlaod the firmware for the nRF9160 with jlink nrfjprog program. Most our nRF9160 module can download firmware OK just after  power on and reset nRF9160.  But some nrf9160 need to wait about 6s for download. The error rate is about 20%. 

        Following is our schematic and code snippet of nRF9160 power on.  nRF9160 VDD1 is connect to VBATT battery power is always on.  LTE_EN gpio controled nRF9160 "ENABLE" and "VDD_GPIO" simultaneously. 

        Could you help us to check the power on and reset part of our nRF9160 schematic. And if our power on code "nrf9160_init" can meet nRF9160's timing?

         Thanks!

void nrf9160_init(void)
{
nrf_gpio_cfg_output( BL_PIN_LTE_EN );
nrf_gpio_cfg_output( BL_PIN_LTE_RESET_N );
nrf_gpio_cfg_input(BL_PIN_SG_ACT, NRF_GPIO_PIN_NOPULL);
nrf_gpio_cfg_output( BL_PIN_LTE_CS_N );
nrf_gpio_cfg_output( BL_PIN_LTE_BOOT_ATCMD );

nrf_gpio_pin_write(BL_PIN_LTE_BOOT_ATCMD, 1);
nrf_gpio_pin_write(BL_PIN_LTE_EN, 1);
nrf_gpio_pin_write(BL_PIN_LTE_RESET_N, 1);
nrf_gpio_pin_write(BL_PIN_LTE_CS_N, 1);

nrf_delay_ms(300);
nrf_gpio_pin_write(BL_PIN_LTE_RESET_N, 0);
nrf_delay_ms(500);
}

BRs

Qin, Rong-Lin

Related