Draw Bitmap with "BSP_LCD_DrawBitmap" on STM32 F7
I'm experimenting with the LCD library on the STM32F746G-DISCO board. I wanted to display an image from a BMP file on the display. Unfortunately this never worked. I looked at several examples, and finally noticed that the function
LL_ConvertLineToARGB8888((uint32_t *)pbmp, (uint32_t *)address, width, input_color_mode) in the file "stm32746g_discovery_lcd.c" called does not do what it promises.
When I replace this line with :
uint8_t * sourcefile = (uint8_t *)pbmp;
uint8_t * targetlocation = (uint8_t*)(address);
for(uint32_t i = 0; i<width; i++){
targetlocation[i*4+0] = sourcefile[i*4+1];
targetlocation[i*4+1] = sourcefile[i*4+2];
targetlocation[i*4+2] = sourcefile[i*4+3];
targetlocation[i*4+3] = sourcefile[i*4+0];
}the BMP display works. Only it won't be so efficient, I guess. How do I make the function "LL_ConvertLineToARGB8888" work? I see it works with "hDma2dHandler". Is it possible that I have to initialize something special?
