nRF SDK 1.9.1
1. open tool chain manager
2. open bash for sdk 1.9.1
3. cd zephyr/samples/hello_world
4. west build -b nrf5340dk_nrf5340_cpuapp -p ---> build without any error
5. west build -t rom_report
and we get the error
-- west build: running target rom_report
[0/1] cmd.exe /C "cd /D C:\ncs\v1.9.1\zephyr\samples\hello_world\build && C:\code\v1.9.1\toolchain\opt\bin\python.exe C:/ncs/v1.9.1/zephyr/scripts/footprint/size_report -k C:/ncs/v1.9.1/zephyr/samples/hello_world/build/zephyr/zephyr.elf -z C:/ncs/v1.9.1/zephyr -o C:/ncs/v1.9.1/zephyr/samples/hello_world/build --workspace=C:/ncs/v1.9.1 -d 99 rom"
Path Size %
==============================================================================================================
Root 22520 100.00%
FAILED: zephyr/cmake/reports/CMakeFiles/rom_report
cmd.exe /C "cd /D C:\ncs\v1.9.1\zephyr\samples\hello_world\build && C:\code\v1.9.1\toolchain\opt\bin\python.exe C:/ncs/v1.9.1/zephyr/scripts/footprint/size_report -k C:/ncs/v1.9.1/zephyr/samples/hello_world/build/zephyr/zephyr.elf -z C:/ncs/v1.9.1/zephyr -o C:/ncs/v1.9.1/zephyr/samples/hello_world/build --workspace=C:/ncs/v1.9.1 -d 99 rom"
ninja: build stopped: subcommand failed.
FATAL ERROR: command exited with status 1: 'C:\ncs\v1.9.1\toolchain\opt\bin\cmake.EXE' --build 'C:\ncs\v1.9.1\zephyr\samples\hello_world\build' --target rom_report
6. west build -t ram_report
-- west build: running target ram_report
[0/1] cmd.exe /C "cd /D C:\ncs\v1.9.1\zephyr\samples\hello_world\build && C:\code\v1.9.1\toolchain\opt\bin\python.exe C:/ncs/v1.9.1/zephyr/scripts/footprint/size_report -k C:/ncs/v1.9.1/zephyr/samples/hello_world/build/zephyr/zephyr.elf -z C:/ncs/v1.9.1/zephyr -o C:/ncs/v1.9.1/zephyr/samples/hello_world/build --workspace=C:/ncs/v1.9.1 -d 99 ram"
Path Size %
==============================================================================================================
Root 6748 100.00%
FAILED: zephyr/cmake/reports/CMakeFiles/ram_report
cmd.exe /C "cd /D C:\ncs\v1.9.1\zephyr\samples\hello_world\build && C:\code\v1.9.1\toolchain\opt\bin\python.exe C:/ncs/v1.9.1/zephyr/scripts/footprint/size_report -k C:/ncs/v1.9.1/zephyr/samples/hello_world/build/zephyr/zephyr.elf -z C:/ncs/v1.9.1/zephyr -o C:/ncs/v1.9.1/zephyr/samples/hello_world/build --workspace=C:/ncs/v1.9.1 -d 99 ram"
ninja: build stopped: subcommand failed.
FATAL ERROR: command exited with status 1: 'C:\ncs\v1.9.1\toolchain\opt\bin\cmake.EXE' --build 'C:\ncs\v1.9.1\zephyr\samples\hello_world\build' --target ram_report
I have already looked at https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.9.1/zephyr/guides/optimizations/tools.html for ram_report AND rom_report