<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic PN7160 with nRF52840 in Embedded Software and Tools Clinic</title>
    <link>https://community.nxp.com/t5/Embedded-Software-and-Tools/PN7160-with-nRF52840/m-p/2270902#M598</link>
    <description>&lt;P class=""&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN&gt;I’m using an external NFC reader/controller (NXP PN7160A1HN/C100E) connected via I2C to an nRF52840 module (Raytac MDBT50Q-1MV2) on a custom PCB.&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;(Programming is via SWD using an nRF52840 DK as the debug probe.)&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN&gt;My current software environment is&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;nRF Connect SDK (NCS) v3.2.0 in VS Code (Windows 11) and&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;Zephyr RTOS v4.2.99.&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;The goal is to&amp;nbsp;start RF discovery and read the UID of a 13.56 MHz passive card using the PN7160 (NCI-over-I2C).&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN&gt;I attempted to integrate PN7160 the “typical Zephyr way” by only editing:&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P class=""&gt;&lt;SPAN&gt;src/main.c&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P class=""&gt;&lt;SPAN&gt;boards/nrf52840dk_nrf52840.overlay&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P class=""&gt;&lt;SPAN&gt;prj.conf&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P class=""&gt;&lt;SPAN&gt;I can configure the I2C pins and PN7160 GPIOs (VEN/IRQ), but initialization is failing (I2C -EIO/NACK during probe or first command) resulting that my whole RF discovery does not work, and I’m not sure if my integration approach is correct.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN&gt;Questions:&lt;/SPAN&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;P class=""&gt;&lt;SPAN&gt;In NCS/Zephyr, is it possible to programm PN7160 by only changing `main.c` + `nrf52840dk_nrf52840.overlay` + `prj.conf`, or is it expected that PN7160 requires a proper custom driver? &lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P class=""&gt;&lt;SPAN&gt;If a driver is required: what is the recommended approach in NCS to add it (devicetree binding YAML + Kconfig + CMake + driver source), and should it be packaged as an external Zephyr module (zephyr/module.yml + EXTRA_ZEPHYR_MODULES)? Are there example codes how to do this (like a public github repo, I namely could not find it)?&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P class=""&gt;&lt;SPAN&gt;Are there known NCS v3.2.0 / Zephyr 4.2.99 I2C/TWIM behaviors that can cause -EIO on probing/first writes that I should handle differently?&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;SPAN&gt;If you have any other handy comments that would help, I’d appreciate them.&lt;BR /&gt;&lt;BR /&gt;Thanks in advance for your help!&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 03 Jan 2026 13:13:16 GMT</pubDate>
    <dc:creator>newtechlearner</dc:creator>
    <dc:date>2026-01-03T13:13:16Z</dc:date>
    <item>
      <title>PN7160 with nRF52840</title>
      <link>https://community.nxp.com/t5/Embedded-Software-and-Tools/PN7160-with-nRF52840/m-p/2270902#M598</link>
      <description>&lt;P class=""&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN&gt;I’m using an external NFC reader/controller (NXP PN7160A1HN/C100E) connected via I2C to an nRF52840 module (Raytac MDBT50Q-1MV2) on a custom PCB.&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;(Programming is via SWD using an nRF52840 DK as the debug probe.)&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN&gt;My current software environment is&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;nRF Connect SDK (NCS) v3.2.0 in VS Code (Windows 11) and&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;Zephyr RTOS v4.2.99.&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;The goal is to&amp;nbsp;start RF discovery and read the UID of a 13.56 MHz passive card using the PN7160 (NCI-over-I2C).&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN&gt;I attempted to integrate PN7160 the “typical Zephyr way” by only editing:&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P class=""&gt;&lt;SPAN&gt;src/main.c&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P class=""&gt;&lt;SPAN&gt;boards/nrf52840dk_nrf52840.overlay&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P class=""&gt;&lt;SPAN&gt;prj.conf&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P class=""&gt;&lt;SPAN&gt;I can configure the I2C pins and PN7160 GPIOs (VEN/IRQ), but initialization is failing (I2C -EIO/NACK during probe or first command) resulting that my whole RF discovery does not work, and I’m not sure if my integration approach is correct.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN&gt;Questions:&lt;/SPAN&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;P class=""&gt;&lt;SPAN&gt;In NCS/Zephyr, is it possible to programm PN7160 by only changing `main.c` + `nrf52840dk_nrf52840.overlay` + `prj.conf`, or is it expected that PN7160 requires a proper custom driver? &lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P class=""&gt;&lt;SPAN&gt;If a driver is required: what is the recommended approach in NCS to add it (devicetree binding YAML + Kconfig + CMake + driver source), and should it be packaged as an external Zephyr module (zephyr/module.yml + EXTRA_ZEPHYR_MODULES)? Are there example codes how to do this (like a public github repo, I namely could not find it)?&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P class=""&gt;&lt;SPAN&gt;Are there known NCS v3.2.0 / Zephyr 4.2.99 I2C/TWIM behaviors that can cause -EIO on probing/first writes that I should handle differently?&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;SPAN&gt;If you have any other handy comments that would help, I’d appreciate them.&lt;BR /&gt;&lt;BR /&gt;Thanks in advance for your help!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 03 Jan 2026 13:13:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Embedded-Software-and-Tools/PN7160-with-nRF52840/m-p/2270902#M598</guid>
      <dc:creator>newtechlearner</dc:creator>
      <dc:date>2026-01-03T13:13:16Z</dc:date>
    </item>
  </channel>
</rss>

