ParaLib 2.0.15-master SHA: 2e03d68caa
Access to Memory Areas

In the parametereditor memory areas can be viewed in a hexadecimal visualization. The transfer of memory areas is also used, to load the error-log and messages from device to PC.

On the device it is neccessary to enable this feature with including the file "PARA_Memoryinfo_*.c. This file is processor specific, due to different memory layouts. Two parameters are defiend, which are used to give the pc the aviailable memory locations and sizes. The first part of this file can be adapted to allow additional memory areas.

Example for STM32H7:

#define MEMORY_AREAS_COUNT 6
(const uint32_t)&Image$$ER_STRING_TABLE$$Base,
AXI_SRAM_START,
SRAM1_START};
(const uint32_t)&Image$$ER_STRING_TABLE$$Length,
AXI_SRAM_SIZE,
SRAM1_SIZE};
const uint32_t g_cui32MemoryAreasCount
Definition: PARA_MemoryInfo_ATSAM.c:89
const uint32_t g_cui32ValidMemoryAreas[]
Definition: PARA_MemoryInfo_ATSAM.c:61
const uint32_t g_cui32ValidMemorySizes[]
Definition: PARA_MemoryInfo_ATSAM.c:74
#define MEMORY_AREAS_COUNT
Definition: PARA_MemoryInfo_ATSAM.c:87
int32_t Image$$ER_ERROR_SOURCES$$Base
int32_t Image$$ER_ERROR_DESCRIPTOR$$Base
int32_t Image$$ER_STRING_TABLE$$Base
int32_t Image$$ER_ERROR_REACTIONS$$Base
int32_t Image$$ERROR_MEMORY$$Length
int32_t Image$$ERROR_MEMORY$$Base
int32_t Image$$ER_ERROR_REACTIONS$$Length
int32_t Image$$ER_ERROR_SOURCES$$Length
int32_t Image$$ER_ERROR_DESCRIPTOR$$Length
int32_t Image$$ER_STRING_TABLE$$Length

The external variable definitions introduces the linker variables to the compiler. The syntax is linker dependant. These variables are added to the arrays with the base addresses and the sizes of the memory areas. The linker must be configured, which is described on the page Neccessary Linker settings and initialization to get the parameter-interface working.