On a 128A1U board I designed when sysclk_init is called the processor mysteriously resets. Using the ASF Reset Cause module I could trace that the an external reset happens when I try to initialize the XTAL. (The conf_clock code is known to be working, I've used in in many other projects...)
I checked the PCB routing and indeed the reset line (PDI_CLOCK) is routed really close to the crystal itself. I tried to tie the reset line to high through a resistor but it didn't help.
Has anyone experienced something similar to this? What could I do to fix this issue?