Compiler error SYSTEM_NRF52_APPROTECT.H

Build started: Project: uart
*** Using Compiler 'V5.06 update 7 (build 960)', folder: 'C:\Keil_v5\ARM\ARMCC\Bin'
Build target 'Target 1'
assembling arm_startup_nrf52820.s...
compiling main.c...
compiling system_nrf52.c...
C:\Users\walter\AppData\Local\Arm\Packs\NordicSemiconductor\nRF_DeviceFamilyPack\8.46.0\Device\Include\system_nrf52_approtect.h(41): warning: #260-D: explicit type is missing ("int" assumed)
static inline void nrf52_handle_approtect(void)
C:\Users\walter\AppData\Local\Arm\Packs\NordicSemiconductor\nRF_DeviceFamilyPack\8.46.0\Device\Include\system_nrf52_approtect.h(41): error: #65: expected a ";"
static inline void nrf52_handle_approtect(void)
RTE/Device/nRF52820_xxAA/system_nrf52.c(38): warning: #12-D: parsing restarts here after previous syntax error
uint32_t SystemCoreClock __attribute__((used)) = __SYSTEM_CLOCK_64M;
RTE/Device/nRF52820_xxAA/system_nrf52.c(272): warning: #223-D: function "nrf52_handle_approtect" declared implicitly
nrf52_handle_approtect();
RTE/Device/nRF52820_xxAA/system_nrf52.c: 3 warnings, 1 error
".\Objects\example.axf" - 1 Error(s), 3 Warning(s).
Target not created.
Build Time Elapsed: 00:00:01

Parents Reply
  • Are you familiar with our SDKs ? 
    Or you are getting started straight with such github repo ? 

    If you are not familiar with our SDKs, I would suggest to get started first with the NRF Connect SDK or nRF5 SDK (depreciated) . 

    The github repo was made many years ago and may not be able to run with current toolchain. From what I can see you would need to install Device Pack v8.11.1 and also you would need to point the project to 

    \components\drivers_nrf\hal\nrf_peripherals.h from nRF5 SDK. 
    I also attached the file here. nrf_peripherals.h

    Note that the github repo is not an official Nordic example and we don't maintain/update it. 

Children
No Data
Related