Forum Discussion
Altera_Forum
Honored Contributor
16 years agoNow I know where the failure happens. I did the test for the full span of the onchip RAM but it failed!
The console just show the first msg: --- Quote Start --- Testing RAM from 0x4120000 to 0x4120100 --- Quote End --- then the program stops responding. So I retested it starting with offset equal to 16 KByte (which is the 8 KByte instruction cache and 8 KByte data cache), and the test was successful. I didn't know that the cache and the onchip RAM defined in SOPC builder are dependent (so the 16 KByte cache are included in the 100 KByte RAM !) However, I still can't read from the flash device into a well allocated variable on the onchip RAM. So I am thinking of separating the onchip RAM into two pieces and store my variable in one of them. And still the question why the attribution doesn't allocate the variable properly and overlapped the cache?