Sign In

Don't have a Xilinx account yet?

  • Choose to receive important news and product information
  • Gain access to special content
  • Personalize your web experience on Xilinx.com

Create Account

Username

Password

Forgot your password?
XClose Panel
Xilinx Home
Reply
Contributor
axiseric
Posts: 23
Registered: ‎06-03-2009
0
Accepted Solution

Using chipscope in tandem with SDK

Hi,

 

I'm trying to debug an XPS project that runs microblaze software through SDK.  I would like to use chipscope - but I can't figure out how to run chipscope and the SDK project at the same time.  My current process is as follows:

 

- Generate bitstream in XPS

- Use SDK to build the c-code project.

- I program the FPGA in SDK (and am specifying the bootloop program) during the programming operation.

- Then I 'Run' the software program in its release mode.

- I'm actually running this on the ML605 development board.  So once the program is launched, I can usually interace with the software through the UART serial connection.

- However, if, after launching the program, I try to start chipscope and specify the system.bit file to configure chipscope, the program stops operating.

 

Is there a way to run both an SDK software program and chipscope?

 

Thanks in advance for the help.  (I'm in desperate need for some chipscope insight as to what's going on in my FPGA...).

 

Xilinx Employee
austin
Posts: 3,669
Registered: ‎02-27-2008
0

Re: Using chipscope in tandem with SDK

a,

 

ChipScope muct be added to your project, and one bitfile created as a result.

 

http://www.xilinx.com/ise/embedded/chipscope_edk91lab.pdf

 

There are a number of resources online that you should review,

 

Austin Lesea
Principal Engineer
Xilinx San Jose
Contributor
axiseric
Posts: 23
Registered: ‎06-03-2009
0

Re: Using chipscope in tandem with SDK

Austin,

 

Thanks for the reply.  I was not clear with my original post.  I had integrated a chipscope peripheral into the project and, after generating the bitstream, I am able to run chipscope.  I am also able to run the software elf file via SDK (in both the 'run' and 'debug' modes).  However, I was having trouble running both chipscope and the software program simultaneously.

 

After searching a number of resources online, I finally found an example at:  http://www2.ensc.sfu.ca/~lshannon/courses/ensc452/lab_modules/ensc452_EDK_ChipScope_Tutorial.pdf

 

where they step you through how to run both.  What worked was after generating the bitstream in XPS, 'downloading bitstream' from XPS.  Then, from an XMD window, you can connect to the microblaze processor and download the elf file.  But don't type 'run'.  Next step is to then open chipscope, 'search JTAG chain'  (you can even import the *.cdc file in the XPS/implementation folder as appropriate) and set up chipscope with your desired triggers, etc.  You can even trigger a signal capture before you start the software program.

 

Then, finally return to the xmd window and type 'run'.

 

As I said - this worked for me (thanks to the Simon Fraser University ENSC 452 course (from 2007!)) for posting this information.  I'm not sure why I'm having such a hard time to get all of Xilinx's tools (ISE / XPS / SDK and Chipscope) to talk to each other in a friendly way.  (I now have a related question on getting the SDK to work with Project Navigator - but I'll start a new thread for that discussion...).