I have encounter this bug along time ago when i added cookies save to Celeste, calling cookie.begin() before Pokitto::Core::begin() fix the problem back then, but i don’t know what was causing it until now.
the problem is iap eeprom write disable timer (Timer32_0) which is needed to generate audio data and output.
a simple fix is to remove that line or to disable it only if the sound enabled
#if (POK_ENABLE_SOUND==0) LPC_CT32B0->TCR = 0; #endif
after the fix we don’t need to re-init sound in cookie.save()