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
I've done some digging into this issue, and it seems like these warnings for unreachable code are not very unusual in the later IAR versions, as it seems they recently implemented this. The reason these are "unreachable" is because of the way we're handling asserts or other means of detecting that something that should be unreachable was reached anyway. You can remove these warnings by doing the following:
However, I would suggest trying to only suppress the explicit ones where we have implemented unreachable code on purpose. I am not an IAR expert however, so I'm not entirely sure on how to do so.
Best regards,
Simon
Today when upgrading to 17.0.2 the problem is still there. Running IAR EWARM 8.50.4, my solution is to add the following line to nrf_nvic.h:

This will get rid of the warnings but I don't like fiddling with the SDK. Nordic: Please check if there is a better solution.
Hi
The addition of suppressing the only recommended fix we have to this I'm afraid.
Best regards,
Simon