AMOS -Data Storage

How constants are stored and organized in AMOS without AMOS-STG add-on

» Posted on 1. Jul 2013

Related links:  AMOS | Overview | STG add-on


 

AMOS – Data Storage

 

AMOS is compiled containing a number of modules, each enabling specific features in the system, based on internal or external peripherals like ADC, SPI, UART, I2C, PGA  and so on. Beside these modules, AMOS executes also various system and user applications. These modules or applications may need to store constants and configuration data somewhere. All of these constants and configuration information are organized and handled by AMOS data storage definitions and algorithms. They are generated and stored into the internal Flash at compilation time and can be modified at run-time using the internal Flash driver capabilities embedded into AMOS.

Data storage is limited by internal Flash size and resides within the same area, where the main code is stored. Data storage must be directly accessible by the running code. 

 

Data Storage Structure

Data storage is module or application organized and is built by a header and a payload area. The data in the header allows AMOS to organize, find or modify the data as needed. 

Data_Storage_structure

Up to 256 modules and 96 applications can be defined in AMOS. A simple look-up table keeps pointers to beginning of each single data structure related to existing modules and applications in the system. Since applications and modules are numbered and unique in AMOS, the relationship between stored data and pointers are created easily by look-up table index number.

Submit a Comment