LedgerHQ / btchip-python

Ledger HW.1 Python API
http://www.ledger.co
Apache License 2.0
65 stars 51 forks source link

Invalid status 6702 in getFirmwareVersion after latest firmware upgrade #52

Open PiRK opened 2 years ago

PiRK commented 2 years ago

Hi, I upgraded the firmware for my Nano X from 2.0.0 to 2.0.2, and now I'm getting this error:


    firmwareInfo = self.dongleObject.getFirmwareVersion()
  File "/home/pierre/.local/lib/python3.10/site-packages/btchip/btchip.py", line 563, in getFirmwareVersion
    response = self.dongle.exchange(bytearray(apdu))
  File "/home/pierre/.local/lib/python3.10/site-packages/btchip/btchipComm.py", line 127, in exchange
    raise BTChipException("Invalid status %04x" % sw, sw)
btchip.btchipException.BTChipException: Exception : Invalid status 6702
PiRK commented 2 years ago

After investigating a bit further, I think this happens only when the BCH app is selected. Not with the BTC app.

cculianu commented 2 years ago

Ping. We are experiencing this issue in Electron Cash now with latest firmware. I understand this is a bug in this library for BCH specifically. Would be great if you guys that maintain this library can take a look at this...

haplo commented 2 years ago

I'm also impacted by this bug, would appreciate someone looking into it.

PiRK commented 2 years ago

A new version of the BCH app is available in Ledger Live (Ledger Manager) : 2.0.5 For me it solves the issue.