R
Reesy
Guest
Hi,
I'm now using Mr Mirko's great SDK. The only problem I'm having is with switching the frame buffer. I'm using the gp_setFramebuffer function. An occasionally the screen is displayed incorrectly, ie it looks like the screen is wrapped around.
I've read in the official Samsung document that you should not set a new frame buffer location by using the line counter (rLCDCON1) as a guide to when the frame starts because the LCD FIFO is setup before the new frame.
I've looked at the source for the gp_setFramebuffer function and it does not check the current status of the LCD, it just updates the LCD registers straight away. I originally thought this could be the problem and thought that maybe gp_setFramebuffer was being executed at the same time the LCD FIFO is being setup. So I added code to make sure that gp_setFramebuffer never modified the LCD registers in the line was between 05 and 315. But the screen still get corrupted.
I'm guessing the FIFO is always setup at the same point during the frame, I just need to work out where it is. Anybody have any ideas?
Thanks
Reesy
I'm now using Mr Mirko's great SDK. The only problem I'm having is with switching the frame buffer. I'm using the gp_setFramebuffer function. An occasionally the screen is displayed incorrectly, ie it looks like the screen is wrapped around.
I've read in the official Samsung document that you should not set a new frame buffer location by using the line counter (rLCDCON1) as a guide to when the frame starts because the LCD FIFO is setup before the new frame.
I've looked at the source for the gp_setFramebuffer function and it does not check the current status of the LCD, it just updates the LCD registers straight away. I originally thought this could be the problem and thought that maybe gp_setFramebuffer was being executed at the same time the LCD FIFO is being setup. So I added code to make sure that gp_setFramebuffer never modified the LCD registers in the line was between 05 and 315. But the screen still get corrupted.
I'm guessing the FIFO is always setup at the same point during the frame, I just need to work out where it is. Anybody have any ideas?
Thanks
Reesy