I am using IAR 7.40.3.8938, i was looking through the include directories in IAR and i noticed "nRF52_SDK_0.9.0_0c82e3e\components\toolchain\gcc". I removed it and i got the following error:
Fatal Error[Pe1696]: cannot open source file "core_cm4.h" nRF52_SDK_0.9.0_0c82e3e\components\device\nrf52.h 135
I couldn't find "core_cm4.h" in any other folders. Should "nRF52_SDK_0.9.0_0c82e3e\components\toolchain\gcc" be included when building with IAR? Or should "core_cm4.h" exist somewhere else?
core_cm4.h appears to have preprocessor switches inside for IAR. So it would suggest it is correct.