How to debug "app_usb_aud_xk_216_mc" software

Technical questions regarding the xTIMEcomposer, xSOFTip Explorer and Programming with XMOS.
maqu67
Member++
Posts: 16
Joined: Tue Jan 23, 2018 3:26 pm

How to debug "app_usb_aud_xk_216_mc" software

Postby maqu67 » Sun Sep 09, 2018 10:39 pm

Hello,

I trying to modify SPDIF_RX section in the app_usb__aud_xk_216_mc software for audio XCORE 200 Platform.

I want to debug the software and in special manner the file clockgen.xc where I get samples from the SPID_RX stream channel.

In the makefile I added the following section:

# The flags passed to xcc when building the application
# You can also set the following to override flags for a particular language:
# XCC_XC_FLAGS, XCC_C_FLAGS, XCC_ASM_FLAGS, XCC_CPP_FLAGS
# If the variable XCC_MAP_FLAGS is set it overrides the flags passed to
# xcc for the final link (mapping) stage.
XCC_FLAGS = -O1 -g -report -DDEBUG_PRINT_ENABLE=1

In particoular "XCC_FLAGS = -O1" should permit to place breakpoints where I need.

but this is not the case because when I plase breakpoint I have the following warning:

Multiple markers at this line
- Unresolved breakpoint
- Line breakpoint: clockgen.xc
[line: 511]

Why? Can you help me to understand?

Best Regards

Massimiliano
User avatar
mon2
XCore Legend
Posts: 1228
Joined: Thu Jun 10, 2010 11:43 am
Contact:

Postby mon2 » Mon Sep 10, 2018 1:30 am

Try with "XCC_FLAGS = -O0"

Who is online

Users browsing this forum: No registered users and 26 guests