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
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
Hi,
I am using IAR EWARM 8.50.4 and I just ran into this issue when upgrading from SDK 16.0.0 to 17.0.0. The file nrf_nvic.h in SDK v16.0.0 is identical to SDK v17.0.0 and contains this:
/**@brief System Reset.
* @note Corresponds to NVIC_SystemReset in CMSIS.
*
* @retval ::NRF_ERROR_SOC_NVIC_SHOULD_NOT_RETURN
*/
__STATIC_INLINE uint32_t sd_nvic_SystemReset(void);
__STATIC_INLINE uint32_t sd_nvic_SystemReset(void)
{
NVIC_SystemReset();
return NRF_ERROR_SOC_NVIC_SHOULD_NOT_RETURN;
}Hi
Do you see the same error return in the build window as Srinivas posted below, gnf?
Best regards,
Simon
Hi
Do you see the same error return in the build window as Srinivas posted below, gnf?
Best regards,
Simon
Yes. A lot of these:
app_scheduler.c Warning[Pe111]: statement is unreachable nRF5_SDK\components\softdevice\s132\headers\nrf_nvic.h 440

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.