Answer resolved in this thread https://devzone.nordicsemi.com/question/110037/nrf52-projects-and-select-packs/
I am trying to set up a new environment for the nRF52832 10040 PCA devkit board. The company I work for has some code that has weird behaviors that I feel like is linked to library problems, however, it is not using the runtime manager libraries, but rather is linked to direct folders that are being tracked in a git repo.
I am trying to set up a brand new project in attempt to move the mentioned code into it with a managed run time environment.
However, just creating an incredibly basic project I get 95 errors all from compiling libraries in the run time environment managed by keil. What am I doing wrong? These files are obviously sourced from released versions, so how could they be compiling wrong? Here is an extensive dump of information, thanks for any help or ideas.
My main.c is simply this:
#include <stdbool.h>
#include <stdint.h>
#include "nordic_common.h"
#include "softdevice_handler.h"
int main(void){
}
Project C settings:
Compiler project item:
Run time environment
Errors:
*** Using Compiler 'V5.06 update 4 (build 422)', folder: 'C:\Keil_v5\ARM\ARMCC\Bin'
Build target 'Target 1'
compiling main.c...
C:\Keil_v5\ARM\PACK\ARM\CMSIS\5.0.0\CMSIS\Include\core_cm0.h(78): error: #35: #error directive: "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)"
#error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)"
main.c: 0 warnings, 1 error
compiling ble_srv_common.c...
C:\Keil_v5\ARM\PACK\NordicSemiconductor\nRF_BLE\4.0.0-2.alpha\common\ble_srv_common.c(51): warning: #260-D: explicit type is missing ("int" assumed)
static inline void set_security_req(security_req_t level, ble_gap_conn_sec_mode_t * p_perm)
C:\Keil_v5\ARM\PACK\NordicSemiconductor\nRF_BLE\4.0.0-2.alpha\common\ble_srv_common.c(51): error: #65: expected a ";"
static inline void set_security_req(security_req_t level, ble_gap_conn_sec_mode_t * p_perm)
C:\Keil_v5\ARM\PACK\NordicSemiconductor\nRF_BLE\4.0.0-2.alpha\common\ble_srv_common.c(74): warning: #12-D: parsing restarts here after previous syntax error
LE_GAP_CONN_SEC_MODE_SET_SIGNED_WITH_MITM(p_perm);
C:\Keil_v5\ARM\PACK\NordicSemiconductor\nRF_BLE\4.0.0-2.alpha\common\ble_srv_common.c(75): error: #169: expected a declaration
break;
C:\Keil_v5\ARM\PACK\NordicSemiconductor\nRF_BLE\4.0.0-2.alpha\common\ble_srv_common.c(76): error: #169: expected a declaration
}
C:\Keil_v5\ARM\PACK\NordicSemiconductor\nRF_BLE\4.0.0-2.alpha\common\ble_srv_common.c(78): error: #169: expected a declaration
}
C:\Keil_v5\ARM\PACK\NordicSemiconductor\nRF_BLE\4.0.0-2.alpha\common\ble_srv_common.c(105): warning: #12-D: parsing restarts here after previous syntax error
attr_md.rd_auth = (p_char_props->is_defered_read ? 1 : 0);
C:\Keil_v5\ARM\PACK\NordicSemiconductor\nRF_BLE\4.0.0-2.alpha\common\ble_srv_common.c(106): error: #77-D: this declaration has no storage class or type specifier
attr_md.wr_auth = (p_char_props->is_defered_write ? 1 : 0);
C:\Keil_v5\ARM\PACK\NordicSemiconductor\nRF_BLE\4.0.0-2.alpha\common\ble_srv_common.c(106): error: #65: expected a ";"
attr_md.wr_auth = (p_char_props->is_defered_write ? 1 : 0);
C:\Keil_v5\ARM\PACK\NordicSemiconductor\nRF_BLE\4.0.0-2.alpha\common\ble_srv_common.c(107): error: #77-D: this declaration has no storage class or type specifier
attr_md.vlen = (p_char_props->is_var_len ? 1 : 0);
C:\Keil_v5\ARM\PACK\NordicSemiconductor\nRF_BLE\4.0.0-2.alpha\common\ble_srv_common.c(107): error: #65: expected a ";"
attr_md.vlen = (p_char_props->is_var_len ? 1 : 0);
C:\Keil_v5\ARM\PACK\NordicSemiconductor\nRF_BLE\4.0.0-2.alpha\common\ble_srv_common.c(108): error: #77-D: this declaration has no storage class or type specifier
attr_md.vloc = (p_char_props->is_value_user ? BLE_GATTS_VLOC_USER : BLE_GATTS_VLOC_STACK);
C:\Keil_v5\ARM\PACK\NordicSemiconductor\nRF_BLE\4.0.0-2.alpha\common\ble_srv_common.c(108): error: #65: expected a ";"
attr_md.vloc = (p_char_props->is_value_user ? BLE_GATTS_VLOC_USER : BLE_GATTS_VLOC_STACK);
C:\Keil_v5\ARM\PACK\NordicSemiconductor\nRF_BLE\4.0.0-2.alpha\common\ble_srv_common.c(111): error: #79: expected a type specifier
memset(&char_md, 0, sizeof(ble_gatts_char_md_t));
C:\Keil_v5\ARM\PACK\NordicSemiconductor\nRF_BLE\4.0.0-2.alpha\common\ble_srv_common.c(111): error: #79: expected a type specifier
memset(&char_md, 0, sizeof(ble_gatts_char_md_t));
C:\Keil_v5\ARM\PACK\NordicSemiconductor\nRF_BLE\4.0.0-2.alpha\common\ble_srv_common.c(111): error: #79: expected a type specifier
memset(&char_md, 0, sizeof(ble_gatts_char_md_t));
C:\Keil_v5\ARM\PACK\NordicSemiconductor\nRF_BLE\4.0.0-2.alpha\common\ble_srv_common.c(111): warning: #77-D: this declaration has no storage class or type specifier
memset(&char_md, 0, sizeof(ble_gatts_char_md_t));
C:\Keil_v5\ARM\PACK\NordicSemiconductor\nRF_BLE\4.0.0-2.alpha\common\ble_srv_common.c(111): error: #147: declaration is incompatible with "void *memset(void *, int, size_t)" (declared at line 321 of "C:\Keil_v5\ARM\ARMCC\Bin\..\include\string.h")
memset(&char_md, 0, sizeof(ble_gatts_char_md_t));
C:\Keil_v5\ARM\PACK\NordicSemiconductor\nRF_BLE\4.0.0-2.alpha\common\ble_srv_common.c(112): error: #169: expected a declaration
if ((p_char_props->char_props.notify == 1)||(p_char_props->char_props.indicate == 1))
C:\Keil_v5\ARM\PACK\NordicSemiconductor\nRF_BLE\4.0.0-2.alpha\common\ble_srv_common.c(123): warning: #12-D: parsing restarts here after previous syntax error
char_md.char_props = p_char_props->char_props;
C:\Keil_v5\ARM\PACK\NordicSemiconductor\nRF_BLE\4.0.0-2.alpha\common\ble_srv_common.c(125): error: #79: expected a type specifier
memset(&attr_char_value, 0, sizeof(ble_gatts_attr_t));
C:\Keil_v5\ARM\PACK\NordicSemiconductor\nRF_BLE\4.0.0-2.alpha\common\ble_srv_common.c(125): error: #79: expected a type specifier
memset(&attr_char_value, 0, sizeof(ble_gatts_attr_t));
C:\Keil_v5\ARM\PACK\NordicSemiconductor\nRF_BLE\4.0.0-2.alpha\common\ble_srv_common.c(125): error: #79: expected a type specifier
memset(&attr_char_value, 0, sizeof(ble_gatts_attr_t));
C:\Keil_v5\ARM\PACK\NordicSemiconductor\nRF_BLE\4.0.0-2.alpha\common\ble_srv_common.c(125): warning: #77-D: this declaration has no storage class or type specifier
memset(&attr_char_value, 0, sizeof(ble_gatts_attr_t));
C:\Keil_v5\ARM\PACK\NordicSemiconductor\nRF_BLE\4.0.0-2.alpha\common\ble_srv_common.c(126): error: #77-D: this declaration has no storage class or type specifier
attr_char_value.p_uuid = &char_uuid;
C:\Keil_v5\ARM\PACK\NordicSemiconductor\nRF_BLE\4.0.0-2.alpha\common\ble_srv_common.c(126): error: #65: expected a ";"
attr_char_value.p_uuid = &char_uuid;
C:\Keil_v5\ARM\PACK\NordicSemiconductor\nRF_BLE\4.0.0-2.alpha\common\ble_srv_common.c(127): error: #77-D: this declaration has no storage class or type specifier
attr_char_value.p_attr_md = &attr_md;
C:\Keil_v5\ARM\PACK\NordicSemiconductor\nRF_BLE\4.0.0-2.alpha\common\ble_srv_common.c(127): error: #65: expected a ";"
attr_char_value.p_attr_md = &attr_md;
C:\Keil_v5\ARM\PACK\NordicSemiconductor\nRF_BLE\4.0.0-2.alpha\common\ble_srv_common.c(128): error: #77-D: this declaration has no storage class or type specifier
attr_char_value.max_len = p_char_props->max_len;
C:\Keil_v5\ARM\PACK\NordicSemiconductor\nRF_BLE\4.0.0-2.alpha\common\ble_srv_common.c(128): error: #65: expected a ";"
attr_char_value.max_len = p_char_props->max_len;
C:\Keil_v5\ARM\PACK\NordicSemiconductor\nRF_BLE\4.0.0-2.alpha\common\ble_srv_common.c(129): error: #169: expected a declaration
if (p_char_props->p_init_value != NULL)
C:\Keil_v5\ARM\PACK\NordicSemiconductor\nRF_BLE\4.0.0-2.alpha\common\ble_srv_common.c(158): warning: #12-D: parsing restarts here after previous syntax error
p_char_handle);
C:\Keil_v5\ARM\PACK\NordicSemiconductor\nRF_BLE\4.0.0-2.alpha\common\ble_srv_common.c(159): error: #169: expected a declaration
}
C:\Keil_v5\ARM\PACK\NordicSemiconductor\nRF_BLE\4.0.0-2.alpha\common\ble_srv_common.c(186): warning: #12-D: parsing restarts here after previous syntax error
attr_md.wr_auth = (p_descr_props->is_defered_write ? 1 : 0);
C:\Keil_v5\ARM\PACK\NordicSemiconductor\nRF_BLE\4.0.0-2.alpha\common\ble_srv_common.c(187): error: #77-D: this declaration has no storage class or type specifier
attr_md.vlen = (p_descr_props->is_var_len ? 1 : 0);
C:\Keil_v5\ARM\PACK\NordicSemiconductor\nRF_BLE\4.0.0-2.alpha\common\ble_srv_common.c(187): error: #65: expected a ";"
attr_md.vlen = (p_descr_props->is_var_len ? 1 : 0);
C:\Keil_v5\ARM\PACK\NordicSemiconductor\nRF_BLE\4.0.0-2.alpha\common\ble_srv_common.c(188): error: #77-D: this declaration has no storage class or type specifier
attr_md.vloc = (p_descr_props->is_value_user ? BLE_GATTS_VLOC_USER : BLE_GATTS_VLOC_STACK);
C:\Keil_v5\ARM\PACK\NordicSemiconductor\nRF_BLE\4.0.0-2.alpha\common\ble_srv_common.c(188): error: #65: expected a ";"
attr_md.vloc = (p_descr_props->is_value_user ? BLE_GATTS_VLOC_USER : BLE_GATTS_VLOC_STACK);
C:\Keil_v5\ARM\PACK\NordicSemiconductor\nRF_BLE\4.0.0-2.alpha\common\ble_srv_common.c: 8 warnings, 30 errors
compiling bsp.c...
RTE\Board_Support\nRF52832_xxAA\bsp.c(123): error: #268: declaration may not appear after executable statement in block
uint32_t buttons = ~NRF_GPIO->IN;
RTE\Board_Support\nRF52832_xxAA\bsp.c(124): error: #268: declaration may not appear after executable statement in block
uint32_t cnt;
RTE\Board_Support\nRF52832_xxAA\bsp.c(660): error: #254: type name is not allowed
for (uint32_t i = 0; i < BUTTONS_NUMBER; i++)
RTE\Board_Support\nRF52832_xxAA\bsp.c(660): error: #65: expected a ";"
for (uint32_t i = 0; i < BUTTONS_NUMBER; i++)
RTE\Board_Support\nRF52832_xxAA\bsp.c(660): error: #20: identifier "i" is undefined
for (uint32_t i = 0; i < BUTTONS_NUMBER; i++)
RTE\Board_Support\nRF52832_xxAA\bsp.c: 0 warnings, 5 errors
compiling nrf_drv_gpiote.c...
C:\Keil_v5\ARM\PACK\NordicSemiconductor\nRF_Drivers\4.0.0-2.alpha\hal\nrf_gpiote.h(294): error: #268: declaration may not appear after executable statement in block
volatile uint32_t dummy = *((volatile uint32_t *)nrf_gpiote_event_addr_get(event));
C:\Keil_v5\ARM\PACK\NordicSemiconductor\nRF_Drivers\4.0.0-2.alpha\gpiote\nrf_drv_gpiote.c(43): error: #20: identifier "GPIOTE_CONFIG_NUM_OF_LOW_POWER_EVENTS" is undefined
nrf_drv_gpiote_evt_handler_t handlers[
UMBER_OF_GPIO_TE+GPIOTE_CONFIG_NUM_OF_LOW_POWER_EVENTS];
C:\Keil_v5\ARM\PACK\NordicSemiconductor\nRF_Drivers\4.0.0-2.alpha\gpiote\nrf_drv_gpiote.c(147): error: #268: declaration may not appear after executable statement in block
uint8_t i;
C:\Keil_v5\ARM\PACK\NordicSemiconductor\nRF_Drivers\4.0.0-2.alpha\gpiote\nrf_drv_gpiote.c(157): error: #20: identifier "GPIOTE_CONFIG_IRQ_PRIORITY" is undefined
nrf_drv_common_irq_enable(GPIOTE_IRQn, GPIOTE_CONFIG_IRQ_PRIORITY);
C:\Keil_v5\ARM\PACK\NordicSemiconductor\nRF_Drivers\4.0.0-2.alpha\gpiote\nrf_drv_gpiote.c(173): error: #268: declaration may not appear after executable statement in block
uint32_t i;
C:\Keil_v5\ARM\PACK\NordicSemiconductor\nRF_Drivers\4.0.0-2.alpha\gpiote\nrf_drv_gpiote.c(198): error: #268: declaration may not appear after executable statement in block
ret_code_t result = NRF_SUCCESS;
C:\Keil_v5\ARM\PACK\NordicSemiconductor\nRF_Drivers\4.0.0-2.alpha\gpiote\nrf_drv_gpiote.c(307): error: #268: declaration may not appear after executable statement in block
nrf_gpiote_tasks_t task = TE_IDX_TO_TASK_ADDR(channel_port_get(pin));
C:\Keil_v5\ARM\PACK\NordicSemiconductor\nRF_Drivers\4.0.0-2.alpha\gpiote\nrf_drv_gpiote.c(317): error: #268: declaration may not appear after executable statement in block
nrf_gpiote_outinit_t init_val = state ? NRF_GPIOTE_INITIAL_VALUE_HIGH : NRF_GPIOTE_INITIAL_VALUE_LOW;
C:\Keil_v5\ARM\PACK\NordicSemiconductor\nRF_Drivers\4.0.0-2.alpha\gpiote\nrf_drv_gpiote.c(327): error: #268: declaration may not appear after executable statement in block
nrf_gpiote_tasks_t task = TE_IDX_TO_TASK_ADDR(channel_port_get(pin));;
C:\Keil_v5\ARM\PACK\NordicSemiconductor\nRF_Drivers\4.0.0-2.alpha\gpiote\nrf_drv_gpiote.c(336): error: #268: declaration may not appear after executable statement in block
ret_code_t result = NRF_SUCCESS;
C:\Keil_v5\ARM\PACK\NordicSemiconductor\nRF_Drivers\4.0.0-2.alpha\gpiote\nrf_drv_gpiote.c(456): error: #268: declaration may not appear after executable statement in block
nrf_gpiote_events_t event = TE_IDX_TO_EVENT_ADDR(channel_port_get(pin));
C:\Keil_v5\ARM\PACK\NordicSemiconductor\nRF_Drivers\4.0.0-2.alpha\gpiote\nrf_drv_gpiote.c(524): error: #268: declaration may not appear after executable statement in block
nrf_gpio_pin_sense_t sense = nrf_gpio_pin_sense_get(pin);
C:\Keil_v5\ARM\PACK\NordicSemiconductor\nRF_Drivers\4.0.0-2.alpha\gpiote\nrf_drv_gpiote.c: 0 warnings, 12 errors
compiling app_error.c...
RTE\nRF_Libraries\nRF52832_xxAA\app_error.c(53): error: #29: expected an expression
.line_num = line_num,
RTE\nRF_Libraries\nRF52832_xxAA\app_error.c(54): error: #29: expected an expression
.p_file_name = p_file_name,
RTE\nRF_Libraries\nRF52832_xxAA\app_error.c(55): error: #29: expected an expression
.err_code = error_code,
RTE\nRF_Libraries\nRF52832_xxAA\app_error.c(67): error: #29: expected an expression
.line_num = 0,
RTE\nRF_Libraries\nRF52832_xxAA\app_error.c(68): error: #29: expected an expression
.p_file_name = NULL,
RTE\nRF_Libraries\nRF52832_xxAA\app_error.c(69): error: #29: expected an expression
.err_code = error_code,
RTE\nRF_Libraries\nRF52832_xxAA\app_error.c: 0 warnings, 6 errors
compiling app_timer.c...
C:\Keil_v5\ARM\PACK\NordicSemiconductor\nRF_DeviceFamilyPack\8.11.1\Device\Include\nrf51.h(67): error: #101: "Reset_IRQn" has already been declared in the current scope
Reset_IRQn = -15, /*!< 1 Reset Vector, invoked on Power up and warm reset */
C:\Keil_v5\ARM\PACK\NordicSemiconductor\nRF_DeviceFamilyPack\8.11.1\Device\Include\nrf51.h(68): error: #101: "NonMaskableInt_IRQn" has already been declared in the current scope
NonMaskableInt_IRQn = -14, /*!< 2 Non maskable Interrupt, cannot be stopped or preempted */
C:\Keil_v5\ARM\PACK\NordicSemiconductor\nRF_DeviceFamilyPack\8.11.1\Device\Include\nrf51.h(69): error: #101: "HardFault_IRQn" has already been declared in the current scope
HardFault_IRQn = -13, /*!< 3 Hard Fault, all classes of Fault */
C:\Keil_v5\ARM\PACK\NordicSemiconductor\nRF_DeviceFamilyPack\8.11.1\Device\Include\nrf51.h(70): error: #101: "SVCall_IRQn" has already been declared in the current scope
SVCall_IRQn = -5, /*!< 11 System Service Call via SVC instruction */
C:\Keil_v5\ARM\PACK\NordicSemiconductor\nRF_DeviceFamilyPack\8.11.1\Device\Include\nrf51.h(71): error: #101: "DebugMonitor_IRQn" has already been declared in the current scope
DebugMonitor_IRQn = -4, /*!< 12 Debug Monitor */
C:\Keil_v5\ARM\PACK\NordicSemiconductor\nRF_DeviceFamilyPack\8.11.1\Device\Include\nrf51.h(72): error: #101: "PendSV_IRQn" has already been declared in the current scope
PendSV_IRQn = -2, /*!< 14 Pendable request for system service */
C:\Keil_v5\ARM\PACK\NordicSemiconductor\nRF_DeviceFamilyPack\8.11.1\Device\Include\nrf51.h(73): error: #101: "SysTick_IRQn" has already been declared in the current scope
SysTick_IRQn = -1, /*!< 15 System Tick Timer */
C:\Keil_v5\ARM\PACK\NordicSemiconductor\nRF_DeviceFamilyPack\8.11.1\Device\Include\nrf51.h(75): error: #101: "POWER_CLOCK_IRQn" has already been declared in the current scope
POWER_CLOCK_IRQn = 0, /*!< 0 POWER_CLOCK */
C:\Keil_v5\ARM\PACK\NordicSemiconductor\nRF_DeviceFamilyPack\8.11.1\Device\Include\nrf51.h(76): error: #101: "RADIO_IRQn" has already been declared in the current scope
RADIO_IRQn = 1, /*!< 1 RADIO */
C:\Keil_v5\ARM\PACK\NordicSemiconductor\nRF_DeviceFamilyPack\8.11.1\Device\Include\nrf51.h(77): error: #101: "UARTE0_UART0_IRQn" has already been declared in the current scope
ART0_IRQn = 2, /*!< 2 UART0 */
C:\Keil_v5\ARM\PACK\NordicSemiconductor\nRF_DeviceFamilyPack\8.11.1\Device\Include\nrf51.h(78): error: #101: "SPIM0_SPIS0_TWIM0_TWIS0_SPI0_TWI0_IRQn" has already been declared in the current scope
PI0_TWI0_IRQn = 3, /*!< 3 SPI0_TWI0 */
C:\Keil_v5\ARM\PACK\NordicSemiconductor\nRF_DeviceFamilyPack\8.11.1\Device\Include\nrf51.h(79): error: #101: "SPIM1_SPIS1_TWIM1_TWIS1_SPI1_TWI1_IRQn" has already been declared in the current scope
PI1_TWI1_IRQn = 4, /*!< 4 SPI1_TWI1 */
C:\Keil_v5\ARM\PACK\NordicSemiconductor\nRF_DeviceFamilyPack\8.11.1\Device\Include\nrf51.h(80): error: #101: "GPIOTE_IRQn" has already been declared in the current scope
GPIOTE_IRQn = 6, /*!< 6 GPIOTE */
C:\Keil_v5\ARM\PACK\NordicSemiconductor\nRF_DeviceFamilyPack\8.11.1\Device\Include\nrf51.h(81): error: #101: "SAADC_IRQn" has already been declared in the current scope
DC_IRQn = 7, /*!< 7 ADC */
C:\Keil_v5\ARM\PACK\NordicSemiconductor\nRF_DeviceFamilyPack\8.11.1\Device\Include\nrf51.h(82): error: #101: "TIMER0_IRQn" has already been declared in the current scope
TIMER0_IRQn = 8, /*!< 8 TIMER0 */
C:\Keil_v5\ARM\PACK\NordicSemiconductor\nRF_DeviceFamilyPack\8.11.1\Device\Include\nrf51.h(83): error: #101: "TIMER1_IRQn" has already been declared in the current scope
TIMER1_IRQn = 9, /*!< 9 TIMER1 */
C:\Keil_v5\ARM\PACK\NordicSemiconductor\nRF_DeviceFamilyPack\8.11.1\Device\Include\nrf51.h(84): error: #101: "TIMER2_IRQn" has already been declared in the current scope
TIMER2_IRQn = 10, /*!< 10 TIMER2 */
C:\Keil_v5\ARM\PACK\NordicSemiconductor\nRF_DeviceFamilyPack\8.11.1\Device\Include\nrf51.h(85): error: #101: "RTC0_IRQn" has already been declared in the current scope
RTC0_IRQn = 11, /*!< 11 RTC0 */
C:\Keil_v5\ARM\PACK\NordicSemiconductor\nRF_DeviceFamilyPack\8.11.1\Device\Include\nrf51.h(86): error: #101: "TEMP_IRQn" has already been declared in the current scope
TEMP_IRQn = 12, /*!< 12 TEMP */
C:\Keil_v5\ARM\PACK\NordicSemiconductor\nRF_DeviceFamilyPack\8.11.1\Device\Include\nrf51.h(87): error: #101: "RNG_IRQn" has already been declared in the current scope
RNG_IRQn = 13, /*!< 13 RNG */
C:\Keil_v5\ARM\PACK\NordicSemiconductor\nRF_DeviceFamilyPack\8.11.1\Device\Include\nrf51.h(88): error: #101: "ECB_IRQn" has already been declared in the current scope
ECB_IRQn = 14, /*!< 14 ECB */
C:\Keil_v5\ARM\PACK\NordicSemiconductor\nRF_DeviceFamilyPack\8.11.1\Device\Include\nrf51.h(89): error: #101: "CCM_AAR_IRQn" has already been declared in the current scope
CCM_AAR_IRQn = 15, /*!< 15 CCM_AAR */
C:\Keil_v5\ARM\PACK\NordicSemiconductor\nRF_DeviceFamilyPack\8.11.1\Device\Include\nrf51.h(90): error: #101: "WDT_IRQn" has already been declared in the current scope
WDT_IRQn = 16, /*!< 16 WDT */
C:\Keil_v5\ARM\PACK\NordicSemiconductor\nRF_DeviceFamilyPack\8.11.1\Device\Include\nrf51.h(91): error: #101: "RTC1_IRQn" has already been declared in the current scope
RTC1_IRQn = 17, /*!< 17 RTC1 */
C:\Keil_v5\ARM\PACK\NordicSemiconductor\nRF_DeviceFamilyPack\8.11.1\Device\Include\nrf51.h(92): error: #101: "QDEC_IRQn" has already been declared in the current scope
QDEC_IRQn = 18, /*!< 18 QDEC */
C:\Keil_v5\ARM\PACK\NordicSemiconductor\nRF_DeviceFamilyPack\8.11.1\Device\Include\nrf51.h(93): error: #101: "COMP_LPCOMP_IRQn" has already been declared in the current scope
PCOMP_IRQn = 19, /*!< 19 LPCOMP */
C:\Keil_v5\ARM\PACK\NordicSemiconductor\nRF_DeviceFamilyPack\8.11.1\Device\Include\nrf51.h(94): error: #101: "SWI0_EGU0_IRQn" has already been declared in the current scope
WI0_IRQn = 20, /*!< 20 SWI0 */
C:\Keil_v5\ARM\PACK\NordicSemiconductor\nRF_DeviceFamilyPack\8.11.1\Device\Include\nrf51.h(95): error: #101: "SWI1_EGU1_IRQn" has already been declared in the current scope
WI1_IRQn = 21, /*!< 21 SWI1 */
C:\Keil_v5\ARM\PACK\NordicSemiconductor\nRF_DeviceFamilyPack\8.11.1\Device\Include\nrf51.h(96): error: #101: "SWI2_EGU2_IRQn" has already been declared in the current scope
WI2_IRQn = 22, /*!< 22 SWI2 */
C:\Keil_v5\ARM\PACK\NordicSemiconductor\nRF_DeviceFamilyPack\8.11.1\Device\Include\nrf51.h(97): error: #101: "SWI3_EGU3_IRQn" has already been declared in the current scope
WI3_IRQn = 23, /*!< 23 SWI3 */
RTE\nRF_Libraries\nRF52832_xxAA\app_timer.c: 0 warnings, 30 errors
compiling softdevice_handler.c...
C:\Keil_v5\ARM\PACK\ARM\CMSIS\5.0.0\CMSIS\Include\core_cm0.h(78): error: #35: #error directive: "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)"
#error "Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)"
RTE\nRF_SoftDevice\nRF52832_xxAA\softdevice_handler.c: 0 warnings, 1 error
compiling app_button.c...
C:\Keil_v5\ARM\PACK\NordicSemiconductor\nRF_Drivers\4.0.0-2.alpha\hal\nrf_gpiote.h(294): error: #268: declaration may not appear after executable statement in block
volatile uint32_t dummy = *((volatile uint32_t *)nrf_gpiote_event_addr_get(event));
RTE\nRF_Libraries\nRF52832_xxAA\app_button.c(53): error: #268: declaration may not appear after executable statement in block
ool pin_is_set = nrf_drv_gpiote_in_is_set(p_btn->pin_no);
RTE\nRF_Libraries\nRF52832_xxAA\app_button.c(138): error: #29: expected an expression
nrf_drv_gpiote_in_config_t config =
PIOTE_CONFIG_IN_SENSE_TOGGLE(false);
RTE\nRF_Libraries\nRF52832_xxAA\app_button.c(138): error: #29: expected an expression
nrf_drv_gpiote_in_config_t config =
PIOTE_CONFIG_IN_SENSE_TOGGLE(false);
RTE\nRF_Libraries\nRF52832_xxAA\app_button.c(138): error: #29: expected an expression
nrf_drv_gpiote_in_config_t config =
PIOTE_CONFIG_IN_SENSE_TOGGLE(false);
RTE\nRF_Libraries\nRF52832_xxAA\app_button.c(138): error: #29: expected an expression
nrf_drv_gpiote_in_config_t config =
PIOTE_CONFIG_IN_SENSE_TOGGLE(false);
RTE\nRF_Libraries\nRF52832_xxAA\app_button.c(155): error: #268: declaration may not appear after executable statement in block
uint32_t i;
RTE\nRF_Libraries\nRF52832_xxAA\app_button.c(169): error: #268: declaration may not appear after executable statement in block
uint32_t i;
RTE\nRF_Libraries\nRF52832_xxAA\app_button.c(185): error: #268: declaration may not appear after executable statement in block
app_button_cfg_t * p_btn = &mp_buttons[button_id];
RTE\nRF_Libraries\nRF52832_xxAA\app_button.c(186): error: #268: declaration may not appear after executable statement in block
ool is_set = nrf_drv_gpiote_in_is_set(p_btn->pin_no);
RTE\nRF_Libraries\nRF52832_xxAA\app_button.c: 0 warnings, 10 errors
".\Objects\pstorage.axf" - 95 Error(s), 8 Warning(s).
Target not created.
Build Time Elapsed: 00:00:05