<?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>Need MFRC522 C library for NRF52833 ???</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/55860/need-mfrc522-c-library-for-nrf52833</link><description>Hi, Im developing NRF52 DK. I&amp;#39;m building library C SPI mfrc522 for NRF52. I&amp;#39;m implement PCD_Read and write PCD_register look OK, But i call function PICC_IsNewCardPresent() in main loop not detected NFC tag, nothing happened!!! ???? 
 Help me. I worked</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sat, 22 Feb 2025 16:41:25 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/55860/need-mfrc522-c-library-for-nrf52833" /><item><title>RE: Need MFRC522 C library for NRF52833 ???</title><link>https://devzone.nordicsemi.com/thread/524185?ContentTypeID=1</link><pubDate>Sat, 22 Feb 2025 16:41:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b265710b-4a3f-43bc-b761-6fceeea91e4e</guid><dc:creator>akaza-2349</dc:creator><description>&lt;p&gt;how to fix timeout error?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need MFRC522 C library for NRF52833 ???</title><link>https://devzone.nordicsemi.com/thread/474307?ContentTypeID=1</link><pubDate>Mon, 18 Mar 2024 12:11:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f7adba4d-e413-4330-8b0b-f7b7094f6342</guid><dc:creator>hjjang</dc:creator><description>&lt;p&gt;Thanks you helped me solve it!!!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need MFRC522 C library for NRF52833 ???</title><link>https://devzone.nordicsemi.com/thread/474294?ContentTypeID=1</link><pubDate>Mon, 18 Mar 2024 11:50:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1d8c17d7-4ffc-43b3-9541-930e3e90f77d</guid><dc:creator>Ben Ammar Elyess</dc:creator><description>&lt;p&gt;Yes, I used it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need MFRC522 C library for NRF52833 ???</title><link>https://devzone.nordicsemi.com/thread/474183?ContentTypeID=1</link><pubDate>Mon, 18 Mar 2024 00:55:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cf1ff817-89e9-43c0-8f59-34ff152c16e5</guid><dc:creator>hjjang</dc:creator><description>&lt;p&gt;&lt;span&gt;I solved the problem. One question is, did you use PICC_ReadCardSerial() function?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;/*************************/ bool PICC_ReadCardSerial(void) { byte result = PICC_Select(&amp;amp;uid, 0); //printf(&amp;quot;===========\r\n&amp;quot;); for(int i=0; i&amp;lt;10; i++) { tagID[i] = uid.uidByte[i]; //printf(&amp;quot;%d&amp;quot;, tagID[i]); } //printf(&amp;quot;===========\r\n&amp;quot;); return (result == STATUS_OK);//return a &amp;#39;1&amp;#39; if PICC_Select returns a &amp;#39;1&amp;#39;, else a &amp;#39;0&amp;#39; }&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need MFRC522 C library for NRF52833 ???</title><link>https://devzone.nordicsemi.com/thread/474090?ContentTypeID=1</link><pubDate>Fri, 15 Mar 2024 12:54:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d0c219e6-d798-45cb-9084-cc3c525bf988</guid><dc:creator>Ben Ammar Elyess</dc:creator><description>&lt;p&gt;Hi,&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Which timeout error did you get?&lt;/p&gt;
&lt;p&gt;There is 2 timeout errors in&amp;nbsp;&lt;span&gt;PCD_CommunicateWithPICC function.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;for (i = 2000; i &amp;gt; 0; i--) {
		uint8_t n = PCD_ReadRegister(ComIrqReg);	// ComIrqReg[7..0] bits are: Set1 TxIRq RxIRq IdleIRq HiAlertIRq LoAlertIRq ErrIRq TimerIRq
                if (n &amp;amp; waitIRq) 
                {	// One of the interrupts that signal success has been set.
                        break;
		}
                //printf(&amp;quot;%02x&amp;quot;,n);
		if (n &amp;amp; 0x01) 
                {	// Timer interrupt - nothing received in 25ms
                        return STATUS_TIMEOUT;
		}
	}
