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

Asset tracking application in SES not building succesfully

Dear support,

The build of the asset tracking application is not working

Below the copy and paste of SES buildlog

Building ‘zephyr/include/generated/driver-validation.h’ 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/misc/generated/syscalls.json’ from solution ‘build’ in configuration ‘Common’
Combining ‘zephyr/misc/generated/syscalls.json’
Building ‘zephyr/include/generated/syscall_list.h’ from solution ‘build’ in configuration ‘Common’
Building ‘zephyr/include/generated/syscall_dispatch.c’ from solution ‘build’ in configuration ‘Common’
Building ‘zephyr/include/generated/syscall_macros.h’ from solution ‘build’ in configuration ‘Common’
Building ‘zephyr/liboffsets.a’ from solution ‘build’ in configuration ‘Common’
Building ‘zephyr/include/generated/offsets.h’ from solution ‘build’ in configuration ‘Common’
Building ‘zephyr/linker.cmd’ from solution ‘build’ in configuration ‘Common’
Building ‘libapp.a’ from solution ‘build’ in configuration ‘Common’
Building ‘zephyr/libzephyr.a’ from solution ‘build’ in configuration ‘Common’
Building ‘zephyr/arch/arm/core/libarch__arm__core.a’ from solution ‘build’ in configuration ‘Common’
Building ‘zephyr/arch/arm/core/cortex_m/libarch__arm__core__cortex_m.a’ from solution ‘build’ in configuration ‘Common’
Building ‘zephyr/arch/arm/core/cortex_m/mpu/libarch__arm__core__cortex_m__mpu.a’ from solution ‘build’ in configuration ‘Common’
Building ‘zephyr/lib/libc/newlib/liblib__libc__newlib.a’ from solution ‘build’ in configuration ‘Common’
Building ‘zephyr/boards/arm/nrf52840_pca10090/libboards__arm__nrf52840_pca10090.a’ from solution ‘build’ in configuration ‘Common’
Building ‘zephyr/subsys/bluetooth/common/libsubsys__bluetooth__common.a’ from solution ‘build’ in configuration ‘Common’
Building ‘zephyr/subsys/bluetooth/host/libsubsys__bluetooth__host.a’ from solution ‘build’ in configuration ‘Common’
Building ‘zephyr/subsys/bluetooth/controller/libsubsys__bluetooth__controller.a’ from solution ‘build’ in configuration ‘Common’
Building ‘zephyr/subsys/net/libsubsys__net.a’ from solution ‘build’ in configuration ‘Common’
Building ‘zephyr/subsys/net/ip/libsubsys__net__ip.a’ from solution ‘build’ in configuration ‘Common’
Building ‘zephyr/nrf/ext/cjson/lib..__nrf__ext__cjson.a’ from solution ‘build’ in configuration ‘Common’
Building ‘zephyr/nrf/lib/bsdlib/lib..__nrf__lib__bsdlib.a’ from solution ‘build’ in configuration ‘Common’
Compiling ‘bsd_os.c’
nrfx.h
nrfx_uarte.h
bsd_os.c
'NRFX_UARTE1_INST_IDX' undeclared here (not in a function); did you mean 'NRFX_UARTE_INSTANCE'?
in definition of macro 'NRFX_CONCAT_3_'
in expansion of macro 'NRFX_CONCAT_3'
in expansion of macro 'NRFX_UARTE_INSTANCE'
bsd_os.c
'EGU1_IRQn' undeclared (first use in this function); did you mean 'FPU_IRQn'?
in expansion of macro 'BSD_APPLICATION_IRQ'
each undeclared identifier is reported only once for each function it appears in
in expansion of macro 'BSD_APPLICATION_IRQ'
'EGU1_IRQn' undeclared (first use in this function); did you mean 'FPU_IRQn'?
in expansion of macro 'BSD_APPLICATION_IRQ'
'EGU2_IRQn' undeclared (first use in this function); did you mean 'FPU_IRQn'?
in expansion of macro 'TRACE_IRQ'
'EGU2_IRQn' undeclared (first use in this function); did you mean 'FPU_IRQn'?
in expansion of macro 'TRACE_IRQ'
irq.h
arch.h
cpu.h
kernel_includes.h
kernel.h
device.h
init.h
bsd_os.c
'EGU2_IRQn' undeclared (first use in this function); did you mean 'FPU_IRQn'?
in definition of macro '_ISR_DECLARE'
in expansion of macro '_ARCH_IRQ_DIRECT_CONNECT'
in expansion of macro 'IRQ_DIRECT_CONNECT'
in expansion of macro 'TRACE_IRQ'
'EGU1_IRQn' undeclared (first use in this function); did you mean 'FPU_IRQn'?
in definition of macro '_ISR_DECLARE'
in expansion of macro '_ARCH_IRQ_DIRECT_CONNECT'
in expansion of macro 'IRQ_DIRECT_CONNECT'
in expansion of macro 'BSD_APPLICATION_IRQ'
'UART_1_TX_PIN' undeclared (first use in this function); did you mean 'UART_0_TX_PIN'?
'UART_1_RX_PIN' undeclared (first use in this function); did you mean 'UART_0_RX_PIN'?
'UART_1_CTS_PIN' undeclared (first use in this function); did you mean 'UART_0_CTS_PIN'?
'UART_1_RTS_PIN' undeclared (first use in this function); did you mean 'UART_0_RTS_PIN'?
irq.h
arch.h
cpu.h
kernel_includes.h
kernel.h
device.h
init.h
bsd_os.c
'IPC_IRQn' undeclared (first use in this function); did you mean 'FPU_IRQn'?
in definition of macro '_ISR_DECLARE'
in expansion of macro '_ARCH_IRQ_DIRECT_CONNECT'
in expansion of macro 'IRQ_DIRECT_CONNECT'
in expansion of macro 'BSD_NETWORK_IRQ'
Build failed

