Yes I already asked this, but I have to wait for someone to approve it.
So my app is crashing mainly I think because my local source code is doing one thing and then all the module_usb_audio is doing something else.
So all the source code in module_usb_audio includes devicedefines.h which then includes customdefines.h which has the following simple define:
#define AUDIO_CLASS 2
Yet in main.xc this is code is set to #else, ie the class 2 code is greyed out:
#if (AUDIO_CLASS==2)
XUD_Manager(c_xud_out, ENDPOINT_COUNT_OUT, c_xud_in, ENDPOINT_COUNT_IN,
c_sof, epTypeTableOut, epTypeTableIn, p_usb_rst,
clk, 1, XUD_SPEED_HS, XUD_PWR_CFG);
#else
XUD_Manager(c_xud_out, ENDPOINT_COUNT_OUT, c_xud_in, ENDPOINT_COUNT_IN,
c_sof, epTypeTableOut, epTypeTableIn, p_usb_rst,
clk, 1, XUD_SPEED_FS, XUD_PWR_CFG);
#endif

~~~
So this is a simple no DSD, Class 2, DAC only on an XU208.
In the makefile and in the customdefines is this statement:
#ifndef I2S_CHANS_DAC
#define I2S_CHANS_DAC (2)
#endif
and....
XCC_FLAGS = $(BUILD_FLAGS) -DI2S_CHANS_DAC=2 -DI2S_CHANS_ADC=0 -DNUM_USB_CHAN_OUT=2 -DNUM_USB_CHAN_IN=0 -DMIDI=0 -DSPDIF_TX=0 -DSPDIF_RX=0 -DADAT_TX=0 -DADAT_RX=0 -DDSD_CHANS_DAC=0 -DAUDIO_CLASS=2
Yet in endpoint0.xc all the channels in and out are greyed out.
I have done cleans and still they are greyed out.
~~~
Also in the past I was able to do some IO before we started paralleling the threads (yes threads they are not cores, unless you are using a 16 or 32 device which have 2 and 4 cores). The TC complains when I try and do any IO before the par threading. I kind of need to do a few things before letting the USB go and other threads. Any suggestions?
Thanks in a real bind any help would be appreciated.
Gordon