- xCORE-200 MC Audio board
- sw_usb_audio-[sw]_6.15.2rc1
- app_usb_aud_xk_216_mc
- Windows 10
Test tone playback from control panel OK.
Modified user_main.h:
Code: Select all
#ifndef _USER_MAIN_H_
#define _USER_MAIN_H_
void user_main(void);
#define USER_MAIN_CORES \
on tile[0] : user_main();
#endif /* _USER_MAIN_H_ */
Code: Select all
#include <platform.h>
#include "devicedefines.h"
#include "uac_hwresources.h"
#include <quadflash.h>
#include <stdio.h>
fl_QSPIPorts qspi_ports =
{
on tile[0] : XS1_PORT_1B, // qspiCS;
on tile[0] : XS1_PORT_1C, // qspiSCLK;
on tile[0] : XS1_PORT_4B, // qspiSIO;
on tile[1] : CLKBLK_FLASHLIB // qspiClkblk;
};
fl_QuadDeviceSpec deviceSpecs[] =
{
FL_QUADDEVICE_SPANSION_S25FL116K,
};
void user_main(void)
{
printf("user_main entry\n");
int r = fl_connectToDevice(qspi_ports, deviceSpecs, sizeof(deviceSpecs)/sizeof(fl_QuadDeviceSpec));
if (r == 0)
{
unsigned u = fl_getFlashSize();
printf("fl_getFlashSize 0x%X\n", u);
fl_disconnect();
}
else
{
printf("fl_connectToDevice failed %x\n", r);
}
printf("user_main exit\n");
}
But test tone playback from control panel now fails.
USB analyzer shows that the device never returns an appropriate status for SetInterface.
If I comment out fl_connectToDevice, the test tone works again.
What am I doing wrong?