How to debug "app_usb_aud_xk_216_mc" software

Technical questions regarding the XTC tools and programming with XMOS.
Post Reply
maqu67
Member++
Posts: 22
Joined: Tue Jan 23, 2018 3:26 pm

How to debug "app_usb_aud_xk_216_mc" software

Post by maqu67 »

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: 1913
Joined: Thu Jun 10, 2010 11:43 am
Contact:

Post by mon2 »

Try with "XCC_FLAGS = -O0"
Post Reply