Altera_Forum
Honored Contributor
20 years agoonchip memory in MRAM block
Hello All,
On my board, a EP2S30 device loads itself from an EPCS16 using AS configuration, and runs the Nios code wholly from on-chip memory. I ran into a problem stemming, apparently, from the fact that MRAM memory blocks don't accept initialization files. In the default system generation, SOPC builder chose MRAM for the onchip memory, but this didn't work - the software didn't run at system start-up. Only when I manually changed the assignment of the onchip memory to M4K blocks it began to work. I thought of this solution by seeing that onchip memory uses the altsyncram mega function, and in the documentation of that megafunction I saw that one can't specify an initialization file for a MRAM block. Why is this ? Is it really impossible to specify a .hex file for initialization of MRAM memory ? If so, why does SOPC builder use it for on-chip memory at all ? Thanks in advance