<?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>SPI communication and BLE advertising data with nRF52 DK</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/30913/spi-communication-and-ble-advertising-data-with-nrf52-dk</link><description>Hi everyone! 
 I have already developed a couple projects in nRF52 DK and the result was quite messy. I want to make it right this time and that&amp;#39;s why I am requesting your help. 
 I am using nRF52 DK and SDK 13.0.0. and Eclipse Mars 2 (C/C++) with the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 10 Sep 2021 18:53:23 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/30913/spi-communication-and-ble-advertising-data-with-nrf52-dk" /><item><title>RE: SPI communication and BLE advertising data with nRF52 DK</title><link>https://devzone.nordicsemi.com/thread/329092?ContentTypeID=1</link><pubDate>Fri, 10 Sep 2021 18:53:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:abf6b738-3cd4-4aa4-8433-e175915fb763</guid><dc:creator>Reza papi</dc:creator><description>&lt;p&gt;Hi Ander, I hope you are doing great. I am currently working on a project that involve reading a sensor data with SPI and send it by nRF52 device through BLE. I see your post here and I am wondering if you can share your information with me. Thank you&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI communication and BLE advertising data with nRF52 DK</title><link>https://devzone.nordicsemi.com/thread/122741?ContentTypeID=1</link><pubDate>Mon, 05 Mar 2018 07:57:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:417a9140-46a8-420d-8e66-5cb1a711d713</guid><dc:creator>Ander GB</dc:creator><description>&lt;p&gt;Hi Vijay, you must edit your Makefile for this project. If you just copied the folder of the example, you must go to:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;...\examples\ble_peripheral\ble_app_beacon\pca10040\s132\armgcc&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Then, you must add the line:&amp;nbsp;&lt;span&gt;$(SDK_ROOT)/components/drivers_nrf/spi_master/nrf_drv_spi.c \&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;To the list &amp;quot;# Source files common to all targets&amp;quot;&lt;/p&gt;
