<?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>compilation problem Segger with SDK 15.2</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/44083/compilation-problem-segger-with-sdk-15-2</link><description>Hello I work for a product to produce 2 BLE products: 
 
 several sensors with NRF52832 + LIS2DH12 (accelerometer) + HTS221 (temperature) + ICM-20689 (motion) 
 
 
 a gateway with a NRF52832 + CP2102n (for USB / USB conversion) 
 
 My project is to receive</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 14 Mar 2019 15:58:15 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/44083/compilation-problem-segger-with-sdk-15-2" /><item><title>RE: compilation problem Segger with SDK 15.2</title><link>https://devzone.nordicsemi.com/thread/176274?ContentTypeID=1</link><pubDate>Thu, 14 Mar 2019 15:58:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f95bf7eb-d7ae-4afe-be9f-424392b0a7ab</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Yes, this is a public case. Anyone with a devzone account can add a reply here.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: compilation problem Segger with SDK 15.2</title><link>https://devzone.nordicsemi.com/thread/176255?ContentTypeID=1</link><pubDate>Thu, 14 Mar 2019 15:24:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fcd3db89-2089-4bae-8a80-5201002b4459</guid><dc:creator>Vincent</dc:creator><description>&lt;p&gt;&amp;nbsp;is&amp;nbsp; It possible to add my colegue to the discussion?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: compilation problem Segger with SDK 15.2</title><link>https://devzone.nordicsemi.com/thread/176120?ContentTypeID=1</link><pubDate>Thu, 14 Mar 2019 09:46:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0f2a3565-1775-46d5-9061-547b31737938</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Did you run&amp;nbsp;hts221_init() ?&lt;/p&gt;
&lt;p&gt;What does&amp;nbsp;hts221_status_read() return ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: compilation problem Segger with SDK 15.2</title><link>https://devzone.nordicsemi.com/thread/175994?ContentTypeID=1</link><pubDate>Wed, 13 Mar 2019 15:22:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e4e312c3-05fc-477b-bafa-d7acdd5afc76</guid><dc:creator>Vincent</dc:creator><description>&lt;p&gt;Hi Sigurd,&lt;/p&gt;
&lt;p&gt;how are you today?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;We are making progress with the NRF.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;But we have a problem with a temperature sensor (&lt;span&gt;HTS221)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;The fonction &amp;quot;hts221_who_am_i_read&amp;quot; =&amp;gt; it s Ok we are a result = 0xBC&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;the result of temperature sensor is not correct.&lt;/p&gt;
&lt;p&gt;This is my code&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;void m_temp_callback()
{
      int16_t *p_rawtemp;
      NRF_LOG_INFO(&amp;quot;RAW TEMP : %d&amp;quot;, p_rawtemp);
      printf(&amp;quot;RAW TEMP : %d\n&amp;quot;, p_rawtemp);
      temperature = hts221_temp_process(&amp;amp;m_hts221,  p_rawtemp)/8;  
      printf(&amp;quot;Temperature %d C\n&amp;quot;, temperature);   
}



