Moving from NRF5340 DK to custom board

Hello,

We are moving from the 5340DK to our custom board. I have noticed one concerning difference between how the code behaves on the development board versus our own board in that k_msleep seems wildly wrong, with a 5ms delay on the the dev board (the correct behavior) taking ~ 30 milliseconds on our board.

The uart is operating with the correct baud rate, which would suggest the problem isnt simply the wrong crystal or some other hardware-level fault.

I am thinking this is a configuration issue; I notice the following schematic differences between the dev and our board:

  1. QKAA vs CLAA for the NRF package
  2. Dev board has both 32.7K and 32MHz oscillators, we only have the 32mhz
  3. Dev board has internal capacitors on the external 32M oscillator, we are using external caps

I can share the schematic if you think that would help. At this juncture I am fairly confident the hardware is working correctly, and that the problem is somehow firmware/configuration related. Do you have any suggestions?

Thank you for your help

Related