Before you could run the "demo.elf" file on MicroBlaze you should configure the "stdio output".
You shoud click "Run">"Run Configurations...".
A pop-up "Run Configutations" will appear. Click "demo.elf" (if it is not already selected) and then click "SDIO Connection" tab.
Check () the box "Connect STDIO to Console" and select as port "JTAG UART". Then click "Apply" button.
Then click "Close" button. The pop-up will close.
To change perspective you should click "Window">"Open Perspective">"Debug".
The new perspective is the following.
With this application, you can test the PC ↔ USB ↔ JTAG ↔ FPGA communication using a simulated UART (XMD_UART) on JTAG/USB connection.
In this simple case you can simply click "Run" > "Run"
In the console the menu of demo.elf should appear. If the menu doesn't appear you have probably set RS232 instead of debug (mdm) and/or set incorrectly "Stdio output".
If you write the character a the RAM test should start.
In the XMD console you should write "connect mb mdm -debugdevice cpunr 1" and then click "return" on the keyboard.
In the XMD console you shoud write "rst" and then click "return" on the keyboard.
In the XMD console you should write "dow C:/XilinxProject/reference-TE0300/SDK/SDK_Workspace/demo/Debug/demo.elf" and then click "return" on the keyboard.
In the XMD console you shoud write "run" and then click "return" on the keyboard.
In the XMD console you shoud write "terminal -jtag_uart_server 4321" and then click "return" on the keyboard.
After this you should open some terminal emulators (because you want to input/output some characters with the XMD UART), such as
Connect using the following settings:
The UART settings (not required by ClearTerminal) are:
After this you should probably write "stop" and "run".
After this two further step the menu of "demo.elf" should appear in the terminal emulator.
The UART port will output something of tis kind:
Before running the demo application, open the #project_root#\xmd.ini file:
1.rst
2.dow sw/test_hw.elf
3.#dow sw/demo.elf
4.run
5.terminal -jtag_uart_server 4321
To run the demo application
uncomment line 3 (remove "#")
comment line 2 (add "#" as first character)
save xmd.ini.
type "exit" in XMD command window
restart XMD by clicking again the "Start XMD" button in the XPS toolbar.
With this application, you can test the PC ↔ FPGA communication using a provided API.