Screen hardcopy with GUI_BMP_Serialize

This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

  • Screen hardcopy with GUI_BMP_Serialize

    I have to write the user manual for my new device. The device use a 320x240 LCD with ssd1289 controller.


    I would like to post images of the screen in my documentation and I decided to dump the screen with the function GUI_BMP_Serialize.
    Unfortunately I did not succeed. I get a bitmap file of just over 76KB which corresponds to a copy of the screen with 8 bit / pixel while my lcd has 16bit / pixel. (Also bitmap header field biBitCount = 8 ) The bitmap image is only a 320x240 black recatangle

    My LCD initial configuration is:
    pDevice = GUI_DEVICE_CreateAndLink(GUIDRV_SSD1289, GUICC_M565, 0, 0);
    and
    GUIDRV_FlexColor_SetFunc(pDevice, &PortAPI, GUIDRV_FLEXCOLOR_F66702, GUIDRV_FLEXCOLOR_M16C0B16);

    I tried to follow the reading of LCD RAM and seems works properly but the program saves only the lower byte of 16-bit read from the display memory

    My emwin version 52600 (ST precompiled library)
  • Hello,

    Please note that you will have to create a GUIDRV_FlexColor driver device in order to properly configure it. You are currently creating a GUIDRV_SSD1289 driver device. Please note that the GUIDRV_SSD1289 was not implemented by Segger, so do not have detailed information about it. Also I see that you are configuring the driver without cache. Please note that creating screenshots from target hardware requires a readable frame buffer.

    Anyways I would recommend you to run your application in the emWin simulation environment in order to create proper screenshots.

    Best regards,
    Adrian