Hi,
I am programming for an nRF52840 chip. I am using Keil uVision with the ARM compiler in version 5. My codebase is in C++, this is why I have the Misc control "--cpp".
I want to use the uart library. But I do get compile errors, such as:
static nrf_drv_uart_t app_uart_inst = NRF_DRV_UART_INSTANCE(APP_UART_DRIVER_INSTANCE);
C:\nordic\sdk_16.0\components\libraries\uart\app_uart.c(90): error: #29: expected an expression
What do I have to do get rid of this? What I do understand is, that nRF5 SDK code base uses aggregate initialization for its structs, which the compiler does not like. Is there an SDK version that is C++ compatible?
Changing the ARM compiler to version 6 yields errors such as.
C:\Keil_v5\ARM\CMSIS\Include\core_cmFunc.h(602): error: unknown register name 'vfpcc' in asm
Kind regards,
Kai