Skip to content

Commit

Permalink
Add support for MicroBlaze programming
Browse files Browse the repository at this point in the history
  • Loading branch information
hotcanteens committed Dec 6, 2023
1 parent 7c8eab4 commit c6c784a
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tools/ntv2firmwareinstaller/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ int main (int argc, const char** argv)
{
char * pDeviceSpec (AJA_NULL); // Which device to use
char * pFirmwareLicense (AJA_NULL);
char * konaxmbFile (AJA_NULL);
int bQuiet (0);
int bProgress (0);
int bWaitForEnterKey (0);
Expand All @@ -156,6 +157,7 @@ int main (int argc, const char** argv)
{"progress", 'p', POPT_ARG_NONE, &bProgress, 0, "show installation progress", AJA_NULL},
{"quiet", 'q', POPT_ARG_NONE, &bQuiet, 0, "quiet mode", AJA_NULL},
{"wait", 'w', POPT_ARG_NONE, &bWaitForEnterKey, 0, "press Enter when finished?", AJA_NULL},
{"konaxmb", 'x', POPT_ARG_STRING, &konaxmbFile, 0, "konax MB file name", AJA_NULL },
{"info", 'i', POPT_ARG_NONE, &bBitfileInfo, 0, "just show bitfile info", AJA_NULL},
POPT_AUTOHELP
POPT_TABLEEND
Expand Down Expand Up @@ -281,6 +283,14 @@ int main (int argc, const char** argv)
cout << "Device license: OK" << endl;
return AJA_STATUS_SUCCESS;
}
else if (konaxmbFile)
{
CNTV2KonaFlashProgram konaFlasher(device.GetIndexNumber());
if (!konaFlasher.ProgramKonaxMB(konaxmbFile, 0, cerr))
return AJA_STATUS_FAIL;
cout << "MB File Programmed" << endl;
return AJA_STATUS_SUCCESS;
}

if (!device.IsOpen())
{
Expand Down

0 comments on commit c6c784a

Please sign in to comment.