How to set app_usb_aud_xk_216_mc to Debug mode

New to XMOS and XCore? Get started here.
afaf
Member++
Posts: 16
Joined: Mon Apr 09, 2018 10:46 am

How to set app_usb_aud_xk_216_mc to Debug mode

Postby afaf » Mon May 14, 2018 8:04 am

How to set app_usb_aud_xk_216_mc to Debug mode:
I deleted -O3 in the Makefile as follows,and get Build Error (3 items), why? and How to do?

//-------------------------------------------------------------------------------------------------------------------
#BUILD_FLAGS = -DFLASH_MAX_UPGRADE_SIZE=64*1024 -fcomment-asm -Xmapper --map -Xmapper MAPFILE -Wall-O3 -report -lquadflash -fsubword-select -save-temps -g -fxscope -DXSCOPE -DSDA_HIGH=2 -DSCL_HIGH=1 -DXUD_SERIES_SUPPORT=4 -march=xs2a -DUSB_TILE=tile[1] -DADAT_TX_USE_SHARED_BUFF=1 -DQUAD_SPI_FLASH=1

BUILD_FLAGS = -DFLASH_MAX_UPGRADE_SIZE = 64 * 1024 -fcomment -asm -Xmapper -map -Xmapper MAPFILE -Wall -report -lquadflash -fsubword-select -save-temps -g -fxscope -DXSCOPE -DSDA_HIGH = 2 -DSCL_HIGH = 1 -DXUD_SERIES_SUPPORT = 4 -march = xs2a -DUSB_TILE = tile [1] -DADAT_TX_USE_SHARED_BUFF = 1 -DQUAD_SPI_FLASH = 1

//-------------------------------------------------------------------------------------------------------------------
Build Error (3 items):
Description Resource Path Location Type
Undefined reference 'XUD_SetReady_InPtr' (possible inline definition without external definition) app_usb_aud_xk_216_mc C/C++ problem
Undefined reference 'XUD_SetReady_OutPtr' (possible inline definition without external definition) app_usb_aud_xk_216_mc C/C++ problem
Undefined reference 'XUD_SetReady_In' (possible inline definition without external definition) app_usb_aud_xk_216_mc C/C++ problem
//-------------------------------------------------------------------------------------------------------------------
User avatar
infiniteimprobability
XCore Legend
Posts: 1079
Joined: Thu May 27, 2010 10:08 am

Postby infiniteimprobability » Mon May 14, 2018 9:02 am

What do you mean by debug mode? -g switches on debug info which you have already. Removing -O3 just removes optimisation.
What are you trying to achieve exactly? Perhaps there's a better way..
afaf
Member++
Posts: 16
Joined: Mon Apr 09, 2018 10:46 am

Postby afaf » Tue May 15, 2018 12:47 pm

-o3 just show(tracking) asm code,
not source code(.c or .xc),
so...
User avatar
infiniteimprobability
XCore Legend
Posts: 1079
Joined: Thu May 27, 2010 10:08 am

Postby infiniteimprobability » Tue May 15, 2018 5:04 pm

xobjdump -S is your friend if you want to look at the asm offline or just use xgdb / optionally with eclipse (xtimecomposer) if you want to debug in mixed asm and source.

Who is online

Users browsing this forum: No registered users and 9 guests