Debug to stop at main and other breakpoints unresolved
Posted: Mon Nov 14, 2016 10:23 pm
I run my code on a startKIT.
A. If I set a breakpoint on main() in file main.xc it says "Unresolved breakpoint" there when it runs, but the file shows up fine. Also, the code starts and runs and prints to the console etc.
B. If I do "Run : Debug Configurations : Stop on startup at: main" then it says "No source available for "main() ".
C. It actually says "Unresolved breakpoint" on any line I try to stop it on...
I don't know when this happened, as I have been away from the coding for a while. I then used 14.1.0 but now Community_14.2.3. I used to have main in the project file _Aquarium.xc but then I moved it into the new main.xc. Before this I called it Aquarium.xe, and I have tried to make new and tried to import and to drag and drop. But the descriptions A, B, C above go for all.
Debugging without breakpoints I can't. It seems to behave like it only "runs"(?)
I think I have ok config.xscope and STARTKIT.xn, but I have no xscope.xmt.
I have JRE 1.8.0_101 and OS X 10.11.6
My makefile:
TARGET = STARTKIT
APP_NAME = _Aquarium
USED_MODULES = lib_startkit_support module_i2c_master module_random
XCC_FLAGS = -O2 -g -report -fxscope -save-temps
XCORE_ARM_PROJECT = 0
VERBOSE = 0
XMOS_MAKE_PATH ?= ../..
-include $(XMOS_MAKE_PATH)/xcommon/module_xcommon/build/Makefile.common
ENABLE_STAGED_BUILD=0
Build log:
21:45:42 **** Build of configuration Default for project _Aquarium ****
xmake CONFIG=Default all
Checking build modules
Using build modules: lib_startkit_support(2.0.0) module_i2c_master module_random
Creating dependencies for globl_bug_fix.S
Creating dependencies for random.xc
Creating dependencies for i2c-mm.xc
Creating dependencies for startkit_slider.xc
Creating dependencies for startkit_gpio.xc
Creating dependencies for startkit_adc.xc
Creating dependencies for slider.xc
Creating dependencies for capsens.xc
Creating dependencies for module_cancelable_delay.xc
Creating dependencies for main.xc
Creating dependencies for lib_startKIT_adc_client.xc
Creating dependencies for i2c_internal.xc
Creating dependencies for i2c_external.xc
Creating dependencies for button_press.xc
Creating dependencies for adafruit_display_ssd1306_128x32_i2c.xc
Creating dependencies for _Aquarium.xc
Creating dependencies for random_init.c
Creating dependencies for core_graphics_adafruit_GFX.c
Compiling core_graphics_adafruit_GFX.c
Compiling random_init.c
Compiling _Aquarium.xc
Compiling adafruit_display_ssd1306_128x32_i2c.xc
Compiling button_press.xc
Compiling i2c_external.xc
Compiling i2c_internal.xc
Compiling lib_startKIT_adc_client.xc
Compiling main.xc
Compiling module_cancelable_delay.xc
Compiling capsens.xc
Compiling slider.xc
Compiling startkit_adc.xc
Compiling startkit_gpio.xc
Compiling startkit_slider.xc
Compiling i2c-mm.xc
Compiling random.xc
Compiling globl_bug_fix.S
Creating _Aquarium.xe
Constraint check for tile[0]:
Cores available: 8, used: 4 . OKAY
Timers available: 10, used: 5 . OKAY
Chanends available: 32, used: 15 . OKAY
Memory available: 65536, used: 34664 . OKAY
(Stack: 5612, Code: 24846, Data: 4206)
Constraints checks PASSED.
Build Complete
21:45:49 Build Finished (took 6s.684ms)
A. If I set a breakpoint on main() in file main.xc it says "Unresolved breakpoint" there when it runs, but the file shows up fine. Also, the code starts and runs and prints to the console etc.
B. If I do "Run : Debug Configurations : Stop on startup at: main" then it says "No source available for "main() ".
C. It actually says "Unresolved breakpoint" on any line I try to stop it on...
I don't know when this happened, as I have been away from the coding for a while. I then used 14.1.0 but now Community_14.2.3. I used to have main in the project file _Aquarium.xc but then I moved it into the new main.xc. Before this I called it Aquarium.xe, and I have tried to make new and tried to import and to drag and drop. But the descriptions A, B, C above go for all.
Debugging without breakpoints I can't. It seems to behave like it only "runs"(?)
I think I have ok config.xscope and STARTKIT.xn, but I have no xscope.xmt.
I have JRE 1.8.0_101 and OS X 10.11.6
My makefile:
TARGET = STARTKIT
APP_NAME = _Aquarium
USED_MODULES = lib_startkit_support module_i2c_master module_random
XCC_FLAGS = -O2 -g -report -fxscope -save-temps
XCORE_ARM_PROJECT = 0
VERBOSE = 0
XMOS_MAKE_PATH ?= ../..
-include $(XMOS_MAKE_PATH)/xcommon/module_xcommon/build/Makefile.common
ENABLE_STAGED_BUILD=0
Build log:
21:45:42 **** Build of configuration Default for project _Aquarium ****
xmake CONFIG=Default all
Checking build modules
Using build modules: lib_startkit_support(2.0.0) module_i2c_master module_random
Creating dependencies for globl_bug_fix.S
Creating dependencies for random.xc
Creating dependencies for i2c-mm.xc
Creating dependencies for startkit_slider.xc
Creating dependencies for startkit_gpio.xc
Creating dependencies for startkit_adc.xc
Creating dependencies for slider.xc
Creating dependencies for capsens.xc
Creating dependencies for module_cancelable_delay.xc
Creating dependencies for main.xc
Creating dependencies for lib_startKIT_adc_client.xc
Creating dependencies for i2c_internal.xc
Creating dependencies for i2c_external.xc
Creating dependencies for button_press.xc
Creating dependencies for adafruit_display_ssd1306_128x32_i2c.xc
Creating dependencies for _Aquarium.xc
Creating dependencies for random_init.c
Creating dependencies for core_graphics_adafruit_GFX.c
Compiling core_graphics_adafruit_GFX.c
Compiling random_init.c
Compiling _Aquarium.xc
Compiling adafruit_display_ssd1306_128x32_i2c.xc
Compiling button_press.xc
Compiling i2c_external.xc
Compiling i2c_internal.xc
Compiling lib_startKIT_adc_client.xc
Compiling main.xc
Compiling module_cancelable_delay.xc
Compiling capsens.xc
Compiling slider.xc
Compiling startkit_adc.xc
Compiling startkit_gpio.xc
Compiling startkit_slider.xc
Compiling i2c-mm.xc
Compiling random.xc
Compiling globl_bug_fix.S
Creating _Aquarium.xe
Constraint check for tile[0]:
Cores available: 8, used: 4 . OKAY
Timers available: 10, used: 5 . OKAY
Chanends available: 32, used: 15 . OKAY
Memory available: 65536, used: 34664 . OKAY
(Stack: 5612, Code: 24846, Data: 4206)
Constraints checks PASSED.
Build Complete
21:45:49 Build Finished (took 6s.684ms)