<?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>iic error NRF_ERROR_NO_MEM with app_sched_event_put</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/62641/iic-error-nrf_error_no_mem-with-app_sched_event_put</link><description>hi 
 i want to use iic in my project ,and i add iic func to my project refrence project twi_sensor. 
 the code of iic like this： 
 
 I call the api in the main 
 
 
 then compile and download the hex to the chip,but the log show like this: 
 
 the code</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 07 Jul 2020 08:40:35 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/62641/iic-error-nrf_error_no_mem-with-app_sched_event_put" /><item><title>RE: iic error NRF_ERROR_NO_MEM with app_sched_event_put</title><link>https://devzone.nordicsemi.com/thread/258748?ContentTypeID=1</link><pubDate>Tue, 07 Jul 2020 08:40:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:78203a4d-dff4-4564-9730-fa6e1cdc9057</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Can you look at the analog level on the twi scl? I suspect&amp;nbsp;the problem here is a weak pull-up, so you can&amp;#39;t achieve 400kHz because it take too long time to pull it up.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: iic error NRF_ERROR_NO_MEM with app_sched_event_put</title><link>https://devzone.nordicsemi.com/thread/258735?ContentTypeID=1</link><pubDate>Tue, 07 Jul 2020 07:59:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3c7d4afe-1e21-4a4e-b34b-1d548869aa85</guid><dc:creator>pipixia_8_8</dc:creator><description>&lt;p&gt;yes,i connect the 3.3v to the sda and scl pin.and the iic also cant run in the speed of 400k&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1594108775121v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: iic error NRF_ERROR_NO_MEM with app_sched_event_put</title><link>https://devzone.nordicsemi.com/thread/258671?ContentTypeID=1</link><pubDate>Mon, 06 Jul 2020 16:47:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5baae8bd-c94d-4a44-bc46-26a6b7c72156</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Do you have pull-ups? Seems you&amp;nbsp;are missing the two lines I shared on pull-up?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: iic error NRF_ERROR_NO_MEM with app_sched_event_put</title><link>https://devzone.nordicsemi.com/thread/258564?ContentTypeID=1</link><pubDate>Mon, 06 Jul 2020 10:03:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:193f6ebe-706d-407b-927b-827d43028cb7</guid><dc:creator>pipixia_8_8</dc:creator><description>&lt;p&gt;hi.&amp;nbsp;thank for your reply .&lt;/p&gt;
