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

Writes and reads the same memory position forever. More...

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

Go to the source code of this file.

Functions

int main ()

Detailed Description

Writes and reads the same memory position forever.

Use case:
use_case memory_single_access

Initialize the microcontroller abstraction layer, and the write the 0x40000000 SDRAM memory position with the pattern 0xA5A5A5A5. Then flushes the cache (is enabled?) and raeds the memory position to check that the value is the same of the pattern.

Returns
In case of error, the program exit with an error. Other case, the program exits normally.
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_single_access.cpp.

Function Documentation

◆ main()

int main ( )

Definition at line 23 of file memory_single_access.cpp.