<?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>How to config the sdk_config.h when using nrf_drv_twi APIs in SDK 15.2?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/47363/how-to-config-the-sdk_config-h-when-using-nrf_drv_twi-apis-in-sdk-15-2</link><description>Development software : SES 4.16; 
 Computer platform: macOS 10.14.4; 
 Hardware: nRF52832QFAA. 
 
 Hello everyone~ 
 I&amp;#39;m trying to use the nrf_drv_twi APIs to drive the sensor bma253. I try to learn from the example twi_sensor. After I configured the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 16 May 2019 10:44:47 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/47363/how-to-config-the-sdk_config-h-when-using-nrf_drv_twi-apis-in-sdk-15-2" /><item><title>RE: How to config the sdk_config.h when using nrf_drv_twi APIs in SDK 15.2?</title><link>https://devzone.nordicsemi.com/thread/187492?ContentTypeID=1</link><pubDate>Thu, 16 May 2019 10:44:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9ad6a499-c598-4742-8cc9-75c0ec38000d</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Glad you got it working!&lt;/p&gt;
&lt;p&gt;-Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to config the sdk_config.h when using nrf_drv_twi APIs in SDK 15.2?</title><link>https://devzone.nordicsemi.com/thread/187490?ContentTypeID=1</link><pubDate>Thu, 16 May 2019 10:37:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6e1d84a9-06d5-48af-8483-6e9bdb144425</guid><dc:creator>Bee</dc:creator><description>&lt;p&gt;Thanks for help, Simon. The problem has been solved. I used an sdk_config.h from&amp;nbsp;a wrong path.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to config the sdk_config.h when using nrf_drv_twi APIs in SDK 15.2?</title><link>https://devzone.nordicsemi.com/thread/187471?ContentTypeID=1</link><pubDate>Thu, 16 May 2019 09:24:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:90c4f168-7470-4138-b626-c92818978533</guid><dc:creator>Bee</dc:creator><description>&lt;p&gt;I don&amp;#39;t think the main.c can cause this problem. I&amp;#39;ve ensure those&amp;nbsp;&lt;span&gt;defines is like this:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;NRFX_TWIM_ENABLED 1&lt;br /&gt;NRFX_TWI_ENABLED 1&lt;br /&gt;TWI_ENABLED 1&lt;br /&gt;TWI0_ENABLED 1&lt;br /&gt;TWI0_USE_EASY_DMA 1&lt;br /&gt;TWI1_ENABLED 0&lt;br /&gt;TWI1_USE_EASY_DMA 0&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I don&amp;#39;t&amp;nbsp;need TWI1. Do I also&amp;nbsp;need to set&amp;nbsp;TWI1_ENABLED and&amp;nbsp;TWI1_USE_EASY_DMA to 1?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to config the sdk_config.h when using nrf_drv_twi APIs in SDK 15.2?</title><link>https://devzone.nordicsemi.com/thread/187463?ContentTypeID=1</link><pubDate>Thu, 16 May 2019 09:06:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ff58feec-398e-4ba4-a937-a41cc538e7e1</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;How have you implemented the TWI into your main.c file?&lt;/p&gt;
&lt;p&gt;Also please go through your sdk_config.h file to check that each of these defines are set to 1:&lt;/p&gt;
&lt;p&gt;NRFX_TWIM_ENABLED 1&lt;br /&gt;&lt;span&gt;NRFX_TWI_ENABLED 1&lt;/span&gt;&lt;br /&gt;TWI_ENABLED 1&lt;br /&gt;TWI0_ENABLED 1&lt;br /&gt;TWI0_USE_EASY_DMA 1&lt;br /&gt;TWI1_ENABLED 1&lt;br /&gt;TWI1_USE_EASY_DMA 1&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>