Altera_Forum
Honored Contributor
20 years agoUpgrading Nios Software - external flash
Dear all,
I would like to upgrade my NIOS code by RS232. The NIOS runs from external memory. This is my procedure: - I transfer the .elf file to the .flash file by the instruction elf2bin. (bin file for dowloading to the flash) - I have a RS232 GUI from which I can send the bin file to the flash. I have written a procedure which is stored in FPGA internal memory. This procedure receives the bin file from the UART and writes the data to flash. (byte by byte) Now, what is the problem: my problem is that my NIOS stops working from the moment I erase the flash sector in which the original NIOS code is stored. Nevertheless, the procedure that erases this sector is placed internal. And I keep running my code from internal memory untill the new nios bin file is stored in the flash. The nios core is placed from 0x00000. When I declare an instruction to be placed in internal memory. ex following function is placed in internal memory void test (void) { } Will the instruction always be in internal memory or will it be placed in internal memory from the moment this instruction is called? Has someone an idea what the problem is? Has someone experience with how to upgrade a NIOS that is running from external memory. Regards