Is there a way to allocate all the UI variables that is automatically generated from GUIX to store them into SDRAM section instead of using the main S7G2 RAM?
BSP_PLACE_IN_SECTION_V2(".sdram"); this can be used manually inside the GUIX_resources.C but that file is very large (appx. 150K lines) so the e2 studio takes a long time opening that file and editing that file is not the right the way to do? as it keeps auto generating as you change the UI on GUIX.
but is there a way on GUIX or e2 studio to automatically allocate any GUIX variables into SDRAM section ?
Please see the following thread:
You can use similar method to move stuff to SDRAM, however there are no variables in GUIX_resources.c, only constant data. All of the variables are placed in GUIX_specifications.c and you will also need to filter this by section since some data is initialized or constant (in the example above, (*) should be replaced by something like (.bss*) ).
If you'd like to move initialized and constant data, then you can also do so, but you will also need to write a loader routine to initialized this segment from data in flash. Here's an example showing how to move all symbols starting with FONT_THEME_1_DIGITS (i.e. my font data) to custom section allocated in RAM (and loaded from FLASH):
The custom loader routine can be placed in R_BSP_WarmStart:
In reply to Renesas Karol:
In reply to Sam:
I tried several things, defined it before the .bss section. Compiled the code..still same results.
In reply to tenballs: