Compilation error nrf52840 Dv-kit and new thread project

Hello All, 

I am developing product using nRF52840 Dev-kit and SDK 4.1 for zigbee and thread.

I have created the new solution using tool chain - C:\Program Files (x86)\GNU Arm Embedded Toolchain\10 2021.07

For external tool chain enable followed this attached link - https://wiki.segger.com/Use_an_external_Toolchain_with_Embedded_Studio

When created new solution with minimal "hello_world!" print message everything worked. So next did including our openthread libraries, freeRTOS files and main function etc from nRF SDK. 

As per the external tool chain link, kept the settings same and "debug external" option I got the below erros, 

"selected FPU does not support instruction -- `vstmdbeq r0!,{s16-s31}'

selected FPU does not support instruction -- `vldmiaeq r0!,{s16-s31}'

#error This port can only be used when the project options are configured to enable hardware floating point support".

So, next I did is set "Debug Internal /  Release internal " option the above 3 three error resolved. 

And as I was using KNX-IOT stack in our nRF project, when I tried to included KNX-IoT related files in project I am getting too many errors. Attached is the error_log file. 

Can anyone help me what could be the issue. also attached the whole project for reference. 

It's urgent to solve this issue and build the example as early as possible. 

Rebuilding ‘Executable_1’ from solution ‘Executable_1’ in configuration ‘Debug Internal’
1> Compiling ‘main.c’
3> Compiling ‘SEGGER_RTT.c’
2> Compiling ‘SEGGER_RTT_printf.c’
4> Compiling ‘SEGGER_RTT_Syscalls_SES.c’
3> Assembling ‘HardFaultHandler.S’
2> Compiling ‘SEGGER_HardFaultHandler.c’
3> Assembling ‘Cortex_M_Startup.s’
2> Assembling ‘SEGGER_THUMB_Startup.s’
1> Compiling ‘boards.c’
4> Compiling ‘SEGGER_RTT_Syscalls_SES.c’
3> Compiling ‘bsp.c’
2> Compiling ‘bsp_thread.c’
4> Compiling ‘thread_coap_utils.c’
1> Assembling ‘ses_startup_nrf_common.s’
1> Assembling ‘ses_startup_nrf52840.s’
2> Compiling ‘system_nrf52840.c’
3> Compiling ‘nrf_drv_clock.c’
1> Compiling ‘nrf_nvic.c’
4> Compiling ‘nrf_soc.c’
2> Compiling ‘nrf_nvmc.c’
1> Compiling ‘nrfx_atomic.c’
3> Compiling ‘nrfx_clock.c’
4> Compiling ‘nrfx_gpiote.c’
2> Compiling ‘nrfx_nvmc.c’
1> Compiling ‘app_button.c’
3> Compiling ‘app_error.c’
1> Compiling ‘app_error_handler_gcc.c’
2> Compiling ‘app_error_weak.c’
4> Compiling ‘app_util_platform.c’
3> Compiling ‘nrf_assert.c’
1> Compiling ‘assert.c’
2> Compiling ‘nrf_atomic.c’
4> Compiling ‘app_timer_freertos.c’
3> Compiling ‘nrf_balloc.c’
1> Compiling ‘nrf_ringbuf.c’
2> Compiling ‘nrf_strerror.c’
4> Compiling ‘nrf_section_iter.c’
3> Compiling ‘nrf_pwr_mgmt.c’
2> Compiling ‘nrf_memobj.c’
1> Compiling ‘nrf_fprintf.c’
4> Compiling ‘nrf_fprintf_format.c’
2> Compiling ‘nrf_log_backend_rtt.c’
1> Compiling ‘nrf_log_backend_serial.c’
3> Compiling ‘nrf_log_default_backends.c’
2> Compiling ‘nrf_log_frontend.c’
4> Compiling ‘nrf_log_str_formatter.c’
1> Compiling ‘thread_utils.c’
3> Compiling ‘nrf_cc310_platform_abort_freertos.c’
4> Compiling ‘nrf_cc310_platform_mutex_freertos.c’
2> Compiling ‘croutine.c’
1> Compiling ‘event_groups.c’
3> Compiling ‘list.c’
4> Compiling ‘queue.c’
1> Compiling ‘stream_buffer.c’
2> Compiling ‘tasks.c’
3> Compiling ‘timers.c’
4> Compiling ‘port.c’
1> Compiling ‘port_cmsis.c’
2> Compiling ‘port_cmsis_systick.c’
3> Compiling ‘heap_4.c’
4> Assembling ‘thumb_crt0.s’
1> Compiling ‘knxiot_coap_get.cpp’
4> Compiling ‘knxiot_coap_observe.cpp’
1> In file included from C:/Program Files (x86)/GNU Arm Embedded Toolchain/10 2021.07/arm-none-eabi/include/c++/10.3.1/stdlib.h:36,
1>                  from D:/Project/Eurotronics/Thread_Radiator/knxiot/third_party/nlassert/repo/include/nlassert.h:769,
1>                  from D:/Project/Eurotronics/Thread_Radiator/knxiot/src/common/code_utils.hpp:10,
1>                  from D:/Project/Eurotronics/Thread_Radiator/knxiot/src/infra/knxiot_unqiue_list.hpp:3,
1>                  from D:/Project/Eurotronics/Thread_Radiator/knxiot/src/coap_api.hpp:3,
1>                  from D:/Project/Eurotronics/Thread_Radiator/knxiot/src/knxiot_coap_parser.hpp:19,
1>                  from D:\Project\Eurotronics\Thread_Radiator\knxiot\src\coap_requests\knxiot_coap_requests.hpp:18,
1>                  from D:\Project\Eurotronics\Thread_Radiator\knxiot\src\coap_requests\knxiot_coap_get.cpp:16:
1> C:/Program Files (x86)/GNU Arm Embedded Toolchain/10 2021.07/arm-none-eabi/include/c++/10.3.1/cstdlib:206:11: error: '::_Exit' has not been declared
1> C:/Program Files (x86)/GNU Arm Embedded Toolchain/10 2021.07/arm-none-eabi/include/c++/10.3.1/cstdlib:232:11: error: '::strtold' has not been declared
1> C:/Program Files (x86)/GNU Arm Embedded Toolchain/10 2021.07/arm-none-eabi/include/c++/10.3.1/cstdlib:242:22: error: '__gnu_cxx::_Exit' has not been declared
1> C:/Program Files (x86)/GNU Arm Embedded Toolchain/10 2021.07/arm-none-eabi/include/c++/10.3.1/cstdlib:252:22: error: '__gnu_cxx::strtold' has not been declared
4> In file included from C:/Program Files (x86)/GNU Arm Embedded Toolchain/10 2021.07/arm-none-eabi/include/c++/10.3.1/stdlib.h:36,
4>                  from D:/Project/Eurotronics/Thread_Radiator/knxiot/third_party/nlassert/repo/include/nlassert.h:769,
4>                  from D:/Project/Eurotronics/Thread_Radiator/knxiot/src/common/code_utils.hpp:10,
4>                  from D:/Project/Eurotronics/Thread_Radiator/knxiot/src/infra/knxiot_unqiue_list.hpp:3,
4>                  from D:/Project/Eurotronics/Thread_Radiator/knxiot/src/coap_api.hpp:3,
4>                  from D:/Project/Eurotronics/Thread_Radiator/knxiot/src/knxiot_coap_parser.hpp:19,
4>                  from D:\Project\Eurotronics\Thread_Radiator\knxiot\src\coap_requests\knxiot_coap_requests.hpp:18,
4>                  from D:\Project\Eurotronics\Thread_Radiator\knxiot\src\coap_requests\knxiot_coap_observe.cpp:16:
4> C:/Program Files (x86)/GNU Arm Embedded Toolchain/10 2021.07/arm-none-eabi/include/c++/10.3.1/cstdlib:206:11: error: '::_Exit' has not been declared
4> C:/Program Files (x86)/GNU Arm Embedded Toolchain/10 2021.07/arm-none-eabi/include/c++/10.3.1/cstdlib:232:11: error: '::strtold' has not been declared
4> C:/Program Files (x86)/GNU Arm Embedded Toolchain/10 2021.07/arm-none-eabi/include/c++/10.3.1/cstdlib:242:22: error: '__gnu_cxx::_Exit' has not been declared
4> C:/Program Files (x86)/GNU Arm Embedded Toolchain/10 2021.07/arm-none-eabi/include/c++/10.3.1/cstdlib:252:22: error: '__gnu_cxx::strtold' has not been declared
1> In file included from C:/Program Files (x86)/GNU Arm Embedded Toolchain/10 2021.07/arm-none-eabi/include/c++/10.3.1/bits/postypes.h:40,
1>                  from C:/Program Files (x86)/GNU Arm Embedded Toolchain/10 2021.07/arm-none-eabi/include/c++/10.3.1/iosfwd:40,
1>                  from C:/Program Files (x86)/GNU Arm Embedded Toolchain/10 2021.07/arm-none-eabi/include/c++/10.3.1/memory:74,
1>                  from D:/Project/Eurotronics/Thread_Radiator/knxiot/include/knxiot_stdcpp.hpp:13,
1>                  from D:/Project/Eurotronics/Thread_Radiator/knxiot/src/infra/knxiot_unqiue_list.hpp:5,
1>                  from D:/Project/Eurotronics/Thread_Radiator/knxiot/src/coap_api.hpp:3,
1>                  from D:/Project/Eurotronics/Thread_Radiator/knxiot/src/knxiot_coap_parser.hpp:19,
1>                  from D:\Project\Eurotronics\Thread_Radiator\knxiot\src\coap_requests\knxiot_coap_requests.hpp:18,
1>                  from D:\Project\Eurotronics\Thread_Radiator\knxiot\src\coap_requests\knxiot_coap_get.cpp:16:
1> C:/Program Files (x86)/GNU Arm Embedded Toolchain/10 2021.07/arm-none-eabi/include/c++/10.3.1/cwchar:155:11: error: '::mbsinit' has not been declared
1> C:/Program Files (x86)/GNU Arm Embedded Toolchain/10 2021.07/arm-none-eabi/include/c++/10.3.1/cwchar:193:11: error: '::wcstof' has not been declared
1> C:/Program Files (x86)/GNU Arm Embedded Toolchain/10 2021.07/arm-none-eabi/include/c++/10.3.1/cwchar:197:11: error: '::wcstoul' has not been declared
1> C:/Program Files (x86)/GNU Arm Embedded Toolchain/10 2021.07/arm-none-eabi/include/c++/10.3.1/cwchar:251:11: error: '::wcstold' has not been declared
1> C:/Program Files (x86)/GNU Arm Embedded Toolchain/10 2021.07/arm-none-eabi/include/c++/10.3.1/cwchar:260:11: error: '::wcstoll' has not been declared
1> C:/Program Files (x86)/GNU Arm Embedded Toolchain/10 2021.07/arm-none-eabi/include/c++/10.3.1/cwchar:261:11: error: '::wcstoull' has not been declared
1> C:/Program Files (x86)/GNU Arm Embedded Toolchain/10 2021.07/arm-none-eabi/include/c++/10.3.1/cwchar:267:22: error: '__gnu_cxx::wcstold' has not been declared
1> C:/Program Files (x86)/GNU Arm Embedded Toolchain/10 2021.07/arm-none-eabi/include/c++/10.3.1/cwchar:268:22: error: '__gnu_cxx::wcstoll' has not been declared
1> C:/Program Files (x86)/GNU Arm Embedded Toolchain/10 2021.07/arm-none-eabi/include/c++/10.3.1/cwchar:269:22: error: '__gnu_cxx::wcstoull' has not been declared
1> C:/Program Files (x86)/GNU Arm Embedded Toolchain/10 2021.07/arm-none-eabi/include/c++/10.3.1/cwchar:283:14: error: 'std::wcstof' has not been declared
1> C:/Program Files (x86)/GNU Arm Embedded Toolchain/10 2021.07/arm-none-eabi/include/c++/10.3.1/cwchar:296:14: error: 'std::wcstold' has not been declared
1> C:/Program Files (x86)/GNU Arm Embedded Toolchain/10 2021.07/arm-none-eabi/include/c++/10.3.1/cwchar:297:14: error: 'std::wcstoll' has not been declared
1> C:/Program Files (x86)/GNU Arm Embedded Toolchain/10 2021.07/arm-none-eabi/include/c++/10.3.1/cwchar:298:14: error: 'std::wcstoull' has not been declared
2> Compiling ‘knxiot_coap_point_request.cpp’
4> In file included from C:/Program Files (x86)/GNU Arm Embedded Toolchain/10 2021.07/arm-none-eabi/include/c++/10.3.1/bits/postypes.h:40,
4>                  from C:/Program Files (x86)/GNU Arm Embedded Toolchain/10 2021.07/arm-none-eabi/include/c++/10.3.1/iosfwd:40,
4>                  from C:/Program Files (x86)/GNU Arm Embedded Toolchain/10 2021.07/arm-none-eabi/include/c++/10.3.1/memory:74,
4>                  from D:/Project/Eurotronics/Thread_Radiator/knxiot/include/knxiot_stdcpp.hpp:13,
4>                  from D:/Project/Eurotronics/Thread_Radiator/knxiot/src/infra/knxiot_unqiue_list.hpp:5,
4>                  from D:/Project/Eurotronics/Thread_Radiator/knxiot/src/coap_api.hpp:3,
4>                  from D:/Project/Eurotronics/Thread_Radiator/knxiot/src/knxiot_coap_parser.hpp:19,
4>                  from D:\Project\Eurotronics\Thread_Radiator\knxiot\src\coap_requests\knxiot_coap_requests.hpp:18,
4>                  from D:\Project\Eurotronics\Thread_Radiator\knxiot\src\coap_requests\knxiot_coap_observe.cpp:16:
4> C:/Program Files (x86)/GNU Arm Embedded Toolchain/10 2021.07/arm-none-eabi/include/c++/10.3.1/cwchar:155:11: error: '::mbsinit' has not been declared
4> C:/Program Files (x86)/GNU Arm Embedded Toolchain/10 2021.07/arm-none-eabi/include/c++/10.3.1/cwchar:193:11: error: '::wcstof' has not been declared
4> C:/Program Files (x86)/GNU Arm Embedded Toolchain/10 2021.07/arm-none-eabi/include/c++/10.3.1/cwchar:197:11: error: '::wcstoul' has not been declared
4> C:/Program Files (x86)/GNU Arm Embedded Toolchain/10 2021.07/arm-none-eabi/include/c++/10.3.1/cwchar:251:11: error: '::wcstold' has not been declared
4> C:/Program Files (x86)/GNU Arm Embedded Toolchain/10 2021.07/arm-none-eabi/include/c++/10.3.1/cwchar:260:11: error: '::wcstoll' has not been declared
4> C:/Program Files (x86)/GNU Arm Embedded Toolchain/10 2021.07/arm-none-eabi/include/c++/10.3.1/cwchar:261:11: error: '::wcstoull' has not been declared
4> C:/Program Files (x86)/GNU Arm Embedded Toolchain/10 2021.07/arm-none-eabi/include/c++/10.3.1/cwchar:267:22: error: '__gnu_cxx::wcstold' has not been declared
4> C:/Program Files (x86)/GNU Arm Embedded Toolchain/10 2021.07/arm-none-eabi/include/c++/10.3.1/cwchar:268:22: error: '__gnu_cxx::wcstoll' has not been declared
4> C:/Program Files (x86)/GNU Arm Embedded Toolchain/10 2021.07/arm-none-eabi/include/c++/10.3.1/cwchar:269:22: error: '__gnu_cxx::wcstoull' has not been declared
4> C:/Program Files (x86)/GNU Arm Embedded Toolchain/10 2021.07/arm-none-eabi/include/c++/10.3.1/cwchar:283:14: error: 'std::wcstof' has not been declared
4> C:/Program Files (x86)/GNU Arm Embedded Toolchain/10 2021.07/arm-none-eabi/include/c++/10.3.1/cwchar:296:14: error: 'std::wcstold' has not been declared
4> C:/Program Files (x86)/GNU Arm Embedded Toolchain/10 2021.07/arm-none-eabi/include/c++/10.3.1/cwchar:297:14: error: 'std::wcstoll' has not been declared
4> C:/Program Files (x86)/GNU Arm Embedded Toolchain/10 2021.07/arm-none-eabi/include/c++/10.3.1/cwchar:298:14: error: 'std::wcstoull' has not been declared
3> Compiling ‘knxiot_coap_put.cpp’
4> In file included from D:/Project/Eurotronics/Thread_Radiator/knxiot/include/knxiot_delegate.hpp:21,
4>                  from D:/Project/Eurotronics/Thread_Radiator/knxiot/include/client/knxiot_result.hpp:23,
4>                  from D:/Project/Eurotronics/Thread_Radiator/knxiot/include/knxiot.hpp:26,
4>                  from D:/Project/Eurotronics/Thread_Radiator/knxiot/src/coap_api.hpp:4,
4>                  from D:/Project/Eurotronics/Thread_Radiator/knxiot/src/knxiot_coap_parser.hpp:19,
4>                  from D:\Project\Eurotronics\Thread_Radiator\knxiot\src\coap_requests\knxiot_coap_requests.hpp:18,
4>                  from D:\Project\Eurotronics\Thread_Radiator\knxiot\src\coap_requests\knxiot_coap_observe.cpp:16:
4> C:/Program Files (x86)/GNU Arm Embedded Toolchain/10 2021.07/arm-none-eabi/include/c++/10.3.1/cstddef:58:11: error: '::max_align_t' has not been declared
1> In file included from D:/Project/Eurotronics/Thread_Radiator/knxiot/include/knxiot_delegate.hpp:21,
1>                  from D:/Project/Eurotronics/Thread_Radiator/knxiot/include/client/knxiot_result.hpp:23,
1>                  from D:/Project/Eurotronics/Thread_Radiator/knxiot/include/knxiot.hpp:26,
1>                  from D:/Project/Eurotronics/Thread_Radiator/knxiot/src/coap_api.hpp:4,
1>                  from D:/Project/Eurotronics/Thread_Radiator/knxiot/src/knxiot_coap_parser.hpp:19,
1>                  from D:\Project\Eurotronics\Thread_Radiator\knxiot\src\coap_requests\knxiot_coap_requests.hpp:18,
1>                  from D:\Project\Eurotronics\Thread_Radiator\knxiot\src\coap_requests\knxiot_coap_get.cpp:16:
1> C:/Program Files (x86)/GNU Arm Embedded Toolchain/10 2021.07/arm-none-eabi/include/c++/10.3.1/cstddef:58:11: error: '::max_align_t' has not been declared
2> In file included from C:/Program Files (x86)/GNU Arm Embedded Toolchain/10 2021.07/arm-none-eabi/include/c++/10.3.1/stdlib.h:36,
2>                  from D:/Project/Eurotronics/Thread_Radiator/knxiot/third_party/nlassert/repo/include/nlassert.h:769,
2>                  from D:/Project/Eurotronics/Thread_Radiator/knxiot/src/common/code_utils.hpp:10,
2>                  from D:/Project/Eurotronics/Thread_Radiator/knxiot/src/infra/knxiot_unqiue_list.hpp:3,
2>                  from D:/Project/Eurotronics/Thread_Radiator/knxiot/src/coap_api.hpp:3,
2>                  from D:/Project/Eurotronics/Thread_Radiator/knxiot/src/knxiot_coap_parser.hpp:19,
2>                  from D:\Project\Eurotronics\Thread_Radiator\knxiot\src\coap_requests\knxiot_coap_requests.hpp:18,
2>                  from D:\Project\Eurotronics\Thread_Radiator\knxiot\src\coap_requests\knxiot_coap_point_request.cpp:16:
2> C:/Program Files (x86)/GNU Arm Embedded Toolchain/10 2021.07/arm-none-eabi/include/c++/10.3.1/cstdlib:206:11: error: '::_Exit' has not been declared
2> C:/Program Files (x86)/GNU Arm Embedded Toolchain/10 2021.07/arm-none-eabi/include/c++/10.3.1/cstdlib:232:11: error: '::strtold' has not been declared
2> C:/Program Files (x86)/GNU Arm Embedded Toolchain/10 2021.07/arm-none-eabi/include/c++/10.3.1/cstdlib:242:22: error: '__gnu_cxx::_Exit' has not been declared
2> C:/Program Files (x86)/GNU Arm Embedded Toolchain/10 2021.07/arm-none-eabi/include/c++/10.3.1/cstdlib:252:22: error: '__gnu_cxx::strtold' has not been declared
2> In file included from C:/Program Files (x86)/GNU Arm Embedded Toolchain/10 2021.07/arm-none-eabi/include/c++/10.3.1/bits/postypes.h:40,
2>                  from C:/Program Files (x86)/GNU Arm Embedded Toolchain/10 2021.07/arm-none-eabi/include/c++/10.3.1/iosfwd:40,
2>                  from C:/Program Files (x86)/GNU Arm Embedded Toolchain/10 2021.07/arm-none-eabi/include/c++/10.3.1/memory:74,
2>                  from D:/Project/Eurotronics/Thread_Radiator/knxiot/include/knxiot_stdcpp.hpp:13,
2>                  from D:/Project/Eurotronics/Thread_Radiator/knxiot/src/infra/knxiot_unqiue_list.hpp:5,
2>                  from D:/Project/Eurotronics/Thread_Radiator/knxiot/src/coap_api.hpp:3,
2>                  from D:/Project/Eurotronics/Thread_Radiator/knxiot/src/knxiot_coap_parser.hpp:19,
2>                  from D:\Project\Eurotronics\Thread_Radiator\knxiot\src\coap_requests\knxiot_coap_requests.hpp:18,
2>                  from D:\Project\Eurotronics\Thread_Radiator\knxiot\src\coap_requests\knxiot_coap_point_request.cpp:16:
2> C:/Program Files (x86)/GNU Arm Embedded Toolchain/10 2021.07/arm-none-eabi/include/c++/10.3.1/cwchar:155:11: error: '::mbsinit' has not been declared
2> C:/Program Files (x86)/GNU Arm Embedded Toolchain/10 2021.07/arm-none-eabi/include/c++/10.3.1/cwchar:193:11: error: '::wcstof' has not been declared
2> C:/Program Files (x86)/GNU Arm Embedded Toolchain/10 2021.07/arm-none-eabi/include/c++/10.3.1/cwchar:197:11: error: '::wcstoul' has not been declared
2> C:/Program Files (x86)/GNU Arm Embedded Toolchain/10 2021.07/arm-none-eabi/include/c++/10.3.1/cwchar:251:11: error: '::wcstold' has not been declared
2> C:/Program Files (x86)/GNU Arm Embedded Toolchain/10 2021.07/arm-none-eabi/include/c++/10.3.1/cwchar:260:11: error: '::wcstoll' has not been declared
2> C:/Program Files (x86)/GNU Arm Embedded Toolchain/10 2021.07/arm-none-eabi/include/c++/10.3.1/cwchar:261:11: error: '::wcstoull' has not been declared
2> C:/Program Files (x86)/GNU Arm Embedded Toolchain/10 2021.07/arm-none-eabi/include/c++/10.3.1/cwchar:267:22: error: '__gnu_cxx::wcstold' has not been declared
2> C:/Program Files (x86)/GNU Arm Embedded Toolchain/10 2021.07/arm-none-eabi/include/c++/10.3.1/cwchar:268:22: error: '__gnu_cxx::wcstoll' has not been declared
2> C:/Program Files (x86)/GNU Arm Embedded Toolchain/10 2021.07/arm-none-eabi/include/c++/10.3.1/cwchar:269:22: error: '__gnu_cxx::wcstoull' has not been declared
2> C:/Program Files (x86)/GNU Arm Embedded Toolchain/10 2021.07/arm-none-eabi/include/c++/10.3.1/cwchar:283:14: error: 'std::wcstof' has not been declared
2> C:/Program Files (x86)/GNU Arm Embedded Toolchain/10 2021.07/arm-none-eabi/include/c++/10.3.1/cwchar:296:14: error: 'std::wcstold' has not been declared
2> C:/Program Files (x86)/GNU Arm Embedded Toolchain/10 2021.07/arm-none-eabi/include/c++/10.3.1/cwchar:297:14: error: 'std::wcstoll' has not been declared
2> C:/Program Files (x86)/GNU Arm Embedded Toolchain/10 2021.07/arm-none-eabi/include/c++/10.3.1/cwchar:298:14: error: 'std::wcstoull' has not been declared
3> In file included from C:/Program Files (x86)/GNU Arm Embedded Toolchain/10 2021.07/arm-none-eabi/include/c++/10.3.1/stdlib.h:36,
3>                  from D:/Project/Eurotronics/Thread_Radiator/knxiot/third_party/nlassert/repo/include/nlassert.h:769,
3>                  from D:/Project/Eurotronics/Thread_Radiator/knxiot/src/common/code_utils.hpp:10,
3>                  from D:/Project/Eurotronics/Thread_Radiator/knxiot/src/infra/knxiot_unqiue_list.hpp:3,
3>                  from D:/Project/Eurotronics/Thread_Radiator/knxiot/src/coap_api.hpp:3,
3>                  from D:/Project/Eurotronics/Thread_Radiator/knxiot/src/knxiot_coap_parser.hpp:19,
3>                  from D:\Project\Eurotronics\Thread_Radiator\knxiot\src\coap_requests\knxiot_coap_requests.hpp:18,
3>                  from D:\Project\Eurotronics\Thread_Radiator\knxiot\src\coap_requests\knxiot_coap_put.cpp:16:
3> C:/Program Files (x86)/GNU Arm Embedded Toolchain/10 2021.07/arm-none-eabi/include/c++/10.3.1/cstdlib:206:11: error: '::_Exit' has not been declared
3> C:/Program Files (x86)/GNU Arm Embedded Toolchain/10 2021.07/arm-none-eabi/include/c++/10.3.1/cstdlib:232:11: error: '::strtold' has not been declared
3> C:/Program Files (x86)/GNU Arm Embedded Toolchain/10 2021.07/arm-none-eabi/include/c++/10.3.1/cstdlib:242:22: error: '__gnu_cxx::_Exit' has not been declared
3> C:/Program Files (x86)/GNU Arm Embedded Toolchain/10 2021.07/arm-none-eabi/include/c++/10.3.1/cstdlib:252:22: error: '__gnu_cxx::strtold' has not been declared
3> In file included from C:/Program Files (x86)/GNU Arm Embedded Toolchain/10 2021.07/arm-none-eabi/include/c++/10.3.1/bits/postypes.h:40,
3>                  from C:/Program Files (x86)/GNU Arm Embedded Toolchain/10 2021.07/arm-none-eabi/include/c++/10.3.1/iosfwd:40,
3>                  from C:/Program Files (x86)/GNU Arm Embedded Toolchain/10 2021.07/arm-none-eabi/include/c++/10.3.1/memory:74,
3>                  from D:/Project/Eurotronics/Thread_Radiator/knxiot/include/knxiot_stdcpp.hpp:13,
3>                  from D:/Project/Eurotronics/Thread_Radiator/knxiot/src/infra/knxiot_unqiue_list.hpp:5,
3>                  from D:/Project/Eurotronics/Thread_Radiator/knxiot/src/coap_api.hpp:3,
3>                  from D:/Project/Eurotronics/Thread_Radiator/knxiot/src/knxiot_coap_parser.hpp:19,
3>                  from D:\Project\Eurotronics\Thread_Radiator\knxiot\src\coap_requests\knxiot_coap_requests.hpp:18,
3>                  from D:\Project\Eurotronics\Thread_Radiator\knxiot\src\coap_requests\knxiot_coap_put.cpp:16:
3> C:/Program Files (x86)/GNU Arm Embedded Toolchain/10 2021.07/arm-none-eabi/include/c++/10.3.1/cwchar:155:11: error: '::mbsinit' has not been declared
3> C:/Program Files (x86)/GNU Arm Embedded Toolchain/10 2021.07/arm-none-eabi/include/c++/10.3.1/cwchar:193:11: error: '::wcstof' has not been declared
3> C:/Program Files (x86)/GNU Arm Embedded Toolchain/10 2021.07/arm-none-eabi/include/c++/10.3.1/cwchar:197:11: error: '::wcstoul' has not been declared
3> C:/Program Files (x86)/GNU Arm Embedded Toolchain/10 2021.07/arm-none-eabi/include/c++/10.3.1/cwchar:251:11: error: '::wcstold' has not been declared
3> C:/Program Files (x86)/GNU Arm Embedded Toolchain/10 2021.07/arm-none-eabi/include/c++/10.3.1/cwchar:260:11: error: '::wcstoll' has not been declared
3> C:/Program Files (x86)/GNU Arm Embedded Toolchain/10 2021.07/arm-none-eabi/include/c++/10.3.1/cwchar:261:11: error: '::wcstoull' has not been declared
3> C:/Program Files (x86)/GNU Arm Embedded Toolchain/10 2021.07/arm-none-eabi/include/c++/10.3.1/cwchar:267:22: error: '__gnu_cxx::wcstold' has not been declared
3> C:/Program Files (x86)/GNU Arm Embedded Toolchain/10 2021.07/arm-none-eabi/include/c++/10.3.1/cwchar:268:22: error: '__gnu_cxx::wcstoll' has not been declared
3> C:/Program Files (x86)/GNU Arm Embedded Toolchain/10 2021.07/arm-none-eabi/include/c++/10.3.1/cwchar:269:22: error: '__gnu_cxx::wcstoull' has not been declared
3> C:/Program Files (x86)/GNU Arm Embedded Toolchain/10 2021.07/arm-none-eabi/include/c++/10.3.1/cwchar:283:14: error: 'std::wcstof' has not been declared
3> C:/Program Files (x86)/GNU Arm Embedded Toolchain/10 2021.07/arm-none-eabi/include/c++/10.3.1/cwchar:296:14: error: 'std::wcstold' has not been declared
3> C:/Program Files (x86)/GNU Arm Embedded Toolchain/10 2021.07/arm-none-eabi/include/c++/10.3.1/cwchar:297:14: error: 'std::wcstoll' has not been declared
3> C:/Program Files (x86)/GNU Arm Embedded Toolchain/10 2021.07/arm-none-eabi/include/c++/10.3.1/cwchar:298:14: error: 'std::wcstoull' has not been declared
2> In file included from D:/Project/Eurotronics/Thread_Radiator/knxiot/include/knxiot_delegate.hpp:21,
2>                  from D:/Project/Eurotronics/Thread_Radiator/knxiot/include/client/knxiot_result.hpp:23,
2>                  from D:/Project/Eurotronics/Thread_Radiator/knxiot/include/knxiot.hpp:26,
2>                  from D:/Project/Eurotronics/Thread_Radiator/knxiot/src/coap_api.hpp:4,
2>                  from D:/Project/Eurotronics/Thread_Radiator/knxiot/src/knxiot_coap_parser.hpp:19,
2>                  from D:\Project\Eurotronics\Thread_Radiator\knxiot\src\coap_requests\knxiot_coap_requests.hpp:18,
2>                  from D:\Project\Eurotronics\Thread_Radiator\knxiot\src\coap_requests\knxiot_coap_point_request.cpp:16:
2> C:/Program Files (x86)/GNU Arm Embedded Toolchain/10 2021.07/arm-none-eabi/include/c++/10.3.1/cstddef:58:11: error: '::max_align_t' has not been declared
3> In file included from D:/Project/Eurotronics/Thread_Radiator/knxiot/include/knxiot_delegate.hpp:21,
3>                  from D:/Project/Eurotronics/Thread_Radiator/knxiot/include/client/knxiot_result.hpp:23,
3>                  from D:/Project/Eurotronics/Thread_Radiator/knxiot/include/knxiot.hpp:26,
3>                  from D:/Project/Eurotronics/Thread_Radiator/knxiot/src/coap_api.hpp:4,
3>                  from D:/Project/Eurotronics/Thread_Radiator/knxiot/src/knxiot_coap_parser.hpp:19,
3>                  from D:\Project\Eurotronics\Thread_Radiator\knxiot\src\coap_requests\knxiot_coap_requests.hpp:18,
3>                  from D:\Project\Eurotronics\Thread_Radiator\knxiot\src\coap_requests\knxiot_coap_put.cpp:16:
3> C:/Program Files (x86)/GNU Arm Embedded Toolchain/10 2021.07/arm-none-eabi/include/c++/10.3.1/cstddef:58:11: error: '::max_align_t' has not been declared

testing2_20210929.zip

Thanks and Regards

Rohit R

Parents
  • Hi Rohit

    I'm sorry, but we won't be able to support a custom solution/toolchain like the one you have created, as our area of expertise lies in our already created SDKs like the SDK 4.1 for Zigbee and Thread and nRFConnect SDK. 

    Regarding your errors there are a lot of declaration errors pointing to some files missing from your project. Try finding out in what files these functions are declared and add the paths to those files to your project.

    Best regards,

    Simon

  • Hi Simon, 

    Thank you so much for your valuable feedback. 

    Some how I resolved the compiler issue. But getting other error. 

    Please find the attached log file. 

    Let me know your feedback on this. 

    Hope I get positive response as early as possible. 

    Rebuilding ‘Executable_1’ from solution ‘Executable_1’ in configuration ‘Debug External’
      Compiling ‘main.c’
      Compiling ‘SEGGER_RTT.c’
      Compiling ‘SEGGER_RTT_printf.c’
      Compiling ‘SEGGER_RTT_Syscalls_SES.c’
      Assembling ‘HardFaultHandler.S’
      Compiling ‘SEGGER_HardFaultHandler.c’
      Assembling ‘startup_ARMCM_GCC.S’
      Compiling ‘SEGGER_RTT_Syscalls_GCC.c’
      Compiling ‘boards.c’
      Compiling ‘bsp.c’
      Compiling ‘bsp_thread.c’
      Compiling ‘thread_coap_utils.c’
      Compiling ‘nrf_drv_clock.c’
      Compiling ‘nrf_nvic.c’
      Compiling ‘nrf_soc.c’
      Compiling ‘nrf_nvmc.c’
      Compiling ‘nrfx_atomic.c’
      Compiling ‘nrfx_clock.c’
      Compiling ‘nrfx_gpiote.c’
      Compiling ‘nrfx_nvmc.c’
      Compiling ‘app_button.c’
      Compiling ‘app_error.c’
      Compiling ‘app_error_handler_gcc.c’
      Compiling ‘app_util_platform.c’
      Compiling ‘nrf_assert.c’
      Compiling ‘assert.c’
      Compiling ‘app_timer_freertos.c’
      Compiling ‘nrf_atomic.c’
      Compiling ‘nrf_balloc.c’
      Compiling ‘nrf_ringbuf.c’
      Compiling ‘nrf_strerror.c’
      Compiling ‘nrf_section_iter.c’
      Compiling ‘nrf_pwr_mgmt.c’
      Compiling ‘nrf_memobj.c’
      Compiling ‘nrf_fprintf_format.c’
      Compiling ‘nrf_fprintf.c’
      Compiling ‘app_error_weak.c’
      Compiling ‘nrf_log_backend_rtt.c’
      Compiling ‘nrf_log_backend_serial.c’
      Compiling ‘nrf_log_default_backends.c’
      Compiling ‘nrf_log_frontend.c’
      Compiling ‘nrf_log_str_formatter.c’
      Compiling ‘thread_utils.c’
      Compiling ‘nrf_cc310_platform_abort_freertos.c’
      Compiling ‘nrf_cc310_platform_mutex_freertos.c’
      Compiling ‘croutine.c’
      Compiling ‘event_groups.c’
      Compiling ‘list.c’
      Compiling ‘queue.c’
      Compiling ‘stream_buffer.c’
      Compiling ‘tasks.c’
      Compiling ‘timers.c’
      Compiling ‘port_cmsis.c’
      Compiling ‘port.c’
      Compiling ‘port_cmsis_systick.c’
      Compiling ‘heap_4.c’
      Compiling ‘knxiot_coap_get.cpp’
      Compiling ‘knxiot_coap_observe.cpp’
      Compiling ‘knxiot_coap_point_request.cpp’
      Compiling ‘knxiot_coap_put.cpp’
      Compiling ‘knxiot_db_access.cpp’
      Compiling ‘knxiot_discovery.cpp’
      Compiling ‘knxiot_handshake.cpp’
      Compiling ‘knxiot_json_decoder.cpp’
      Compiling ‘token_configuration.cpp’
      Compiling ‘knxiot_buffer.cpp’
      Compiling ‘knxiot_timer.cpp’
      Compiling ‘logger.cpp’
      Compiling ‘lock.cpp’
        lock.cpp
        division by zero [-Wdiv-by-zero]
        in definition of macro 'xSemaphoreTake'
      Compiling ‘memory.cpp’
      Compiling ‘thread.cpp’
      Compiling ‘util.cpp’
      Compiling ‘time.cpp’
        division by zero [-Wdiv-by-zero]
      Compiling ‘platform_base.cpp’
      Compiling ‘platform_main.cpp’
      Compiling ‘coap_api_server.cpp’
      Compiling ‘coap_options.cpp’
      Compiling ‘knxiot.cpp’
      Compiling ‘knxiot_coap_address.cpp’
      Compiling ‘knxiot_c.cpp’
      Compiling ‘knxiot_coap_post.cpp’
      Compiling ‘knxiot_coap_process.cpp’
      Compiling ‘knxiot_coap_util.cpp’
      Compiling ‘knxiot_conf.cpp’
      Compiling ‘knxiot_result.cpp’
      Compiling ‘pool.cpp’
      Compiling ‘ringbuffer.cpp’
      Compiling ‘knxiot_internal_server.cpp’
      Compiling ‘knxiot_server.cpp’
      Compiling ‘knxiot_server_c.cpp’
      Compiling ‘knxiot_coap_parser.cpp’
      Compiling ‘spake2p_responder.cpp’
      Compiling ‘knxiot_console_utils.c’
      Compiling ‘server_c.c’
      Compiling ‘parse-arguments-empty.cpp’
      Compiling ‘app_coap_datapoints_ssa.c’
      Compiling ‘DB_implemetation.c’
      Linking ‘Executable_1.elf’
        missing --end-group; added as last command line option
        Output/Executable_1 Debug External/Obj/coap_options.o:(.bss._ZN7siemens3knx3iot8datalink4coap11ot_instanceE+0x0): multiple definition of `siemens::knx::iot::datalink::coap::ot_instance'; Output/Executable_1 Debug External/Obj/coap_api_server.o:(.bss._ZN7siemens3knx3iot8datalink4coap11ot_instanceE+0x0): first defined here
        Output/Debug External/Exe/Executable_1.elf section `.text' will not fit in region `FLASH'
        Output/Debug External/Exe/Executable_1.elf section `.bss' will not fit in region `RAM'
        region RAM overflowed with stack
        region `FLASH' overflowed by 134348 bytes
        region `RAM' overflowed by 67568 bytes
        Output/Executable_1 Debug External/Obj/main.o: in function `thread_state_changed_callback':
        undefined reference to `__start_log_const_data'
        Output/Executable_1 Debug External/Obj/main.o: in function `Joinercallback':
        undefined reference to `__start_log_const_data'
        Output/Executable_1 Debug External/Obj/thread_coap_utils.o: in function `coap_default_handler':
        undefined reference to `__start_log_const_data'
        Output/Executable_1 Debug External/Obj/thread_coap_utils.o: in function `light_request_handler':
        undefined reference to `__start_log_const_data'
        Output/Executable_1 Debug External/Obj/app_error_weak.o: in function `app_error_fault_handler':
        undefined reference to `__start_log_const_data'
        Output/Executable_1 Debug External/Obj/nrf_log_frontend.o: in function `nrf_log_init':
        undefined reference to `__stop_log_const_data'
        c:/program files (x86)/gnu arm embedded toolchain/10 2021.07/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/bin/ld.exe: D:\Project\Eurotronics\Thread_Radiator\nRF5_SDK_for_Thread_and_Zigbee_v4.0.0_dc7186b\examples\thread\testing2_20210929/../../../components/libraries/log/src/nrf_log_frontend.c:179: undefined reference to `__start_log_const_data'
        Output/Executable_1 Debug External/Obj/nrf_log_frontend.o: in function `nrf_log_module_cnt_get':
        undefined reference to `__stop_log_const_data'
        c:/program files (x86)/gnu arm embedded toolchain/10 2021.07/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/bin/ld.exe: D:\Project\Eurotronics\Thread_Radiator\nRF5_SDK_for_Thread_and_Zigbee_v4.0.0_dc7186b\examples\thread\testing2_20210929/../../../components/libraries/log/src/nrf_log_frontend.c:184: undefined reference to `__start_log_const_data'
        Output/Executable_1 Debug External/Obj/nrf_log_frontend.o: in function `module_idx_get':
        undefined reference to `__start_log_dynamic_data'
        Output/Executable_1 Debug External/Obj/nrf_log_frontend.o: in function `nrf_log_module_name_get':
        undefined reference to `__start_log_const_data'
        Output/Executable_1 Debug External/Obj/nrf_log_frontend.o: in function `nrf_log_color_id_get':
        undefined reference to `__start_log_const_data'
        Output/Executable_1 Debug External/Obj/nrf_log_frontend.o: in function `nrf_log_frontend_dequeue':
        undefined reference to `__start_log_const_data'
        Output/Executable_1 Debug External/Obj/thread_utils.o: in function `thread_init':
        undefined reference to `__start_log_const_data'
        ../../../external/openthread/lib/nrf52840/gcc/libopenthread-nrf52840-sdk.a(flash.c.o): in function `utilsFlashInit':
        undefined reference to `__stop_ot_flash_data'
        c:/program files (x86)/gnu arm embedded toolchain/10 2021.07/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/bin/ld.exe: C:\bamboo\xml-data\build-dir\KNG-OL-BOLO\sdk\sdk\nrf5\external\openthread\project\nrf52840\openthread_nrf52840\sdk\uart\armgcc/../../../../../openthread/examples/platforms/nrf528xx/src/flash.c:86: undefined reference to `__start_ot_flash_data'
        ld returned 1 exit status
    Build failed

    These error seems to be from nordic files or SDK. 

    Waiting for your feedback.

    Thanks and Regards

    Rohit R

  • Hi Rohit

    The first error seems to be that you're defining the siemens::knx::iot::datalink::coap::ot_instance multiple time, which is not one of our SDKs definitions. After that it seems like you're overflowing the RAM and Flash memory by quite a bit. Are you able to see what the size of your application is? 

    Best regards,

    Simon

  • Hi Simon, 

    Thanks for the response. 

    I have resolved my all error. 

    But when I tried to debug the code in Dev-kit, code entering into hardfaulthandler.s file's line

    hardfaulthandlers.s files---> tst LR, #4 ;// Check EXC_RETURN in Link register bit 2. line.

    when I went step by step in main.c file thread_instant_init() function it entering into hardfaulthandler.s 

    Can you guide me what could be the problem. attached is the image. 

    Thanks and Regards

    Rohit R

  • Hi Rohit

    Does this error also occur when you just run the code, or only when you go through it step by step. An application may hardfault if you step through some time critical functions. You should also do what the line you end up on say, and check the EXC_RETURN in the link register bit 2.

    Best regards,

    Simon

Reply Children
  • Hi Simon, 

    Thank you for the feedback,

    Does this error also occur when you just run the code, or only when you go through it step by step. An application may hardfault if you step through some time critical functions.

    - In both cases error occurring, which means if I run the code also enters into the hard fault handler, and if do step by step also it entering into the hard fault handler. 

    - What I observed is when the thread_init() function calls it enters into a hard fault handler. 

    - Also, if I remove the thread_init() parts from the code (exclude the thread-related parts) and keep a simple "hello world" freeRTOS task then when the task_scheduler function calls, code entering into hard fault handler. 

    - So, I thought it Is due to thread library and freertos, but I cross-checked the driver/library files in code, all are included correctly( referred to the SDK inbuilt code for this). 

    - Unable to understand the cause. 

    - And, as you know we are developing the project using the KNX-IoT stack on top of our Nordic stack. But the KNX-IoT stack is built using C++ libraries and wrapped C function to them. So we are getting lots of errors regarding C++ standards.

    - Decided to build using External ToolChain. Code build successfully but while debugging getting hard fault issue. 

    - In the meantime, what I did is used the nordic inbuilt nordic SDK4.0  freertos_coap_server example and imported the KNX-IoT library files but getting "unistd.h" such errors from these KNX files. 

    - Can you guide me on how to resolve this hard fault error or use inbuilt SDK code and develop KNX-IoT on top of nordic. 

    It is very urgent for me, Due to this, I am missing task completion deadlines. 

    Let me know your feedback. Wait for your response. 

    Thanks and Regards

    Rohit R 

  • Rohit Rajapure said:
    getting "unistd.h" such errors from these KNX files. 

    What do you mean by this sentence? The FreeRTOS_coap_server should show you a working example of how to use thread-safe variants of the OpenThread libraries. What exactly are the errors the KNX libraries cause? I'm guessing they're not added correctly to your project. 

    Please note that we have not looked at these KNX-IoT libraries, so we're not familiar with them or what they do. Are you sure this library/drivers compatible with an OpenThread project and FreeRTOS?

    Best regards,

    Simon

  • Hi, 

    Please close this ticket. I am making a new one as it is confusing. 

    Thanks and Regards

    Rohit R

Related