mirror of
https://github.com/trabucayre/openFPGALoader.git
synced 2026-08-29 17:39:36 +02:00
Add missing pieces to JTAG
This commit is contained in:
committed by
Gwenhael Goavec-Merou
parent
85f9791600
commit
4c39abf51c
+2
-2
@@ -178,7 +178,7 @@ int Jtag::detectChain(unsigned max_dev)
|
||||
printInfo("Raw IDCODE:");
|
||||
|
||||
for (unsigned i = 0; i < max_dev; ++i) {
|
||||
read_write(tx_buff, rx_buff, 32, (i == max_dev-1)?1:0);
|
||||
read_write(tx_buff, rx_buff, 32, 0);
|
||||
tmp = 0;
|
||||
for (int ii = 0; ii < 4; ++ii)
|
||||
tmp |= (rx_buff[ii] << (8 * ii));
|
||||
@@ -229,7 +229,7 @@ int Jtag::detectChain(unsigned max_dev)
|
||||
throw std::runtime_error(error);
|
||||
}
|
||||
}
|
||||
go_test_logic_reset();
|
||||
set_state(TEST_LOGIC_RESET);
|
||||
flushTMS(true);
|
||||
return _devices_list.size();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user