You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Next »

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...".

Open "Run Configurations"

A pop-up "Run Configutations" will appear. Click "demo.elf" (if it is not already selected) and then click "SDIO Connection" tab.

"Run Configurations" opened

Check ((tick)) the box "Connect STDIO to Console" and select as port "JTAG UART". Then click "Apply" button.

Connect STDIO to Console

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".

Open Debug Perspective

The new perspective is the following.

Debug perspective opened

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"

demo.elf downloaded and connected to Jtag-Uart

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

If you want to input some characters to the XMD UART, then open some terminal emulators,such as

  • Microsoft / Hilgraeve HyperTerminal (usually included in Windows before Vista START MENU > All programs > Acessories > Communications > Hyper Terminal). 
  • ClearTerminal (very easy)

Connect using the following settings:

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

The UART settings 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)

Method A) XMD console, automatic

  • Configure Jtag_Uart using "Debug" > "Debug Configuration"
  • Modify xmd.ini
  • Run XMD console using "Debug" > "Launch XMD"
  • Run ClearTerminal Console

Method B) Manual

  • Configure debug
  • Change perspective from programming to debug selecting "Window" > "Open Perspective" > "Debug"

 

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.

  • No labels