Hi David
You misunderstood the question a bit. I am not changing the settings in the code but changing the hardware config settings and reseting the board.
I have received a M5213EVB and did some tests:
1. I loaded a program which runs from FLASH. It sets the PLL to 80MHz as soon as the program starts.
2. When I configure the jumpers on the board with CLOCKMOD1/0 = '11' or with '01', the board starts. I am assuming that with '01' (PLL disabled) the code is running with the crystal frequency (8MHz) until the code programs the PLL to 80MHz.
With '11' I am assuming that the PLL is automically enabled with x8 - possibly the reset circuitry (boot program in chip?) waits until the PLL has locked byfore allowing the user coded to start (?). In this case the code is running at 64MHz until it programs the PLL to 80MHz.
3. I do have a difference when using BDM. When I set '11' everything is normal. When I set '01' my P+E BDM can't communicate with the board.
Can you confirm my reasoning and shed light on the BDM problam (which I didn't know about when I posted the first time).
Regards
Mark
www.mjbc.ch