Skip to content

Commit

Permalink
Temporarily disabled legacy indirect program support, needs to be rep…
Browse files Browse the repository at this point in the history
…laced with AttachedMemoryDevice API
  • Loading branch information
azonenberg committed Aug 3, 2018
1 parent c7769cb commit 3ca8fef
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions jtagclient/main.cpp
Expand Up @@ -417,6 +417,8 @@ int main(int argc, char* argv[])
}
else
{
LogError("Indirect programming not supported\n");
/*
LogNotice("Programming device (using indirect programming, bus width %d)...\n", indirect_width);
ByteArrayFirmwareImage* bi = dynamic_cast<ByteArrayFirmwareImage*>(img);
if(bi)
Expand All @@ -427,6 +429,7 @@ int main(int argc, char* argv[])
"Cannot indirectly program non-byte-array firmware images",
"");
}
*/
}
LogNotice("Configuration successful\n");
delete img;
Expand All @@ -435,6 +438,7 @@ int main(int argc, char* argv[])

case MODE_DUMP:
{
/*
//Get the device
JtagDevice* device = iface.GetDevice(devnum);
if(device == NULL)
Expand All @@ -455,6 +459,11 @@ int main(int argc, char* argv[])
LogNotice("Dumping flash...\n");
pdev->DumpIndirect(indirect_width, bitfile);
*/

throw JtagExceptionWrapper(
"Dump not supported",
"");
}
break;

Expand Down

0 comments on commit 3ca8fef

Please sign in to comment.