Customizable Flash Programmer User Guide

ID 683271
Date 4/28/2023
Public
Document Table of Contents

3.4.1. Executing Commands in the System Console

Ensure the Programmer Image .sof file is configured into the FPGA to execute the System Console command correctly.

To execute the commands in the System Console to program the .rpd file, follow these steps:

  1. Launch the Nios® II Command Shell.
  2. Change the directory to your working folder where you save the TCL script and .rpd file. For example: cd C:\My_Projects.
  3. Launch the System Console by executing this command: system-console.
  4. At the TCL Console window, load the TCL script by executing this command: source customizable_programmer.tcl.
  5. Program the .rpd file by executing this command: programming_flow <your_rpd_file>.

In System Console environment, you can execute many other commands besides programming the .rpd file. You may execute other functions in the TCL script directly from the TCL Console window. For example, you can execute read_memory_id to read the flash device ID, or read_status_reg to read the Status Register of the flash. Any function written in the TCL script, including the custom functions in extended script, can be executed from the TCL Console window.

An example to run a custom function in the custom script is as follows:

micron_mt25q::read_flag_status_register