Memory map problems
Hi
I am using Quartus 18.1 with a NIOS processor and uses Eclipse Mars 2.
I have a working system where I have an onchip_mem and an onchip_flash. I can then have some registers in the mem saved to flash when I write a command so they are restored after power cycle.
I am trying to increase the number of registers from 42 to 70. But everytime I change anything in the platform designer regarding the memory map nothing works anymore.
My original memory looks like this:
If I change any of the starting addresses it doesn't work anymore. I also tried to use 'Assign Base Addresses' from the menu.
- After I change the address I generate the HDL.
- Then I go to Eclipse and generates BSP
- Then I compile the Application
- Then I compile Quartus program
- Then I convert programming files and program device
Then nothing gets saved to Flash and I just read 0x00.
Are there anything else I need to do or somehow to easily see what is wrong?
One other observation. If I keep my original code (which is working) and just press 'Assign Base Addresses' then
onchip_adc_sequencer_csr changes address to 0x0010_9330
onchip_flash.csr changes to 0x00109338
And again the flash isn't working anymore.
Any suggestions?
Found the mistake.
The memory initialization file was pointing to a wrong file.