Segger nordic version

From Wiki at Neela Nurseries
Revision as of 22:40, 24 September 2021 by Ted (talk | contribs)
Jump to: navigation, search


(1)

Path to firmware executables built by Segger directed toolchain:

/home/ted/projects/zephyr-based/z4-sandbox-kionix-work/00-driver-demo-2/Output/Debug/Exe/kionix-driver-demo.bin


(2)

ted@localhost:~/projects/zephyr-based/z4-sandbox-kionix-work$ find . -name zephyr.h
./zephyr/include/zephyr.h
./zephyr/include/devicetree/zephyr.h
ted@localhost:~/projects/zephyr-based/z4-sandbox-kionix-work$


(3) Missing Zephyr source files during build of first personal Zephyr app opened via SES Nordic's "File > Open nRF Connect SDK Project..." option. Errors of files missing end with strange error which seems like a script variable failing to expand:

 .
 .
 .
119 Building 'zephyr/misc/generated/syscalls_links/include_dt-bindings_pinctrl' from solution 'build' in configuration 'Common'
120 Building 'zephyr/misc/generated/syscalls_links/include_dt-bindings_pwm' from solution 'build' in configuration 'Common'
121 Building 'zephyr/misc/generated/syscalls_links/include_dt-bindings_rdc' from solution 'build' in configuration 'Common'
122 Building 'zephyr/misc/generated/syscalls_links/include_dt-bindings_sensor' from solution 'build' in configuration 'Common'
123 Building 'zephyr/misc/generated/syscalls_links/include_dt-bindings_usb' from solution 'build' in configuration 'Common'
124 Building 'zephyr/misc/generated/syscalls_links/include_mgmt_mcumgr' from solution 'build' in configuration 'Common'
125 Building 'zephyr/misc/generated/syscalls_links/include_posix_arpa' from solution 'build' in configuration 'Common'
126 Building 'zephyr/misc/generated/syscalls_links/include_posix_net' from solution 'build' in configuration 'Common'
127 Building 'zephyr/misc/generated/syscalls_links/include_posix_netinet' from solution 'build' in configuration 'Common'
128 Building 'zephyr/misc/generated/syscalls_links/include_posix_sys' from solution 'build' in configuration 'Common'
129 Building 'zephyr/misc/generated/syscalls_links/include_usb_class' from solution 'build' in configuration 'Common'
130 Building 'zephyr/misc/generated/syscalls_subdirs.trigger' from solution 'build' in configuration 'Common'
131 1> Checking 'zephyr/misc/generated/syscalls_subdirs.trigger'
132 1> 'zephyr/misc/generated/syscalls_subdirs.trigger' is up to date
133 Building 'zephyr/misc/generated/syscalls.json' from solution 'build' in configuration 'Common'
134 1> Checking 'zephyr/misc/generated/syscalls.json'
135 1> zephyr/misc/generated/syscalls.json does not exist.
136 1> Combining 'zephyr/misc/generated/syscalls.json'
137 1> /usr/bin/python3.8 /home/ted/projects/zephyr-based/z4-sandbox-kionix-work/zephyr/scripts/parse_syscalls.py --include /home/ted/projects/zephyr-ba    sed/z4-sandbox-kionix-work/zephyr/include --include /home/ted/projects/zephyr-based/z4-sandbox-kionix-work/zephyr/drivers --include /home/ted/projec    ts/zephyr-based/z4-sandbox-kionix-work/zephyr/subsys/net --json-file /home/ted/projects/zephyr-based/z4-sandbox-kionix-work/00-driver-demo-copy-3/bu    ild_sparkfun_thing_plus_nrf9160/zephyr/misc/generated/syscalls.json --tag-struct-file /home/ted/projects/zephyr-based/z4-sandbox-kionix-work/00-driv    er-demo-copy-3/build_sparkfun_thing_plus_nrf9160/zephyr/misc/generated/struct_tags.json
138 Building 'zephyr/misc/generated/struct_tags.json' from solution 'build' in configuration 'Common'
139 Building 'zephyr/CMakeFiles/parse_syscalls_target' from solution 'build' in configuration 'Common'
140 Building 'zephyr/parse_syscalls_target' from solution 'build' in configuration 'Common'
141 Building 'zephyr/include/generated/driver-validation.h' from solution 'build' in configuration 'Common'
142 1> Checking 'zephyr/include/generated/driver-validation.h'
143 1> zephyr/include/generated/driver-validation.h does not exist.
144 1> Combining 'zephyr/include/generated/driver-validation.h'
145 1> /usr/bin/python3.8 /home/ted/projects/zephyr-based/z4-sandbox-kionix-work/zephyr/scripts/gen_kobject_list.py --validation-output /home/ted/projec    ts/zephyr-based/z4-sandbox-kionix-work/00-driver-demo-copy-3/build_sparkfun_thing_plus_nrf9160/zephyr/include/generated/driver-validation.h --includ    e /home/ted/projects/zephyr-based/z4-sandbox-kionix-work/00-driver-demo-copy-3/build_sparkfun_thing_plus_nrf9160/zephyr/misc/generated/struct_tags.j    son
146 Building 'zephyr/CMakeFiles/driver_validation_h_target' from solution 'build' in configuration 'Common'
147 Building 'zephyr/driver_validation_h_target' from solution 'build' in configuration 'Common'
148 Building 'zephyr/include/generated/kobj-types-enum.h' from solution 'build' in configuration 'Common'
149 1> Checking 'zephyr/include/generated/kobj-types-enum.h'
150 1> zephyr/include/generated/kobj-types-enum.h does not exist.
151 1> Combining 'zephyr/include/generated/kobj-types-enum.h'
152 1> /usr/bin/python3.8 /home/ted/projects/zephyr-based/z4-sandbox-kionix-work/zephyr/scripts/gen_kobject_list.py --kobj-types-output /home/ted/projec    ts/zephyr-based/z4-sandbox-kionix-work/00-driver-demo-copy-3/build_sparkfun_thing_plus_nrf9160/zephyr/include/generated/kobj-types-enum.h --kobj-oty    pe-output /home/ted/projects/zephyr-based/z4-sandbox-kionix-work/00-driver-demo-copy-3/build_sparkfun_thing_plus_nrf9160/zephyr/include/generated/ot    ype-to-str.h --kobj-size-output /home/ted/projects/zephyr-based/z4-sandbox-kionix-work/00-driver-demo-copy-3/build_sparkfun_thing_plus_nrf9160/zephy    r/include/generated/otype-to-size.h --include /home/ted/projects/zephyr-based/z4-sandbox-kionix-work/00-driver-demo-copy-3/build_sparkfun_thing_plus    _nrf9160/zephyr/misc/generated/struct_tags.json
153 Building 'zephyr/include/generated/otype-to-str.h' from solution 'build' in configuration 'Common'
154 Building 'zephyr/CMakeFiles/kobj_types_h_target' from solution 'build' in configuration 'Common'
155 Building 'zephyr/include/generated/otype-to-size.h' from solution 'build' in configuration 'Common'
156 Building 'zephyr/kobj_types_h_target' from solution 'build' in configuration 'Common'
157 Building 'zephyr/include/generated/syscall_list.h' from solution 'build' in configuration 'Common'
158 1> Checking 'zephyr/include/generated/syscall_list.h'
159 1> zephyr/include/generated/syscall_dispatch.c does not exist.
160 1> Combining 'zephyr/include/generated/syscall_list.h'
161 1> /usr/bin/python3.8 /home/ted/projects/zephyr-based/z4-sandbox-kionix-work/zephyr/scripts/gen_syscalls.py --json-file /home/ted/projects/zephyr-ba    sed/z4-sandbox-kionix-work/00-driver-demo-copy-3/build_sparkfun_thing_plus_nrf9160/zephyr/misc/generated/syscalls.json --base-output include/generat    ed/syscalls --syscall-dispatch include/generated/syscall_dispatch.c --syscall-list /home/ted/projects/zephyr-based/z4-sandbox-kionix-work/00-driver-    demo-copy-3/build_sparkfun_thing_plus_nrf9160/zephyr/include/generated/syscall_list.h --split-type k_timeout_t
162 Building 'zephyr/CMakeFiles/syscall_list_h_target' from solution 'build' in configuration 'Common'
163 Building 'zephyr/include/generated/syscall_dispatch.c' from solution 'build' in configuration 'Common'
164 Building 'zephyr/syscall_list_h_target' from solution 'build' in configuration 'Common'
165 Building 'cmake_object_order_depends_target_offsets' from solution 'build' in configuration 'Common'
166 Building 'zephyr/CMakeFiles/offsets.dir/arch/arm/core/offsets/offsets.c.obj' from solution 'build' in configuration 'Common'
167 2> Checking 'offsets.c'
168 2> zephyr/CMakeFiles/offsets.dir/arch/arm/core/offsets/offsets.c.obj does not exist.
169 2> Compiling 'offsets.c'
170 2> /opt/zephyr-sdk-0.12.4/arm-zephyr-eabi/bin/bin/arm-none-eabi-gcc -DBUILD_VERSION=v2.6.0-rc1-ncs1 -DKERNEL -DNRF9160_XXAA -DUSE_PARTITION_MANAGER=    0 -D_FORTIFY_SOURCE=2 -D__PROGRAM_START -D__ZEPHYR__=1 -I/home/ted/projects/zephyr-based/z4-sandbox-kionix-work/zephyr/kernel/include -I/home/ted/pr    ojects/zephyr-based/z4-sandbox-kionix-work/zephyr/arch/arm/include -I/home/ted/projects/zephyr-based/z4-sandbox-kionix-work/zephyr/include -I/home/t    ed/projects/zephyr-based/z4-sandbox-kionix-work/00-driver-demo-copy-3/build_sparkfun_thing_plus_nrf9160/zephyr/include/generated -I/home/ted/project    s/zephyr-based/z4-sandbox-kionix-work/zephyr/soc/arm/nordic_nrf/nrf91 -I/home/ted/projects/zephyr-based/z4-sandbox-kionix-work/nrf/include -I/home/t    ed/projects/zephyr-based/z4-sandbox-kionix-work/kionix-drivers/drivers -I/home/ted/projects/zephyr-based/z4-sandbox-kionix-work/kionix-drivers/drive    rs/kionix/kx132-1211 -I/home/ted/projects/zephyr-based/z4-sandbox-kionix-work/modules/hal/cmsis/CMSIS/Core/Include -I/home/ted/projects/zephyr-based    /z4-sandbox-kionix-work/modules/hal/nordic/nrfx -I/home/ted/projects/zephyr-based/z4-sandbox-kionix-work/modules/hal/nordic/nrfx/drivers/include -I/    home/ted/projects/zephyr-based/z4-sandbox-kionix-work/modules/hal/nordic/nrfx/mdk -I/home/ted/projects/zephyr-based/z4-sandbox-kionix-work/zephyr/mo    dules/hal_nordic/nrfx/. -isystem /home/ted/projects/zephyr-based/z4-sandbox-kionix-work/zephyr/lib/libc/minimal/include -isystem /opt/zephyr-sdk-0.1    2.4/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/10.2.0/include -isystem /opt/zephyr-sdk-0.12.4/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/10.    2.0/include-fixed -isystem /home/ted/projects/zephyr-based/z4-sandbox-kionix-work/nrfxlib/crypto/nrf_cc310_platform/include -Os -imacros /home/ted/p    rojects/zephyr-based/z4-sandbox-kionix-work/00-driver-demo-copy-3/build_sparkfun_thing_plus_nrf9160/zephyr/include/generated/autoconf.h -ffreestandi    ng -fno-common -g -fdiagnostics-color=always -mcpu=cortex-m33 -mthumb -mabi=aapcs -imacros /home/ted/projects/zephyr-based/z4-sandbox-kionix-work/ze    phyr/include/toolchain/zephyr_stdint.h -Wall -Wformat -Wformat-security -Wno-format-zero-length -Wno-main -Wno-pointer-sign -Wpointer-arith -Wexpans    ion-to-defined -Wno-address-of-packed-member -Wno-unused-but-set-variable -Werror=implicit-int -fno-asynchronous-unwind-tables -fno-pie -fno-pic -fn    o-strict-overflow -fno-reorder-functions -fno-defer-pop -fmacro-prefix-map=/home/ted/projects/zephyr-based/z4-sandbox-kionix-work/00-driver-demo-cop    y-3=CMAKE_SOURCE_DIR -fmacro-prefix-map=/home/ted/projects/zephyr-based/z4-sandbox-kionix-work/zephyr=ZEPHYR_BASE -fmacro-prefix-map=/home/ted/proje    cts/zephyr-based/z4-sandbox-kionix-work=WEST_TOPDIR -ffunction-sections -fdata-sections -std=c99 -nostdinc -MD -MF /home/ted/projects/zephyr-based/z    4-sandbox-kionix-work/00-driver-demo-copy-3/build_sparkfun_thing_plus_nrf9160/zephyr/CMakeFiles/offsets.dir/arch/arm/core/offsets/offsets.c.obj.d -f    no-diagnostics-show-caret -o zephyr/CMakeFiles/offsets.dir/arch/arm/core/offsets/offsets.c.obj -c /home/ted/projects/zephyr-based/z4-sandbox-kionix-    work/zephyr/arch/arm/core/offsets/offsets.c
171 Build failed

