- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I all,
I've a SoC based on a NIOSII/f and a LCD controller with a Master interface for accessing the memories in order to update the display content. Here is the function I use to "clear/fill-up with a color the display.
void Pe_lcdClear(UInt16 background)
{
pe_lcdBackground.RGB = background;
pe_lcdStartDma((Pixel*)&pe_lcdBackground, LCD_W*LCD_H, False); //False: do not increment the source address
}
The global variable "pe_lcdBackground" is located in to the onchip_Ram. This is the code flow:
Pe_lcdClear(0x0000); //Black Background
Pe_lcdClear(0xFFFF); //White Background
Pe_lcdClear(0xFFFF); //White Background
On the display I see the following: - black
- black
- white
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
It was not a pipeling problem, it was a cache problem!
I've solved it by calling: alt_dcache_flush_all(); before calling the dma start function.
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page