&lt;p&gt;And the line:&amp;nbsp;&lt;span&gt;$(SDK_ROOT)/components/drivers_nrf/spi_master \&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;To the list &amp;quot;# Include folders common to all targets&amp;quot;&lt;/p&gt;
&lt;p&gt;Then save everything and rebuild the project. Those errors should dissapear.&lt;/p&gt;
&lt;p&gt;Hope this works for you!&lt;/p&gt;
&lt;p&gt;AGB&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI communication and BLE advertising data with nRF52 DK</title><link>https://devzone.nordicsemi.com/thread/122685?ContentTypeID=1</link><pubDate>Sat, 03 Mar 2018 09:34:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d258bdb9-a496-4b95-a4ab-d68cde41a733</guid><dc:creator>vijay7000</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I am facing same problem. SPI is not working with ble_app_beacon example. I am using Segger Embedded Studio, Nrf52832 DK and Windows10. I have unzipped the nrf52 SDK 14.2.xx in the default Document folder. where should I add these two lines in my working setup to get ride of these errors.&lt;/p&gt;
&lt;p&gt;Thanks in advance for the help,&lt;/p&gt;
&lt;p&gt;--vijay&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI communication and BLE advertising data with nRF52 DK</title><link>https://devzone.nordicsemi.com/thread/122678?ContentTypeID=1</link><pubDate>Sat, 03 Mar 2018 04:53:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:70124430-b264-4f5c-a807-76a39425d1a4</guid><dc:creator>norin saiyed</dc:creator><description>&lt;p&gt;yes it could be. If you have some special need to do error checking then only do that..&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI communication and BLE advertising data with nRF52 DK</title><link>https://devzone.nordicsemi.com/thread/122550?ContentTypeID=1</link><pubDate>Fri, 02 Mar 2018 07:46:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3bc9820c-4776-4acd-b674-b0aff5a8cb30</guid><dc:creator>Ander GB</dc:creator><description>&lt;p&gt;Any other idea? I found a nasty solution that solves that and the only remaining issue: deleting the APP_ERROR_CHECK() function that throws the error... I know, I know, that is not a solution, but for some reason the BLE advertising beacon is working and sending the data that I need it to send, so it can be a temporary solution.&lt;/p&gt;
&lt;p&gt;The other one was that I needed it to send at least 10 samples/second, for some reason, after erasing de error check now it works at full speed. Before, it was like stuck, it would be sending 3 readings per second and I could do nothing to change that.&lt;/p&gt;
&lt;p&gt;So, what are your feelings about this? Do you thing that the error could cause a corruption of the MCU or something worse?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI communication and BLE advertising data with nRF52 DK</title><link>https://devzone.nordicsemi.com/thread/122435?ContentTypeID=1</link><pubDate>Thu, 01 Mar 2018 11:10:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:054038de-072d-44fd-956d-34c4586ae0f6</guid><dc:creator>Ander GB</dc:creator><description>&lt;p&gt;I added the function and structure and changed the main() like this:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;int main(void)
{
    // Initialize.
    log_init();
    timers_init();
    leds_init();
    ble_stack_init();
    advertising_init();

    bsp_board_leds_init();

	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));

	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, NULL, 0, m_rx_buf, m_length));

		NRF_LOG_FLUSH();

		bsp_board_led_invert(BSP_BOARD_LED_0);

		nrf_delay_ms(10);

        adv_update();
        advertising_start();

        if (NRF_LOG_PROCESS() == false)
        {
            //power_manage();

            NRF_LOG_INFO(&amp;quot;Something sent.\r\n&amp;quot;);

        }
    }
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Sadly, I keep getting the same ERROR:FATAL in the LOG.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI communication and BLE advertising data with nRF52 DK</title><link>https://devzone.nordicsemi.com/thread/122434?ContentTypeID=1</link><pubDate>Thu, 01 Mar 2018 10:49:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3ec7ae59-c6f3-4166-a401-4a43965c80c1</guid><dc:creator>norin saiyed</dc:creator><description>&lt;p&gt;ok so try this.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;1.&lt;/strong&gt; make one function adv_update(). and call this function when ever you are getting spi data&amp;nbsp; or whenever you wish to advertise your spi data into beacon info.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;2.&lt;/strong&gt; structure for this adv_update is&lt;/p&gt;
&lt;p&gt;uint8_t m_update[] = &lt;br /&gt;{&lt;br /&gt; APP_DEVICE_TYPE, // Manufacturer specific information. Specifies the device type in this // implementation. &lt;br /&gt; APP_ADV_DATA_LENGTH, // Manufacturer specific information. Specifies the length of the &lt;br /&gt; APP_BEACON_UUID, // 128 bit UUID value. &lt;br /&gt; APP_MAJOR_VALUE, &lt;br /&gt; APP_MINOR_VALUE, // Major arbitrary value that can be used to distinguish between Beacons. &lt;br /&gt; APP_MEASURED_RSSI // Manufacturer specific information. The Beacon&amp;#39;s measured TX power in &lt;br /&gt;};&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;3.&amp;nbsp;&amp;nbsp;&lt;/strong&gt;rest of the adv_update function is same as your advertising_init function. just replace&amp;nbsp;&amp;nbsp;manuf_specific_data.data.p_data = (uint8_t *) m_beacon_info; with&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;manuf_specific_data.data.p_data = (uint8_t *) m_update;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;where m_update parameters are listed below.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;m_update[16] = rx_buffer[0];&lt;br /&gt; m_update[17] = &lt;span&gt;rx_buffer[1];&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;m_update[18] = rx_buffer[2];&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;m_update[19] = rx_buffer[3];&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;4. Set these vales as 0x00 initially&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;#define APP_MAJOR_VALUE 0x00,0x00&amp;nbsp;&lt;br /&gt;#define APP_MINOR_VALUE 0x00, 0x00&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;5. After changes you will be able to get your spi data(4 bytes) stored in rx_buffer as mjor and minor number field.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI communication and BLE advertising data with nRF52 DK</title><link>https://devzone.nordicsemi.com/thread/122431?ContentTypeID=1</link><pubDate>Thu, 01 Mar 2018 10:38:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:435ea698-c4e5-41e3-85ac-669d240e1d13</guid><dc:creator>Ander GB</dc:creator><description>&lt;p&gt;Four bytes&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI communication and BLE advertising data with nRF52 DK</title><link>https://devzone.nordicsemi.com/thread/122430?ContentTypeID=1</link><pubDate>Thu, 01 Mar 2018 10:37:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4268a037-99ee-480b-b816-176d421dde1c</guid><dc:creator>norin saiyed</dc:creator><description>&lt;p&gt;How many bytes you are receiving in rx buffer??&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI communication and BLE advertising data with nRF52 DK</title><link>https://devzone.nordicsemi.com/thread/122428?ContentTypeID=1</link><pubDate>Thu, 01 Mar 2018 10:28:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0b2c7a58-eb4e-402e-bcf1-46eeecaf3621</guid><dc:creator>Ander GB</dc:creator><description>&lt;p&gt;&lt;a href="https://gist.github.com/anonymous/877a3a9e571acf0a35ab72e4649ae752"&gt;Here&lt;/a&gt;. It&amp;#39;s a bit messy yet, Im sorry for that.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI communication and BLE advertising data with nRF52 DK</title><link>https://devzone.nordicsemi.com/thread/122423?ContentTypeID=1</link><pubDate>Thu, 01 Mar 2018 10:18:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:20320e1f-d061-482d-a161-76aecca568c6</guid><dc:creator>norin saiyed</dc:creator><description>&lt;p&gt;yes please it would be more easier for me to detect errors.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI communication and BLE advertising data with nRF52 DK</title><link>https://devzone.nordicsemi.com/thread/122422?ContentTypeID=1</link><pubDate>Thu, 01 Mar 2018 10:16:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fdbc9872-ecd0-4f35-8217-a3fec4cf9dd2</guid><dc:creator>Ander GB</dc:creator><description>&lt;p&gt;I send the m_rx_buf (sensor data) like this:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;manuf_specific_data.data.p_data = (uint8_t *) m_rx_buf;&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Yes, I am advertising them as a beacon in the Manufacturer Specific Data field. I am using nRF connect to check the content of the advertising packet and it actually is the sensor data. Thats was I was talking about when I said that they are being sent properly.&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/Recieved-log-10ms-delay.PNG" /&gt;&lt;/p&gt;
&lt;p&gt;This is what I talked about. The LOG is registering som ERROR:FATAL issue.&lt;/p&gt;
&lt;p&gt;I noticed a weird thing:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;APP_ERROR_CHECK(nrf_drv_spi_transfer(&amp;amp;spi, NULL, 0, m_rx_buf, m_length));

NRF_LOG_FLUSH();

bsp_board_led_invert(BSP_BOARD_LED_0);

nrf_delay_ms(10);

advertising_init();
advertising_start();&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;When I change this delay to 5 instead of 10, I get this other &amp;quot;error&amp;quot;:&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/Recieved-log-5ms-delay.PNG" /&gt;&lt;/p&gt;
&lt;p&gt;Do you want me to post the whole main.c file? You will probably detect the mistakes very easy.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI communication and BLE advertising data with nRF52 DK</title><link>https://devzone.nordicsemi.com/thread/122410?ContentTypeID=1</link><pubDate>Thu, 01 Mar 2018 10:04:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ee21498a-2c1b-4399-b995-bd9d1077df03</guid><dc:creator>norin saiyed</dc:creator><description>&lt;p&gt;What do you mean by readings are send properly?? how you are sending your spi data??&lt;/p&gt;
&lt;p&gt;Are you advertising it into beacon?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI communication and BLE advertising data with nRF52 DK</title><link>https://devzone.nordicsemi.com/thread/122405?ContentTypeID=1</link><pubDate>Thu, 01 Mar 2018 09:47:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:227cb46c-cdc7-4951-bf4a-2efc80d2d999</guid><dc:creator>Ander GB</dc:creator><description>&lt;p&gt;I am almost done. I fully integrated both projects together and now the readings are being send properly. I just have a few matters that I would like to solve:&lt;/p&gt;
&lt;p&gt;The&amp;nbsp;LOG is printing an ERROR:FATAL somewhere in my code. After debugging I found out that it is this:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;err_code = sd_ble_gap_adv_start(&amp;amp;m_adv_params, BLE_CONN_CFG_TAG_DEFAULT);&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;In the debug I got err_code = 7, which according to the documentation is&amp;nbsp;NRF_ERROR_INVALID_PARAM. My m_adv_params are:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;m_adv_params.type        = BLE_GAP_ADV_TYPE_ADV_NONCONN_IND;
m_adv_params.p_peer_addr = NULL;
m_adv_params.fp          = BLE_GAP_ADV_FP_ANY;
m_adv_params.interval    = NON_CONNECTABLE_ADV_INTERVAL;
m_adv_params.timeout     = APP_CFG_NON_CONN_ADV_TIMEOUT;&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;They are the default ones of the ble_app_beacon example and they had no errors before.&lt;/p&gt;
&lt;p&gt;Any idea?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI communication and BLE advertising data with nRF52 DK</title><link>https://devzone.nordicsemi.com/thread/122329?ContentTypeID=1</link><pubDate>Wed, 28 Feb 2018 15:00:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:72854dae-55f4-4acf-8f8c-eac956753ad7</guid><dc:creator>Ander GB</dc:creator><description>&lt;p&gt;I got rid of the problem with&amp;nbsp;&lt;span&gt;&amp;quot;undefined reference to &amp;#39;nrf_drv_spi_init&amp;#39; &amp;quot; and&lt;/span&gt; &amp;quot;undefined reference to &amp;#39;nrf_drv_spi_transfer&amp;#39; &amp;quot;. Turns out that I hadn&amp;#39;t added the lines:&lt;/p&gt;
&lt;p&gt;$(SDK_ROOT)/components/drivers_nrf/spi_master \&lt;/p&gt;
&lt;p&gt;$(SDK_ROOT)/components/drivers_nrf/spi_master/nrf_drv_spi.c \&lt;/p&gt;
&lt;p&gt;To the Makefile. Now it compiles perfectly, I just need to fill the advdata info with the readings from the spi and that should be it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI communication and BLE advertising data with nRF52 DK</title><link>https://devzone.nordicsemi.com/thread/122261?ContentTypeID=1</link><pubDate>Wed, 28 Feb 2018 11:08:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:afbf130a-ab2f-4208-9dc0-e93f62a22a5f</guid><dc:creator>Ander GB</dc:creator><description>&lt;p&gt;Everytime that I create a new project i follow the steps of the Devzone Tutorial (Propierties &amp;gt; C/C++ General &amp;gt; Preprocessor Include paths, Macros, etc and change the CDT GCC Build Outparser and CDT GCC Built-in Compiler Settings Cross ARM). I am not an expert, so I may be wrong but I think that is for avoiding erros in includes, isn&amp;#39;t it?&lt;/p&gt;
&lt;p&gt;And yes, I have added the spi&amp;#39;s includes to the main.c file of the ble_app_beacon.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI communication and BLE advertising data with nRF52 DK</title><link>https://devzone.nordicsemi.com/thread/122258?ContentTypeID=1</link><pubDate>Wed, 28 Feb 2018 10:53:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a6c80a0b-ca81-498f-93bd-5ca4cdd94944</guid><dc:creator>norin saiyed</dc:creator><description>&lt;p&gt;Yes you can add you #defines for spi in you sdk_config file for ble_app_beacon example. It is normal. Try to setup same files and libraries which you are using for simple spi example into your beacon example. And make sure you have added path to all your libraries and files.&lt;/p&gt;
&lt;p&gt;have you included all required files for spi into main.c?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI communication and BLE advertising data with nRF52 DK</title><link>https://devzone.nordicsemi.com/thread/122257?ContentTypeID=1</link><pubDate>Wed, 28 Feb 2018 10:46:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:015bcdd3-1cc6-4126-8f1d-14555ba7e58d</guid><dc:creator>Ander GB</dc:creator><description>&lt;p&gt;I am now trying to merge both main.c (the one from the &amp;quot;ble_app_beacon&amp;quot; example and the other from &amp;quot;spi&amp;quot;) files into just one project. I soon started to get errors, so my first approach was going to the sdk_config.h file to enable the spi. And then some errors like &amp;quot;SPI_SS_PIN is not declared &amp;quot; started to pop up.&lt;/p&gt;
&lt;p&gt;These defines are normally placed in the sdk_config.h file as well, but they are not. I thought that the sdk_config.h file was a macro equal for all the projects and examples and you could configure it, but the ble_app_beacon&amp;#39;s sdk_config.h file does not have the declarations of SPI_SS_PIN, SPI_SCK_PIN,... Is that normal?&lt;/p&gt;
&lt;p&gt;I started to define all of them by hand. And now I only have 2 errors: undefined reference to &amp;#39;nrf_drv_spi_init&amp;#39; and undefined reference to &amp;#39;nrf_drv_spi_transfer&amp;#39;. Both of this functions are declared in nrf_drv_spi.h which, by the way, is included in my project. Why does Eclipse not recognise them? Or what is the problem?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI communication and BLE advertising data with nRF52 DK</title><link>https://devzone.nordicsemi.com/thread/122227?ContentTypeID=1</link><pubDate>Wed, 28 Feb 2018 08:07:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3824ffae-a0bc-4623-ae07-8cf820f4f381</guid><dc:creator>norin saiyed</dc:creator><description>&lt;p&gt;It depends upon your sensor value.. You can use any field from advertisement packet e.g major number.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI communication and BLE advertising data with nRF52 DK</title><link>https://devzone.nordicsemi.com/thread/122225?ContentTypeID=1</link><pubDate>Wed, 28 Feb 2018 07:51:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:39eddce2-264e-4ceb-be75-fbe3f381e2fa</guid><dc:creator>Ander GB</dc:creator><description>&lt;p&gt;Thank you for your early reply. That&amp;#39;s what I tried, but it did change nothing in the advertising packet. I found the issue, instead of linking the main.c file of my local repository folder I linked to the project the main.c file of the examples folder by mistake. Sorry for the trouble.&lt;br /&gt;&lt;br /&gt;If I want to programatically change one BLE field to send the data from my SPi sensor, what field would you advise me to use?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI communication and BLE advertising data with nRF52 DK</title><link>https://devzone.nordicsemi.com/thread/122214?ContentTypeID=1</link><pubDate>Wed, 28 Feb 2018 05:28:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c9669b54-a386-4e8f-8266-4370cd6bd690</guid><dc:creator>norin saiyed</dc:creator><description>&lt;p&gt;Hi Ander,&lt;/p&gt;
&lt;p&gt;for changing major and minor value change the following #define in main.c&lt;/p&gt;
&lt;p&gt;#define APP_MAJOR_VALUE 0x01,0x02 /**&amp;lt; Major value used to identify Beacons. */ &lt;br /&gt;#define APP_MINOR_VALUE 0x03, 0x04 /**&amp;lt; Minor value used to identify Beacons. */&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;same for all the values which u need to change. UUID and company field.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI communication and BLE advertising data with nRF52 DK</title><link>https://devzone.nordicsemi.com/thread/122145?ContentTypeID=1</link><pubDate>Tue, 27 Feb 2018 14:02:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:451c637a-cc77-482c-8777-58c8bdc36ac3</guid><dc:creator>Ander GB</dc:creator><description>&lt;p&gt;I have compiled and uploaded the &amp;quot;ble_app_beacon&amp;quot; example in the Nordic nRF52 DK and it seemed to work fine, but then, I changed some data in the beacon to check if the changes had effect and they did not.&lt;/p&gt;
&lt;p&gt;After the changes, I obviously saved, cleaned the project, compiled again and uploaded the new file to the board. I also refreshed the app, restarted the board,... I changed the &amp;quot;major&amp;quot; and &amp;quot;minor&amp;quot; fields, but it keeps displaying the default ones.&lt;/p&gt;
&lt;p&gt;Does anyone know why is this happening?&lt;/p&gt;
&lt;p&gt;I do not post the code here because is the original one, the only change was &amp;quot;major&amp;quot; and &amp;quot;minor&amp;quot; fields.&lt;/p&gt;
&lt;p&gt;PS: I also tried changing the company field, the UUID,... nothing changes in the advertising packet.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/Screenshot_5F00_2018_2D00_02_2D00_27_2D00_14_2D00_53_2D00_08_2D00_1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI communication and BLE advertising data with nRF52 DK</title><link>https://devzone.nordicsemi.com/thread/122098?ContentTypeID=1</link><pubDate>Tue, 27 Feb 2018 10:12:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1e41b38e-23c2-4877-b5cc-702fc715b1dc</guid><dc:creator>Ander GB</dc:creator><description>&lt;p&gt;I am gonna check it out right now, thank you!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI communication and BLE advertising data with nRF52 DK</title><link>https://devzone.nordicsemi.com/thread/122097?ContentTypeID=1</link><pubDate>Tue, 27 Feb 2018 10:11:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2326810d-0dba-4f91-be8a-224d5c0a81bd</guid><dc:creator>norin saiyed</dc:creator><description>&lt;p&gt;yes ble_app_beacon example for broadcasting received spi data&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI communication and BLE advertising data with nRF52 DK</title><link>https://devzone.nordicsemi.com/thread/122096?ContentTypeID=1</link><pubDate>Tue, 27 Feb 2018 10:09:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:addfb7e7-7e2d-4b39-8821-daacbe7a321c</guid><dc:creator>Ander GB</dc:creator><description>&lt;p&gt;By &amp;quot;beaconing example&amp;quot; you mean the &amp;quot;ble_app_beacon&amp;quot; example? Thank you for replying!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>