Configure debug and run operation

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 ((tick)) 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.

The Debug operation normaly share these settings, so you doesn't need to repeat this procedeure for debug operation but is better to check the settings (it is better to be on the safe side).

Change perspective from "C/C++" to "Debug"

To change perspective you should click "Window">"Open Perspective">"Debug".

The new perspective is the following.

Use the "demo" project with the XMD UART

Demo program (running on MicroBlaze) will work even in case the UART port is left unconnected: it is not necessary to use a USB/Uart converter or Uart port on a PC, if you are using XMD UART HDL block.

With this application, you can test the PC ↔ USB ↔ JTAG  ↔ FPGA communication using a simulated UART (XMD_UART) on JTAG/USB connection.

GUI procedure

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.

XMD procedure

In the XMD console you shoud write "rst" 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:

  • No Host address
  • Port Number: 4321
  • TCP/IP connection type (client)

The UART settings (not required by ClearTerminal) are:

  • bits per seconds: 115,200
  • data bits: 8
  • parity: none
  • stop bits: 1
  • flow control: none (otherwise you will not be able to enter commands)

In the XMD console you shoud write "stop" and then click "return" on the keyboard.

In the XMD console you shoud write "run" and then click "return" on the keyboard.

After this two further step the menu of "demo.elf" should appear in the terminal emulator.

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.