Profile screen size

asked Jan 10, 2017 in Platform Packages by hellin4
Hi Manfred,

thank you for your quick response.As i can understand BoardConfig.c file reserves a memory area (buffer) and the screen size set in profile use a portion or hall of that to display the "view" area. Does the change in the BoardConfig.c file according to custom needs affect the profile selected in a new project? For example if i make those changes for display size of 800 x 480 pixels do i have to change accordingly the screen size of the profile?
Another question is how i can store resources to external flash ( QSPI ) whitin EmWi studio IDE in case of large objects (bitmaps,fonts)?

related to an answer for: 800 x 480 pixel panel use

1 Answer

+1 vote
answered Jan 10, 2017 by Manfred Schweyer
Best answer


The file BoardConfig.c is just the abstraction layer / interface to the HAL or BSP drivers of the Discovery board.

The framebuffer memory is reserved within the file main.c - there you can find the defines for FRAME_BUFFER_ADDR and FRAME_BUFFER_SIZE. The profile setting ScreenSize should always correspond to the real framebuffer size - otherwise you will get an error during the intialization.

For more details, please have a look to the article Platform Integration and Build Environments: Main Loop. It describes many details about initialization and integration.

In order to store resources within the QSPI flash memroy, please use the provided 'Template' project and set the flag QSPI_FLASH to 1 within the makefile of the project.

Please note: This flag determines whether the resources are stored within the code memory or separate within the QSPI flash memory.

Within your profile settings, you can determine how the resources are used during runtime:
The attributes FormatOfBitmapResources and FormatOfStringConstants can be set to 'DirectAccess' in case that the resources should be taken directly from flash memory. By default these attributes are set to 'Compressed'.


Embedded Wizard Website | Privacy Policy | Imprint