Integrated Motion
0
Items : 0
Subtotal : 0,00 
View CartCheck Out

xSCOPE warning … System is already registered, new registration call ignored

Home Forums Programming Tools XMOS xTIMEcomposer (former XDE) xSCOPE warning … System is already registered, new registration call ignored

This topic contains 1 reply, has 0 voices, and was last updated by  prasanna 3 years, 5 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1510

    prasanna

    I keep getting the following error whenever I try to xscope_register inside a xscope_user_init function.

    xSCOPE warning ... System is already registered, new registration call ignored

    I understand that this means that there is already a xscope registration. But I am definitely not registering twice as I can see in the main.xc file. Is this a bug of some sort? Are there any stray files in the make directory that could be causing this? I have tried xmake cleaning, changing xtag2 to 3, changing boards, etc. It keeps happening. Must surely be something in my makefile, though I can’t figure out what.

     

    My makefile:

    
    
    # The TARGET variable determines what target system the application is
    # compiled for. It either refers to an XN file in the source directories
    # or a valid argument for the --target option when compiling
    TARGET = SOMANET-C22_Motor-Control_xSCOPE
    
    # The APP_NAME variable determines the name of the final .xe file. It should
    # not include the .xe postfix. If left blank the name will default to
    # the project name
    APP_NAME = $(appname)
    
    # The USED_MODULES variable lists other module used by the application.
    USED_MODULES = (lots of modules)
    
    # 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_Debug = -g -O3 -fxscope -lflash -report -Xmapper --map -Xmapper $(mapname) -save-temps
    # XCC_FLAGS_Debug = -Wall -O2 -fxscope -report
    XCC_FLAGS_Release = -g -O3 -fxscope -lflash
    
    # The VERBOSE variable, if set to 1, enables verbose output from the make system.
    VERBOSE = 0
    
    XMOS_MAKE_PATH ?= ../..
    -include $(XMOS_MAKE_PATH)/xcommon/module_xcommon/build/Makefile.common
    
     
    
     
    
     
    
    
    #1511

    prasanna

    Found a stray uart.xscope file in one of the uart modules. Removed it and everything works now. Is there any documentation on .xscope files and how they register scopes? How is it different from xscope_register in the main function call?

     

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.