Forum Discussion
Altera_Forum
Honored Contributor
20 years agoHi Karel,
Thanks for posting the code. Again, Does the nios hang _after_ EraseFlashSector returns, or within EraseFlashSector? Also ... <div class='quotetop'>QUOTE </div> --- Quote Start --- for(FlashAd = 0x0000000; FlashAd < 0x0140000; FlashAd += 0x0020000) { EraseFlashSector(FlashAd); } /* here my program fails. I erase the flash sector 0 (sector from which the nios is running from). The instruction "EraseFlashSector" is also placed in internal memory*/[/b] --- Quote End --- What do you mean by "PROGRAM FAILS"? Doesn't return? ... locks up? ... jumps to a bogus address? Have you looked at this with nios2-console? Regards, --Scott