Arm Mbed OS support forum

Debbuger OpenOCD debbuger "maje -j" error

Hi all,

after setup openOCD, and debug profile and this tutorial for Eclipse Debug + with this settings

I have this error

16:11:08 **** Incremental Build of configuration Default for project mbed-os-example-mbed5-blinky ****
make -j 
"Compile: main.cpp"
"Compile: RTX_Config.c"
"Compile: cmsis_os1.c"
"Assemble: irq_cm4f.S"
"Compile: rtx_delay.c"
"Compile: rtx_evflags.c"
arm-none-eabi-g++: error: library: No such file or directory
arm-none-eabi-g++: error: folder/mbed_os-trainy/mbed-os: No such file or directory
arm-none-eabi-gcc: error: library: No such file or directory
arm-none-eabi-gcc: error: folder/mbed_os-trainy/mbed-os: No such file or directory
arm-none-eabi-gcc: error: library: No such file or directory
arm-none-eabi-gcc: error: folder/mbed_os-trainy/mbed-os: No such file or directory
arm-none-eabi-gcc: error: library: No such file or directory
arm-none-eabi-gcc: error: folder\mbed_os-trainy\mbed-os: No such file or directory
"Compile: rtx_evr.c"
arm-none-eabi-gcc: error: library: No such file or directory
arm-none-eabi-gcc: error: folder/mbed_os-trainy/mbed-os: No such file or directory
make[1]: *** [C:/Users/kravcikm/Documents/mbed folder/mbed_os-trainy/Makefile:1965: main.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: *** [C:/Users/kravcikm/Documents/mbed folder/mbed_os-trainy/Makefile:1960: mbed-os/cmsis/CMSIS_5/CMSIS/RTOS2/RTX/Config/RTX_Config.o] Error 1
make[1]: *** [C:/Users/kravcikm/Documents/mbed folder/mbed_os-trainy/Makefile:1960: mbed-os/cmsis/CMSIS_5/CMSIS/RTOS2/RTX/Library/cmsis_os1.o] Error 1
make[1]: *** [C:/Users/kravcikm/Documents/mbed folder/mbed_os-trainy/Makefile:1953: mbed-os/cmsis/CMSIS_5/CMSIS/RTOS2/RTX/Source/TOOLCHAIN_GCC/TARGET_RTOS_M4_M7/irq_cm4f.o] Error 1
arm-none-eabi-gcc: error: library: No such file or directory
arm-none-eabi-gcc: error: folder/mbed_os-trainy/mbed-os: No such file or directory
make[1]: *** [C:/Users/kravcikm/Documents/mbed folder/mbed_os-trainy/Makefile:1960: mbed-os/cmsis/CMSIS_5/CMSIS/RTOS2/RTX/Source/rtx_delay.o] Error 1
make[1]: *** [C:/Users/kravcikm/Documents/mbed folder/mbed_os-trainy/Makefile:1960: mbed-os/cmsis/CMSIS_5/CMSIS/RTOS2/RTX/Source/rtx_evflags.o] Error 1
arm-none-eabi-gcc: error: library: No such file or directory
arm-none-eabi-gcc: error: folder/mbed_os-trainy/mbed-os: No such file or directory
make[1]: *** [C:/Users/kravcikm/Documents/mbed folder/mbed_os-trainy/Makefile:1960: mbed-os/cmsis/CMSIS_5/CMSIS/RTOS2/RTX/Source/rtx_evr.o] Error 1
make: *** [Makefile:26: all] Error 2
"make -j" terminated with exit code 2. Build might be incomplete.

16:11:09 Build Failed. 9 errors, 0 warnings. (took 1s.333ms)

I can’t understand why it is use make -j, what is obliviously problem.

Shall I change something? build woks perfect with mbed CLI. Why make is here, i dont know.

Thanks for any ideas.

Hello Michal,

Shall I change something? build woks perfect with mbed CLI. Why make is here, i dont know.

The Eclipse IDE is trying to rebuild your program with the make program before starting the debugging. You can prevent that by turning the Disable auto build on (right-bottom corner on first screen-shot in your post).

Hi Zoltan,

“Disable Auto Build” helps until next error :confused:

Console return this when I run debugger:

xPack OpenOCD x86_64 Open On-Chip Debugger 0.11.0+dev (2021-10-16-21:19)
Licensed under GNU GPL v2
For bug reports, read
	http://openocd.org/doc/doxygen/bugs.html
DEPRECATED! use 'adapter driver' not 'interface'
Info : The selected transport took over low-level target control. The results might differ compared to plain JTAG/SWD
Info : DEPRECATED target event trace-config; use TPIU events {pre,post}-{enable,disable}
srst_only separate srst_nogate srst_open_drain connect_deassert_srst

DEPRECATED! use 'adapter driver' not 'interface'
Warn : Interface already configured, ignoring
Error: already specified hl_layout stlink
Info : clock speed 500 kHz
Info : STLINK V2J37M26 (API v2) VID:PID 0483:374B
Info : Target voltage: 3.258039
Error: init mode failed (unable to connect to the target)

I tried to use various stlink versions, but “stlink.cfg” throw less errors.

My setup:
NUCLEO_L432KC
GCC_ARM
image

image

Hi,

I just would like to write that this problem was magicaly disappier when I deleted Debbug Configuration and Creatit again. Maybe it will be helpful for somene later.