This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

GPIOTE interrupt initialisation error in Cloud Client

Hi,

I have modified the Cloud Client sample from ncs v1.4.0 for sending sensor values to the AWS IoT. The sensor code makes use of GPIOTE interrupts using this sample as a reference. The problem is that while building my Cloud Client sample, I get the following error:

Building ‘zephyr/isr_tables.c’ from solution ‘build’ in configuration ‘Common’
  Combining ‘zephyr/isr_tables.c’
    multiple registrations at table_index 49 for irq 49 (0x31)
Build failed

Following the instructions of the sample reference, I have disabled Zephyr GPIO in the project configuration as well but the error persists. Can someone please take a look at

8726.cloud_client.rar and help me resolve this error. Thank you.

Haris Ahmed

Parents Reply
  • Hi,

    Thank you for your response. I actually found the solution to the problem. I replaced the following line:

    IRQ_CONNECT(DT_IRQN(DT_NODELABEL(gpiote)),
    				DT_IRQ(DT_NODELABEL(gpiote), priority),
    				nrfx_isr, nrfx_gpiote_irq_handler, 0);

    with:

    IRQ_DIRECT_CONNECT(GPIOTE1_IRQn, 0, nrfx_gpiote_irq_handler, 0);

    and the code compiled. GPIOTE seems to work fine now.

    Regards,

    Haris Ahmed

Children
Related