I have a problem where everything works fine while running from USB power (either connector) but not after restarting from battery.
At first I just got white screen but this could be fixed by setting flash waitstate to 1 or 2. However the measured UART rate indicates that the processor is running on 60MHz instead of desired 20MHz. And only when running off battery.
I have tested on different Primer2s and the problem seems to exists on some but not others.