efinix.cpp: programJTAG. Fixed IDCODE read 4 -> 32 (issue #520)

This commit is contained in:
Gwenhael Goavec-Merou 2025-02-26 19:38:10 +01:00
parent 2ff215dfff
commit fbee81b1d0
1 changed files with 1 additions and 1 deletions

View File

@ -381,7 +381,7 @@ bool Efinix::programJTAG(const uint8_t *data, const int length)
_jtag->shiftDR(tx, NULL, 100);
_jtag->shiftIR(IDCODE, _irlen);
uint8_t idc[4];
_jtag->shiftDR(NULL, idc, 4);
_jtag->shiftDR(NULL, idc, 32);
printf("%02x%02x%02x%02x\n",
idc[0], idc[1], idc[2], idc[3]);
return true;