// 35.7ms and nothing happend. Communication with the MFRC522 might be down.
if (i == 0) 
{
	return STATUS_TIMEOUT;
}&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;I didn&amp;#39;t get a timeout error except the one in the loop&lt;span&gt;&amp;nbsp;, which is normal because there&amp;#39;s nothing received in that period.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need MFRC522 C library for NRF52833 ???</title><link>https://devzone.nordicsemi.com/thread/473994?ContentTypeID=1</link><pubDate>Fri, 15 Mar 2024 02:11:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1d6d6773-1e9e-4523-8b8f-044a1ba3db4a</guid><dc:creator>hjjang</dc:creator><description>&lt;p&gt;hi! Have you solved the timeout error?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need MFRC522 C library for NRF52833 ???</title><link>https://devzone.nordicsemi.com/thread/473830?ContentTypeID=1</link><pubDate>Thu, 14 Mar 2024 10:36:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8b9e61ba-6787-4e6b-b8a6-856a6ed38860</guid><dc:creator>Ben Ammar Elyess</dc:creator><description>&lt;p&gt;Hi Imad,&lt;/p&gt;
&lt;p&gt;I had the same issue and it gets fixed by changing the value of the ORC from 0xFF to 0x00.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;nrf_drv_spi_config_t spi_config = NRF_DRV_SPI_DEFAULT_CONFIG;
spi_config.ss_pin   = SPI_SS_PIN;
spi_config.miso_pin = SPI_MISO_PIN;
spi_config.mosi_pin = SPI_MOSI_PIN;
spi_config.sck_pin  = SPI_SCK_PIN;
spi_config.orc      = 0x00;                                    
spi_config.frequency = NRF_DRV_SPI_FREQ_8M;                     
spi_config.mode      = NRF_DRV_SPI_MODE_0;         
spi_config.bit_order = NRF_DRV_SPI_BIT_ORDER_MSB_FIRST;
APP_ERROR_CHECK(nrf_drv_spi_init(&amp;amp;spi, &amp;amp;spi_config, spi_event_handler, NULL));&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need MFRC522 C library for NRF52833 ???</title><link>https://devzone.nordicsemi.com/thread/408195?ContentTypeID=1</link><pubDate>Mon, 06 Feb 2023 08:42:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fa807358-a2aa-4517-91ce-9abdbf7d8f16</guid><dc:creator>ImadMaalouf</dc:creator><description>&lt;p&gt;Hi Sharath,&lt;/p&gt;
&lt;p&gt;I am facing the same issue, have you been able to find a solution&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need MFRC522 C library for NRF52833 ???</title><link>https://devzone.nordicsemi.com/thread/330970?ContentTypeID=1</link><pubDate>Fri, 24 Sep 2021 07:03:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a7b3733d-ed94-41cc-a78f-5586862c1b8c</guid><dc:creator>Sharath m</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I am also facing same issue i am able to read the version register&lt;/p&gt;
&lt;p&gt;I am using&amp;nbsp;17.1.0&lt;span class="version"&gt;nRF5 SDK&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Im&amp;nbsp; developing NRF52 DK.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I&amp;#39;m building library C SPI mfrc522 for NRF52.&lt;/span&gt;&lt;br /&gt;&lt;span&gt;I&amp;#39;m implement PCD_Read and write PCD_register look OK, But i call function PICC_IsNewCardPresent()&amp;nbsp;&amp;nbsp;in main loop not detected NFC tag, nothing happened!!! ????&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="text"&gt;#include &amp;quot;nrf_drv_spi.h&amp;quot;
#include &amp;quot;app_util_platform.h&amp;quot;
#include &amp;quot;nrf_gpio.h&amp;quot;
#include &amp;quot;nrf_delay.h&amp;quot;
#include &amp;quot;boards.h&amp;quot;
#include &amp;quot;app_error.h&amp;quot;
#include &amp;lt;string.h&amp;gt;
#include &amp;quot;nrf_log.h&amp;quot;
#include &amp;quot;nrf_log_ctrl.h&amp;quot;
#include &amp;quot;nrf_log_default_backends.h&amp;quot;
#include &amp;quot;mfrc522.h&amp;quot;




