[riot-notifications] [RIOT-OS/RIOT] boards/nrf51dk: multiple external interrupts not working (#10827)

thibv notifications at github.com
Sun Jan 20 17:11:12 CET 2019

If your issue is a usage question, please submit it to the user mailing-list
users at riot-os.org or to the developer mailing-list devel at riot-os.org.
If your issue is related to security, please submit it to the security
mailing-list security at riot-os.org.

#### Description
On nRF51DK platform, cannot enable multiple external interrupts. Only the latest will work.
Example: Cannot build gnrc_networking application for samr21-xpro board.

#### Steps to reproduce the issue
Try to describe as precisely as possible here the steps required to reproduce
the issue. Here you can also describe your hardware configuration, the network
setup, etc.
Use the hello-world program, and add the following lines to enable callback functions cbButton*.
`  gpio_init_int(BTN0_PIN, GPIO_IN_PU, GPIO_FALLING, &cbButton0, NULL);  `
`  gpio_init_int(BTN1_PIN, GPIO_IN_PU, GPIO_FALLING, &cbButton1, NULL);  `
`  gpio_init_int(BTN2_PIN, GPIO_IN_PU, GPIO_FALLING, &cbButton2, NULL);  `
`  gpio_init_int(BTN3_PIN, GPIO_IN_PU, GPIO_FALLING, &cbButton3, NULL);  `

#### Expected results
When one of the four on-board button is pressed, the callback should be called.
Example: The gnrc_networking application builds on samr21-xpro.

#### Actual results
Only the latest callback is working. Here, only cbButton3 is working. If I invert the two last lines (ie cbButton2 and cbButton3), only cbButton2 will work.
Please paste or specifically describe the actual output.

#### Versions
Operating system: Mac OSX, Linux, Vagrant VM
Build environment: GCC, CLang versions (you can run the following command from
the RIOT base directory: ./dist/tools/ci/print_toolchain_versions.sh).
Operating System Environment :
       Operating System: "Ubuntu" "18.04.1 LTS (Bionic Beaver)"
                 Kernel: Linux 4.15.0-43-generic x86_64 x86_64

Installed compiler toolchains :
             native gcc: gcc (Ubuntu 7.3.0-27ubuntu1~18.04) 7.3.0
      arm-none-eabi-gcc: arm-none-eabi-gcc (GNU Tools for Arm Embedded Processors 8-2018-q4-major) 8.2.1 20181213 (release) [gcc-8-branch revision 267074]
                avr-gcc: avr-gcc (GCC) 5.4.0
       mips-mti-elf-gcc: missing
             msp430-gcc: missing
   riscv-none-embed-gcc: missing
                  clang: missing

Installed compiler libs :
   arm-none-eabi-newlib: "3.0.0"
    mips-mti-elf-newlib: missing
riscv-none-embed-newlib: missing
               avr-libc: "2.0.0" ("20150208")

Installed development tools :
                  cmake: cmake version 3.10.2
               cppcheck: missing
                doxygen: 1.8.13
                 flake8: missing
                    git: git version 2.17.1
                   make: GNU Make 4.1
                openocd: Open On-Chip Debugger 0.10.0
                 python: Python 2.7.15rc1
                python2: Python 2.7.15rc1
                python3: Python 3.6.7
             coccinelle: missing

<!-- Thanks for contributing! -->

You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190120/c3db7c99/attachment.html>

More information about the notifications mailing list