Hi, On Thu, Apr 18, 2019 at 3:23 PM Amr Bekhit <[email protected]> wrote:
> Hello all, > > I'm trying to port the nRF NFC library to mynewt 1.5, but I'm struggling to > get basic NFC functionality up and running. > > I've put together a basic mynewt project using the PCA10040 BSP and using > the barebones NFC example at > > https://devzone.nordicsemi.com/f/nordic-q-a/23154/nfc-not-working-on-payment-readers/91079#91079 > (I > basically migrated that code over to the mynewt main.c file - you can see > at https://pastebin.com/4mSUzKML). Unfortunately, the NFCT_IRQHandler > never > gets called. The same code works fine when I build it without mynewt using > a bare-metal project in SEGGER IDE. > > I suspect that the problem may lie in declaration of the NFCT irq handler - > perhaps despite declaring the function it's not being routed to the vector > table? However, NFCT_IRQHandler does seem to be present in the > gcc_startup_nrf52.s file. > > Any thoughts? You need to implement this handler and set interrupt vector using NVIC_SetVector() - Mynewt does not provide handlers for interrupts which are not used in code. > Amr > Best, Andrzej
