I use the SEGGER Embedded Studio for ARM IDE to build a clean build directory. From the IDE I can build the project and it completes successfully.
So I then take the same clean build folder and try to build it from command line. From the build folder I run...
C:\ncs\v1.2.0\toolchain\segger_embedded_studio\bin\emBuild.exe -rebuild -config Common C:\720-0058-01\trunk\design\build_common\build.emProject
[175/179] Generating linker_pass_final.cmd
[176/179] Generating isr_tables.c
[177/179] Building C object zephyr/CMakeFiles/zephyr_final.dir/misc/empty_file.c.obj
[178/179] Building C object zephyr/CMakeFiles/zephyr_final.dir/isr_tables.c.obj
[179/179] Linking C executable zephyr\zephyr.elf
Traceback (most recent call last):
File "C:/ncs/v1.2.0/zephyr/scripts/gen_offset_header.py", line 79, in <module>
input_file = open(args.input, 'rb')
FileNotFoundError: [Errno 2] No such file or directory: 'C:/720-0058-01/trunk/design/build_nrf9160_common/zephyr/CMakeFiles/offsets.dir/arch/arm/core/offsets/offsets.c.obj'
There were 1 build errors
The build folder that was generated has a folder called zephyr but nothing was built in there so no files exist but yet other things were built. I'm not sure what I'm missing and why the IDE builds the zephyr folder but the command line doesn't.