Hi Ping, I'm also working on this project with Chris and have a bit of info to add...
Our scenario is that we are trying to flash the MCU over the SWD interface with a USB Multilink Universal pod. The flashing process gets to about 61%, then KDS says it can't find the device.
To your question, the MCG mode is set to PEE and we have an external 12MHz oscillator as the external clk source as shown in the schematic above.
However to Chris' point, aren't the oscillator hardware and settings irrelevant until AFTER the MCU has been flashed because isn't the MCU running on it's own internal clk or the SWD_CLK during the flash process? Of course if the MCG settings aren't correct then the MCU will crash immediately after coming out of reset, but we can't even get through the flash process.
Thanks!
Jake