Almost working! SSD1963 + FSMC + External SRAM. Why my images are like this?
- July 23, 2020
- 17 replies
- 7722 views
Hi! I have been trying to make things work for a couple of days. I'm using an Alientek Explorer developer board (STM32F407) and it the documentation is nonexistent. Everything is in chinese characters and it's been so hard to learn from examples when everything is unintelligible. Lucky me the new STM32CubeIDE is a breeze to use! It's so good the way everything is well connected!
I have this display: https://www.buydisplay.com/7-tft-screen-touch-lcd-display-module-w-ssd1963-controller-board-mcu
I'm not using DMA transfer yet. Trying to make the simpler way first and improve later.
I have been following the doc for "FMC and SPI Display Interface" and STM32F412G-DISCO example.
Someone could please help me to identify why my image is being drawn liek this? I suspect my buffer is the problem.
Designer:

Display:

Designer:

Display:

May the cause of this be here?
void TouchGFXHAL::copyFrameBufferBlockToLCD(const Rect rect)
{
__IO uint16_t* ptr;
int16_t height;
// Use default implementation (CPU copy!).
// This can be accelerated using regular DMA hardware
for (height = 0; height < rect.height ; height++)
{
ptr = getClientFrameBuffer() + rect.x + (height + rect.y) * 799;
SSD1963_WriteMultipleData((uint16_t*)ptr, rect.width);
}
}I've attached the entire project files, just in case someone wanna kindly give it a look! Thanks in advance!
