The 5340 takes a long time from power-on to code running

Hi,

  I recently found that the 5340 has a slow startup time on my custom nRF5340 based hardware, it takes about 3 seconds from power-on to the Main code running.

  I did the following experiment:

   1、on the DK development board  :    the same code took about 1 second from power-on to  the Main code running ;

   2、on my custom nRF5340 based hardware:     When a low level reset pin is set while the code is running, the code can run again within 1S;

This is our schematic:

   1、3V3_EN & nRF5340_RST is Controlled by another MCU(#2).  When power on,  the  #2MCU will set 3V3_EN enable and nRF5340_RST high impedance state & waiting for 5340 to start and receive the handshake message initiated by 5340 through the serial port

Parents
  • Hi

    Do you have the datasheet of the crystals you're using so I could take a look? Based on your tests it seems like the 20pF Ccap isn't optimal, so it might be recommended to change this. Alternatively you can try different internal capacitor values to see if you're able to tune it somehow, but that's not promising based on the results you have provided here. It also seems strange that Ccap to 15pF and INT caps to 6pF is so different between CAP_EXTERNAL and Ccap to 20pF. You can alternatively try switching to the internal RC oscillator instead of the LFXO with the CONFIG_CLOCK_CONTROL_NRF_K32SRC_RC.

    Best regards,

    Simon

Reply
  • Hi

    Do you have the datasheet of the crystals you're using so I could take a look? Based on your tests it seems like the 20pF Ccap isn't optimal, so it might be recommended to change this. Alternatively you can try different internal capacitor values to see if you're able to tune it somehow, but that's not promising based on the results you have provided here. It also seems strange that Ccap to 15pF and INT caps to 6pF is so different between CAP_EXTERNAL and Ccap to 20pF. You can alternatively try switching to the internal RC oscillator instead of the LFXO with the CONFIG_CLOCK_CONTROL_NRF_K32SRC_RC.

    Best regards,

    Simon

Children
Related