Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Write a file into memory

ngultra_memory_programmer.py –write--write_file <your_file> –address --address <start_address>

Writing a random file of 256B into the eRAM

Code Block
languagebash
linenumbersfalse
dd if=/dev/urandom of=random.bin bs=256 count=1
ngultra_memory_programmer.py --write_file random.bin --address 0x3000000

Dump memory into a file into memory

ngultra_memory_programmer.py –dump --dump <your_file> –address --address <start_address> –count --count <number of 32bits block>

Reading first 256B of the eRAM

Code Block
languagebash
linenumbersfalse
ngultra_memory_programmer.py --dump random.bin --address 0x3000000 --count 64

Read a single 32bits register

ngultra_memory_programmer.py –read--read_register –address --address <start_address>

Reading status of the BitStream Manager

Code Block
languagebash
linenumbersfalse
/ngultra_memory_programmer.py --read_register --address 0xD701014
Result should be 0x0001000e

Writing a single 32bits register

ngultra_memory_programmer.py –write--write_register <value> –address --address <start_address>

Writing first 32bits of the eRAM with 0XA5A5A5A5

Code Block
languagebash
linenumbersfalse
ngultra_memory_programmer.py --write_register 0XA5A5A5A5 --address 0x3000000

...

  • the DAP APB (for Coresight registers);

  • the DAP AXI;

  • Any any of the 4 cores.

This could be done via adding respectively:

  • –coresight

  • –axi

  • –core --coresight;

  • --axi;

  • --core N (where N is the idx of the core [0-3]).

The default accessor is: core 0.