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

Writes and check the configuration of the SDRAM memory. More...

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

Go to the source code of this file.

Functions

int main ()

Detailed Description

Writes and check the configuration of the SDRAM memory.

Use case:
use_case memory_config

Writes the memory configuration registers, it disables the SRAM and enables the SDRAM.

Configures the memory config Registers according with the physical parameters of the SDRAM chip used.

EXPLAIN THE CONFIGURATION VALUE

Returns
The configured values, are then read from the configuration registers and stored in the begginnnig of the SDRAM:

param [out] mem ( 0x40000000) stores the value of mem_cfg1 that should be 0x1003c0ff; param [out] mem ( 0x40000004) stores the value of mem_cfg2 that should be 0x8b606040; param [out] mem ( 0x40000008) stores the value of mem_cfg3 that should be 0x18184200;

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

Function Documentation

◆ main()

int main ( )

Definition at line 31 of file memory_config.cpp.