Hi, thanks for your prompt reply.
I've tried this solution a number of times and it works well but i've come across a couple of issues that I hope you can help me with.
1. I notice that in Processor Expert (PE) you have selected the internal clock (for the high speed clock). I've tried to use the external clock (which I presume is the external 48MHz crystal). PE appears to recognise this as it changes the Predivider from 6 to 1. I've also changed the LED period to 1000ms so that I can see the LED toggling (this required a change to using the DMA timer). When I run the program it is running at 1/6 of its correct speed.
My theory for what is happening is that the input to the PLL is not being switched from the internal 8MHz oscillator to the external 48MHz crystal. I've looked at the startup code generated (System Clock Initialisation, in function __initialize_hardware, file Cpu.c) and as far as I can tell this is what the code is doing (I'm sorry but I find the Clock Module chapter of the MCF52259 Reference Manual confusing and ambiguous). I've attached my project for your reference.
So, my question is: How do I get PE to switch to using the external 48MHz crystal?
2. I'm using the INTERNAL_FLASH. In the Flash Programmer (Tools>Flash Programmer) if I load settings from the cfg folder (as outlined in 7. of Flashing the code in the Readme.txt file) then the Erase operation fails - it seems to get caught in the Erase operation and never completes. However if I use a flash settings file from a project created without PE (ie. create a new project with the M52259DEMO) then the Erase and program operations work correctly.
Do you have any advise for me here?
Thanks