This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

How to debug enabling secure bootloader

Hello,

We are trying to build asset tracker based on a modification of board nrf/boards/arm/nrf9160_pca20035.

Every is good until we tried to enable secure bootloader option on project configure. There is "solution load command failed".

-----------------------------------

Running Partition Manager...
Traceback (most recent call last):
File "C:/workspace/pebble/nrf/cmake/../scripts/partition_manager.py", line 584, in <module>
main()
File "C:/workspace/pebble/nrf/cmake/../scripts/partition_manager.py", line 370, in main
pm_config = get_pm_config(dict(zip(args.input_names, args.input_files)), args.flash_size, static_config)
File "C:/workspace/pebble/nrf/cmake/../scripts/partition_manager.py", line 311, in get_pm_config
solution, sub_partitions = resolve(to_resolve)
File "C:/workspace/pebble/nrf/cmake/../scripts/partition_manager.py", line 165, in resolve
sub_partitions = extract_sub_partitions(reqs)
File "C:/workspace/pebble/nrf/cmake/../scripts/partition_manager.py", line 140, in extract_sub_partitions
if 'span' in reqs[part].keys():
KeyError: 's0_pad'
CMake Error at C:/workspace/pebble/nrf/cmake/partition_manager.cmake:75 (message):
Partition Manager failed, aborting. Command:
C:/Python37/python.exe;C:/workspace/pebble/nrf/cmake/../scripts/partition_manager.py;--input-names;spm;b0;app;--input-files;C:/workspace/pebble/nrf/applications/asset_tracker/build_nrf9160_pca20035ns/spm/zephyr/include/generated/pm.yml;C:/workspace/pebble/nrf/applications/asset_tracker/build_nrf9160_pca20035ns/b0/zephyr/include/generated/pm.yml;C:/workspace/pebble/nrf/applications/asset_tracker/build_nrf9160_pca20035ns/zephyr/include/generated/pm.yml;--flash-size;1048576;--output;C:/workspace/pebble/nrf/applications/asset_tracker/build_nrf9160_pca20035ns/partitions.yml
Call Stack (most recent call first):
C:/workspace/pebble/zephyr/cmake/app/boilerplate.cmake:598 (include)
CMakeLists.txt:11 (include)


-- Configuring incomplete, errors occurred!
See also "C:/workspace/pebble/nrf/applications/asset_tracker/build_nrf9160_pca20035ns/CMakeFiles/CMakeOutput.log".
See also "C:/workspace/pebble/nrf/applications/asset_tracker/build_nrf9160_pca20035ns/CMakeFiles/CMakeError.log".
Project load failed
Reported error: solution load command failed (1)

-------------------------

And in the CMakeOUtput.log, there are several undefined reference to '_exit' error , such as:

-----------------------

Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
Compiler: C:/gnuarmemb/bin/arm-none-eabi-gcc.exe 
Build flags: 
Id flags:  

The output was:
1
c:/gnuarmemb/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/lib\libc.a(lib_a-exit.o): In function `exit':
exit.c:(.text.exit+0x2c): undefined reference to `_exit'
collect2.exeerror: ld returned 1 exit status
-------------------------------------

What could be the issue? How can I debug it?

Thanks

Parents Reply Children
No Data
Related