#3195 - Corum - Wed Feb 19, 2003 7:00 pm
Hi all.
I've a little problem when trying to clear an u16* buffer by using a dma32 copy.
I'm referring to the well-known function by which we can made a brute copy of a 0x0000 sequence to clean the display buffer (my version is called ClearBuffer()).
I'm able to plot everything by using PlotPixel() and similar, but I cannot clear nothing.
I also use the Flip() function in my code, and I'm sure to achieve the buffer flipping AFTER a complete drawing of the screen and to "clean" the correct buffer (the hidden one) at the beginning of the rendering phase.
I compile my .bin by using a minimum set of switches (-mthumb-interwork, -04, -wall, -mlongcalls).
Every damned function is positioned within the iwram segment.
Anyone could explain why it happens?
Had you ever had this kind of problem?
Thanks in advance for your replies.
Corum.
I've a little problem when trying to clear an u16* buffer by using a dma32 copy.
I'm referring to the well-known function by which we can made a brute copy of a 0x0000 sequence to clean the display buffer (my version is called ClearBuffer()).
I'm able to plot everything by using PlotPixel() and similar, but I cannot clear nothing.
I also use the Flip() function in my code, and I'm sure to achieve the buffer flipping AFTER a complete drawing of the screen and to "clean" the correct buffer (the hidden one) at the beginning of the rendering phase.
I compile my .bin by using a minimum set of switches (-mthumb-interwork, -04, -wall, -mlongcalls).
Every damned function is positioned within the iwram segment.
Anyone could explain why it happens?
Had you ever had this kind of problem?
Thanks in advance for your replies.
Corum.