multiple definition of `SWI1_IRQHandler'

Sysprogs forums Forums VisualGDB multiple definition of `SWI1_IRQHandler'

Tagged: , ,

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #7870
    svecoldr
    Participant

    As soon as I add ble_radio_notification library into nrf51822 AC, Softdevice 130, when I compile it, I get

    multiple definition of `SWI1_IRQHandler'

    error. I see that it is defined in ble_radio_notification.c as

    void SWI1_IRQHandler(void)
     {
     m_radio_active = !m_radio_active;
     if (m_evt_handler != NULL)
     {
     m_evt_handler(m_radio_active);
     }
     }

    and in nrf_drv_swi.c as

    #define SWI_HANDLER_TEMPLATE(NUM) void SWI##NUM##_IRQHandler(void) \
     { \
     nrf_drv_swi_process((NUM), m_swi_flags[(NUM) - SWI_START_NUMBER]); \
     }

    where

    #if SWI_DISABLE1 == 0
     SWI_HANDLER_TEMPLATE(1)
     #endif

    I see that SWI_DISABLE0 is defined in nrf5x.mak but not SWI_DISABLE1 .

    Shall I define it to get rid of the error?

    • This topic was modified 8 years, 7 months ago by support. Reason: formatting
    #7886
    support
    Keymaster

    Hi,

    Yes, that should fix it. However if you define it in nrf5x.mak, it will get overwritten next time you change your device settings, so please define it in debug.mak/release.mak instead (can be done via VisualGDB Project Properties).

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.