View unanswered posts | View active topics It is currently Mon Oct 22, 2018 7:12 am



Reply to topic  [ 2 posts ] 
 Enabling VBlank counter 
Author Message

Joined: Wed Aug 14, 2013 8:28 pm
Posts: 63
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.


Sat Jan 17, 2015 12:02 pm
Profile

Joined: Thu Jul 02, 2009 1:19 pm
Posts: 352
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.

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.


Sat Jan 17, 2015 6:50 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 2 posts ] 

Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
  Powered by phpBB® Forum Software © phpBB Group
Designed by ST Software.
Get devkitPro at SourceForge.net. Fast, secure and Free Open Source software downloads