Latest news:
When I finally managed to run an OBJ file real time under Avr Studio 6.1 (It works sometimes..)
I found that XOSCEN was set true already from program start. So I realized that something had happened
prior to this point. The obvious source was easy to spot - The boot-loader!
The mistake was mine of course. I had enabled (and forgotten) the External oscillator already in the boot-loader.
This is not a good idea obviously, as it seem to be hard to turn XOSCEN off later on in the application,
in case you need to change any parameters in OSCCTRL. It is probably possible to do this somehow, but I have not found this holy grail.
So the moral is.
Do not activate XOSCEN until you really need it, and be sure to set up stuff in XOSCCTRL first.
Then just leave it alone...:)
That was that. it's Friday and the sun is shining bright here...so time for leisure.
/Per
↧