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.

File sample_24bpp.rgb

Part Number: TMS320C6416T

Tool/software: Code Composer Studio

Hello!

The last part of the tutorial https://processors.wiki.ti.com/index.php?title=GSG:Debugging_projects_v5&oldid=212231 explains how to display images on CCSv5. I followed all steps described in this tutorial for displaying the image in the file sample_24bpp.rgb but the program showed an all black screen in the Image tab.

  • Olá,

    I followed the details of the tutorial but couldn't find any problems with it. Did you click on the refresh button to properly display the image? Can you check the Memory browser to see if the memory actually has data?

    Also, what version of CCS are you using? Although the tutorial was designed for CCSv5, the procedure works even on the latest CCSv10. 

    The short clip below shows the display on an AM574x board. 

    Regards,

    Rafael

  • Yes, I clicked on the refresh button. Despite following all the details in tutorial,  I realized that the file was not loaded into memory.

  • I changed the start address (0x80000000) and I got this:

  • Hi,

    Something seems wrong with the color mask - it seems you lost both Red and Green channels. If you right click on the Image view, can you be sure the RGB is selected?

    One additional detail that used to cause some problems in the past - due to a behaviour on Eclipse, the Properties and Image views had to be both in the foreground so the image could be properly displayed. I don't think that is what is causing the discoloration, but it is a tip in case the behaviour seems strange. 

    Apart from the settings and maybe some difference in the code loading itself, I am afraid I am running out of ideas. I will search some more and report back in case I find anything else relevant. 

    Hope this helps,

    Rafael

  • Rafael, the RGB is selected.

    In the advanced properties: red shift, green shift and blue shift. What are they for?

    José Antonio.

  • José, 

    The shifts are the position of each color component relative to the base address of each pixel. In this case, the R is positioned at the 16th bit after the base address, the green is positioned at the 8th and the blue is at the first bit. (the image is 24-bit or 3 bytes per pixel)

    With that, I can reproduce the same image as yours if you set all the shifts to zero. 

    Hope this helps,

    Rafael