GR712RC unit tests 1.0
Bare-metal C++ hardware tests for the PLATO DPU (IAA-CSIC, 2019)
Loading...
Searching...
No Matches
memory_persistence.cpp File Reference

Checks if the memory keep teh values writed. More...

#include <cstdint>
#include <mcal/mcal.h>
Include dependency graph for memory_persistence.cpp:

Go to the source code of this file.

Functions

int main ()

Detailed Description

Checks if the memory keep teh values writed.

Use case:
use_case memory_persistence

Write the pattern 0xABABABAB to each position of the memory. The run over all the memory loading aech position and verifiying the value is the same as the pattern.

Each time the program loops over all the memory, it increments a counter variable stored at position 0x40000000.

Returns
In case a value is different of the pattern exits from the program with an error. In other case, continues checking. The number of iterations over all the memory carried out is stored in the memory position 0x40000000.
Note
The program should be linked to be executed on the build-in SRAM of GR712RC: -T linkcmds-ahbram
Author
Juan Manuel Gómez jmgom.nosp@m.ez@i.nosp@m.aa.es

Definition in file memory_persistence.cpp.

Function Documentation

◆ main()

int main ( )

Definition at line 40 of file memory_persistence.cpp.