Altera_Forum
Honored Contributor
13 years agoUsing Flash Programmer to download NIOS II Project into FlashMemory
Hello,
My first (quite big actually) NIOS II project is about to be delivered, and I have some doubts regarding the process of download of the SW project into flash. I don't have NIOS II licence at the moment, and for the sake of presentation I want the following scenario (it is tPad board): - Use the Quartus II programmer to download the *time_limited.sof to the board - have NIOS II software residing in the on-board flash so it starts executing after the download of FPGA configuration data. Please go through the description of my system and tell me what may be wrong 1. There is a Flash memory interface and an Avalon-MM Tristate Bridge in SOPC system 2. There is no JTAG UART, but plain UART at 115200bps only (will use it as a terminal) 3. The cpu's reset vector is in the flash, at offset 0x00, the exception vector also in the flash, at offset 0x20 System library in NIOS II IDE (not NIOS II SBT) 1. .text flash 2. .rodata flash 3. .rwdata sdram 4. heap sdram 5. stack sdram 6. stdout rs232 Do these settings make sense? I have a simple utility software what reads out my custom component, printing out the data at the terminal. The program hangs after initial start, but when I unintentionally added another printf (printf("interrupt\n")) in my component's interrupt routine component it started to work perfectly... I suspect some setting may be wrong here. Any help is greatly appreciated!