Forum Discussion
Altera_Forum
Honored Contributor
12 years agoHi,
in last week i changed the port from bidirection on output port and use rotation bits from 0.bit to 31.bit and when i send "0" to 18.bit and 20.bit, //-------------------------------MAIN------------------------------------------- int main(int argc, char *argv[]) { unsigned long l,ch; int i; printf("--------------- Start program. ------------\n"); for(;;) { l = 1; for(i=0;i<32;i++) { ch=0xffffffff - l; printf("Write %x.\n",ch); outl(ch,IO_PIO+0x80000000); usleep(2); outl(0xffffffff,IO_PIO+0x80000000); sleep(2); l = l*2; } } } ----------- the system is halted (none possible to use command line in nios2-terminal, everything stop. I disconnected pins on the board from all external "world", but it "works" same. I dont understand why ? I use EP3C25Q240C8N and use epcs controller, uart, jtag uart, sd card (SPI 3-wire serial), sdram, igor mac and every peripheral device look ok.... Jan