User Tools

Site Tools


1_0:software_upload_and_debugging

Release 1.0: Software Upload and Debugging

Setup

In order to successfully connect to OpenRISC on your board, you have to copy bsdl files correspondent to all devices on your JTAG chain to some directory. Then, you should input the directory as argument when calling adv_jtag_bridge, adv_jtag_bridge -b /home/user/bsdl_files. Check the correspondent FAQ information on enumeration.

How To

Upload software and debug for simulation and implementation using GDB

  1. Connect the cable to the selected JTAG TAP
  2. Start adv_jtag_bridge
    cd ~/
    adv_jtag_bridge <xpc3 | xess | usbblaster | xpc_usb | ft2232>
    • Let the program running and open another terminal
    • Note: Please, use the -b <directory> parameter of adv_jtag_bridge to indicate the directory where you put the bsdl files. The home directory should be automatically recognized, but I have seen cases where it was not.
    • Note: if you run it under Linux and use cables xpc3 or xess, you have to run as superuser. You can bypass that, check out how on FAQ under, “I'm running adv_jtag_bridge under Linux. How do I use adv_jtag_bridge with xpc3 or xess cables in non-privileged mode?”
  3. Open a terminal program (e.g. gtkterm)
    1. Configure port to a serial port connected to your board
    2. Configure bitrate to 115200
  4. Start gdb, load firmware (example)
    cd minsoc/sw/uart
    or32-elf-gdb uart.or32
    target remote :9999
    load
    set $pc=0x100
    c
  5. Inside of gtkterm “Hello World.” should have appeared, if you press any key inside of gtkterm the processor will return the next alphabetical letter (press a, it returns b)

You have finished MinSoC installation and your system is running. If you are wondering what to do next, check Next Steps.

1_0/software_upload_and_debugging.txt · Last modified: 2011/11/28 12:29 by Raul Fajardo