EMIF Calibration Debug Toolkit "Firmware is not done running last command" error
We recently upgraded our Quartus Linux machine from Ubuntu version 18.04 to 20.04.
Now the EMIF Debug Toolkit returns the following errors when trying to re-calibrate. Used to work fine under Ubuntu 18.04
Firmware is not done running last command; command_status=0x00000000 (expecting 3)
Stack trace: tk_ie {Firmware is not done running last command; command_status=0x00000000 (expecting 3)}
An error occurred while running script "::emif_cal_dbg::calibration::rerun_cal_callback"
Steps to reproduce:
- Download bitstream with EMIF Debug Toolkit enabled using JTAG Blaster
- Quartus: Tools > System Debugging Tools > System Console
- Select and open the EMIF Calibration Debug Toolkit
- Activate selected interface
At this point the Calibration Report tab show that calibration was successful
- From Calibration tab click Run Re-Calibration
Above error is shown in messages
This happens with both Quartus 22.1 and 22.4. Running the Assert TG Reset (Run TG) works fine.
Interestingly when I run the same bitstream with Quartus 22.4 under Windows it will calibrate about 5 times successfully before throwing the above error.
Feels like some race problem with Quartus interacting with the OS.
Attached is the full message trace when going through the above steps.