FMC interfacing lcd screen minor issue
I have nearly managed to interface one lcd screen(ili9341 16bit parallel fmc intel 8080 protocol) with my stm32 device but I am stuck at the very last step.I have connected the screen wires to the mcu , I have configured fmc from cube mx correctly , I have wrote correct two functions for send_command(uint16_t) and send_data(uint16_t), I also run some initialization code (something like 80 lines of commands with data for initial configuartions) from the lcd manufacturer and it seems to work as the outcome is a greyish pixeled screen instead of the original white of the backlight. The next step on my process was to fill the screen whith a random color but the code bellow fails to do it!
send_command(0x2A); //configure width
uint16_t y=320;
send_data(0);
send_data(0);
send_data(y>>8);
send_data(y);
uint16_t x=240;
send_command(0x2B); // configure height
send_data(0x00);
send_data(0x00);
send_data( x>>8);
send_data(x);
send_command(0x2C); //send data
for(unsigned i =0;i<320*240;i++){
send_data(0x0f0f); //random rgb565 color
}Any advice?
