Jonathan,
The clock_config you send to me, the execution stops in the function CLOCK_SetExternalRefConfig.
There's no clock at the crystal pins.
I tested it in my custom board and also tested it in a MKV46 tower board, with the MKV46 changed to a MKV58 and with 8MHZ crystal changed to a 16 MHZ crystal (two different crystals, I don't know the part numbers).
The register value in this point are:
OSC0_CR = 0x0F;
OSC0_OSC_DIV = 0x00;
MSG_C1 = 0x80;
MSG_C2 = 0xA0; (EREFS = 0!)
MSG_C3 = 0x74;
MSG_C4 = 0x12;
MSG_C5 = 0x00;
MSG_C6 = 0x00;
MSG_S = 0x10;
MSG_SC = 0x02;
MSG_ATCVH = 0x00;
MSG_ATVL = 0x80;
Can you send to me the firmware of the KV5x quadcopter? I know that the hardware use a 8 MHZ crystal.
Ari.