chubing, 你的flash没有问题。你debug的时候是在sdram还是sram还是flash,你没有说。我假设是sram。 1。你的设置有没有问题。 在NIOS II IDE中工程的System Library选项中的这几个选项代表什么意思? .text .rodata .rwdata 与reset .exception这几个地址之间的关系是什么? .text : 代码区 .rodata:只读数据区,一般存放静态全局变量 .rwdata:可读写变量数据区另外还有.bss:存放未被初始化的变量。 ■ .text — the actual executable code ■ .rodata — any read only data used in the execution of the code ■ .rwdata — where read/write variables and pointers are stored ■ heap — where dynamically allocated memory is located ■ stack — where function call parameters and other temporary data is stored reset为复位是pc指向的位置。exception是异常的位置,你可以理解为内存。 2。sram可能有问题,这与你能不能下程序到flash中没有任何关系。 你可以检查一下sram。 caopengly |