<?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>&amp;#39;NRF_EVT_FLASH_OPERATION_SUCCESS&amp;#39; undeclared (first use in this function)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/69362/nrf_evt_flash_operation_success-undeclared-first-use-in-this-function</link><description>I am trying to Compiling ‘ble_advertising.c’ and get &amp;#39;NRF_EVT_FLASH_OPERATION_SUCCESS&amp;#39; undeclared (first use in this function). 
 This declaretion is already in the nrf_soc.h and i have set system include directories with path of the nrf_soc.h but still</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 15 Dec 2020 11:23:17 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/69362/nrf_evt_flash_operation_success-undeclared-first-use-in-this-function" /><item><title>RE: 'NRF_EVT_FLASH_OPERATION_SUCCESS' undeclared (first use in this function)</title><link>https://devzone.nordicsemi.com/thread/285027?ContentTypeID=1</link><pubDate>Tue, 15 Dec 2020 11:23:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:891adb55-5bd1-4707-bc10-108f253c0f59</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;And the project still fails to build? Have you added the&amp;nbsp;&lt;span&gt;&lt;em&gt;C:\nRF5_SDK_14.2.0_17b948a\components\softdevice\s132\headers&lt;/em&gt; path to the user include directories in your&amp;nbsp; project options? Please note that you need to set the project options in the&amp;nbsp;&lt;strong&gt;Common&amp;nbsp;&lt;/strong&gt;configuration to edit the User Include Directories, etc. See picture for reference:&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/pastedimage1608031392517v1.png" alt=" " /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Simon&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 'NRF_EVT_FLASH_OPERATION_SUCCESS' undeclared (first use in this function)</title><link>https://devzone.nordicsemi.com/thread/284936?ContentTypeID=1</link><pubDate>Tue, 15 Dec 2020 07:40:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:00f35b86-2539-4bb2-a6d2-0aa223f4ccdd</guid><dc:creator>oguzhanK</dc:creator><description>&lt;p&gt;I could not compile that file either.&amp;nbsp;SD_EVT_IRQn is also declared in nrf_soc.h&lt;/p&gt;
