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

Error during build of nRF9160 samples

Hi!

I'm having issues compiling the nRF9160 samples in the SDK. I've followed the Getting Started Assistant. I'm currently on the master branch. When I check out the v3 tag it doesn't have the west.yml file, so I can't do `west update`.

Anyways, my build stops at `GEN_ABSOLUTE_SYM` in `gen_offset.h`. I get the same build error for the spm sample as well as the at_client sample.

Complete output log from SES:

Building ‘zephyr/include/generated/driver-validation.h’ from solution ‘build’ in configuration ‘Common’
Building ‘zephyr/CMakeFiles/driver_validation_h_target’ from solution ‘build’ in configuration ‘Common’
Building ‘zephyr/driver_validation_h_target’ from solution ‘build’ in configuration ‘Common’
Building ‘zephyr/include/generated/kobj-types-enum.h’ from solution ‘build’ in configuration ‘Common’
Building ‘zephyr/include/generated/otype-to-str.h’ from solution ‘build’ in configuration ‘Common’
Building ‘zephyr/CMakeFiles/kobj_types_h_target’ from solution ‘build’ in configuration ‘Common’
Building ‘zephyr/kobj_types_h_target’ from solution ‘build’ in configuration ‘Common’
Building ‘zephyr/misc/generated/syscalls.json’ from solution ‘build’ in configuration ‘Common’
1> Combining ‘zephyr/misc/generated/syscalls.json’
Building ‘zephyr/include/generated/syscall_list.h’ from solution ‘build’ in configuration ‘Common’
Building ‘zephyr/CMakeFiles/syscall_list_h_target’ from solution ‘build’ in configuration ‘Common’
Building ‘zephyr/include/generated/syscall_dispatch.c’ from solution ‘build’ in configuration ‘Common’
Building ‘zephyr/syscall_list_h_target’ from solution ‘build’ in configuration ‘Common’
Building ‘zephyr/include/generated/syscall_macros.h’ from solution ‘build’ in configuration ‘Common’
Building ‘zephyr/CMakeFiles/syscall_macros_h_target’ from solution ‘build’ in configuration ‘Common’
Building ‘zephyr/syscall_macros_h_target’ from solution ‘build’ in configuration ‘Common’
Building ‘cmake_object_order_depends_target_offsets’ from solution ‘build’ in configuration ‘Common’
Building ‘zephyr/offsets’ from solution ‘build’ in configuration ‘Common’
1> Compiling ‘offsets.c’
1> In file included from C:/Dev/nrfconnectsdk/zephyr/include/toolchain.h:21:0,
1>                  from C:/Dev/nrfconnectsdk/zephyr/kernel/include/gen_offset.h:74,
1>                  from C:/Dev/nrfconnectsdk/zephyr/arch/arm/core/offsets/offsets.c:25:
1> C:/Dev/nrfconnectsdk/zephyr/include/toolchain/gcc.h:322:1: warning: multi-line comment [-Wcomment]
1> In file included from C:/Dev/nrfconnectsdk/zephyr/arch/arm/core/offsets/offsets.c:25:0:
1> C:/Dev/nrfconnectsdk/zephyr/kernel/include/gen_offset.h:80:2: warning: implicit declaration of function 'GEN_ABSOLUTE_SYM'; did you mean 'GEN_OFFSET_SYM'? [-Wimplicit-function-declaration]
1> C:/Dev/nrfconnectsdk/zephyr/kernel/include/kernel_offsets.h:21:1: note: in expansion of macro 'GEN_OFFSET_SYM'
1> C:/Dev/nrfconnectsdk/zephyr/kernel/include/gen_offset.h:80:19: error: '___kernel_t_current_OFFSET' undeclared (first use in this function)
1> C:/Dev/nrfconnectsdk/zephyr/kernel/include/kernel_offsets.h:21:1: note: in expansion of macro 'GEN_OFFSET_SYM'
1> C:/Dev/nrfconnectsdk/zephyr/kernel/include/gen_offset.h:80:19: note: each undeclared identifier is reported only once for each function it appears in
1> C:/Dev/nrfconnectsdk/zephyr/kernel/include/kernel_offsets.h:21:1: note: in expansion of macro 'GEN_OFFSET_SYM'
1> C:/Dev/nrfconnectsdk/zephyr/kernel/include/gen_offset.h:80:19: error: '___kernel_t_nested_OFFSET' undeclared (first use in this function); did you mean '___kernel_t_current_OFFSET'?
1> C:/Dev/nrfconnectsdk/zephyr/kernel/include/kernel_offsets.h:22:1: note: in expansion of macro 'GEN_OFFSET_SYM'
1> C:/Dev/nrfconnectsdk/zephyr/kernel/include/gen_offset.h:80:19: error: '___kernel_t_irq_stack_OFFSET' undeclared (first use in this function); did you mean '___kernel_t_nested_OFFSET'?
1> C:/Dev/nrfconnectsdk/zephyr/kernel/include/kernel_offsets.h:23:1: note: in expansion of macro 'GEN_OFFSET_SYM'
1> C:/Dev/nrfconnectsdk/zephyr/kernel/include/gen_offset.h:80:19: error: '___cpu_t_current_OFFSET' undeclared (first use in this function); did you mean '___kernel_t_current_OFFSET'?
1> C:/Dev/nrfconnectsdk/zephyr/kernel/include/kernel_offsets.h:26:1: note: in expansion of macro 'GEN_OFFSET_SYM'
1> C:/Dev/nrfconnectsdk/zephyr/kernel/include/gen_offset.h:80:19: error: '___cpu_t_nested_OFFSET' undeclared (first use in this function); did you mean '___cpu_t_current_OFFSET'?
1> C:/Dev/nrfconnectsdk/zephyr/kernel/include/kernel_offsets.h:27:1: note: in expansion of macro 'GEN_OFFSET_SYM'
1> C:/Dev/nrfconnectsdk/zephyr/kernel/include/gen_offset.h:80:19: error: '___cpu_t_irq_stack_OFFSET' undeclared (first use in this function); did you mean '___kernel_t_irq_stack_OFFSET'?
1> C:/Dev/nrfconnectsdk/zephyr/kernel/include/kernel_offsets.h:28:1: note: in expansion of macro 'GEN_OFFSET_SYM'
1> C:/Dev/nrfconnectsdk/zephyr/kernel/include/gen_offset.h:80:19: error: '___kernel_t_idle_OFFSET' undeclared (first use in this function); did you mean '___kernel_t_nested_OFFSET'?
1> C:/Dev/nrfconnectsdk/zephyr/kernel/include/kernel_offsets.h:35:1: note: in expansion of macro 'GEN_OFFSET_SYM'
1> C:/Dev/nrfconnectsdk/zephyr/kernel/include/gen_offset.h:80:19: error: '___kernel_t_ready_q_OFFSET' undeclared (first use in this function); did you mean '___kernel_t_idle_OFFSET'?
1> C:/Dev/nrfconnectsdk/zephyr/kernel/include/kernel_offsets.h:38:1: note: in expansion of macro 'GEN_OFFSET_SYM'
1> C:/Dev/nrfconnectsdk/zephyr/kernel/include/gen_offset.h:80:19: error: '___kernel_t_arch_OFFSET' undeclared (first use in this function); did you mean '___kernel_t_idle_OFFSET'?
1> C:/Dev/nrfconnectsdk/zephyr/kernel/include/kernel_offsets.h:39:1: note: in expansion of macro 'GEN_OFFSET_SYM'
1> C:/Dev/nrfconnectsdk/zephyr/kernel/include/gen_offset.h:80:19: error: '___ready_q_t_cache_OFFSET' undeclared (first use in this function); did you mean '___kernel_t_arch_OFFSET'?
1> C:/Dev/nrfconnectsdk/zephyr/kernel/include/kernel_offsets.h:42:1: note: in expansion of macro 'GEN_OFFSET_SYM'
1> In file included from C:/Dev/nrfconnectsdk/zephyr/arch/arm/core/offsets/offsets.c:27:0:
1> C:/Dev/nrfconnectsdk/zephyr/kernel/include/kernel_offsets.h:49:18: error: '_STRUCT_KERNEL_SIZE' undeclared (first use in this function)
1> In file included from C:/Dev/nrfconnectsdk/zephyr/arch/arm/core/offsets/offsets.c:25:0:
1> C:/Dev/nrfconnectsdk/zephyr/kernel/include/gen_offset.h:80:19: error: '___thread_base_t_user_options_OFFSET' undeclared (first use in this function)
1> C:/Dev/nrfconnectsdk/zephyr/kernel/include/kernel_offsets.h:51:1: note: in expansion of macro 'GEN_OFFSET_SYM'
1> C:/Dev/nrfconnectsdk/zephyr/kernel/include/gen_offset.h:80:19: error: '___thread_base_t_thread_state_OFFSET' undeclared (first use in this function); did you mean '___thread_base_t_user_options_OFFSET'?
1> C:/Dev/nrfconnectsdk/zephyr/kernel/include/kernel_offsets.h:52:1: note: in expansion of macro 'GEN_OFFSET_SYM'
1> C:/Dev/nrfconnectsdk/zephyr/kernel/include/gen_offset.h:80:19: error: '___thread_base_t_prio_OFFSET' undeclared (first use in this function); did you mean '___thread_base_t_user_options_OFFSET'?
1> C:/Dev/nrfconnectsdk/zephyr/kernel/include/kernel_offsets.h:53:1: note: in expansion of macro 'GEN_OFFSET_SYM'
1> C:/Dev/nrfconnectsdk/zephyr/kernel/include/gen_offset.h:80:19: error: '___thread_base_t_sched_locked_OFFSET' undeclared (first use in this function); did you mean '___thread_base_t_thread_state_OFFSET'?
1> C:/Dev/nrfconnectsdk/zephyr/kernel/include/kernel_offsets.h:54:1: note: in expansion of macro 'GEN_OFFSET_SYM'
1> C:/Dev/nrfconnectsdk/zephyr/kernel/include/gen_offset.h:80:19: error: '___thread_base_t_preempt_OFFSET' undeclared (first use in this function); did you mean '___thread_base_t_prio_OFFSET'?
1> C:/Dev/nrfconnectsdk/zephyr/kernel/include/kernel_offsets.h:55:1: note: in expansion of macro 'GEN_OFFSET_SYM'
1> C:/Dev/nrfconnectsdk/zephyr/kernel/include/gen_offset.h:80:19: error: '___thread_base_t_swap_data_OFFSET' undeclared (first use in this function); did you mean '___thread_base_t_preempt_OFFSET'?
1> C:/Dev/nrfconnectsdk/zephyr/kernel/include/kernel_offsets.h:56:1: note: in expansion of macro 'GEN_OFFSET_SYM'
1> C:/Dev/nrfconnectsdk/zephyr/kernel/include/gen_offset.h:80:19: error: '___thread_t_base_OFFSET' undeclared (first use in this function); did you mean '___ready_q_t_cache_OFFSET'?
1> C:/Dev/nrfconnectsdk/zephyr/kernel/include/kernel_offsets.h:58:1: note: in expansion of macro 'GEN_OFFSET_SYM'
1> C:/Dev/nrfconnectsdk/zephyr/kernel/include/gen_offset.h:80:19: error: '___thread_t_caller_saved_OFFSET' undeclared (first use in this function); did you mean '___thread_t_base_OFFSET'?
1> C:/Dev/nrfconnectsdk/zephyr/kernel/include/kernel_offsets.h:59:1: note: in expansion of macro 'GEN_OFFSET_SYM'
1> C:/Dev/nrfconnectsdk/zephyr/kernel/include/gen_offset.h:80:19: error: '___thread_t_callee_saved_OFFSET' undeclared (first use in this function); did you mean '___thread_t_caller_saved_OFFSET'?
1> C:/Dev/nrfconnectsdk/zephyr/kernel/include/kernel_offsets.h:60:1: note: in expansion of macro 'GEN_OFFSET_SYM'
1> C:/Dev/nrfconnectsdk/zephyr/kernel/include/gen_offset.h:80:19: error: '___thread_t_arch_OFFSET' undeclared (first use in this function); did you mean '___thread_t_base_OFFSET'?
1> C:/Dev/nrfconnectsdk/zephyr/kernel/include/kernel_offsets.h:61:1: note: in expansion of macro 'GEN_OFFSET_SYM'
1> C:/Dev/nrfconnectsdk/zephyr/kernel/include/gen_offset.h:80:19: error: '___thread_stack_info_t_start_OFFSET' undeclared (first use in this function); did you mean '___thread_t_callee_saved_OFFSET'?
1> C:/Dev/nrfconnectsdk/zephyr/kernel/include/kernel_offsets.h:64:1: note: in expansion of macro 'GEN_OFFSET_SYM'
1> C:/Dev/nrfconnectsdk/zephyr/kernel/include/gen_offset.h:80:19: error: '___thread_stack_info_t_size_OFFSET' undeclared (first use in this function); did you mean '___thread_stack_info_t_start_OFFSET'?
1> C:/Dev/nrfconnectsdk/zephyr/kernel/include/kernel_offsets.h:65:1: note: in expansion of macro 'GEN_OFFSET_SYM'
1> C:/Dev/nrfconnectsdk/zephyr/kernel/include/gen_offset.h:80:19: error: '___thread_t_stack_info_OFFSET' undeclared (first use in this function); did you mean '___thread_stack_info_t_size_OFFSET'?
1> C:/Dev/nrfconnectsdk/zephyr/kernel/include/kernel_offsets.h:67:1: note: in expansion of macro 'GEN_OFFSET_SYM'
1> In file included from C:/Dev/nrfconnectsdk/zephyr/arch/arm/core/offsets/offsets.c:27:0:
1> C:/Dev/nrfconnectsdk/zephyr/kernel/include/kernel_offsets.h:78:18: error: 'K_THREAD_SIZEOF' undeclared (first use in this function); did you mean 'K_THREAD_DEFINE'?
1> C:/Dev/nrfconnectsdk/zephyr/kernel/include/kernel_offsets.h:81:18: error: '_DEVICE_STRUCT_SIZEOF' undeclared (first use in this function); did you mean 'K_THREAD_STACK_SIZEOF'?
1> In file included from C:/Dev/nrfconnectsdk/zephyr/arch/arm/core/offsets/offsets.c:25:0:
1> C:/Dev/nrfconnectsdk/zephyr/kernel/include/gen_offset.h:80:19: error: '___thread_arch_t_basepri_OFFSET' undeclared (first use in this function); did you mean '___thread_t_base_OFFSET'?
1> C:/Dev/nrfconnectsdk/zephyr/arch/arm/core/offsets/offsets.c:29:1: note: in expansion of macro 'GEN_OFFSET_SYM'
1> C:/Dev/nrfconnectsdk/zephyr/kernel/include/gen_offset.h:80:19: error: '___thread_arch_t_swap_return_value_OFFSET' undeclared (first use in this function); did you mean '___thread_arch_t_basepri_OFFSET'?
1> C:/Dev/nrfconnectsdk/zephyr/arch/arm/core/offsets/offsets.c:30:1: note: in expansion of macro 'GEN_OFFSET_SYM'
1> C:/Dev/nrfconnectsdk/zephyr/kernel/include/gen_offset.h:80:19: error: '___esf_t_a1_OFFSET' undeclared (first use in this function); did you mean '___thread_t_arch_OFFSET'?
1> C:/Dev/nrfconnectsdk/zephyr/arch/arm/core/offsets/offsets.c:41:1: note: in expansion of macro 'GEN_OFFSET_SYM'
1> C:/Dev/nrfconnectsdk/zephyr/kernel/include/gen_offset.h:80:19: error: '___esf_t_a2_OFFSET' undeclared (first use in this function); did you mean '___esf_t_a1_OFFSET'?
1> C:/Dev/nrfconnectsdk/zephyr/arch/arm/core/offsets/offsets.c:42:1: note: in expansion of macro 'GEN_OFFSET_SYM'
1> C:/Dev/nrfconnectsdk/zephyr/kernel/include/gen_offset.h:80:19: error: '___esf_t_a3_OFFSET' undeclared (first use in this function); did you mean '___esf_t_a2_OFFSET'?
1> C:/Dev/nrfconnectsdk/zephyr/arch/arm/core/offsets/offsets.c:43:1: note: in expansion of macro 'GEN_OFFSET_SYM'
1> C:/Dev/nrfconnectsdk/zephyr/kernel/include/gen_offset.h:80:19: error: '___esf_t_a4_OFFSET' undeclared (first use in this function); did you mean '___esf_t_a3_OFFSET'?
1> C:/Dev/nrfconnectsdk/zephyr/arch/arm/core/offsets/offsets.c:44:1: note: in expansion of macro 'GEN_OFFSET_SYM'
1> C:/Dev/nrfconnectsdk/zephyr/kernel/include/gen_offset.h:80:19: error: '___esf_t_ip_OFFSET' undeclared (first use in this function); did you mean '___esf_t_a4_OFFSET'?
1> C:/Dev/nrfconnectsdk/zephyr/arch/arm/core/offsets/offsets.c:45:1: note: in expansion of macro 'GEN_OFFSET_SYM'
1> C:/Dev/nrfconnectsdk/zephyr/kernel/include/gen_offset.h:80:19: error: '___esf_t_lr_OFFSET' undeclared (first use in this function); did you mean '___esf_t_ip_OFFSET'?
1> C:/Dev/nrfconnectsdk/zephyr/arch/arm/core/offsets/offsets.c:46:1: note: in expansion of macro 'GEN_OFFSET_SYM'
1> C:/Dev/nrfconnectsdk/zephyr/kernel/include/gen_offset.h:80:19: error: '___esf_t_pc_OFFSET' undeclared (first use in this function); did you mean '___esf_t_lr_OFFSET'?
1> C:/Dev/nrfconnectsdk/zephyr/arch/arm/core/offsets/offsets.c:47:1: note: in expansion of macro 'GEN_OFFSET_SYM'
1> C:/Dev/nrfconnectsdk/zephyr/kernel/include/gen_offset.h:80:19: error: '___esf_t_xpsr_OFFSET' undeclared (first use in this function); did you mean '___esf_t_pc_OFFSET'?
1> C:/Dev/nrfconnectsdk/zephyr/arch/arm/core/offsets/offsets.c:48:1: note: in expansion of macro 'GEN_OFFSET_SYM'
1> C:/Dev/nrfconnectsdk/zephyr/arch/arm/core/offsets/offsets.c:55:18: error: '___esf_t_SIZEOF' undeclared (first use in this function); did you mean 'K_THREAD_SIZEOF'?
1> In file included from C:/Dev/nrfconnectsdk/zephyr/arch/arm/core/offsets/offsets.c:25:0:
1> C:/Dev/nrfconnectsdk/zephyr/kernel/include/gen_offset.h:80:19: error: '___callee_saved_t_v1_OFFSET' undeclared (first use in this function); did you mean '___esf_t_a1_OFFSET'?
1> C:/Dev/nrfconnectsdk/zephyr/arch/arm/core/offsets/offsets.c:57:1: note: in expansion of macro 'GEN_OFFSET_SYM'
1> C:/Dev/nrfconnectsdk/zephyr/kernel/include/gen_offset.h:80:19: error: '___callee_saved_t_v2_OFFSET' undeclared (first use in this function); did you mean '___callee_saved_t_v1_OFFSET'?
1> C:/Dev/nrfconnectsdk/zephyr/arch/arm/core/offsets/offsets.c:58:1: note: in expansion of macro 'GEN_OFFSET_SYM'
1> C:/Dev/nrfconnectsdk/zephyr/kernel/include/gen_offset.h:80:19: error: '___callee_saved_t_v3_OFFSET' undeclared (first use in this function); did you mean '___callee_saved_t_v2_OFFSET'?
1> C:/Dev/nrfconnectsdk/zephyr/arch/arm/core/offsets/offsets.c:59:1: note: in expansion of macro 'GEN_OFFSET_SYM'
1> C:/Dev/nrfconnectsdk/zephyr/kernel/include/gen_offset.h:80:19: error: '___callee_saved_t_v4_OFFSET' undeclared (first use in this function); did you mean '___callee_saved_t_v3_OFFSET'?
1> C:/Dev/nrfconnectsdk/zephyr/arch/arm/core/offsets/offsets.c:60:1: note: in expansion of macro 'GEN_OFFSET_SYM'
1> C:/Dev/nrfconnectsdk/zephyr/kernel/include/gen_offset.h:80:19: error: '___callee_saved_t_v5_OFFSET' undeclared (first use in this function); did you mean '___callee_saved_t_v4_OFFSET'?
1> C:/Dev/nrfconnectsdk/zephyr/arch/arm/core/offsets/offsets.c:61:1: note: in expansion of macro 'GEN_OFFSET_SYM'
1> C:/Dev/nrfconnectsdk/zephyr/kernel/include/gen_offset.h:80:19: error: '___callee_saved_t_v6_OFFSET' undeclared (first use in this function); did you mean '___callee_saved_t_v5_OFFSET'?
1> C:/Dev/nrfconnectsdk/zephyr/arch/arm/core/offsets/offsets.c:62:1: note: in expansion of macro 'GEN_OFFSET_SYM'
1> C:/Dev/nrfconnectsdk/zephyr/kernel/include/gen_offset.h:80:19: error: '___callee_saved_t_v7_OFFSET' undeclared (first use in this function); did you mean '___callee_saved_t_v6_OFFSET'?
1> C:/Dev/nrfconnectsdk/zephyr/arch/arm/core/offsets/offsets.c:63:1: note: in expansion of macro 'GEN_OFFSET_SYM'
1> C:/Dev/nrfconnectsdk/zephyr/kernel/include/gen_offset.h:80:19: error: '___callee_saved_t_v8_OFFSET' undeclared (first use in this function); did you mean '___callee_saved_t_v7_OFFSET'?
1> C:/Dev/nrfconnectsdk/zephyr/arch/arm/core/offsets/offsets.c:64:1: note: in expansion of macro 'GEN_OFFSET_SYM'
1> C:/Dev/nrfconnectsdk/zephyr/kernel/include/gen_offset.h:80:19: error: '___callee_saved_t_psp_OFFSET' undeclared (first use in this function); did you mean '___callee_saved_t_v8_OFFSET'?
1> C:/Dev/nrfconnectsdk/zephyr/arch/arm/core/offsets/offsets.c:65:1: note: in expansion of macro 'GEN_OFFSET_SYM'
1> C:/Dev/nrfconnectsdk/zephyr/arch/arm/core/offsets/offsets.c:69:18: error: '___callee_saved_t_SIZEOF' undeclared (first use in this function); did you mean '___callee_saved_t_psp_OFFSET'?
1> C:/Dev/nrfconnectsdk/zephyr/arch/arm/core/offsets/offsets.c:80:18: error: '_K_THREAD_NO_FLOAT_SIZEOF' undeclared (first use in this function); did you mean 'K_THREAD_STACK_SIZEOF'?
Build failed

