I've just been bitten by the JTAG UART hanging my system when the USB cable was disconnected.
I'd read about the dangers of the 'small' mode, and I have a valid system clock timer, etc.. But, it turns out my problem was the order of the JTAG UART vs. SYS_CLK_TIMER in SOPC builder - the UART was trying to initialise before the clock, so it's call to alt_alarm_start was failing silently, and the timeout procedure never gets called... Easy to fix, but a pain to track down... http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/sad.gif - Roddy链接已复制
2 回复数
Devices are initialised in the order they appear in SOPC builder, so you use the 'move up/move down' buttons to place the clock above the JTAG UART. alt_sys_init.c will then get rebuilt to reflect this new ordering.
- Roddy