#define SPI_INSTANCE  0 /**&amp;lt; SPI instance index. */
static const nrf_drv_spi_t spi = NRF_DRV_SPI_INSTANCE(SPI_INSTANCE);  /**&amp;lt; SPI instance. */
static volatile bool spi_xfer_done;  /**&amp;lt; Flag used to indicate that SPI instance completed the transfer. */

#define TEST_STRING &amp;quot;Nordic&amp;quot;
static uint8_t       m_tx_buf[2];//   /**&amp;lt; TX buffer. */
static uint8_t       m_rx_buf[1];    /**&amp;lt; RX buffer. */
static uint8_t       m_write_buf[1];    /**&amp;lt; RX buffer. */
static const uint8_t m_length = 1;        /**&amp;lt; Transfer length. */
static const uint8_t m_tx_length = 2;        /**&amp;lt; Transfer length. */
/**
 * @brief SPI user event handler.
 * @param event
 */


void spi_event_handler(nrf_drv_spi_evt_t const * p_event,
                       void *                    p_context)
{

    spi_xfer_done = true;
 #if 0    
    NRF_LOG_INFO(&amp;quot;Transfer completed.&amp;quot;);

   
    if (m_rx_buf[0] != 0)
    {
        NRF_LOG_INFO(&amp;quot; Received:&amp;quot;);
        NRF_LOG_HEXDUMP_INFO(m_rx_buf, strlen((const char *)m_rx_buf));
    }
    
#endif
}



