Hello, I am working through the tutorials to understand how to better use the SDK. I am currently on the Advertising tutorial and have gotten a strange error that doesn't make sense. I am working with the nRF52832 in Keil uVision 5 with SDK 12.2.0 and S132 (because that is what the tutorial uses).
Here is the error:
..\components\ble\ble_advertising\ble_advertising.c(590): error: #20: identifier "NRF_EVT_FLASH_OPERATION_SUCCESS" is undefined
case NRF_EVT_FLASH_OPERATION_SUCCESS:
The "NRF_EVT_FLASH_OPERATION_SUCCESS" is part of the enum NRF_SOC_EVTS. This enum is then defined in the "nrf_soc.h" header file. The C file that is generating the error is the "ble_advertising.c" file which includes the "nrf_soc.h" file.
Because the "ble_advertising.c" file includes the header file where the NRF_EVT_FLASH_OPERATION_SUCCESS is defined, I do not understand why there is an error. I have included the "nrf_soc.h" file in the include path.
What is going on here?