1、程序在nios中编译没有问题,但是不能在iss中单步调试 在ISS中调试出现如下问题: Error! : Unable to load memory block at address 0x0 from ELF file Debug/leds.elf Fatal Error! : Memory map is not consistent with memory image file - check that file 'Debug/leds.elf' is compiled and linked for system 'E:\DOCUMENT\FPGA\EXPERI MENT\BLOCKWY\NIOS32.ptf' 2、如何把一个变量的值写到I/O端口中去。程序段如下: if(other_zd) led_buff|=0x08; else led_buff&=0xf7; if(other_fd) led_buff|=0x04; else led_buff&=0xfb;
if(other_zx) led_buff|=0x02; else led_buff&=0xfd;
if(other_fx) led_buff|=0x01; else led_buff&=0xfe;
现在我要把led_buff的值写到地址为0x00204890的I/O口去,怎么办? IOWR(0x00204890, 0, led_buff);对吗???
[此贴子已经被作者于2006-12-7 11:10:34编辑过] |