int main(void)
{
    bsp_board_init(BSP_INIT_LEDS);

    APP_ERROR_CHECK(NRF_LOG_INIT(NULL));
    NRF_LOG_DEFAULT_BACKENDS_INIT();

#if 0
    nrf_gpio_cfg_output(SPI_SS_PIN);
    nrf_drv_spi_config_t spi_config = NRF_DRV_SPI_DEFAULT_CONFIG;
    spi_config.ss_pin   = SPI_SS_PIN;
    spi_config.miso_pin = SPI_MISO_PIN;
    spi_config.mosi_pin = SPI_MOSI_PIN;
    spi_config.sck_pin  = SPI_SCK_PIN;
    APP_ERROR_CHECK(nrf_drv_spi_init(&amp;amp;spi, &amp;amp;spi_config, spi_event_handler, NULL));
#endif
   
    NRF_LOG_INFO(&amp;quot;SPI example started.&amp;quot;);
    mfrc522_init();
    //PCD_PerformSelfTest();
    //PCD_Reset();


    while (1)
    {
        // Reset rx buffer and transfer done flag
        memset(m_rx_buf, 0, m_length);
        spi_xfer_done = false;

        APP_ERROR_CHECK(nrf_drv_spi_transfer(&amp;amp;spi, m_tx_buf, m_length, m_rx_buf, m_length));

        PICC_IsNewCardPresent();
      
      
    #if  0
        while (!spi_xfer_done)
        {
            __WFE();
        }

        NRF_LOG_FLUSH();
   #endif
        bsp_board_led_invert(BSP_BOARD_LED_0);
        nrf_delay_ms(200);
    }
}&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;my output :---(error)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;lt;info&amp;gt; app: SPI example started.
&amp;lt;info&amp;gt; app: version:F
&amp;lt;info&amp;gt; app: TModeReg:80
&amp;lt;info&amp;gt; app: TPrescalerReg:A9
&amp;lt;info&amp;gt; app: TPrescalerReg:A9
&amp;lt;info&amp;gt; app: STATUS_TIMEOUT2
&amp;lt;info&amp;gt; app: result:3               
&amp;lt;info&amp;gt; app: STATUS_TIMEOUT2
&amp;lt;info&amp;gt; app: result:3
&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I have used the same libarary attached in the above case&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li class="attribute-item close"&gt;Case ID: 241550&lt;/li&gt;
&lt;li class="attribute-item close"&gt;&amp;nbsp;I am getting &amp;quot;&lt;strong&gt;Timeoout in communication&amp;quot;&lt;/strong&gt; error even though i have placed the rfid id card continously on the scanner&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;#define STATUS_OK (0x00)// Success&lt;br /&gt;#define STATUS_ERROR (0x01)// Error in communication&lt;br /&gt;#define STATUS_COLLISION (0x02)// Collission detected&lt;br /&gt;#define STATUS_TIMEOUT (0x03)// Timeout in communication.&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; As per the data sheet and library&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
[quote userid="82611" url="~/f/nordic-q-a/55860/need-mfrc522-c-library-for-nrf52833/235367#235367"]&lt;p&gt;&lt;span&gt;My write function:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;---------------------------------------------------&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;void WriteRegister(uint8_t addr, uint8_t val) {&lt;br /&gt;uint8_t m_tx_buf[2];&lt;br /&gt; m_tx_buf[0] = (addr &amp;lt;&amp;lt; 1) &amp;amp; 0x7E;&lt;br /&gt; m_tx_buf[1] = val;&lt;br /&gt; spi_xfer_done = false;&lt;/p&gt;
&lt;p&gt;nrf_drv_spi_transfer(&amp;amp;spi,&amp;amp;m_tx_buf[0], 2, NULL, 0);&lt;/p&gt;
&lt;p&gt;while (!spi_xfer_done)&lt;br /&gt; {&lt;br /&gt; __WFE();&lt;br /&gt; }&lt;br /&gt; NRF_LOG_FLUSH();&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;static void spi_event_handler(nrf_drv_spi_evt_t const * p_event,&lt;br /&gt; void * p_context)&lt;br /&gt;{&lt;br /&gt; spi_xfer_done = true;&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;And in maid loop you wating&amp;nbsp;&lt;span&gt;spi_xfer_done&amp;nbsp;.&lt;/span&gt;&lt;/p&gt;[/quote][quote userid="82611" url="~/f/nordic-q-a/55860/need-mfrc522-c-library-for-nrf52833/226755#226755"]rue.a [/quote]
&lt;p&gt;&lt;span&gt;&lt;/span&gt;PLEASE anyone help me out i&amp;nbsp; have been working on the same from past two weeks i have checked the hardware functionalities of the MFRC522 it is in working condition and i am having 2 rfid scanners in both also same issue please help me out..&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;If possible share the complete code&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need MFRC522 C library for NRF52833 ???</title><link>https://devzone.nordicsemi.com/thread/236118?ContentTypeID=1</link><pubDate>Tue, 25 Feb 2020 05:48:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9dfc024a-a424-4451-ab33-8682066cdd40</guid><dc:creator>S S</dc:creator><description>&lt;p&gt;okie thanks&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need MFRC522 C library for NRF52833 ???</title><link>https://devzone.nordicsemi.com/thread/236117?ContentTypeID=1</link><pubDate>Tue, 25 Feb 2020 05:45:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:479c5d93-04d5-406a-8319-f27e112d9ea3</guid><dc:creator>Le Phuong</dc:creator><description>&lt;p&gt;I am using above code.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need MFRC522 C library for NRF52833 ???</title><link>https://devzone.nordicsemi.com/thread/235369?ContentTypeID=1</link><pubDate>Thu, 20 Feb 2020 09:16:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:52f96d53-94c3-42b4-92db-ffdc903c3a5a</guid><dc:creator>S S</dc:creator><description>&lt;p&gt;Hi sir,&lt;/p&gt;
&lt;p&gt;can you share recent used code, please&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need MFRC522 C library for NRF52833 ???</title><link>https://devzone.nordicsemi.com/thread/235367?ContentTypeID=1</link><pubDate>Thu, 20 Feb 2020 09:14:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7962be99-cc5d-4da5-9494-8b694fd7b473</guid><dc:creator>Le Phuong</dc:creator><description>&lt;p&gt;My function&amp;nbsp;&lt;span&gt;PCD_WriteRegister(PCD_Register reg, byte value) is work.&lt;br /&gt;Firt, I think you test with this function. If it&amp;#39;s work good then orther fuinction&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;My write function:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;---------------------------------------------------&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;void WriteRegister(uint8_t addr, uint8_t val) {&lt;br /&gt;uint8_t m_tx_buf[2];&lt;br /&gt; m_tx_buf[0] = (addr &amp;lt;&amp;lt; 1) &amp;amp; 0x7E;&lt;br /&gt; m_tx_buf[1] = val;&lt;br /&gt; spi_xfer_done = false;&lt;/p&gt;
&lt;p&gt;nrf_drv_spi_transfer(&amp;amp;spi,&amp;amp;m_tx_buf[0], 2, NULL, 0);&lt;/p&gt;
&lt;p&gt;while (!spi_xfer_done)&lt;br /&gt; {&lt;br /&gt; __WFE();&lt;br /&gt; }&lt;br /&gt; NRF_LOG_FLUSH();&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;static void spi_event_handler(nrf_drv_spi_evt_t const * p_event,&lt;br /&gt; void * p_context)&lt;br /&gt;{&lt;br /&gt; spi_xfer_done = true;&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;And in maid loop you wating&amp;nbsp;&lt;span&gt;spi_xfer_done&amp;nbsp;.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need MFRC522 C library for NRF52833 ???</title><link>https://devzone.nordicsemi.com/thread/235312?ContentTypeID=1</link><pubDate>Thu, 20 Feb 2020 05:35:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8291ebe0-4979-4edf-9576-fbf2a4f13da5</guid><dc:creator>S S</dc:creator><description>&lt;p&gt;Same like you, we can&amp;#39;t read and write register and it&amp;#39;s couldn&amp;#39;t able to display any register and please list important&amp;nbsp; functions to be called in the program?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need MFRC522 C library for NRF52833 ???</title><link>https://devzone.nordicsemi.com/thread/235038?ContentTypeID=1</link><pubDate>Wed, 19 Feb 2020 02:39:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:91cb1ad3-bbdb-4eaf-9ecd-eea605e3a59b</guid><dc:creator>Le Phuong</dc:creator><description>&lt;p&gt;what is&amp;nbsp; your problem?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need MFRC522 C library for NRF52833 ???</title><link>https://devzone.nordicsemi.com/thread/234882?ContentTypeID=1</link><pubDate>Tue, 18 Feb 2020 11:55:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:71bf0f54-2ade-4f08-91a8-869177ea219b</guid><dc:creator>S S</dc:creator><description>&lt;p&gt;any one have some steps or procedure for the mfrc522 with nrf52 modules&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need MFRC522 C library for NRF52833 ???</title><link>https://devzone.nordicsemi.com/thread/234543?ContentTypeID=1</link><pubDate>Mon, 17 Feb 2020 06:51:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:55aa744b-0679-446e-8b7e-3aba235e8ea5</guid><dc:creator>S S</dc:creator><description>&lt;p&gt;Could you share the fixed codes for reference please&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need MFRC522 C library for NRF52833 ???</title><link>https://devzone.nordicsemi.com/thread/226755?ContentTypeID=1</link><pubDate>Mon, 23 Dec 2019 16:26:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:739c27e5-e63f-4181-9f58-a06dcb741a86</guid><dc:creator>Le Phuong</dc:creator><description>&lt;p&gt;Hi, i had fixed.&lt;br /&gt;Read and write function is true.a Orther my funtion is wrong (((:&lt;br /&gt;Sorry.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need MFRC522 C library for NRF52833 ???</title><link>https://devzone.nordicsemi.com/thread/226706?ContentTypeID=1</link><pubDate>Mon, 23 Dec 2019 09:38:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d705fd76-9cd7-454f-8e8d-056d0a593c81</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Where exactly is the code stuck?&amp;nbsp;&lt;/li&gt;
&lt;li&gt;Are you able to build the project without any warnings or errors?&lt;/li&gt;
&lt;li&gt;Which SDK version are you using?&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;regards&lt;/p&gt;
&lt;p&gt;Jared&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>