2.4.1. Exercise the On-Chip RAM
With the capability to send commands to the JTAG Master, you can now interact with the on-chip RAM component.
- To read a single word from the RAM base address, run the following command:
master_read_32 $c_path $ocram 1
- To write a word to the base address, run the following command:
master_write_32 $c_path $ocram 0x1234de10
- To verify the word was written by reading from the on-chip RAM, run the following command:
master_read_32 $c_path $ocram 1