This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Pixel Missing problem while using Grlib on Tiva stellaris boosterpack

Other Parts Discussed in Thread: TM4C123GH6PM

HI All,

I am developing a touch screen based Application on Tiva TM4C123GH6PM and with kentec display. I am using Grlib for the application development. 

I am using a quite a few images in the application which I am saving all Images as constant C array like " const uint8_t g_pucBlue50x50[] ". Initial stage of my application development everything was fine but as I have added more Images to application for next phase of development I could see some Pixels being missed on One Image.

can anyone let me know the cause/solution for this problem.

Observations:

- Tried to convert the Image to C array again hoping the problem with Image but it's not :(

- Flash Usage: 31% out of 262k

- SRAM Usage: 28% of 32768

Please find the Attached screenshot for reference. You could see some black spots on the first Image(AUTO) of screen shot.

 

Thank you.

  • Hello BNB

    Are the pixels missing on the same place. Did you try to paint white to see if the pixels are correctly getting lit up.
  • Hi Amit, ya the pixels are missing in the same place. I didn't check painting white. But I tried replacing other image but same issue. At the same place when I go to next screen I couldn't see a problem.
  • Hello BNB

    So the panel is working fine. Which version of TivaWare are you using?
  • Hi Amit, I am using latest version 2.1.3.156 of tivaware.

  • Hello BNB

    Could it be a problem in the image itself? Did you replace it with another image, like swapping the "Setting" and "Auto"?
  • Hi Amit,

    Yes, I tried Exactly same. Replaced Auto Image with Settings Image and then also I could see pixels being missed on the image replaced with Auto. Then I believed there is no problem with Image.

    Thanks,

    BNB.

  • Hello BNB

    It seems like it could be a software application or a driver problem. Since I do not have the same code as yours, it is tough to reproduce the same. Can you create a project that reproduces the issue with just the LaunchPad and the Panel and send it over,
  • Hi Amit,
    I got you. As I already explained, i haven't see this problem when I used less no.of Images. So I try to create a new project with possibility of generating the problem.
    I am wondering is that becuase of any memory overlap because I have some calibration constants saved in Flash ??

    Thank you.
    -BNB
  • Hello BNB

    Typically the images are stored on Flash as constants, so compiler would know where to place them, unless there is a image that overlaps with another when creating the content, due to an incorrect definition. But even then it should not cause random pixels to change.
  • Hi Amit,

    The Problem I was facing was not with Pixels. It's in code developed by me, Which is still not clear why it is Happening. The reason I was able to find out is:

    RectangularButtonStruct(GFX_Panels + Home, HomeMenu + 1, 0,&g_sKentec320x240x16_SSD2119, 15, 30, 50, 50,PB_STYLE_IMG|PB_STYLE_TEXT, 0, 0, 0, 0,0, 0, Home_Speed,0, 0, 0, OnHomeMenuPress)

    In the above push button definition, I have added style as PB_STYLE_IMG | PB_STYLE_TEXT but not specified font or any text. But it's taking some garbage text and filling it on Push Button which looks like pixels missing.

    Now, I want to understand, though I am not specifying any text  why it is taking some garbage data/text to put on Image??

    Thank you.

    -BNB. 

  • Hello BNB,

    I have not used PB_STYLE_IMG with PB_STYLE_TEXT. If you need to use text, I would suggest

    PB_STYLE_FILL | PB_STYLE_OUTLINE | PB_STYLE_TEXT
  • HI Amit,
    I got It. I am also not using that combo,But when I was trying with Grlib I tried that combo,But it never gave me a problem until now. But now this became a point to look at.!!
    Anyway Thanks For the Help..!! :-)

    -BNB.
  • Hello BNB

    I use PB_STYLE_IMG when the push button contains the information. PB_STYLE_TEXT is when i want to change the information. As an example a regular keypad I would draw with PB_STYLE_IMG, but an unlocking randomized keypad, I would draw with PB_STYLE_TEXT as the content is only what I need to change.