- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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 - RoddyLink Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
What do you mean by 'order'. I thought device init order was canned - so how did you fix it?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page