I have DFU OTA application running on 52840 platform on a custom board. SDK v15.3.0. I use SoftDevoce S140 v6.1.1.
Then I need to port it to 52832 platform - SoftDevice S132 v6.1.1. Same, SDK 15.3.0.
I changed the crypto to use micro_ecc, and disabled UART1 and also UARTE1, and re-ordered the path and include.
However, I kept getting this compilation error:
"C:\NRF52832\sDevice\V6_11\s132\include\nrf_nvic.h", line 290: Error: #40: expected an identifier
int pm = __get_PRIMASK();
^
"C:\NRF52832\sDevice\V6_11\s132\include\nrf_nvic.h", line 292: Error: #117: non-void function "__sd_nvic_irq_disable" should return a value
return pm;
^
I foudn that by using SUPPRESS_INLINE_IMPLEMENTATION directive, I can get rid of that error.
However, another error appears:
"C:\NRF52832\SDK\V15_3_0\MODULES\nrfx\soc/nrfx_coredep.h", line 96: Error: #114: function "nrfx_coredep_delay_us" was referenced but not defined
__STATIC_INLINE void nrfx_coredep_delay_us(uint32_t time_us);
^
"C:\NRF52832\SDK\V15_3_0\MODULES\nrfx\hal\nrf_gpio.h", line 233: Error: #114: function "nrf_gpio_cfg_sense_input" was referenced but not defined
__STATIC_INLINE void nrf_gpio_cfg_sense_input(uint32_t pin_number,
^
"C:\NRF52832\SDK\V15_3_0\MODULES\nrfx\hal\nrf_gpio.h", line 308: Error: #114: function "nrf_gpio_pin_read" was referenced but not defined
__STATIC_INLINE uint32_t nrf_gpio_pin_read(uint32_t pin_number);
^
"C:\NRF52832\SDK\V15_3_0\MODULES\nrfx\hal\nrf_power.h", line 507: Error: #114: function "nrf_power_resetreas_get" was referenced but not defined
__STATIC_INLINE uint32_t nrf_power_resetreas_get(void);
^
"C:\NRF52832\SDK\V15_3_0\MODULES\nrfx\hal\nrf_power.h", line 517: Error: #114: function "nrf_power_resetreas_clear" was referenced but not defined
__STATIC_INLINE void nrf_power_resetreas_clear(uint32_t mask);
^
"C:\NRF52832\SDK\V15_3_0\MODULES\nrfx\hal\nrf_power.h", line 603: Error: #114: function "nrf_power_gpregret_set" was referenced but not defined
__STATIC_INLINE void nrf_power_gpregret_set(uint8_t val);
^
"C:\NRF52832\SDK\V15_3_0\MODULES\nrfx\hal\nrf_power.h", line 610: Error: #114: function "nrf_power_gpregret_get" was referenced but not defined
__STATIC_INLINE uint8_t nrf_power_gpregret_get(void);
^
"C:\NRF52832\SDK\V15_3_0\MODULES\nrfx\hal\nrf_power.h", line 620: Error: #114: function "nrf_power_gpregret2_set" was referenced but not defined
__STATIC_INLINE void nrf_power_gpregret2_set(uint8_t val);
^
"C:\NRF52832\SDK\V15_3_0\MODULES\nrfx\hal\nrf_power.h", line 629: Error: #114: function "nrf_power_gpregret2_get" was referenced but not defined
__STATIC_INLINE uint8_t nrf_power_gpregret2_get(void);
^