Forum Discussion
Altera_Forum
Honored Contributor
21 years agoJTAG UART Gotcha...
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 - Roddy2 Replies
- Altera_Forum
Honored Contributor
What do you mean by 'order'. I thought device init order was canned - so how did you fix it?
- Altera_Forum
Honored Contributor
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