• AVR Freaks

Hot!Harmony V2 and DDR Memory problem...

Author
tporter905
Starting Member
  • Total Posts : 30
  • Reward points : 0
  • Joined: 2010/12/06 14:13:54
  • Location: 0
  • Status: offline
2020/03/18 18:47:21 (permalink)
0

Harmony V2 and DDR Memory problem...

Hi,
 
I am using Harmony v2.06, on a PIC32MZDA2064DAS processor. I am using a Tianma screen that defaults to portrait layout but our application needs it in landscape. So I did rotate the screen in the graphics composer. However when I enable preprocessing, managed and padded, my images are not correct and also not rotated like the rest of the screen. I really need the speed. I did make sure the colour mode is RGBA_8888, the DDR memory system service is also enabled. Any ideas as to why the images cannot be preprocessed and stored in DDR? 
 
Thanks,
 
Tom
#1

4 Replies Related Threads

    tporter905
    Starting Member
    • Total Posts : 30
    • Reward points : 0
    • Joined: 2010/12/06 14:13:54
    • Location: 0
    • Status: offline
    Re: Harmony V2 and DDR Memory problem... 2020/03/19 14:40:07 (permalink)
    0
    I had some success with this today, went into debug mode to try and figure out what was going on. The JPG files, even though they were rotated 90° and chopped at least looked somewhat proper. I noticed that in NVM they were GFX_COLOR_MODE_RGB_888, however the documentation says to place in DDR select only RGB565 or RGBA8888. So I had been trying RGBA8888. When I tried RGB_888 the JPG's work fine in memory. However the RAW images I haven't been able to figure out the problem, would like to store them in NVM, but they don't appear in the right place and are also rotated 90°. Anyone have any idea? 
     
    Thanks,
     
    Tom
    #2
    kuku
    Senior Member
    • Total Posts : 140
    • Reward points : 0
    • Joined: 2012/03/03 08:05:54
    • Location: 0
    • Status: offline
    Re: Harmony V2 and DDR Memory problem... 2020/03/22 13:33:30 (permalink)
    0
    1. In libaria_init.c find routine int32_t libaria_initialize(void).
    2. Find place where image is preprocesing, it begin like this:


    GFX_Set(GFXF_DRAW_PIPELINE_MODE, GFX_PIPELINE_GCUGPU);
    // process images configured for preprocessing
    GFXU_PreprocessImage(&aabr,0xA8D4A000,GFX_COLOR_MODE_RGBA_8888,GFX_TRUE);
    GFXU_PreprocessImage(&button_back,0xA8D8A000,GFX_COLOR_MODE_RGBA_8888,GFX_TRUE);


     
    3. Move this all to end of this routine.
    #3
    tporter905
    Starting Member
    • Total Posts : 30
    • Reward points : 0
    • Joined: 2010/12/06 14:13:54
    • Location: 0
    • Status: offline
    Re: Harmony V2 and DDR Memory problem... 2020/03/23 13:53:24 (permalink)
    0
    Thank you for the reply, I tried as suggested and it did not change anything, the images are still rotated 90°. 
     
    Thanks,
     
    Tom
    #4
    kuku
    Senior Member
    • Total Posts : 140
    • Reward points : 0
    • Joined: 2012/03/03 08:05:54
    • Location: 0
    • Status: offline
    Re: Harmony V2 and DDR Memory problem... 2020/03/23 14:18:51 (permalink)
    0
    Attach or send me your libaria_init.c
    I will look.
    #5
    Jump to:
    © 2020 APG vNext Commercial Version 4.5