816 views
in Platform Packages by
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)?

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

1 Answer

+1 vote
by
 
Best answer

Hi!

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'.

 

Ask Embedded Wizard - Archive

Welcome to the Ask Embedded Wizard archive. This community forum served us well for many years, but we've evolved our support approach!

Your resources:

The Embedded Wizard Online Documentation provides comprehensive documentation, tutorials, examples and ready-to-use software packages.

For dedicated assistance, explore our Embedded Wizard Product Support.

You can still browse the valuable discussions from our community history here.

Embedded Wizard Website | Privacy Policy | Imprint

...