Forum Discussion
Altera_Forum
Honored Contributor
19 years agoOk, I found the answer to this, and apparently it is a bug that Altera is working on. Here's a description of the issue and workaround.
http://www.altera.com/support/kdb/solution...05052006_5.html (http://www.altera.com/support/kdb/solutions/rd05052006_5.html) Solution ID: rd05052006_5 Last Modified: May 23, 2006 Problem ---------- Why is there no code placed at the reset address of my Nios II system? Solution ---------- The Nios® II IDE should insert the .entry section at the reset address you have defined in SOPC Builder if your reset address lies in a volatile memory, such as SDRAM. In order for the .entry section to be placed at the reset address the ALT_NO_BOOTLOADER symbol needs to be defined in the system.h file that is automatically generated by the Nios II IDE. However, the ALT_NO_BOOTLOADER symbol does not get defined in the system.h file if you have a dual-port RAM in your SOPC Builder system which has one of its ports connected to a master other than a Nios II processor. As a workaround you can manually define the ALT_NO_BOOTLOADER as a preprocessor symbol for your system library project. To do this in the Nios II IDE, follow these steps: 1. Right click your system library project 2. Select Properties 3. Select C/C++ Build 4. Under the Tool Settings tab, select Preprocessor (under Nios II Compiler) 5. Click on the Add button (it has 3 plus signs) 6. Define a new symbol called ALT_NO_BOOTLOADER 7. Recompile your software project Now the .entry section will be correctly placed at the reset address.