What is giving the error and how can I solve this?

  • Hi Peter,

    You are building for the wrong board:

    it should be nrf9160_pca10090.

    Please follow the steps in the Getting started page.

    Best Regards,

    Martin L.

  • I corrected it but now I get these errors after compiling:\

  • Hi Peter,

    To get out more information with regards to the erros, please switch "Tasks" to "Output":

    Please try to make a new build folder or delete what was in the old one. It may be that since building first with the wrong board and then building with the correct board to the same folder may have introduced some inconsistencies. This sounds like it may be a bug, I will do some investigation to see if I can replicate it. 

    Let me know how it goes.

    //Cheers

  • I made a new build folder and this is now the output of the build and run command:

    Building ‘zephyr/include/generated/driver-validation.h’ from solution ‘build’ in configuration ‘Common’
    1> Combining ‘zephyr/include/generated/driver-validation.h’
    Building ‘zephyr/include/generated/kobj-types-enum.h’ from solution ‘build’ in configuration ‘Common’
    1> Combining ‘zephyr/include/generated/kobj-types-enum.h’
    Building ‘zephyr/include/generated/otype-to-str.h’ 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’
    1> Combining ‘zephyr/include/generated/syscall_list.h’
    Building ‘zephyr/include/generated/syscall_dispatch.c’ from solution ‘build’ in configuration ‘Common’
    Building ‘zephyr/include/generated/syscall_macros.h’ from solution ‘build’ in configuration ‘Common’
    1> Combining ‘zephyr/include/generated/syscall_macros.h’
    Building ‘zephyr/liboffsets.a’ from solution ‘build’ in configuration ‘Common’
    1> Compiling ‘offsets.c’
    1> Archiving ‘liboffsets.a’
    Building ‘zephyr/include/generated/offsets.h’ from solution ‘build’ in configuration ‘Common’
    1> Combining ‘zephyr/include/generated/offsets.h’
    Building ‘zephyr/linker.cmd’ from solution ‘build’ in configuration ‘Common’
    1> Combining ‘zephyr/linker.cmd’
    Building ‘libapp.a’ from solution ‘build’ in configuration ‘Common’
    1> Compiling ‘main.c’
    2> Compiling ‘orientation_detector.c’
    Building ‘zephyr/libzephyr.a’ from solution ‘build’ in configuration ‘Common’
    1> Archiving ‘libapp.a’
    2> Compiling ‘isr_tables.c’
    3> Compiling ‘sw_isr_common.c’
    4> Compiling ‘arm_core_cmse.c’
    1> Compiling ‘thread_entry.c’
    2> Compiling ‘work_q.c’
    3> Compiling ‘fdtable.c’
    1> Compiling ‘crc32_sw.c’
    4> Compiling ‘crc16_sw.c’
    1> Compiling ‘crc8_sw.c’
    2> Compiling ‘mempool.c’
    3> Compiling ‘rb.c’
    4> Compiling ‘printk.c’
    1> Compiling ‘reboot.c’
    2> Compiling ‘configs.c’
    4> Compiling ‘mpu_regions.c’
    1> Compiling ‘system_nrf9160.c’
    3> Compiling ‘soc.c’
    2> Compiling ‘nrfx_glue.c’
    4> Compiling ‘nrfx_uarte.c’
    1> Compiling ‘line_fifo.c’
    3> Compiling ‘tty.c’
    2> Compiling ‘getchar.c’
    1> Compiling ‘socket_offload.c’
    4> Compiling ‘rand32_timer.c’
    2> Compiling ‘uart_console.c’
    3> Compiling ‘nrf5_power_clock.c’
    1> Compiling ‘sys_clock_init.c’
    4> Compiling ‘nrf_rtc_timer.c’
    Building ‘zephyr/arch/arm/core/libarch__arm__core.a’ from solution ‘build’ in configuration ‘Common’
    1> Archiving ‘libzephyr.a’
    2> Assembling ‘exc_exit.S’
    3> Assembling ‘swap_helper.S’
    4> Assembling ‘cpu_idle.S’
    1> Assembling ‘fault_s.S’
    2> Assembling ‘isr_wrapper.S’
    3> Compiling ‘irq_init.c’
    4> Compiling ‘swap.c’
    1> Compiling ‘fault.c’
    2> Compiling ‘irq_manage.c’
    3> Compiling ‘thread.c’
    4> Compiling ‘fatal.c’
    1> Compiling ‘sys_fatal_error_handler.c’
    2> Compiling ‘thread_abort.c’
    Building ‘zephyr/arch/arm/core/cortex_m/libarch__arm__core__cortex_m.a’ from solution ‘build’ in configuration ‘Common’
    1> Archiving ‘libarch__arm__core.a’
    2> Assembling ‘vector_table.S’
    3> Assembling ‘reset.S’
    4> Assembling ‘nmi_on_reset.S’
    1> Compiling ‘prep_c.c’
    2> Compiling ‘scb.c’
    3> Compiling ‘nmi.c’
    4> Compiling ‘exc_manage.c’
    Building ‘zephyr/arch/arm/core/cortex_m/mpu/libarch__arm__core__cortex_m__mpu.a’ from solution ‘build’ in configuration ‘Common’
    1> Archiving ‘libarch__arm__core__cortex_m.a’
    2> Compiling ‘arm_core_mpu.c’
    3> Compiling ‘arm_mpu.c’
    Building ‘zephyr/lib/libc/newlib/liblib__libc__newlib.a’ from solution ‘build’ in configuration ‘Common’
    1> Archiving ‘libarch__arm__core__cortex_m__mpu.a’
    2> Compiling ‘libc-hooks.c’
    Building ‘zephyr/subsys/net/libsubsys__net.a’ from solution ‘build’ in configuration ‘Common’
    1> Archiving ‘liblib__libc__newlib.a’
    2> Compiling ‘buf.c’
    3> Compiling ‘net_pkt.c’
    Building ‘zephyr/nrf/ext/cjson/lib..__nrf__ext__cjson.a’ from solution ‘build’ in configuration ‘Common’
    1> Archiving ‘libsubsys__net.a’
    2> Compiling ‘cJSON.c’
    3> Compiling ‘cJSON_os.c’
    Building ‘zephyr/nrf/lib/bsdlib/lib..__nrf__lib__bsdlib.a’ from solution ‘build’ in configuration ‘Common’
    1> Archiving ‘lib..__nrf__ext__cjson.a’
    2> Compiling ‘bsd_os.c’
    3> Compiling ‘nrf91_sockets.c’
    Building ‘zephyr/nrf/lib/gps_sim/lib..__nrf__lib__gps_sim.a’ from solution ‘build’ in configuration ‘Common’
    1> Archiving ‘lib..__nrf__lib__bsdlib.a’
    2> Compiling ‘gps_sim.c’
    Building ‘zephyr/nrf/lib/sensor_sim/lib..__nrf__lib__sensor_sim.a’ from solution ‘build’ in configuration ‘Common’
    1> Archiving ‘lib..__nrf__lib__gps_sim.a’
    2> Compiling ‘sensor_sim.c’
    Building ‘zephyr/nrf/lib/dk_buttons_and_leds/lib..__nrf__lib__dk_buttons_and_leds.a’ from solution ‘build’ in configuration ‘Common’
    1> Archiving ‘lib..__nrf__lib__sensor_sim.a’
    2> Compiling ‘dk_buttons_and_leds.c’
    Building ‘zephyr/nrf/subsys/net/lib/mqtt_socket/lib..__nrf__subsys__net__lib__mqtt_socket.a’ from solution ‘build’ in configuration ‘Common’
    1> Archiving ‘lib..__nrf__lib__dk_buttons_and_leds.a’
    2> Compiling ‘mqtt_decoder.c’
    3> Compiling ‘mqtt_encoder.c’
    4> Compiling ‘mqtt_rx.c’
    1> Compiling ‘mqtt_transport_socket_tcp.c’
    4> Compiling ‘mqtt_transport.c’
    2> Compiling ‘mqtt.c’
    1> Compiling ‘mqtt_transport_socket_tls.c’
    Building ‘zephyr/nrf/subsys/net/lib/nrf_cloud/lib..__nrf__subsys__net__lib__nrf_cloud.a’ from solution ‘build’ in configuration ‘Common’
    1> Archiving ‘lib..__nrf__subsys__net__lib__mqtt_socket.a’
    2> Compiling ‘nrf_cloud.c’
    3> Compiling ‘nrf_cloud_codec.c’
    4> Compiling ‘nrf_cloud_fsm.c’
    1> Compiling ‘nrf_cloud_transport.c’
    2> Compiling ‘nrf_cloud_sanity.c’
    Building ‘zephyr/nrf/drivers/lte_link_control/lib..__nrf__drivers__lte_link_control.a’ from solution ‘build’ in configuration ‘Common’
    1> Archiving ‘lib..__nrf__subsys__net__lib__nrf_cloud.a’
    2> Compiling ‘lte_lc.c’
    Building ‘zephyr/drivers/gpio/libdrivers__gpio.a’ from solution ‘build’ in configuration ‘Common’
    1> Archiving ‘lib..__nrf__drivers__lte_link_control.a’
    2> Compiling ‘gpio_nrfx.c’
    Building ‘zephyr/drivers/serial/libdrivers__serial.a’ from solution ‘build’ in configuration ‘Common’
    1> Archiving ‘libdrivers__gpio.a’
    2> Compiling ‘uart_nrfx_uarte.c’
    Building ‘zephyr/kernel/libkernel.a’ from solution ‘build’ in configuration ‘Common’
    1> Archiving ‘libdrivers__serial.a’
    2> Compiling ‘alert.c’
    3> Compiling ‘device.c’
    4> Compiling ‘errno.c’
    1> Compiling ‘idle.c’
    3> Compiling ‘init.c’
    2> Compiling ‘mem_slab.c’
    4> Compiling ‘mailbox.c’
    1> Compiling ‘mempool.c’
    3> Compiling ‘msg_q.c’
    2> Compiling ‘mutex.c’
    4> Compiling ‘pipes.c’
    1> Compiling ‘queue.c’
    2> Compiling ‘sched.c’
    3> Compiling ‘sem.c’
    1> Compiling ‘stack.c’
    4> Compiling ‘system_work_q.c’
    3> Compiling ‘thread.c’
    4> Compiling ‘thread_abort.c’
    1> Compiling ‘version.c’
    2> Compiling ‘work_q.c’
    1> Compiling ‘smp.c’
    4> Compiling ‘timeout.c’
    3> Compiling ‘timer.c’
    2> Compiling ‘poll.c’
    1> Archiving ‘libkernel.a’
    Building ‘zephyr/zephyr_prebuilt.elf’ from solution ‘build’ in configuration ‘Common’
    1> Compiling ‘empty_file.c’
    1> Linking ‘zephyr_prebuilt.elf’
    1> Memory region Used Size Region Size %age Used
    1> FLASH: 144268 B 256 KB 55.03%
    1> SRAM: 50240 B 128 KB 38.33%
    1> IDT_LIST: 120 B 2 KB 5.86%
    Building ‘zephyr/linker_pass_final.cmd’ from solution ‘build’ in configuration ‘Common’
    1> Combining ‘zephyr/linker_pass_final.cmd’
    Building ‘zephyr/isr_tables.c’ from solution ‘build’ in configuration ‘Common’
    1> Combining ‘zephyr/isr_tables.c’
    Building ‘zephyr/zephyr.elf’ from solution ‘build’ in configuration ‘Common’
    1> Compiling ‘empty_file.c’
    2> Compiling ‘isr_tables.c’
    1> Linking ‘zephyr.elf’
    1> Post-link command
    1> C:\gnuarmemb\bin\arm-none-eabi-objcopy.exe: zephyr.hex 64-bit address 0x4b4fa300040000 out of range for Intel Hex file
    1> C:\gnuarmemb\bin\arm-none-eabi-objcopy.exe:zephyr.hex: bad value
    Build failed

  • Hi Peter,

    It looks like you are using the GNU Arm Embedded Toolchain version 8-2018-q4-major.

    Unfortunately, that version is not recommended because it has been seen to be a bit unstable.

    Please download the GNU Arm Embedded Toolchain version-7-2018-q2-update (download) then you should be able to build the application.

    Sorry, for the inconvenience. 

    //cheers

Related