Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
20 years ago

ERROR in hexout2flash

Hi!

I've been using the altera app hexout2flash (in c:\altera\quartus41\sopc_builder\bin) in order to generate flash files, with the appropiate commands to erase the flash and relocate the code.

The fact is that I tell the program that my base is 0x20000 and the size is 0x2000, it generates:

e20000

e30000

e40000

r20000

I think it shouldn't include the line e40000, asi it is erassing part of the code that exceeds the size 0x2000. I've taken a look at the code, an I think that in:

for ( my $offset = 0x0;

($offset < (($sofsize & ~0xFFFF) + 0xFFFF));

$offset += 0x10000) {

push @eraselines_list, sprintf("e%08x", $baseAddr + $offset);

}

, the for should go until ((($sofsize - 1) & ~0xFFFF) + 0xFFFF));

Isn&#39;t it?

I&#39;ve changed and it works ok for me. Maybe for future releases may be corrected...

Thank you

aLex
No RepliesBe the first to reply