Dear Amr, I'm writing to you as I'm currently working on quite a similar project. I also need to port the Nordic NFC library into Mynewt on the nRF52 DK board (i.e. PCA 10040). I'm running into problems in the process. My small proof-of-concept program runs fine on the board directly using the Segger IDE, but I can't get it to work under newt. I tried to configure the interrupt vector as specified and make the bootloader not use the NFC pins as GPIO, but still no luck. It seems I'm missing something else.
I was wondering if you could share your sample application to get the basic NFC functionality running on newt. It would be much appreciated. Thank you, Guillermo On 2019/04/18 15:14:39, Amr Bekhit <[email protected]> wrote: > 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... > > >