Parents
  • Hello, 
     

    I've followed the Getting Started Assistant.

    What version of the Getting Started Assistant are you running? The current version is v0.9.0. When following the steps in the assistant, did you get any errors prior to the issue you have described?

    When I check out the v3 tag it doesn't have the west.yml file, so I can't do `west update`.

    The Getting Started Assistant does have a bug: there are no other branches (other than master) to checkout when following the assistant. 

    After running 

    west init -m https://github.com/NordicPlayground/fw-nrfconnect-nrf

    It should state:

    === West initialized. Now run "west update" in <sourcecode_root>\NCS


    See this thread for more information.

    Kind regards,
    Øyvind

  • Hi!

    I removed my old directory and ran `west init` and `west update` again and I'm now able to build the samples. Thank you!

    However, when I build the `spm` sample and write it to the nRF9160 and also build and download the `coap_client` sample, the old application `at_client` is started on boot.

    I can see in the nRF Connect Programmer that there are two applications in memory, one at 0x00008000 (`coap_client`) and one at 0x00040000 (`at_client` (flashed from a .hex file from this forum)).

    So the `spm` loads the application from 0x00040000, but SES flashes it at 0x00008000. What am I doing wrong?

    I use the board without `_ns` when building `spm` and the board with `_ns` when building `coap_client`.

