Hi all
I am currently running the app_usb_aud_xk_216_mc project on a the xCore 200 MC Audio Platform. I have run the program as it comes and it works perfectly. I would like manipulate valus read into "unsigned sample" within the audio.xc.
As the program is set up to run with -O3 optimisation in the Makefile which causes the sample vector to be "optimised out" in debug mode. I would very much like to see this optimised out values and thus I have swithed the mode to the unoptimised "OO" setting.
However when I try to run program I get the following errors in the console:
Creating app_usb_aud_xk_216_mc_2i16o16xxxxx_tdm8.xe
C:/Users/Garrick/Google Drive/EPR/xTimeComposerWorkspaces/USB Audio Editting/module_usb_audio/usb_buffer/usb_buffer.xc: Error: Undefined reference to 'XUD_SetReady_In' (possible inline definition without external definition)
C:/Users/Garrick/Google Drive/EPR/xTimeComposerWorkspaces/USB Audio Editting/module_usb_audio/usb_buffer/decouple.xc: Error: Undefined reference to 'XUD_SetReady_InPtr' (possible inline definition without external definition)
C:/Users/Garrick/Google Drive/EPR/xTimeComposerWorkspaces/USB Audio Editting/module_usb_audio/usb_buffer/decouple.xc: Error: Undefined reference to 'XUD_SetReady_OutPtr' (possible inline definition without external definition)
xmake[1]: *** [bin/2i16o16xxxxx_tdm8/app_usb_aud_xk_216_mc_2i16o16xxxxx_tdm8.xe] Error 1
xmake: *** [bin/2i16o16xxxxx_tdm8/app_usb_aud_xk_216_mc_2i16o16xxxxx_tdm8.xe] Error 2
Once again the stock code available has been unaltered besides the optimisation level.
I am having difficulty overcoming this. Any help would be appreciated
Regards
Garrick :)
Error With Optimization - app_usb_aud_xk_216_mc
-
- New User
- Posts: 3
- Joined: Thu Aug 13, 2015 3:16 pm
-
- Member++
- Posts: 21
- Joined: Mon Dec 16, 2013 1:27 pm
Hi, have you tried a clean build after changing the optimisation to -O0?
-
- Member
- Posts: 10
- Joined: Tue Dec 08, 2015 1:20 pm
Hello,
Don't know if you found a solution. I had the same link error a couple of days ago and to fix it I had to add:
extern XUD_Result_t XUD_SetReady_In(XUD_ep ep, unsigned char buffer[], int len);
in file usb_buffer.xc.
And:
extern XUD_Result_t XUD_SetReady_InPtr(XUD_ep ep, unsigned addr, int len);
extern int XUD_SetReady_OutPtr(XUD_ep ep, unsigned addr);
in file decouple.xc.
Don't know if you found a solution. I had the same link error a couple of days ago and to fix it I had to add:
extern XUD_Result_t XUD_SetReady_In(XUD_ep ep, unsigned char buffer[], int len);
in file usb_buffer.xc.
And:
extern XUD_Result_t XUD_SetReady_InPtr(XUD_ep ep, unsigned addr, int len);
extern int XUD_SetReady_OutPtr(XUD_ep ep, unsigned addr);
in file decouple.xc.