I am attempting to debug some PT2000 firmware that I wrote. This is a prototype board using a PT2000 to drive some H-bridges.
When I attempt to capture a trace, the console that pops up shows the following messages.
***** begin console message
Asic Tracer 2.0.0.0
8/9/2021 10:49:21 AM
Asic Compiler 3.3.0.0
Compiling code from file c:\svn\jvs-jvcb3\trunk\hardware\pt2000\pt2000_design_studio_project\microcodech3\ch3.psc
Asic instruction set from file C:\Program Files (x86)\NXP\PT2000DevStudio\syntax_pt2000.xml
Syntax file version 1.9.2 of 23 Jun 2015
Writing report file:
c:\svn\jvs-jvcb3\trunk\hardware\pt2000\pt2000_design_studio_project\microcodech3\ch3.rep
Writing binary file:
c:\svn\jvs-jvcb3\trunk\hardware\pt2000\pt2000_design_studio_project\microcodech3\ch3.bin
Writing hexadecimal file:
c:\svn\jvs-jvcb3\trunk\hardware\pt2000\pt2000_design_studio_project\microcodech3\ch3.hex
Writing Trace 32 file:
c:\svn\jvs-jvcb3\trunk\hardware\pt2000\pt2000_design_studio_project\microcodech3\ch3.t32
Writing Trace metadata:
c:\svn\jvs-jvcb3\trunk\hardware\pt2000\pt2000_design_studio_project\microcodech3\ch3.trace.dat
Microcode metadata read from c:\svn\jvs-jvcb3\trunk\hardware\pt2000\pt2000_design_studio_project\microcodech3\ch3.trace.dat
Device under test is pt2000
Saturn tracer board detected
HW version 1.0
Reading data from port
Press 'q' to abort operation at any time
Trace Start
Fw version 2.1
First Data received
881676
Trace Stop
Acquisition Complete
Decoding content of file c:\svn\jvs-jvcb3\trunk\hardware\pt2000\pt2000_design_studio_project\tracer\stream.dat
Decoding stream recorded from Saturn 1.0 tracer board
Tracer board FW version 2.0
Clock cycles acquired in the trace operation: 4193957
Decoding operation stopped after 41 steps:
Unexpected Code : code 5 is not legal for instruction at line 570
Are you sure you want to exit [Y]?
***** end of console message
The path.txt file shows:
***** begin path.txt
529 X 1
530 X 1
531 X 1
532 X 1
533 X 1
534 X 1
535 X 1
536 X 1
537 X 1
538 X 1
539 X 1
540 X 1
541 X 1
542 X 1
543 X 1
544 X 1
545 X 1
546 X 1
547 X 1
548 X 1
549 X 1
550 X 1
551 X 1
552 X 1
553 X 1
554 X 1
555 X 1
556 X 1
557 X 1
558 X 1
559 X 1
560 X 1
561 X 1
562 X 1
563 X 1
564 X 1
565 X 1
566 X 1
567 X 1
568 X 1
569 X 1
570 X 1
***** end path.txt
Here's the screen grab from developer studio. 0x23A is a jump relative command.

The prototype PCB is using a 1.5" 50-ohm Z0 trace between the PT2000 and the BNC connector. I'm using a 6" 50-ohm BNC cable to connect the trace module to the PCB. I attempted to hook up an oscope to examine signal quality, but putting a T-connector and scope extension caused the trace module to error out on the first sample, unsurprisingly.
This issue is very repeatable.
I attempted to sample the debug cable to see if I had SI issues. I used a 3' cable to a T-connector on the oscilloscope, then a 6" cable from the tee to the trace capture card. The scope capture is attached. Based on the layout, it seems that the KITPSCEVM tracer module may not be terminated.
I attempted to put the oscope on the end of the bus (6" from prototype board to tee, (tee connected directly to trace module) and 3' from tee to oscope) and turn on 50-ohm termination on the oscope, but the trace module didn't even start a capture when I did that.
Am I having SI issues here, or is there a problem with my trace setup or the trace software? Trace configuration is as shows.