A search for source file 'offsets.c' in the ncs/nrf software developement kit gives:

ted@localhost:~/projects/embedded/ncs$ find . -name offsets.c
./v1.4.1/zephyr/arch/x86/core/offsets/offsets.c
./v1.4.1/zephyr/arch/posix/core/offsets/offsets.c
./v1.4.1/zephyr/arch/arm/core/offsets/offsets.c
./v1.4.1/zephyr/arch/riscv/core/offsets/offsets.c
./v1.4.1/zephyr/arch/xtensa/core/offsets/offsets.c
./v1.4.1/zephyr/arch/arc/core/offsets/offsets.c
./v1.4.1/zephyr/arch/nios2/core/offsets/offsets.c
./zephyr/arch/x86/core/offsets/offsets.c
./zephyr/arch/posix/core/offsets/offsets.c
./zephyr/arch/arm/core/offsets/offsets.c
./zephyr/arch/arm64/core/offsets/offsets.c
./zephyr/arch/riscv/core/offsets/offsets.c
./zephyr/arch/xtensa/core/offsets/offsets.c
./zephyr/arch/arc/core/offsets/offsets.c
./zephyr/arch/nios2/core/offsets/offsets.c
./zephyr/arch/sparc/core/offsets/offsets.c
ted@localhost:~/projects/embedded/ncs$

In SES top menu "Tools > Options" changing value of "Zephyr base" from "$HOME/zephyrproject/zephyr" to "$HOME/projects/zephyr-based/z4-sandbox-kionix-work/zephyr".