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

  • 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