Hi,
I followed this guide to use puncover but failed:
https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/develop/optimizations/tools.html
I am using Mac, added puncover to the PATH, but still got ninja error.
What possibly goes wrong?
Thanks
---------
$ west build -t puncover
-- west build: running target puncover
ninja: error: unknown target 'puncover'
FATAL ERROR: command exited with status 1: /opt/nordic/ncs/v1.9.1/toolchain/bin/cmake --build /Users/administrator/nRF/central_uart/build --target puncover
---------
$ which puncover
/Users/administrator/Library/Python/3.9/bin/puncover
---------
$ echo $PATH
/Users/administrator/Library/Python/3.9/bin:/opt/nordic/ncs/v1.9.1/toolchain/bin:/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
---------
$ west build -t usage
-- west build: running target usage
[1/1] cd /Users/administrator/nRF/central_uart/bui...n/ninja -P /opt/nordic/ncs/v1.9.1/zephyr/cmake/usage/usage.cmake
Cleaning targets:
clean - Remove most generated files but keep configuration and backup files
pristine - Remove all files in the build directory
Kconfig targets:
menuconfig - Update .config using a console-based interface
guiconfig - Update .config using a graphical interface
Other generic targets:
all - Build a zephyr application
run - Build a zephyr application and run it if the board supports emulation
flash - Run "west flash"
debug - Run "west debug"
debugserver - Run "west debugserver" (or start GDB server on port 1234 for QEMU targets)
attach - Run "west attach"
ram_report - Build and create RAM usage report
rom_report - Build and create ROM usage report
boards - Display supported boards
shields - Display supported shields
usage - Display this text
help - Display all build system targets
Build flags:
ninja -v [targets] verbose build
cmake -DW=n Enable extra gcc checks, n=1,2,3 where
1: warnings which may be relevant and do not occur too often
2: warnings which occur quite often but may still be relevant
3: more obscure warnings, can most likely be ignored
Multiple levels can be combined with W=12 or W=123
---------