The problem encountered here is that sometime there is no oscillation. Please find the schematic below:
What could have resulted in this? Is there a layout guide on how to place the crystal. My thought is that the crystal should be as close to the XIN and XOUT pins as possible, keeping the traces short. Based on the datasheet, 20pF should meet the requirement. What else do I need to take note?