Page 1 of 1

How to debug "app_usb_aud_xk_216_mc" software

Posted: Sun Sep 09, 2018 10:39 pm
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

Re: How to debug "app_usb_aud_xk_216_mc" software

Posted: Mon Sep 10, 2018 1:30 am
by mon2
Try with "XCC_FLAGS = -O0"