Member attributes: Storage

This attribute controls the storage location of a constant, bitmap resource, font resource or svg resource member.

Syntax

Auto

Blob

Code

Discussion

The attribute Storage determines the location where the data belonging to the constant or resource should be stored. This attribute can assume one of the following values:

Value

Short description

Auto

The appropriate mode is determined by the attribute StorageOfConstants or StorageOfResources configured in the actually selected profile.

Blob

The data is stored in a separate so-called Blob file. The generated code limits to store references to constants and resources existing in the separate Blob file. The contents of constants and resources are thus not a part of the resulting binary anymore. They can be exchanged retrospectively by simply replacing the Blob file and without needing to recompile the binary.

Code

The data is stored in the generated code. After compiling the generated code, the affected constant or resource is fixed part of the binary and can't be exchanged retrospectively without recompiling the application. Before version 14, this was the unique approach to manage constant and resource data in Embedded Wizard.

The setting of this attribute is considered as a suggestion and may be overridden by the code generator when the value is not supported in the particular target system.

IMPORTANT

When using Blob files, you have to ensure that the file or its content is available in the target system. Usually you store it in the flash ROM or on a SD card. Additionally an access to the file has to be provided for Embedded Wizard. For more details see EwSetBlobData() function.

Modify the attribute

To inspect or modify the value of a Storage attribute, select first the affected constant, bitmap resource, font resource or svg resource member. Thereupon, the attribute is listed in the middle area of Inspector. Please note the available assistant you can activate by clicking on the button right to the attribute. The assistant lists all appropriate values for this attribute: