Hi Team,
We have ported the code from SDK 16 to 17.0.0 version. While compiling we are getting error (attached the screenshot).
But the all required files are included like "nrf_nvic.h" , "nrf_error_soc.h"
Regards,
Srinivas.V
Hi Team,
We have ported the code from SDK 16 to 17.0.0 version. While compiling we are getting error (attached the screenshot).
But the all required files are included like "nrf_nvic.h" , "nrf_error_soc.h"
Regards,
Srinivas.V
Hi
With errors pointing to unreachable statements, it seems like you have some logic issues in your project. Did you follow the migration guide added in the SDK v17.0.0 documentation in order to make sure everything is migrated properly?
Best regards,
Simon
Hi Simonr,
Thanks for your reply. we have taken all precautions, but only one place we are getting , if we comment that return value (Shown in image with error) it is working fine. But same thing is there in SDK Version 16 as well.

Regards,
Srinivas.V
What IDE are you using here Srinivas? It might be that you're using the incorrect device family pack or similar, as I can't see this issue in SES on my end.
Best regards,
Simon
Hi Simonr,
We are using the IAR Workbench IDE. we are building with same workspace but only difference is changing the SDK 17.0.0, apart from that we haven't changed any thing.
Regards,
Srinivas.V
Hi
Okay, so you don't see this in the SDK v16.0.0 version? If you check out the nrf_nvic.h in the SDK v17.0.0 you can see that this is not included in SDK 17 which I assume is why you're seeing this error. In SDK v17.0.0 this is replaced with the sd_nvic_SystemReset() instead.
/**@brief System Reset. * @note Corresponds to NVIC_SystemReset in CMSIS. * * @retval ::NRF_ERROR_SOC_NVIC_SHOULD_NOT_RETURN */ uint32_t sd_nvic_SystemReset(void);
Best regards,
Simon