I am working on an USB CDC project. To get more verbose exception messages, I have turned optimization off. This caused build failure.
I have managed to reproduce it with AN00124_CDC_VCOM_class[2.0.2]:
Makefile:
Code: Select all
-XCC_FLAGS_U = -Wall -O3 -report -DXUD_SERIES_SUPPORT=XUD_U_SERIES -g
+XCC_FLAGS_U = -Wall -O0 -report -DXUD_SERIES_SUPPORT=XUD_U_SERIES -g
Code: Select all
Creating app_usb_cdc_demo_U.xe
../src/xud_cdc.xc: Error: Undefined reference to 'XUD_SetReady_In' (possible inline definition without external definition)
../src/xud_cdc.xc: Error: Undefined reference to 'XUD_SetReady_Out' (possible inline definition without external definition)
xmake[1]: *** [bin/U/app_usb_cdc_demo_U.xe] Error 1
xmake: *** [bin/U/app_usb_cdc_demo_U.xe] Error 2