The VBlank counter is constantly stuck at 160, causing the DS to freeze if a swiWaitForVBlank is executed.
I couldn't work out which registers to set in order to re-enable it, BIT(2) of DISPSTAT is a read only value for whether the VBlank counter is enabled or not, but I don't know what I have to do to get it to enable.
IME is 1 so global interrupts are enabled. Not really sure what to check from here.
Enabling VBlank counter
Re: Enabling VBlank counter
Are you trying to compile something built with an older version of libnds? This happens because some startup code was moved to the crt startup and should not be called manually. Doing so cause things to break. This does work in the examples so it must be something you are doing.Derrik wrote:The VBlank counter is constantly stuck at 160, causing the DS to freeze if a swiWaitForVBlank is executed.
I couldn't work out which registers to set in order to re-enable it, BIT(2) of DISPSTAT is a read only value for whether the VBlank counter is enabled or not, but I don't know what I have to do to get it to enable.
IME is 1 so global interrupts are enabled. Not really sure what to check from here.
Who is online
Users browsing this forum: Ahrefs [Bot], Semrush [Bot] and 0 guests