Reply
  • Hi!

    I removed my old directory and ran `west init` and `west update` again and I'm now able to build the samples. Thank you!

    However, when I build the `spm` sample and write it to the nRF9160 and also build and download the `coap_client` sample, the old application `at_client` is started on boot.

    I can see in the nRF Connect Programmer that there are two applications in memory, one at 0x00008000 (`coap_client`) and one at 0x00040000 (`at_client` (flashed from a .hex file from this forum)).

    So the `spm` loads the application from 0x00040000, but SES flashes it at 0x00008000. What am I doing wrong?

    I use the board without `_ns` when building `spm` and the board with `_ns` when building `coap_client`.

Children
  • Hello again, 

    hag said:
    I removed my old directory and ran `west init` and `west update` again and I'm now able to build the samples. Thank you!

    I'm glad to hear this!  

    hag said:
    So the `spm` loads the application from 0x00040000, but SES flashes it at 0x00008000. What am I doing wrong?

     The latest version of NCS will build both SPM and application in one hex file, in your case SPM + coat_client. Please try to reprogram using nrfjprog:

    nrfjprog.exe --program zephyr.hex --sectorerase -r -f nrf91 --verify

    Note that the .hex file may have the name zephyr.hex or merged.hex. 

    Let me know how that works!

    Kind regards,
    Øyvind

  • Hi again!

    When looking at the zephyr.hex file in the nRF Connect Programmer app, there's only one chunk of data. I'm building with SEGGER Embeded Studio, should the SPM also have been merged using SES or do I have to build in another way? I did also try to program the hex-file with nrfjprog.exe with the same result. An old application located at another memory address was executed on boot.

  • I suggest building another way.  Please follow the instructions given in this link.

    Kind regards,
    Øyvind

  • Me too I had the same problem.

    I was trying to build the asset_tracker example of sdk v0.4.0 with SES 4.16 (in windows) which does NOT compile ! Getting the GEN_ABSOLUTE_SYM compile error.

    It has nothing to do with the path length.

    My solution was indeed to use the command line way given in this link.. and not use SES.

    .\zephyr\zephyr-env.cmd
    set ZEPHYR_TOOLCHAIN_VARIANT=gnuarmemb
    set GNUARMEMB_TOOLCHAIN_PATH=c:\gnuarmemb
    
    cd nrf\applications\asset_tracker
    mkdir build
    cd build
    cmake -GNinja -DBOARD=nrf9160_pca10090ns ..
    ninja
    ninja flash

    This works without problems !

    And also v 0.3.0 does not yet work with west, so the "Getting Started Assistant" from nRF Connect SW can only be used after v0.4.0.

  • Hi Marten,

    Please look at this link. Do you have the correct path in SES?

    Kind regards,

    Øyvind

Related