<?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>Failed to write command, err_code = 33281；Failed while calling TWI tx 1</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/81623/failed-to-write-command-err_code-33281-failed-while-calling-twi-tx-1</link><description>HI, 
 
 i using 52840DK SDK17.2 s140 10056 test NFC pairing. 
 ble_central\experimental\ble_nfc_pairing_reference_c 10056 s140 ble_peripheral\experimental\ble_nfc_pairing_reference 10056 s140 
 the peripheral NFC tag can be found by android phone. but</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 16 Nov 2021 08:13:35 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/81623/failed-to-write-command-err_code-33281-failed-while-calling-twi-tx-1" /><item><title>RE: Failed to write command, err_code = 33281；Failed while calling TWI tx 1</title><link>https://devzone.nordicsemi.com/thread/339142?ContentTypeID=1</link><pubDate>Tue, 16 Nov 2021 08:13:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:67e239ea-d751-4ccd-9326-2e88b86bfe64</guid><dc:creator>yoyou</dc:creator><description>&lt;p&gt;thaks for your help&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Failed to write command, err_code = 33281；Failed while calling TWI tx 1</title><link>https://devzone.nordicsemi.com/thread/339074?ContentTypeID=1</link><pubDate>Mon, 15 Nov 2021 16:03:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fd3a271f-7802-431e-93bf-e7c3091478d1</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;I think the next step now is get a logic analyzer so you can observe the twi pins (clk and data), I think we are missing something here (wrong pins, missing pull-ups etc).&lt;/p&gt;
&lt;p&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Failed to write command, err_code = 33281；Failed while calling TWI tx 1</title><link>https://devzone.nordicsemi.com/thread/338667?ContentTypeID=1</link><pubDate>Fri, 12 Nov 2021 01:10:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dd139a52-9528-454d-8aed-c1fd358a280c</guid><dc:creator>yoyou</dc:creator><description>&lt;p&gt;thank you very much,&lt;/p&gt;
&lt;p&gt;i&amp;nbsp;&lt;span&gt;run the twi_scanner example project ,No device was found.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;and&amp;nbsp;ble_nfc_pairing_reference&amp;nbsp;config as follows right，freedom from error log.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1636679111029v1.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1636700985509v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Two NFC antennas are close together，&lt;/span&gt;&lt;span&gt;the peripheral NFC tag can be found by android phone.but&amp;nbsp;twi_scanner&amp;nbsp;can&amp;#39;t.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1636696114420v2.png" /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1636696134727v3.jpeg" /&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Failed to write command, err_code = 33281；Failed while calling TWI tx 1</title><link>https://devzone.nordicsemi.com/thread/338618?ContentTypeID=1</link><pubDate>Thu, 11 Nov 2021 14:47:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1054ab9f-357d-4199-a0f0-cbe117148d9c</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Error code 33281 is 0x8001, and looking at sdk_errors.h I can find:&lt;br /&gt;NRF_ERROR_DRV_TWI_ERR_ANACK&lt;/p&gt;
&lt;p&gt;This is due to &lt;span&gt;NACK received after sending the address&lt;/span&gt;:&lt;br /&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.1/twim.html#register.ERRORSRC"&gt;https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.1/twim.html#register.ERRORSRC&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Basically this means that the slave did not respond to the serial address, either caused by no pull-ups on the TWI pins or that the address is wrong.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I suggest to run the twi_scanner example project to find the address of the sensor:&lt;br /&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.1.0/twi_scanner_example.html"&gt;https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.1.0/twi_scanner_example.html&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>