&lt;p&gt;i try to modify the project as you say in&lt;/p&gt;
&lt;p&gt;nRF5_SDK_16.0.0_98a08e2\examples\peripheral\twi_scanner&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;void twi_init (void)
{
    ret_code_t err_code;

    const nrf_drv_twi_config_t twi_config = {
       .scl                = ARDUINO_SCL_PIN,
       .sda                = ARDUINO_SDA_PIN,
       .frequency          = NRF_DRV_TWI_FREQ_400K,
       .interrupt_priority = APP_IRQ_PRIORITY_HIGH,
       .clear_bus_init     = false
    };

    err_code = nrf_drv_twi_init(&amp;amp;m_twi, &amp;amp;twi_config, NULL, NULL);
    APP_ERROR_CHECK(err_code);

    nrf_drv_twi_enable(&amp;amp;m_twi);
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;and the speed is also 200k,i use the chip is nrf52840.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1594029549099v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;and in this QA,the nrf52840 may have the same problem, in the sdk 16.0,it will occur.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/60516/twi-speed-not-correct/247002#247002"&gt;devzone.nordicsemi.com/.../247002&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: iic error NRF_ERROR_NO_MEM with app_sched_event_put</title><link>https://devzone.nordicsemi.com/thread/258555?ContentTypeID=1</link><pubDate>Mon, 06 Jul 2020 09:44:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c8e39e0c-e35d-449a-8ccf-f22fe14c7a80</guid><dc:creator>Kenneth</dc:creator><description>&lt;div&gt;
&lt;div&gt;I compiled the twi scanner example:&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;p&gt;\nRF5_SDK_15.3.0_59ac345\examples\peripheral\twi_scanner&lt;/p&gt;
&lt;p&gt;Then modified twi_init():&lt;br /&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;void twi_init (void)
{
    ret_code_t err_code;

    const nrf_drv_twi_config_t twi_config = {
       .scl                = ARDUINO_SCL_PIN,
       .sda                = ARDUINO_SDA_PIN,
       .frequency          = NRF_DRV_TWI_FREQ_400K,
       .interrupt_priority = APP_IRQ_PRIORITY_HIGH,
       .clear_bus_init     = false
    };

    err_code = nrf_drv_twi_init(&amp;amp;m_twi, &amp;amp;twi_config, NULL, NULL);
    APP_ERROR_CHECK(err_code);

    nrf_gpio_cfg_input(ARDUINO_SCL_PIN, NRF_GPIO_PIN_PULLUP);
    nrf_gpio_cfg_input(ARDUINO_SDA_PIN, NRF_GPIO_PIN_PULLUP);

    nrf_drv_twi_enable(&amp;amp;m_twi);
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-5c686ad615264119a0345b32fcc2c4eb/twi_5F00_measure.png" /&gt;&lt;/p&gt;
&lt;p&gt;Can you repeat the same?&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: iic error NRF_ERROR_NO_MEM with app_sched_event_put</title><link>https://devzone.nordicsemi.com/thread/258497?ContentTypeID=1</link><pubDate>Mon, 06 Jul 2020 03:04:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f250fd52-98a7-488c-8f7a-655a3166e531</guid><dc:creator>pipixia_8_8</dc:creator><description>&lt;p&gt;thank for your reply.And your answer take me some mind to slove this problem.i find the pca10056 in my hand cant achieve 400k speed. i set the speed 400k,actually it is 206k .and i set it 250k,it work at 250k.first i tink my code have not set correctly.and than i modify the speed of project nRF5_SDK_16.0.0_98a08e2\examples\peripheral\twi_sensor&lt;/p&gt;
&lt;p&gt;the problem also occured. the 400k cant achieve.so is there any config i have not set&amp;nbsp;&lt;span&gt;correctly?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;the speed test on 400k speed set:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1594004377958v1.png" alt=" " /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;the code i modify in the project&amp;nbsp;twi_sensor:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1594004482262v3.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;the speed test on 250k speed set:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1594004619031v4.png" alt=" " /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: iic error NRF_ERROR_NO_MEM with app_sched_event_put</title><link>https://devzone.nordicsemi.com/thread/258315?ContentTypeID=1</link><pubDate>Fri, 03 Jul 2020 12:44:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0f65ce06-18b3-4ff9-968d-4fa55c24a0a8</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;1. The data will only be sent when the driver returns NRF_SUCCESS, so the app would need to account for that. Like, implement retries in cases where the driver returns &lt;span&gt;NRF_ERROR_BUSY&lt;/span&gt;.&lt;/p&gt;
&lt;p&gt;2. If I&amp;#39;m understanding this correctly, the conflict is that the &amp;quot;key scan&amp;quot; and &amp;quot;data send&amp;quot; transaction can end up being initiated at the same time causing one of them to fail with the busy error. The trick would then be to make the code so that there always a certain amount of time between the transactions. Alternatively, use something like the&amp;nbsp;&lt;span&gt;&lt;a title="TWI transaction manager" href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.0/lib_nrf_twi_mngr.html?cp=7_1_3_55"&gt;TWI transaction manager&lt;/a&gt;&lt;/span&gt; to queue up multiple transactions.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: iic error NRF_ERROR_NO_MEM with app_sched_event_put</title><link>https://devzone.nordicsemi.com/thread/258112?ContentTypeID=1</link><pubDate>Thu, 02 Jul 2020 13:08:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:43330787-a728-46bb-be90-b4220a63b99c</guid><dc:creator>pipixia_8_8</dc:creator><description>&lt;p&gt;i try to increse the interval ,it is effective .but i need a key scan timer when i flash my led(control one frame led need 25ms to send iic data) .so the problem is the keyboard &amp;#39;s key scan interval should less than 10 ms . when&amp;nbsp; the key scan timeout comming ,if the system work for send iic data .the system bad.&lt;/p&gt;
&lt;p&gt;so my confuse is&lt;/p&gt;
&lt;p&gt;1.my iic data more than 600 bytles at once sending,so if i&amp;nbsp;&lt;span&gt;ignore the NRF_ERROR_BUSY error.will i lose data?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;2.if there is some method to slove the confilt between the short key scan interval with data send of&amp;nbsp; 25ms?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: iic error NRF_ERROR_NO_MEM with app_sched_event_put</title><link>https://devzone.nordicsemi.com/thread/258006?ContentTypeID=1</link><pubDate>Thu, 02 Jul 2020 08:50:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b44f0389-0cb1-410e-859d-772712660bb5</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;It sounds like you have to increase the timer interval to give TWI time to complete the transaction between each call to the send function, or simply ignore the NRF_ERROR_BUSY error when it occurs.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: iic error NRF_ERROR_NO_MEM with app_sched_event_put</title><link>https://devzone.nordicsemi.com/thread/257802?ContentTypeID=1</link><pubDate>Wed, 01 Jul 2020 11:35:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6d518b4d-eea3-4894-8880-a6a0dd6802c4</guid><dc:creator>pipixia_8_8</dc:creator><description>&lt;p&gt;i know your means,and i try to do as you say,&lt;span&gt;&amp;nbsp;comment the &amp;quot;while (m_xfer_done == false)&amp;quot; will result in another problem，the twi have no enough time to send all the data before new send call comming.and it report&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;00&amp;gt; &amp;lt;error&amp;gt; app: ERROR 17 [NRF_ERROR_BUSY] at ..\..\..\am_app\am_driver\I2C\am_app_i2c.c:79&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;so if there is some way to avoid this problem ,for example,send the big data in the main loop?&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;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: iic error NRF_ERROR_NO_MEM with app_sched_event_put</title><link>https://devzone.nordicsemi.com/thread/257798?ContentTypeID=1</link><pubDate>Wed, 01 Jul 2020 11:25:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:20e4b010-12f1-45c8-a0cb-bbef9266e2fb</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The send function will become blocking if the &amp;#39;m_xfer_done&amp;#39; flag for some reason is not getting cleared, and in that case, prevent the scheduler queue from being processed. To see if this could be the reason in this case, can you try to comment the &amp;quot;while (m_xfer_done == false)&amp;quot; line in the send function and see if the problem persists.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: iic error NRF_ERROR_NO_MEM with app_sched_event_put</title><link>https://devzone.nordicsemi.com/thread/257752?ContentTypeID=1</link><pubDate>Wed, 01 Jul 2020 08:58:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:28cd77ba-9859-47f9-93cf-109c2f50c5fd</guid><dc:creator>pipixia_8_8</dc:creator><description>&lt;p&gt;i test the problem by code&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;		uint8_t data=0x20;
		port_i2c_send(0x74 ,&amp;amp;data,  1);&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;send iic data and report.what shuold i modify&amp;nbsp;for this problem ?i guess mybe rtc config&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: iic error NRF_ERROR_NO_MEM with app_sched_event_put</title><link>https://devzone.nordicsemi.com/thread/257750?ContentTypeID=1</link><pubDate>Wed, 01 Jul 2020 08:53:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a7afb62a-b6ca-47b6-8a9b-08b829c6f535</guid><dc:creator>pipixia_8_8</dc:creator><description>&lt;p&gt;hi,thank for you reply,when i realize the problem of ack,connect to the iic device, and the iic work well.but now i try to send iic data in a timer handler,i open the&amp;nbsp;&amp;nbsp;APP_SCHEDULER_ENABLED 1.&amp;nbsp; and i init the usb in my project.so i dont kown why i send the data in the timer handler will report&amp;nbsp;&lt;/p&gt;
&lt;p&gt;ERROR 4 [NRF_ERROR_NO_MEM] at ..\..\..\..\..\..\components\libraries\timer\app_timer2.c:181&lt;/p&gt;
&lt;p&gt;this is my code&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;//扫描定时器回调
void led_scan_timer_handler(void * p_context)
{
	disp_scan();
	
//stream_prase(stream_page.para,led_data);
	
}
//定时器初始化
void led_scan_timer_init(void)
{
    
	  ret_code_t err_code;
    err_code = app_timer_create(&amp;amp;m_led_scan_timer_id,
                                APP_TIMER_MODE_REPEATED,
                                led_scan_timer_handler);
    APP_ERROR_CHECK(err_code);
}
//启动定时器
void led_scan_timer_start(void )
{
    ret_code_t err_code;

    err_code = app_timer_start(m_led_scan_timer_id, LED_FLASH_INTERVAL, NULL);
    APP_ERROR_CHECK(err_code);

}
//关闭定时器
void led_scan_timer_stop(void)
{
    ret_code_t err_code;

    err_code = app_timer_stop(m_led_scan_timer_id);
    APP_ERROR_CHECK(err_code);
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;
void am_i2c_send_data(uint8_t addr,uint8_t const * p_data, uint8_t length, bool no_stop)
{
    ret_code_t err_code;
	
    err_code = nrf_drv_twi_tx(&amp;amp;m_twi, addr, p_data, length, no_stop);
//		iic_printf(&amp;quot;err_code  == %d &amp;quot;,err_code);
    APP_ERROR_CHECK(err_code);
    while (m_xfer_done == false);	//没有器件调试的时候暂时不使用
		m_xfer_done = false;
		//while(err_code == NRF_ERROR_BUSY);//等待传输完成
	

}


void port_i2c_send(uint8_t addr,uint8_t *p_data, uint8_t length)
{
	#if (SOC_TYPE ==NRF_52832)

	#elif (SOC_TYPE ==NRF_52840)
	
	am_i2c_send_data( addr,  p_data,length, 0 );
	
		#else
	#endif
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;void disp_scan(void)
{
	
	uint8_t need_flash=0;
	/*
	if(!disp_control.valid)
		return;
	*/
	
	
	//控制速度   显示间隔： 50+(101-speed)*10  ms
	if(disp_control.time_count%(LED_MIN_INTERVAL_MS+LED_SCAN_BASE_MS*(100-disp_control.disp_page-&amp;gt;speed))==0)
	{
		//数据解析
		if(disp_control.disp_page-&amp;gt;value_prase!=NULL)
		{
			need_flash = disp_control.disp_page-&amp;gt;value_prase(disp_control.disp_page-&amp;gt;para,led_data);
		}
		
		
		//定时器是否需要关闭
		if(need_flash)
		{
			
		}
		else
		{
			led_scan_timer_stop();
			//关闭定时器
		}
		
		
		//led 显示函数
	//	disp_frame_data( led_data,disp_control.disp_page-&amp;gt;lightness);
		
		
		//for test
		uint8_t data=0x20;
		port_i2c_send(0x74 ,&amp;amp;data,  1);
		
	}
}&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: iic error NRF_ERROR_NO_MEM with app_sched_event_put</title><link>https://devzone.nordicsemi.com/thread/255493?ContentTypeID=1</link><pubDate>Wed, 17 Jun 2020 11:13:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:625c32ed-b361-49b2-bc95-bd9728c58161</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;You will get a NRF_DRV_TWI_EVT_ADDRESS_NACK or NRF_DRV_TWI_EVT_DATA_NACK event instead of the NRF_DRV_TWI_EVT_DONE event if the sensor rejects the request. I guess the &amp;#39;&lt;span&gt;m_xfer_done&amp;#39; flag is not updated for those events? &lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
[quote user="pipixia_8_8"]potentially dangerous when send large data and the code comment &amp;quot;&lt;span&gt;while (m_xfer_done == false)&lt;/span&gt;&amp;quot;?[/quote]
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;I think it&amp;#39;s fine to use it as long as you handle the error events mentioned above. Otherwise, the program may end up getting stuck in the while loop as you have experienced. Anyway, here is another TWI example without the blocking while loops if you are interested &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/62494/nrf_drv_twi_rx-can-t-read-correct-data-but-always-only-zero"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/62494/nrf_drv_twi_rx-can-t-read-correct-data-but-always-only-zero&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: iic error NRF_ERROR_NO_MEM with app_sched_event_put</title><link>https://devzone.nordicsemi.com/thread/255443?ContentTypeID=1</link><pubDate>Wed, 17 Jun 2020 09:03:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6d5dce08-f922-4358-a779-e2c1af30fdea</guid><dc:creator>pipixia_8_8</dc:creator><description>&lt;p&gt;i find the&amp;nbsp;NRF_DRV_TWI_EVT_DONE of&amp;nbsp;twi_handler can never comming by set the breakpoint be after &amp;quot;NRF_DRV_TWI_EVT_DONE:&amp;quot; in project twi_sensor, i try to comment the code &amp;quot;while (m_xfer_done == false);&amp;quot;,it can work ,and i can see the wave by logic anlyzer:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1592384062374v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;so,now my&amp;nbsp;confuse is why the event&amp;nbsp;&lt;span&gt;NRF_DRV_TWI_EVT_DONE of twi_handler will not comming ？and there if any&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;potentially dangerous when send large data and the code comment &amp;quot;&lt;span&gt;while (m_xfer_done == false)&lt;/span&gt;&amp;quot;?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: iic error NRF_ERROR_NO_MEM with app_sched_event_put</title><link>https://devzone.nordicsemi.com/thread/255221?ContentTypeID=1</link><pubDate>Tue, 16 Jun 2020 11:03:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:adf03d52-f3eb-4999-ba7b-e9b012d8d2cd</guid><dc:creator>pipixia_8_8</dc:creator><description>&lt;p&gt;void port_i2c_send(uint8_t addr,uint8_t *p_data, uint8_t length)&lt;br /&gt;{&lt;br /&gt;&lt;br /&gt; am_i2c_send_data( addr, p_data,length, 0 );&lt;br /&gt;&lt;br /&gt;}&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;void port_i2c_read(uint8_t device_addr,uint8_t word_addr,uint8_t *p_data, uint8_t length)&lt;br /&gt;{&lt;br /&gt;&lt;br /&gt; am_i2c_read_data( device_addr, word_addr, p_data, length );&lt;br /&gt;&lt;br /&gt;}&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>