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

Go down all the memory of the device writting a pattern. More...

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

Go to the source code of this file.

Functions

int main ()

Detailed Description

Go down all the memory of the device writting a pattern.

Use case:
use_case memory_run_gpio

Initialize the microcontroller abstraction layer, and the write the hole SDRAM memory with the pattern 0xABABABAB. After that, goes over all the memory another time reading each memory position and checking that the value stored is the pattern.

Each time memory is access, the gpio26 is toggled.

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_run_gpio.cpp.

Function Documentation

◆ main()

int main ( )

Definition at line 24 of file memory_run_gpio.cpp.