Folks,
We've just been bringing up a new debug module and debug JTAG transport design with OpenOCD and encountered an issue with initialization. We're implementing debug spec Version 0.13-DRAFT and using the OpenOCD driver for V0.13.
In the debug spec, dtmcs.dmistat is specified as having a reset value of 0, and dmi.op as having a reset value of 2 (error). We found that OpenOCD does a DMI read during its init, but sees the op=2 value in the first dmi capture and thinks this is a failure. When we worked around this by doing a dmireset before the first DMI access, it all went ok.
So questions arising:
Cheers,
PA
-- Peter Ashenden, CTO IC Design, ASTC
We've just been bringing up a new debug module and debug JTAG transport design with OpenOCD and encountered an issue with initialization. We're implementing debug spec Version 0.13-DRAFT and using the OpenOCD driver for V0.13.
In the debug spec, dtmcs.dmistat is specified as having a reset value of 0, and dmi.op as having a reset value of 2 (error). We found that OpenOCD does a DMI read during its init, but sees the op=2 value in the first dmi capture and thinks this is a failure. When we worked around this by doing a dmireset before the first DMI access, it all went ok.
So questions arising:
- Why is OpenOCD surprised to see op=2 initially, when that's what the spec says it should be?
- Why are dmi.op and dtmcs.dmistat reset to different values? If they were the same, dtmcs.dmistat could just be a mirror of dmi.op capture value.
Cheers,
PA
-- Peter Ashenden, CTO IC Design, ASTC
--
You received this message because you are subscribed to the Google Groups "RISC-V Debug Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to debug+un...@groups.riscv.org.
To post to this group, send email to de...@groups.riscv.org.
Visit this group at https://groups.google.com/a/groups.riscv.org/group/debug/.
To view this discussion on the web visit https://groups.google.com/a/groups.riscv.org/d/msgid/debug/ebf893a4-6b52-f9a1-941b-b77069299652%40astc-design.com.
--
You received this message because you are subscribed to the Google Groups "RISC-V Debug Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to debug+un...@groups.riscv.org.
To post to this group, send email to de...@groups.riscv.org.
Visit this group at https://groups.google.com/a/groups.riscv.org/group/debug/.
To view this discussion on the web visit https://groups.google.com/a/groups.riscv.org/d/msgid/debug/36f6342f-0c75-9f4f-c7eb-80792d9d3d3c%40astc-design.com.