Hi, I managed to get it to work - after modifying the NFC code to use NVIC_SetVector, I realised why it was still not working: the bootloader also needs to be configured to not setup the NFC pins as GPIO (via the NFC_PINS_AS_GPIO syscfg value, which by default is set to 1). Once the bootloader was recompiled with NFC_PINS_AS_GPIO set to 0, the NFC code in the application now works fine and can operate is a NFC type-4 tag.
I've run into this problem before - it's quite important to take care of the configuration settings in the bootloader, because they can affect the operation of the application as well. Amr On Thu, 18 Apr 2019 at 16:35, Amr Bekhit <[email protected]> wrote: > Hi Andrzej > > 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. >> > > I've given that I go but still wasn't able to get it to work - you can see > the modified code here: https://pastebin.com/A2cvwfSv. I basically just > renamed the NFC irq function and called NVIC_SetVector before > NVIC_EnableIRQ. There's probably something fundamental I'm missing here... >
