Forum Discussion
Altera_Forum
Honored Contributor
20 years agoIt _looks_ like you're trying to fit your code is outgrowing the memory space you've allocated for it. How large is ".rom"? Where is is located?
If I were you, I would start by building programs targeting reasonably large memories...just to a feel for the size of the code that is generated. By default, the IDE includes a lot of nice coding conveniences, but, as with all conveniences, this comes a price. Here are the rules that you need to follow: 1. Locate your reset address in non-volatile memory (flash and/or onchip memory). - This is done inside SOPC Builder. - Not strictly necessary, but recommended. 2. Target the bulk of your code in a _large_ offchip memory (SRAM, SSRAM, SDRAM) - You can control where the linker locates your code by changing the target memories for .text, .rodata, and .rwdata on the System Library properties page. If you have questions about any of this, I suggest that you start doing some reading :-) Putting some diligence and effort into your study will go a long ways towards preventing headache at the end of your design cycle and may even prevent you from making some stupid architecture decisions! Cheers, - slacker