A way to make emWin use an external SDRAM instead of internal RAM

  • Hi,

    I'm using a library version of emWin, but I would like to ask if there is a way/option to make emWin use an external SDRAM instead of internal RAM.
    For the application part, I think I can use compiler/linker options (#pragma or something).

    Thanks in advance.

    Best Regards,
    Rowel

  • Hi,

    You have to link the "GUI-memory" into the SDRAM. How this is done depends our your linker.


    emWin will allocate memory only from the block set with GUI_ALLOC_AssignMemory().


    Here is an example from a GUIConf.c which does it.



    If you are using the GUIDRV_Lin driver you might also want to link the frame buffer to the external memory. This is most likely done the same way as with the "GUI-memory".

    Regards
    Sven

    Please read the forum rules before posting.

    Keep in mind, this is *not* a support forum.
    Our engineers will try to answer your questions between their projects if possible but this can be delayed by longer periods of time.
    Should you be entitled to support you can contact us via our support system: https://www.segger.com/ticket/

    Or you can contact us via e-mail.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!