03-20-2012 11:18 AM
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...).
Solved! Go to Solution.
03-20-2012 11:25 AM
ChipScope muct be added to your project, and one bitfile created as a result.
There are a number of resources online that you should review,
Xilinx San Jose
03-31-2012 02:01 PM
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/
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...).