Machine: Windows 10
SDK and Other tools installed successfully.
I was compiling for RAK5010 by make p="2 2 4 5 9",
error is thrown like below
Compiling file: main.c
In file included from ../../components/drivers_nrf/nrf_soc_nosd/nrf_soc.h:44,
from ../../RUI/Source/include/FreeRTOSConfig.h:34,
from ../../external/freertos/source/include/FreeRTOS.h:57,
from ../../RUI/Source/main.c:55:
../../modules/nrfx/mdk/nrf.h:94:10: error: #error "Device must be defined. See nrf.h."
#error "Device must be defined. See nrf.h."
^~~~~
In file included from ../../components/libraries/util/app_util_platform.h:57,
from ../../RUI/Source/include/FreeRTOSConfig.h:36,
from ../../external/freertos/source/include/FreeRTOS.h:57,
from ../../RUI/Source/main.c:55:
../../components/drivers_nrf/nrf_soc_nosd/nrf_nvic.h:59:28: error: unknown type name 'IRQn_Type'
uint32_t sd_nvic_EnableIRQ(IRQn_Type IRQn);
^~~~~~~~~
../../components/drivers_nrf/nrf_soc_nosd/nrf_nvic.h:70:29: error: unknown type name 'IRQn_Type'
uint32_t sd_nvic_DisableIRQ(IRQn_Type IRQn);
^~~~~~~~~
../../components/drivers_nrf/nrf_soc_nosd/nrf_nvic.h:82:32: error: unknown type name 'IRQn_Type'
uint32_t sd_nvic_GetPendingIRQ(IRQn_Type IRQn, uint32_t * p_pending_irq);
^~~~~~~~~
../../components/drivers_nrf/nrf_soc_nosd/nrf_nvic.h:93:32: error: unknown type name 'IRQn_Type'
uint32_t sd_nvic_SetPendingIRQ(IRQn_Type IRQn);
^~~~~~~~~
../../components/drivers_nrf/nrf_soc_nosd/nrf_nvic.h:104:34: error: unknown type name 'IRQn_Type'
uint32_t sd_nvic_ClearPendingIRQ(IRQn_Type IRQn);
^~~~~~~~~
../../components/drivers_nrf/nrf_soc_nosd/nrf_nvic.h:117:30: error: unknown type name 'IRQn_Type'
uint32_t sd_nvic_SetPriority(IRQn_Type IRQn, uint32_t priority);
^~~~~~~~~
../../components/drivers_nrf/nrf_soc_nosd/nrf_nvic.h:129:30: error: unknown type name 'IRQn_Type'
uint32_t sd_nvic_GetPriority(IRQn_Type IRQn, uint32_t * p_priority);
^~~~~~~~~
In file included from ../../external/freertos/source/include/FreeRTOS.h:57,
from ../../RUI/Source/main.c:55:
../../RUI/Source/include/FreeRTOSConfig.h:184:10: error: #error "This port requires __NVIC_PRIO_BITS to be defined"
#error "This port requires __NVIC_PRIO_BITS to be defined"
^~~~~
In file included from ../../external/freertos/portable/GCC/nrf52/portmacro.h:33,
from ../../external/freertos/source/include/portable.h:53,
from ../../external/freertos/source/include/FreeRTOS.h:63,
from ../../RUI/Source/main.c:55:
../../external/freertos/portable/CMSIS/nrf52/portmacro_cmsis.h:172:1: error: unknown type name '__STATIC_INLINE'
__STATIC_INLINE uint32_t ulPortRaiseBASEPRI( void )
^~~~~~~~~~~~~~~
../../external/freertos/portable/CMSIS/nrf52/portmacro_cmsis.h:172:26: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'ulPortRaiseBASEPRI'
__STATIC_INLINE uint32_t ulPortRaiseBASEPRI( void )
^~~~~~~~~~~~~~~~~~
../../RUI/Source/main.c:62:10: fatal error: ble_hci.h: No such file or directory
#include "ble_hci.h"
^~~~~~~~~~~
compilation terminated.
make: *** [../../components/toolchain/gcc/Makefile.common:272: _build/nrf52_xxaa/main.c.o] Error 1
PS C:\Users\Faris\Desktop\rak5010\dev\nRF5_SDK_15.0.0_a53641a\nRF5_SDK_15.0.0_a53641a\RUI\build> make p="2 2 4 5 9"
Compiling file: main.c
In file included from ../../components/drivers_nrf/nrf_soc_nosd/nrf_soc.h:44,
from ../../RUI/Source/include/FreeRTOSConfig.h:34,
from ../../external/freertos/source/include/FreeRTOS.h:57,
from ../../RUI/Source/main.c:55:
../../modules/nrfx/mdk/nrf.h:94:10: error: #error "Device must be defined. See nrf.h."
#error "Device must be defined. See nrf.h."
^~~~~
In file included from ../../components/libraries/util/app_util_platform.h:57,
from ../../RUI/Source/include/FreeRTOSConfig.h:36,
from ../../external/freertos/source/include/FreeRTOS.h:57,
from ../../RUI/Source/main.c:55:
../../components/drivers_nrf/nrf_soc_nosd/nrf_nvic.h:59:28: error: unknown type name 'IRQn_Type'
uint32_t sd_nvic_EnableIRQ(IRQn_Type IRQn);
^~~~~~~~~
../../components/drivers_nrf/nrf_soc_nosd/nrf_nvic.h:70:29: error: unknown type name 'IRQn_Type'
uint32_t sd_nvic_DisableIRQ(IRQn_Type IRQn);
^~~~~~~~~
../../components/drivers_nrf/nrf_soc_nosd/nrf_nvic.h:82:32: error: unknown type name 'IRQn_Type'
uint32_t sd_nvic_GetPendingIRQ(IRQn_Type IRQn, uint32_t * p_pending_irq);
^~~~~~~~~
../../components/drivers_nrf/nrf_soc_nosd/nrf_nvic.h:93:32: error: unknown type name 'IRQn_Type'
uint32_t sd_nvic_SetPendingIRQ(IRQn_Type IRQn);
^~~~~~~~~
../../components/drivers_nrf/nrf_soc_nosd/nrf_nvic.h:104:34: error: unknown type name 'IRQn_Type'
uint32_t sd_nvic_ClearPendingIRQ(IRQn_Type IRQn);
^~~~~~~~~
../../components/drivers_nrf/nrf_soc_nosd/nrf_nvic.h:117:30: error: unknown type name 'IRQn_Type'
uint32_t sd_nvic_SetPriority(IRQn_Type IRQn, uint32_t priority);
^~~~~~~~~
../../components/drivers_nrf/nrf_soc_nosd/nrf_nvic.h:129:30: error: unknown type name 'IRQn_Type'
uint32_t sd_nvic_GetPriority(IRQn_Type IRQn, uint32_t * p_priority);
^~~~~~~~~
In file included from ../../external/freertos/source/include/FreeRTOS.h:57,
from ../../RUI/Source/main.c:55:
../../RUI/Source/include/FreeRTOSConfig.h:184:10: error: #error "This port requires __NVIC_PRIO_BITS to be defined"
#error "This port requires __NVIC_PRIO_BITS to be defined"
^~~~~
In file included from ../../external/freertos/portable/GCC/nrf52/portmacro.h:33,
from ../../external/freertos/source/include/portable.h:53,
from ../../external/freertos/source/include/FreeRTOS.h:63,
from ../../RUI/Source/main.c:55:
../../external/freertos/portable/CMSIS/nrf52/portmacro_cmsis.h:172:1: error: unknown type name '__STATIC_INLINE'
__STATIC_INLINE uint32_t ulPortRaiseBASEPRI( void )
^~~~~~~~~~~~~~~
../../external/freertos/portable/CMSIS/nrf52/portmacro_cmsis.h:172:26: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'ulPortRaiseBASEPRI'
__STATIC_INLINE uint32_t ulPortRaiseBASEPRI( void )
^~~~~~~~~~~~~~~~~~
../../RUI/Source/main.c:62:10: fatal error: ble_hci.h: No such file or directory
#include "ble_hci.h"
^~~~~~~~~~~
compilation terminated.
make: *** [../../components/toolchain/gcc/Makefile.common:272: _build/nrf52_xxaa/main.c.o] Error 1
PS C:\Users\Faris\Desktop\rak5010\dev\nRF5_SDK_15.0.0_a53641a\nRF5_SDK_15.0.0_a53641a\RUI\build> make clean
rm -rf _build
PS C:\Users\Faris\Desktop\rak5010\dev\nRF5_SDK_15.0.0_a53641a\nRF5_SDK_15.0.0_a53641a\RUI\build> make p="2 2 4 5 9"
mkdir _build
cd _build && mkdir nrf52_xxaa
Compiling file: main.c
In file included from ../../components/drivers_nrf/nrf_soc_nosd/nrf_soc.h:44,
from ../../RUI/Source/include/FreeRTOSConfig.h:34,
from ../../external/freertos/source/include/FreeRTOS.h:57,
from ../../RUI/Source/main.c:55:
../../modules/nrfx/mdk/nrf.h:94:10: error: #error "Device must be defined. See nrf.h."
#error "Device must be defined. See nrf.h."
^~~~~
In file included from ../../components/libraries/util/app_util_platform.h:57,
from ../../RUI/Source/include/FreeRTOSConfig.h:36,
from ../../external/freertos/source/include/FreeRTOS.h:57,
from ../../RUI/Source/main.c:55:
../../components/drivers_nrf/nrf_soc_nosd/nrf_nvic.h:59:28: error: unknown type name 'IRQn_Type'
uint32_t sd_nvic_EnableIRQ(IRQn_Type IRQn);
^~~~~~~~~
../../components/drivers_nrf/nrf_soc_nosd/nrf_nvic.h:70:29: error: unknown type name 'IRQn_Type'
uint32_t sd_nvic_DisableIRQ(IRQn_Type IRQn);
^~~~~~~~~
../../components/drivers_nrf/nrf_soc_nosd/nrf_nvic.h:82:32: error: unknown type name 'IRQn_Type'
uint32_t sd_nvic_GetPendingIRQ(IRQn_Type IRQn, uint32_t * p_pending_irq);
^~~~~~~~~
../../components/drivers_nrf/nrf_soc_nosd/nrf_nvic.h:93:32: error: unknown type name 'IRQn_Type'
uint32_t sd_nvic_SetPendingIRQ(IRQn_Type IRQn);
^~~~~~~~~
../../components/drivers_nrf/nrf_soc_nosd/nrf_nvic.h:104:34: error: unknown type name 'IRQn_Type'
uint32_t sd_nvic_ClearPendingIRQ(IRQn_Type IRQn);
^~~~~~~~~
../../components/drivers_nrf/nrf_soc_nosd/nrf_nvic.h:117:30: error: unknown type name 'IRQn_Type'
uint32_t sd_nvic_SetPriority(IRQn_Type IRQn, uint32_t priority);
^~~~~~~~~
../../components/drivers_nrf/nrf_soc_nosd/nrf_nvic.h:129:30: error: unknown type name 'IRQn_Type'
uint32_t sd_nvic_GetPriority(IRQn_Type IRQn, uint32_t * p_priority);
^~~~~~~~~
In file included from ../../external/freertos/source/include/FreeRTOS.h:57,
from ../../RUI/Source/main.c:55:
../../RUI/Source/include/FreeRTOSConfig.h:184:10: error: #error "This port requires __NVIC_PRIO_BITS to be defined"
#error "This port requires __NVIC_PRIO_BITS to be defined"
^~~~~
In file included from ../../external/freertos/portable/GCC/nrf52/portmacro.h:33,
from ../../external/freertos/source/include/portable.h:53,
from ../../external/freertos/source/include/FreeRTOS.h:63,
from ../../RUI/Source/main.c:55:
../../external/freertos/portable/CMSIS/nrf52/portmacro_cmsis.h:172:1: error: unknown type name '__STATIC_INLINE'
__STATIC_INLINE uint32_t ulPortRaiseBASEPRI( void )
^~~~~~~~~~~~~~~
../../external/freertos/portable/CMSIS/nrf52/portmacro_cmsis.h:172:26: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'ulPortRaiseBASEPRI'
__STATIC_INLINE uint32_t ulPortRaiseBASEPRI( void )
^~~~~~~~~~~~~~~~~~
../../RUI/Source/main.c:62:10: fatal error: ble_hci.h: No such file or directory
#include "ble_hci.h"
^~~~~~~~~~~
compilation terminated.
make: *** [../../components/toolchain/gcc/Makefile.common:272: _build/nrf52_xxaa/main.c.o] Error 1
Machine: Windows 10 SDK and Other tools installed successfully.
I was compiling for RAK5010 by
make p="2 2 4 5 9"
,error is thrown like below