Commit Graph

6 Commits

Author SHA1 Message Date
dxl dabf1a415f Use a more thorough NFC peripheral reset strategy. 2025-09-23 11:08:27 +08:00
Philippe Teuwen 2ba2ca92fd More Chinese (auto) translation 2023-08-25 19:40:46 +02:00
Philippe Teuwen e474e519df Revert workaround for WDT during emulation and fix SDK NFC IRQ handler 2023-08-20 11:43:23 +02:00
Philippe Teuwen 94a0206635 Workaround to prevent watchdog trigger during emulation. But there seems to be a deeper issue:
Once an external HF field is detected, when a first byte is received, then NFC IRQ is called non-stop.
But none of the conditions in nrfx_nfct_irq_handler() is met so the handler does nothing and there is no chance to get called from a registered callback.
Side effect is that main loop cannot run, button IRQs are called but button processing in main loop is not called, etc.
So one of the side effects is that bsp_wdt_feed() is not called.
Current workaround is to call bsp_wdt_feed() at the end of nRF SDK nrfx_nfct.c nrfx_nfct_irq_handler()
I suspect the hack of the NFC state machine done in nfc_14a.c nfc_tag_14a_event_callback() case NRFX_NFCT_EVT_FIELD_DETECTED
to get access to the anticollision phase is breaking sth in the SDK state machine, NFC IRQ should be called only on real change (field drop, cmd received,...)
2023-08-20 00:00:25 +02:00
Philippe Teuwen 92a3f0966f suppress GCC warnings in nRF SDK and restore -Warray-bounds and -Wsizeof-array-div 2023-08-16 23:26:30 +02:00
dxl ad331a0f0a move some resource. 2023-03-14 15:37:17 +08:00