void read_th()
{
      uint32_t err;
	int16_t rawhum;
	int16_t rawtemp;

      // Submit temperature read command to TWI manager
     // m_temp_callback called when data is returned
    err = hts221_temp_read(&amp;amp;m_hts221, &amp;amp;m_temp_callback , &amp;amp;rawtemp);
    printf(&amp;quot;hts221_temp_read %d\n&amp;quot;, err);
    APP_ERROR_CHECK(err);
    nrf_delay_ms(500);

}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;This is a result:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;hts221_temp_read 0&lt;br /&gt;Identity: 188&lt;br /&gt;RAW TEMP : 0&lt;br /&gt;Temperature 0 C&lt;br /&gt;hts221_temp_read 0&lt;br /&gt;RAW TEMP : 0&lt;br /&gt;Temperature 0 C&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: compilation problem Segger with SDK 15.2</title><link>https://devzone.nordicsemi.com/thread/174607?ContentTypeID=1</link><pubDate>Wed, 06 Mar 2019 14:43:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dce637c4-c029-4ee6-9459-1d5b792d57d1</guid><dc:creator>Sigurd</dc:creator><description>[quote userid="75021" url="~/f/nordic-q-a/44083/compilation-problem-segger-with-sdk-15-2/174384"]Should I use a service?[/quote]
&lt;p&gt;Yes. In the link you listed the predefined services by Bluetooth SIG are listed. You would need to create a custom service instead. In the Thingy 52 SDK, several services for some of the sensors you are using are implemented. I recommend taking a look at that. You can find the&amp;nbsp;Thingy:52-SDK-zip in the list at &lt;a href="https://www.nordicsemi.com/Software-and-Tools/Development-Kits/Nordic-Thingy-52/Download#infotabs"&gt;this page.&lt;/a&gt;&lt;/p&gt;
[quote userid="75021" url="~/f/nordic-q-a/44083/compilation-problem-segger-with-sdk-15-2/174384"]Or can we modify this parameter in the program?[/quote]
&lt;p&gt;Yes, you can.&amp;nbsp;&lt;/p&gt;
[quote userid="75021" url="~/f/nordic-q-a/44083/compilation-problem-segger-with-sdk-15-2/174384"]What is the TWI for?[/quote]
&lt;p&gt;TWI/&amp;nbsp;I2C is used to&amp;nbsp;communicate with the different sensors(&lt;span&gt;LIS2DH12&amp;nbsp;,HTS221,etc&lt;/span&gt;).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: compilation problem Segger with SDK 15.2</title><link>https://devzone.nordicsemi.com/thread/174384?ContentTypeID=1</link><pubDate>Tue, 05 Mar 2019 20:42:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9d7a7976-40c6-42e1-812a-335c07a876e4</guid><dc:creator>Vincent</dc:creator><description>&lt;p&gt;Thanks, it compiles.&lt;/p&gt;
&lt;p&gt;My sensor must send temperature and position (motion), and my gateway must be able to drive the LED of my sensor.&lt;/p&gt;
&lt;p&gt;I have 3 questions : &lt;br /&gt;Should I use a service? If yes which? &lt;a href="https://www.bluetooth.com/specifications/gatt/services"&gt;www.bluetooth.com/.../services&lt;/a&gt;&lt;br /&gt;Or can we modify this parameter in the program?&lt;br /&gt;What is the TWI for?&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Vincent&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: compilation problem Segger with SDK 15.2</title><link>https://devzone.nordicsemi.com/thread/172895?ContentTypeID=1</link><pubDate>Mon, 25 Feb 2019 21:47:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b60b3b03-5bd5-49b6-9739-a1f3150126ca</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;You did not set&amp;nbsp;TWI_ENABLED to 1.&lt;/p&gt;
&lt;p&gt;&lt;img height="179" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1551131210864v1.png" width="334" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: compilation problem Segger with SDK 15.2</title><link>https://devzone.nordicsemi.com/thread/172890?ContentTypeID=1</link><pubDate>Mon, 25 Feb 2019 20:49:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:25987545-f652-484b-8003-1ad5998e8e91</guid><dc:creator>Vincent</dc:creator><description>&lt;p&gt;Thanks, for you answer, but&amp;nbsp;&lt;span&gt;I made the changes but I still have the same error&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1551127318130v1.png" alt=" " /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;div id="tw-source"&gt;
&lt;div class="tw-lang-selector-wrapper" id="u4EBdf"&gt;&lt;/div&gt;
&lt;div id="tw-source"&gt;
&lt;div class="tw-lang-selector-wrapper" id="u4EBdf"&gt;
&lt;pre class="tw-data-text tw-ta tw-text-medium" id="tw-target-text" dir="ltr"&gt;&lt;span lang="en"&gt;I updated the program here&lt;/span&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class="tw-swapa"&gt;
&lt;div class="DHcWmd"&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class="oSioSc"&gt;
&lt;div id="tw-target"&gt;
&lt;div class="gsrt tw-ta-container tw-nfl" id="tw-target-text-container"&gt;
&lt;pre class="tw-data-text tw-ta tw-text-medium" id="tw-target-text" dir="ltr"&gt;&lt;span lang="en"&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;&lt;a href="https://www.dropbox.com/s/ipqh8rnod2xr5md/nRF5_SDK_15.2.0_9412b96.7z?dl=0"&gt;https://www.dropbox.com/s/ipqh8rnod2xr5md/nRF5_SDK_15.2.0_9412b96.7z?dl=0&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;pre class="tw-data-text tw-ta tw-text-medium" id="tw-target-text" dir="ltr"&gt;&lt;span lang="en"&gt;I do not understand with &lt;br /&gt;#ifndef NRFX_TWIM_ENABLED&lt;br /&gt;#define NRFX_TWIM_ENABLED 1&lt;br /&gt;#endif&lt;br /&gt;the file &amp;quot;nfrx_twil.c&amp;quot; is disabled&lt;br /&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1551127689157v2.png" alt=" " /&gt;&lt;br /&gt;&lt;br /&gt;Thanks for your help &lt;br /&gt;&lt;br /&gt;Vincent&lt;/span&gt;&lt;/pre&gt;
&lt;div class="oSioSc"&gt;
&lt;div id="tw-target"&gt;
&lt;div class="gsrt tw-ta-container tw-nfl" id="tw-target-text-container"&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: compilation problem Segger with SDK 15.2</title><link>https://devzone.nordicsemi.com/thread/172854?ContentTypeID=1</link><pubDate>Mon, 25 Feb 2019 16:20:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d42da86d-e0af-42cd-a5ac-1696c6d68ed4</guid><dc:creator>Sigurd</dc:creator><description>[quote userid="75021" url="~/f/nordic-q-a/44083/compilation-problem-segger-with-sdk-15-2/172786"]&amp;quot;&amp;nbsp;nRF5_SDK_15.2.0_9412b96\examples\ble_peripheral\ble_app_blinky\capteur\s132\ses&amp;quot;?[/quote]
&lt;p&gt;I was looking at the project in&amp;nbsp;ble_app_blinky\pca10040\s132\ses, but I see the&amp;nbsp;&lt;span&gt;capteur project now.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Please add the following files to the project:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;1) nrfx_twim.c , found in sdk_folder\ modules\nrfx\drivers\src&lt;br /&gt;2) nrf_drv_twi.c, found in sdk_folder\ \integration\nrfx\legacy&lt;br /&gt;3) nrf_queue.c , found in sdk_folder \components\libraries\queue&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;br /&gt;In sdk_config.h, set the following defines to 1:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;NRF_QUEUE_ENABLED (line 7083)&lt;br /&gt;NRF_TWI_MNGR_ENABLED (line 7126)&lt;br /&gt;TWI_ENABLED (line 5557)&lt;br /&gt;TWI0_ENABLED (line 5603)&lt;br /&gt;TWI0_USE_EASY_DMA (line 5609)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;And if you are also using TWI 1 instance, set these to 1 also:&lt;br /&gt;TWI1_ENABLED (line 5617)&lt;br /&gt;TWI1_USE_EASY_DMA (line 5623)&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: compilation problem Segger with SDK 15.2</title><link>https://devzone.nordicsemi.com/thread/172786?ContentTypeID=1</link><pubDate>Mon, 25 Feb 2019 13:42:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f57ad28f-c6ca-4b8c-a70a-c791485a74cc</guid><dc:creator>Vincent</dc:creator><description>&lt;p&gt;Hi Sigurd,&lt;/p&gt;
&lt;p&gt;thanks for you answer, I don&amp;#39;t anderstand &amp;quot;&lt;span&gt;he screenshot you uploaded does not match the project uploaded on the dropbox.&amp;quot;, you use this &amp;quot;&amp;nbsp;nRF5_SDK_15.2.0_9412b96\examples\ble_peripheral\ble_app_blinky\capteur\s132\ses&amp;quot;?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I have enabled&amp;nbsp;#define NRFX_TWIM1_ENABLED 1&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;but i have a new error :&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Output/ble_app_blinky_pca10040_s132 Release/Obj/nrf_twi_sensor.o: In function `nrf_twi_sensor_reg_read&amp;#39;:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1551102469240v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thanks for you answer.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Vincent&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: compilation problem Segger with SDK 15.2</title><link>https://devzone.nordicsemi.com/thread/172742?ContentTypeID=1</link><pubDate>Mon, 25 Feb 2019 12:35:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:34d01720-9571-427c-ac73-c5f833149e25</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The screenshot you uploaded does not match the project uploaded on the dropbox.&lt;/p&gt;
&lt;p&gt;If you are using the&amp;nbsp;nrf_twi_mngr, please make sure that you have&amp;nbsp;NRF_TWI_MNGR_ENABLED set to 1 in sdk_config.h&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Sigurd&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>