Bug with XUD library in USB Audio?
Posted: Wed Nov 02, 2016 7:30 pm
Details:
- xTIMEcomposer 14.2.3, OS X Yosemite 10.10.5
- USB Audio 2.0 6.15.2rc1
- custom board, XUF208-256-TQ64
I'm seeing what appearrrrs to be a bug in the XUD library. During compilation of my application, I get the following errors:
So, looking in "module_xud/src/XUD_Ports.xc", I see the following:
That makes sense... except for when you check out the port defines in "module_xud/include/xud.h":
So these "ready" ports are defined if you're targeting a U-series device, but not if you're targeting an x200-series device... even though elsewhere, like in module_xud/src/XUD_Ports.xc, it expets the same ports to be available between U-series and x200-series devices.
Maybe I'm just doing something wrong here, but this does feel like a bug.
Deep thoughts?
- xTIMEcomposer 14.2.3, OS X Yosemite 10.10.5
- USB Audio 2.0 6.15.2rc1
- custom board, XUF208-256-TQ64
I'm seeing what appearrrrs to be a bug in the XUD library. During compilation of my application, I get the following errors:
Code: Select all
/Users/tobylawrence/workspace/SmartStand/module_xud/src/XUD_Ports.xc:11:36: error: use of undeclared identifer `PORT_USB_TX_READYOUT'
out port tx_readyout = PORT_USB_TX_READYOUT;
^~~~~~~~~~~~~~~~~~~~
/Users/tobylawrence/workspace/SmartStand/module_xud/src/XUD_Ports.xc:11:36: error: initializer element is not constant
out port tx_readyout = PORT_USB_TX_READYOUT;
^~~~~~~~~~~~~~~~~~~~
/Users/tobylawrence/workspace/SmartStand/module_xud/src/XUD_Ports.xc:12:36: error: use of undeclared identifer `PORT_USB_TX_READYIN'
in port tx_readyin = PORT_USB_TX_READYIN;
^~~~~~~~~~~~~~~~~~~
/Users/tobylawrence/workspace/SmartStand/module_xud/src/XUD_Ports.xc:12:36: error: initializer element is not constant
in port tx_readyin = PORT_USB_TX_READYIN;
^~~~~~~~~~~~~~~~~~~
/Users/tobylawrence/workspace/SmartStand/module_xud/src/XUD_Ports.xc:13:36: error: use of undeclared identifer `PORT_USB_RX_READY'
in port rx_rdy = PORT_USB_RX_READY;
^~~~~~~~~~~~~~~~~
/Users/tobylawrence/workspace/SmartStand/module_xud/src/XUD_Ports.xc:13:36: error: initializer element is not constant
in port rx_rdy = PORT_USB_RX_READY;
Code: Select all
#if (XUD_SERIES_SUPPORT == XUD_U_SERIES) || (XUD_SERIES_SUPPORT == XUD_X200_SERIES)
in buffered port:32 p_usb_clk = PORT_USB_CLK;
out buffered port:32 p_usb_txd = PORT_USB_TXD;
in buffered port:32 p_usb_rxd = PORT_USB_RXD;
out port tx_readyout = PORT_USB_TX_READYOUT;
in port tx_readyin = PORT_USB_TX_READYIN;
in port rx_rdy = PORT_USB_RX_READY;
on USB_TILE: clock tx_usb_clk = XS1_CLKBLK_5;
on USB_TILE: clock rx_usb_clk = XS1_CLKBLK_4;
#elif (XUD_SERIES_SUPPORT == XUD_L_SERIES) || (XUD_SERIES_SUPPORT == XUD_G_SERIES)
in buffered port:32 p_usb_clk = PORT_USB_CLK;
out port reg_write_port = PORT_USB_REG_WRITE;
in port reg_read_port = PORT_USB_REG_READ;
out port p_usb_txd = PORT_USB_TXD;
port p_usb_rxd = PORT_USB_RXD;
in port p_usb_stp = PORT_USB_STP_SUS;
#else
#error XUD_SERIES_SUPPORT not equal to XUD_U_SERIES, XUD_G_SERIES, XUD_X200_SERIES or XUD_L_SERIES
#endif
Code: Select all
#if (XUD_SERIES_SUPPORT == XUD_U_SERIES)
#define PORT_USB_CLK on USB_TILE: XS1_PORT_1J
#define PORT_USB_TXD on USB_TILE: XS1_PORT_8A
#define PORT_USB_RXD on USB_TILE: XS1_PORT_8C
#define PORT_USB_TX_READYOUT on USB_TILE: XS1_PORT_1K
#define PORT_USB_TX_READYIN on USB_TILE: XS1_PORT_1H
#define PORT_USB_RX_READY on USB_TILE: XS1_PORT_1M
#else
#define PORT_USB_CLK on USB_TILE: XS1_PORT_1H
#define PORT_USB_REG_WRITE on USB_TILE: XS1_PORT_8C
#define PORT_USB_REG_READ on USB_TILE: XS1_PORT_8D
#define PORT_USB_TXD on USB_TILE: XS1_PORT_8A
#define PORT_USB_RXD on USB_TILE: XS1_PORT_8B
#define PORT_USB_STP_SUS on USB_TILE: XS1_PORT_1E
#endif
Maybe I'm just doing something wrong here, but this does feel like a bug.
Deep thoughts?