Forum Discussion
Altera_Forum
Honored Contributor
8 years agoAltera Quartus (.jic to .pof)
[SUP]Hi All, Need help here. (I uploaded the screenshot) i have file from my customer .jic file, using JTAG mode and its included JTAG device and flash device. can i split it out to only fl...
Altera_Forum
Honored Contributor
8 years ago --- Quote Start --- The binary image can be extracted from the .jic file. I'm doing it like below
struct
{
unsigned short typ;
unsigned len;
} jicrechdr;
finput = fopen(filename,"rb");
fread(buffer,1,12,finput);
while (!feof(finput))
{
fread(&jicrechdr,1,6,finput);
if (jicrechdr.typ != 0x1c)
fseek(finput,jicrechdr.len,SEEK_CUR);
else
break;
}
if (feof(finput))
exit(1);
fseek(finput,jicrechdr.len & 0xff,SEEK_CUR);
imagesize = jicrechdr.len & 0xffffff00;
// read binary image --- Quote End --- Is this c programming lauguage, i not familiar with this programming? any tool to direct convert it?