Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++

ERROR in hexout2flash

Altera_Forum
Honored Contributor II
952 Views

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
0 Kudos
0 Replies
Reply