greatscottgadgets / apollo

microcontroller-based FPGA / JTAG programmer
BSD 3-Clause "New" or "Revised" License
54 stars 28 forks source link

Flash UID zeros after `--force-offline` #102

Open mossmann opened 2 weeks ago

mossmann commented 2 weeks ago

After running apollo info --force-offline the Flash UID shows up only as zeros in apollo info. Flash UID is displayed correctly again after apollo flash-info, various other 'apollo' commands, or a full device reset.

(venv) mossmann@costard:~/src/cynthion/cynthion/python$ apollo info --force-offline
Detected a Cynthion device!
        Hardware: Cynthion r1.4
        Serial number: RYOYPICMGJJVCIBAEA3DMHQO74
        Firmware version: v1.0.6
        USB API version: 1.1
        Flash UID: 0000000000000000
(venv) mossmann@costard:~/src/cynthion/cynthion/python$ apollo info 
Detected a Cynthion device!
        Hardware: Cynthion r1.4
        Serial number: RYOYPICMGJJVCIBAEA3DMHQO74
        Firmware version: v1.0.6
        USB API version: 1.1
        Flash UID: 0000000000000000
(venv) mossmann@costard:~/src/cynthion/cynthion/python$ apollo flash-info 
Device serial number: RYOYPICMGJJVCIBAEA3DMHQO74
Detected an FPGA-connected SPI configuration flash!
        Manufacturer: Winbond (ef)
        Device: W25Q32DV (ef4016)
        Unique ID: 39731ecba3ac60de

(venv) mossmann@costard:~/src/cynthion/cynthion/python$ apollo info 
Detected a Cynthion device!
        Hardware: Cynthion r1.4
        Serial number: RYOYPICMGJJVCIBAEA3DMHQO74
        Firmware version: v1.0.6
        USB API version: 1.1
        Flash UID: 39731ecba3ac60de

A similar bug affects Cynthion: https://github.com/greatscottgadgets/cynthion/issues/125