jtag-probe crashes with "-V A=SA" voltage setting.
applet
Hello,
My Glasgow Interface Explorer is connected to the JTAG interface of a MEC1663 device.
Only Port A is used and VA_SENSE is connected to the MEC's power (3.3V).
I first ran jtag-pinout to get exact pinout:
`glasgow -v -L jtag-pinout.log run jtag-pinout --voltage A=SA --pins A0,A1,A2,A3,A5`
Which gave me:
I: glasgow.applet.interface.jtag_pinout: use `jtag-probe -V A=SA --tck A1 --tms A5 --tdi A2 --tdo A3` as arguments
After that I tried to use the suggested command but glasgow crashed.
I narrowed the problem down to "--voltage" command-line parameter.
Tried various settings and the only one that worked was "-V AB=3.3" though the Port B is not used at all .
My repo was pulled a day ago to the following commit:
`8b021305 2025-08-03 10:37:56 -0700 10236155+Sazzach [5 days ago] software: deploy firmware.`
Attached is a zip file containing logs and verbose outputs of the commands mentioned below.
Below are the exact commands that I tried and the corresponding exceptions.
Note that I also ran `glasgow safe` before every command just in case.
Use the command that is suggested by jtag-pinout (and this is what I would indeed expect to work).
`glasgow -v -L jtag-probe-SA.log run jtag-probe -V A=SA --tck A1 --tms A5 --tdi A2 --tdo A3 scan`
TypeError: object of type 'GlasgowPort' has no len()
Outputs: jtag-probe-SA.*
Trying to specify Port A 3.3V - should also work.
`glasgow -v -L jtag-probe-A33.log run jtag-probe -V A=3.3 --tck A1 --tms A5 --tdi A2 --tdo A3 scan`
glasgow.hardware.device.GlasgowDeviceError: cannot set I/O port(s) AB pull resistors to low={} high={}
Outputs: jtag-probe-A33.*
For completness, this is the command that actually worked:
`glasgow -v -L jtag-probe-AB33.log run jtag-probe -V AB=3.3 --tck A1 --tms A5 --tdi A2 --tdo A3 scan`
Outputs: jtag-probe-AB33.*
[glasgow-jtag.zip](https://github.com/user-attachments/files/21691335/glasgow-jtag.zip)
关闭于 2025-11-15 3 条评论