Hi,
thanks for the reply. the 32k oscillator was always working fine for me, it was the HSE that was the issue.
I managed to find a solution, I hacked up the fwlib example until it worked by slowly moving operations out of 'one shot' function until it worked after reset.
To be honest I don't know why, but it works. The drawback is that it won't keep time during power down (not a problem for me), but will resume after reset.
Cheers,
Richard