I'm using a custom board based on samd21j18a mcu, the board embeds an external oscillator and it is working fine when using asf3, whereas it fails to initialize clock when using asf4.
It gets stuck in this while loop in hpl_sysctrl.c file.
#if CONF_XOSC_CONFIG == 1 #if CONF_XOSC_ENABLE == 1 while (!hri_sysctrl_get_PCLKSR_XOSCRDY_bit(hw)) ; #endif
Here is my clock config in START:
I searched everywhere onilne for the problem but can't seem to find a solution.
Cheers.