Welcome to FPGA Developer

A publication about electronics and FPGAs by Jeff Johnson, consultant and designer of custom FPGA boards and solutions.

Using Chipscope and SDK at the same time

Today I was having problems debugging a design in Chipscope and SDK. For some reason, every time I used the Chipscope trigger (either the armed trigger or immediate) the Microblaze would reset or jump to another part of the code. I figured that Chipscope was messing with the stack pointer but I couldn’t find anything in the forums for such a problem. I finally came across a solution here:

[14.6] SDK and Chipscope do not work together

The solution didn’t put any light on why the problem occurs, but it did fix my problem – many thanks to moderator htsvn. Here’s my clean and illustrated version of the solution:

  1. Connect the power supply and programming cables to the board.
  2. Launch SDK.
  3. Program the FPGA using SDK: “Xilinx Tools->Program FPGA”.chipscope-sdk-problem4
  4. In the SDK, from the menu, select “Run->Debug As->Launch on Hardware (System Debugger)” as shown. Alternatively, you can use “Run As” if you don’t need to debug the code.chipscope-sdk-problem5
  5. Launch Chipscope Analyzer and select from the menu “JTAG Chain->Open plug-in”.chipscope-sdk-problem1
  6. Type in the following parameter and click OK:
    • xilinx_tcf URL =tcp::3121chipscope-sdk-problem2
  7. 
    

    This will detect the chain and you can see the devices on the chain.chipscope-sdk-problem3

  8. Import the CDC file using Chipscope Analyzer (or just open up a preconfigured Chipscope project file).
  9. Set the trigger points in Chipscope and click on Apply Settings and ARM trigger
  10. In the SDK Debug Perspective set the break-points in the C code and run through the code.

 

 

 

 

 

 

Jeff holds a bachelors degree in Electrical Engineering from the University of Sydney, and has more than a decade of experience in electronic and FPGA design. He has worked for design houses in Australia and Canada developing electronic products for a wide range of industries and markets. Jeff now works as an electronic design consultant and offers electronic and FPGA design services through his company Opsero.

Facebook Twitter LinkedIn 


Recent posts

Using Chipscope and SDK at the same time

Today I was having problems debugging a design in Chipscope and SDK. For some reason, every time I used the Chipscope trigger (either the armed trigger or immediate) the Microblaze would reset or jump to another part of the code. I figured that Chipscope was messing...
Sneak look at the new Robust Ethernet FMC

Sneak look at the new Robust Ethernet FMC

Here are the first images of my new product: the Robust Ethernet FMC. This new variation of the Ethernet FMC contains all the features of the standard version but has been designed to fit the 10mm height profile of the Vita 57.1 standard. The Robust Ethernet FMC is...
Comparison of Zynq SoMs

Comparison of Zynq SoMs

In the last year or so, there has been an explosion in the availability of System-on-Modules (SoMs) featuring the popular FPGA+ARM combo Zynq-7000 SoC from Xilinx. I’ve always promoted the idea that FPGAs and SoCs allow for faster design cycles and rapid...
1.8V Version Ethernet FMC now available

1.8V Version Ethernet FMC now available

I recently received and tested the first 1.8V Ethernet FMCs and they are now available to buy on ethernetfmc.com. There are two main reasons why you’d actually want a 1.8V version: Firstly, some carriers only support VADJ of 1.8V (such as the VC707 and VC709)....
Ethernet FMC performance benchmarks released

Ethernet FMC performance benchmarks released

One question I get a lot about the Ethernet FMC is: What is the maximum throughput? It’s a good question, so I created an example design to help me get the answer. The maximum throughput test design, that you can download on Github, uses four hardware packet...
Ethernet FMC supports Xilinx Dev Boards

Ethernet FMC supports Xilinx Dev Boards

Support for the Xilinx Series-7 development boards AC701, KC705, VC707, ZC702 and ZC706 has been added to the Ethernet FMC product page. Now you can use the Ethernet FMC on any one of these boards and support up to 8 x gigabit Ethernet ports! That’s right, the...
Ethernet FMC first units shipped

Ethernet FMC first units shipped

Today I’m excited to announce that the first Ethernet FMCs were shipped! I would like to say thanks to all those who pre-ordered the Ethernet FMC, thanks for your patience and confidence and I hope the product enables you to develop new and exciting technologies...
Ethernet FMC is now available

Ethernet FMC is now available

Announcing that the new Ethernet FMC, a Quad Gigabit Ethernet FPGA Mezzanine Card (FMC) is now available to buy. The board is designed for easy integration with the ZedBoard, with open-source example designs so you can start designing your product sooner. The...
Introducing the Quad Gigabit Ethernet FMC

Introducing the Quad Gigabit Ethernet FMC

Here’s the next product in Opsero’s growing lineup of FPGA I/O cards: the Quad Gigabit Ethernet FMC. This low-pin-count FMC is loaded with four Marvell Gigabit Ethernet PHYs and enables FPGA networking applications on the ZedBoard and other LPC carriers. A...
SERDES FMC first units

SERDES FMC first units

Here’s a peek at the first units of the SERDES FMCs, the first low pin-count FPGA Mezzanine Card to enable multi-gigabit transceivers on the ZedBoard and other FPGA boards that don’t have internal MGTs. The first board is designed for SFP modules for...

For an exceptional electronic design service

Contact me

Ethernet FMC

quad-gige-3

Available now