<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Joining NFC and Mesh examples</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/56704/joining-nfc-and-mesh-examples</link><description>I&amp;#39;m using the mesh example Dimming examples (experimental) in the nRF5 SDK for Mesh v4.0.0 and the nRF5 SDK v16.0.0 example Writable NDEF Message Example . 
 I was able to join the nfc library with the Mesh example, but when passing the phone to read</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 22 Jan 2020 13:40:46 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/56704/joining-nfc-and-mesh-examples" /><item><title>RE: Joining NFC and Mesh examples</title><link>https://devzone.nordicsemi.com/thread/230371?ContentTypeID=1</link><pubDate>Wed, 22 Jan 2020 13:40:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e4930adf-ec33-4264-8e2e-abc3ab307812</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Glad to hear that it works now. Thanks for the update.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Joining NFC and Mesh examples</title><link>https://devzone.nordicsemi.com/thread/230364?ContentTypeID=1</link><pubDate>Wed, 22 Jan 2020 13:32:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:69930fba-01f3-4344-8244-9b98894635a9</guid><dc:creator>joao</dc:creator><description>&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; I managed to solve, it was the NRFX_POWER_ENABLED that even disabled = 0 (sdk_config), the nrfx_power_clock file when checking the function - NRFX_CHECK (NRFX_POWER_ENABLED) considered enabled.&lt;br /&gt;&amp;nbsp; &amp;nbsp;I commented on the #if leaving only what I needed just like the example of the nfc Writable NDEF Message Example and it worked.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;#ifndef NRFX_POWER_CLOCK_H__
#define NRFX_POWER_CLOCK_H__

#include &amp;lt;nrfx.h&amp;gt;

#ifdef __cplusplus
extern &amp;quot;C&amp;quot; {
#endif


__STATIC_INLINE void nrfx_power_clock_irq_init(void);
    
#ifndef SUPPRESS_INLINE_IMPLEMENTATION
__STATIC_INLINE void nrfx_power_clock_irq_init(void)
{
    uint8_t priority;
    #if NRFX_CHECK(NRFX_CLOCK_ENABLED)
    priority = NRFX_CLOCK_CONFIG_IRQ_PRIORITY;
#else
    #error &amp;quot;This code is not supposed to be compiled when neither POWER nor CLOCK is enabled.&amp;quot;
#endif

//#if NRFX_CHECK(NRFX_POWER_ENABLED) &amp;amp;&amp;amp; NRFX_CHECK(NRFX_CLOCK_ENABLED)                            //@todo JM
//    #if NRFX_POWER_CONFIG_IRQ_PRIORITY != NRFX_CLOCK_CONFIG_IRQ_PRIORITY
//    #error &amp;quot;IRQ priorities for POWER and CLOCK must be the same. Check &amp;lt;nrfx_config.h&amp;gt;.&amp;quot;
//    #endif
//    priority = NRFX_POWER_CONFIG_IRQ_PRIORITY;
//#elif NRFX_CHECK(NRFX_POWER_ENABLED)
//    priority = NRFX_POWER_CONFIG_IRQ_PRIORITY;
//#elif NRFX_CHECK(NRFX_CLOCK_ENABLED)
//    priority = NRFX_CLOCK_CONFIG_IRQ_PRIORITY;
//#else
//    #error &amp;quot;This code is not supposed to be compiled when neither POWER nor CLOCK is enabled.&amp;quot;
//#endif

    if (!NRFX_IRQ_IS_ENABLED(nrfx_get_irq_number(NRF_CLOCK)))
    {
        NRFX_IRQ_PRIORITY_SET(nrfx_get_irq_number(NRF_CLOCK), priority);
        NRFX_IRQ_ENABLE(nrfx_get_irq_number(NRF_CLOCK));
    }
}
#endif // SUPPRESS_INLINE_IMPLEMENTATION


//#if NRFX_CHECK(NRFX_POWER_ENABLED) &amp;amp;&amp;amp; NRFX_CHECK(NRFX_CLOCK_ENABLED)                            //@todo JM
//void nrfx_power_clock_irq_handler(void);
//#elif NRFX_CHECK(NRFX_POWER_ENABLED)
//#define nrfx_power_irq_handler  nrfx_power_clock_irq_handler
//#elif NRFX_CHECK(NRFX_CLOCK_ENABLED)
#define nrfx_clock_irq_handler  nrfx_power_clock_irq_handler
#endif


#ifdef __cplusplus
}
#endif

//#endif // NRFX_POWER_CLOCK_H__&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp;In fact this NRFX_CHECK problem happened in several files, depending on the identifier in sdk_config the function returns the wrong value.&lt;br /&gt;&amp;nbsp; &amp;nbsp;Thank you so much for the help I was trying to solve a long time ago.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Joining NFC and Mesh examples</title><link>https://devzone.nordicsemi.com/thread/230005?ContentTypeID=1</link><pubDate>Tue, 21 Jan 2020 08:36:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7791e382-fd26-46f0-8aa2-cec1b0717d27</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Based on your screenshot it looks like it&amp;#39;s the &amp;#39;POWER_CLOCK_IRQHandler&amp;#39; that&amp;#39;s not implemented. The ISR number is 0&amp;nbsp; (0x10 - 16).&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-099e461da01044f5abb170d2a75b0570/pastedimage1579595713653v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Please check if the&amp;nbsp;&amp;nbsp;NRF_CLOCK_ENABLED option is enabled in your sdk_config header.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Joining NFC and Mesh examples</title><link>https://devzone.nordicsemi.com/thread/229945?ContentTypeID=1</link><pubDate>Mon, 20 Jan 2020 18:14:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a9c0ef2a-a669-4600-b6f3-0c642b42f352</guid><dc:creator>joao</dc:creator><description>&lt;p&gt;It does not get to stop the execution of the program, but the program does not leave here after passing the cell phone:&lt;/p&gt;
&lt;p&gt;&lt;img height="287" src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1579543878804v1.png" width="553" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Joining NFC and Mesh examples</title><link>https://devzone.nordicsemi.com/thread/229925?ContentTypeID=1</link><pubDate>Mon, 20 Jan 2020 16:07:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0d28a910-24d4-4881-9994-6ccf880798f4</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Ok, maybe it&amp;#39;s a different ISR that&amp;#39;s not implemented. You can find out which one it is by running &amp;#39;nrfjprog --readregs&amp;#39; when the program hangs (or from the register view in SES). The last byte of the xPSR readout holds the current ISR number (0 if none) as I explained in this thread:&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/48504/hardfault-on-sd_ble_gap_adv_stop"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/48504/hardfault-on-sd_ble_gap_adv_stop&lt;/a&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Joining NFC and Mesh examples</title><link>https://devzone.nordicsemi.com/thread/229892?ContentTypeID=1</link><pubDate>Mon, 20 Jan 2020 14:28:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e15b6ecf-3547-403a-8ef5-825b9cfcb236</guid><dc:creator>joao</dc:creator><description>&lt;p&gt;Yes here are all the files I added in the Mesh example:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1579530497987v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Joining NFC and Mesh examples</title><link>https://devzone.nordicsemi.com/thread/229882?ContentTypeID=1</link><pubDate>Mon, 20 Jan 2020 14:16:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1ff2103f-3ec9-4cfd-aea9-2e4a9a0be519</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;It looks like maybe the NFCT_IRQHandler is not re-declared in your code. Did you remember to include nrfx_nfct.c in your build?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>