&lt;p&gt;I also added my sdk_config.h file&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/2806.sdk_5F00_config.h"&gt;devzone.nordicsemi.com/.../2806.sdk_5F00_config.h&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;Building ‘ser_app_hal_nrf5x.c’ from project ‘DWM1001_Tag’ from solution ‘DWM_1001_Tag’ in configuration ‘nrf52832_xxaa’
1&amp;gt; Compiling ‘ser_app_hal_nrf5x.c’
1&amp;gt; C:/nRF5_SDK_14.2.0_17b948a/components/serialization/application/hal/ser_app_hal_nrf5x.c:52:33: error: &amp;#39;SD_EVT_IRQn&amp;#39; undeclared (first use in this function); did you mean &amp;#39;QDEC_IRQn&amp;#39;?
1&amp;gt; C:/nRF5_SDK_14.2.0_17b948a/components/serialization/application/hal/ser_app_hal_nrf5x.c:93:22: note: in expansion of macro &amp;#39;SOFTDEVICE_EVT_IRQ&amp;#39;
1&amp;gt; C:/nRF5_SDK_14.2.0_17b948a/components/serialization/application/hal/ser_app_hal_nrf5x.c:52:33: note: each undeclared identifier is reported only once for each function it appears in
1&amp;gt; C:/nRF5_SDK_14.2.0_17b948a/components/serialization/application/hal/ser_app_hal_nrf5x.c:93:22: note: in expansion of macro &amp;#39;SOFTDEVICE_EVT_IRQ&amp;#39;
1&amp;gt; C:/nRF5_SDK_14.2.0_17b948a/components/serialization/application/hal/ser_app_hal_nrf5x.c:52:33: error: &amp;#39;SD_EVT_IRQn&amp;#39; undeclared (first use in this function); did you mean &amp;#39;QDEC_IRQn&amp;#39;?
1&amp;gt; C:/nRF5_SDK_14.2.0_17b948a/components/serialization/application/hal/ser_app_hal_nrf5x.c:98:24: note: in expansion of macro &amp;#39;SOFTDEVICE_EVT_IRQ&amp;#39;
Build failed&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 'NRF_EVT_FLASH_OPERATION_SUCCESS' undeclared (first use in this function)</title><link>https://devzone.nordicsemi.com/thread/284806?ContentTypeID=1</link><pubDate>Mon, 14 Dec 2020 13:59:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3b0215e0-db8e-40e7-9fad-cb40a59ff0c4</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;It seems like the ser_app_hal_nrf5x.c containing the declaration of the sd_flash_write() and sd_flash_page_erase() functions is not included in your project. can you please add this file t and its dependencies to the project as well? Should be found in the following path: &lt;strong&gt;\SDK_folder\components\serialization\application\hal&lt;/strong&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><item><title>RE: 'NRF_EVT_FLASH_OPERATION_SUCCESS' undeclared (first use in this function)</title><link>https://devzone.nordicsemi.com/thread/284764?ContentTypeID=1</link><pubDate>Mon, 14 Dec 2020 12:13:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:88d502c7-55b2-421c-adf8-139763b3e2db</guid><dc:creator>oguzhanK</dc:creator><description>&lt;p&gt;I am not sure what do you mean with enabling the softdevice.&lt;/p&gt;
&lt;p&gt;I copied the main.c of ble_app_butonnless_dfu into an other c file in my main project but changed the main function as ble_dfu_init function. I have added the libraries one by one according to that main.c file.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;Rebuilding ‘DWM1001_Tag’ from solution ‘DWM_1001_Tag’ in configuration ‘nrf52832_xxaa’
1&amp;gt; Assembling ‘thumb_crt0.s’
2&amp;gt; Compiling ‘system_nrf52.c’
3&amp;gt; Assembling ‘ses_nrf52_startup.s’
4&amp;gt; Compiling ‘main.c’
5&amp;gt; Compiling ‘boards.c’
6&amp;gt; Compiling ‘dwm_comm.c’
7&amp;gt; Compiling ‘bsp.c’
8&amp;gt; Compiling ‘bsp_nfc.c’
1&amp;gt; Compiling ‘nrf_drv_gpiote.c’
3&amp;gt; Compiling ‘nrf_drv_common.c’
2&amp;gt; Compiling ‘nrf_drv_spi.c’
5&amp;gt; Compiling ‘nrf_drv_uart.c’
7&amp;gt; Compiling ‘nrf_drv_clock.c’
8&amp;gt; Compiling ‘nrf_nvmc.c’
4&amp;gt; Compiling ‘nrf_drv_timer.c’
6&amp;gt; Compiling ‘nrf_drv_wdt.c’
3&amp;gt; Compiling ‘nrf_drv_saadc.c’
1&amp;gt; Compiling ‘nrf_drv_ppi.c’
8&amp;gt; Compiling ‘nrf_drv_power.c’
2&amp;gt; Compiling ‘nrf_section_iter.c’
4&amp;gt; Compiling ‘app_button.c’
6&amp;gt; Compiling ‘nrf_pwr_mgmt.c’
7&amp;gt; Compiling ‘app_error.c’
5&amp;gt; Compiling ‘app_error_weak.c’
3&amp;gt; Compiling ‘app_scheduler.c’
1&amp;gt; Compiling ‘app_util_platform.c’
2&amp;gt; Compiling ‘nrf_assert.c’
8&amp;gt; Compiling ‘nrf_balloc.c’
4&amp;gt; Compiling ‘nrf_fprintf.c’
7&amp;gt; Compiling ‘nrf_fprintf_format.c’
3&amp;gt; Compiling ‘nrf_strerror.c’
5&amp;gt; Compiling ‘nrf_memobj.c’
1&amp;gt; Compiling ‘sdk_mapped_flags.c’
2&amp;gt; Compiling ‘nrf_atfifo.c’
6&amp;gt; Compiling ‘nrf_saadc.c’
8&amp;gt; Compiling ‘fds.c’
4&amp;gt; Compiling ‘nrf_fstorage_sd.c’
7&amp;gt; Compiling ‘nrf_log_backend_rtt.c’
3&amp;gt; Compiling ‘nrf_log_backend_serial.c’
5&amp;gt; Compiling ‘nrf_log_backend_uart.c’
4&amp;gt; C:/nRF5_SDK_14.2.0_17b948a/components/libraries/fstorage/nrf_fstorage_sd.c:208:12: warning: implicit declaration of function &amp;#39;sd_flash_write&amp;#39; [-Wimplicit-function-declaration]
4&amp;gt; C:/nRF5_SDK_14.2.0_17b948a/components/libraries/fstorage/nrf_fstorage_sd.c:215:12: warning: implicit declaration of function &amp;#39;sd_flash_page_erase&amp;#39; [-Wimplicit-function-declaration]
4&amp;gt; C:/nRF5_SDK_14.2.0_17b948a/components/libraries/fstorage/nrf_fstorage_sd.c:275:46: error: &amp;#39;NRF_EVT_FLASH_OPERATION_SUCCESS&amp;#39; undeclared (first use in this function)
4&amp;gt; C:/nRF5_SDK_14.2.0_17b948a/components/libraries/fstorage/nrf_fstorage_sd.c:275:46: note: each undeclared identifier is reported only once for each function it appears in
4&amp;gt; C:/nRF5_SDK_14.2.0_17b948a/components/libraries/fstorage/nrf_fstorage_sd.c:523:22: error: &amp;#39;NRF_EVT_FLASH_OPERATION_SUCCESS&amp;#39; undeclared (first use in this function)
6&amp;gt; Compiling ‘nrf_log_default_backends.c’
1&amp;gt; Compiling ‘nrf_log_str_formatter.c’
2&amp;gt; Compiling ‘nrf_log_frontend.c’
4&amp;gt; C:/nRF5_SDK_14.2.0_17b948a/components/libraries/fstorage/nrf_fstorage_sd.c:527:22: error: &amp;#39;NRF_EVT_FLASH_OPERATION_ERROR&amp;#39; undeclared (first use in this function)
Build failed&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 'NRF_EVT_FLASH_OPERATION_SUCCESS' undeclared (first use in this function)</title><link>https://devzone.nordicsemi.com/thread/284761?ContentTypeID=1</link><pubDate>Mon, 14 Dec 2020 11:52:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7d297807-4da2-402c-9ef9-8a9f460d9197</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;I see, you probably don&amp;#39;t have to move to another SDK version, but if you had no reason to stay on the older version, I would suggest moving to a more recent one.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;But is the sd_evt_get() anywhere else in your application? It should only be called from the interrupt. Please also include a snippet showing how you enable the SoftDevice.&lt;/p&gt;
&lt;p&gt;Can you provide the full log of when you try building the application? Also, what IDE are you using to compile and build this solution?&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><item><title>RE: 'NRF_EVT_FLASH_OPERATION_SUCCESS' undeclared (first use in this function)</title><link>https://devzone.nordicsemi.com/thread/284743?ContentTypeID=1</link><pubDate>Mon, 14 Dec 2020 10:24:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:06df6b22-3b12-430f-adfe-a1a876cd60ba</guid><dc:creator>oguzhanK</dc:creator><description>&lt;p&gt;Because of the sdk version of my main project i want to use this version. If it is not needed i want to stick with this version. Maybe i skip something during the merge ?&amp;nbsp;Where should be &amp;quot;sd_evt_get()&amp;quot; called from ? I can compile ble_app_buttonless_dfu_pca10040_s132 example and &amp;quot;nrf_soc.h&amp;quot; contains&lt;span&gt;&amp;nbsp;SVCALL(SD_EVT_GET, uint32_t, sd_evt_get(uint32_t * p_evt_id));&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 'NRF_EVT_FLASH_OPERATION_SUCCESS' undeclared (first use in this function)</title><link>https://devzone.nordicsemi.com/thread/284739?ContentTypeID=1</link><pubDate>Mon, 14 Dec 2020 10:19:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b0d33f2b-a99a-48fc-95df-2f5937d6abc6</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;How is the SoftDevice enabled in your application? Is sd_evt_get() pulled from somewhere else in the application? Usually, these events are pulled from a software interrupt and passed to the event handler. This will&amp;nbsp;occur before you&amp;#39;re able to pull events in the application, as the interrupt has higher priority.&lt;/p&gt;
&lt;p&gt;Also, is there a reason you&amp;#39;re using SDK v14.2.0 and not a more recent SDK?&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><item><title>RE: 'NRF_EVT_FLASH_OPERATION_SUCCESS' undeclared (first use in this function)</title><link>https://devzone.nordicsemi.com/thread/284628?ContentTypeID=1</link><pubDate>Sat, 12 Dec 2020 10:54:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:296aea6c-1fbe-41a4-90f7-7a3c51f555e5</guid><dc:creator>oguzhanK</dc:creator><description>&lt;p&gt;I saw that anwser in the forum but my path is already short &amp;quot;C:\nRF5_SDK_14.2.0_17b948a\components\softdevice\s132\headers&amp;quot;&lt;/p&gt;
&lt;p&gt;Actually i have created this project without ble using. I was using nrf52832 as ordinary mcu but now i need to use dfu with ble so i started to merge my project with buttonless dfu example. Main.c is ok. I am just getting errors at multiple nrf ble libraries because of the nrf_soc.h&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;em&gt;implicit declaration of function &amp;#39;sd_flash_page_erase&amp;#39; [-Wimplicit-function-declaration]&lt;/em&gt;&lt;/li&gt;
&lt;li&gt;&lt;em&gt;&amp;#39;NRF_EVT_FLASH_OPERATION_SUCCESS&amp;#39; undeclared (first use in this function)&lt;/em&gt;&lt;/li&gt;
&lt;li&gt;&lt;em&gt;&amp;#39;NRF_EVT_FLASH_OPERATION_ERROR&amp;#39; undeclared (first use in this function)&lt;/em&gt;&lt;/li&gt;
&lt;li&gt;&lt;em&gt;Output/nrf52832_xxaa/Obj/DWM1001_Tag/nrf_sdh_soc.o: in function `nrf_sdh_soc_evts_poll&amp;#39;:&lt;/em&gt;&lt;/li&gt;
&lt;li&gt;&lt;em&gt;implicit declaration of function &amp;#39;sd_evt_get&amp;#39; [-Wimplicit-function-declaration]&lt;/em&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 'NRF_EVT_FLASH_OPERATION_SUCCESS' undeclared (first use in this function)</title><link>https://devzone.nordicsemi.com/thread/284494?ContentTypeID=1</link><pubDate>Fri, 11 Dec 2020 11:18:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:834a6da6-0cff-4604-bb86-303a0fd77afd</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Usually, &amp;quot;undecleared&amp;quot; errors are due to the limited path length in Windows (if that&amp;#39;s the OS you&amp;#39;re using). Please try moving the SDK folder to a shorter path, for instance C:\SDK_FOLDER\.&lt;/p&gt;
&lt;p&gt;Please provide some more information on your application. Is this one of the default SDK examples or a project you have modified/created yourself?Do you see any errors if you try compiling the main.c file or build and run the application as a whole?&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>