<?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;BSP_BUTTON_ACTION_LONG_PUSH&amp;#39; undeclared (first use in this function) error</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/100235/bsp_button_action_long_push-undeclared-first-use-in-this-function-error</link><description>Hello, I want to receive UART data with nRF52840 and send this data with beacon, but I get an error like &amp;#39;BSP_BUTTON_ACTION_LONG_PUSH&amp;#39; undeclared (first use in this function), how can I fix this error?</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 02 Jun 2023 12:27:35 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/100235/bsp_button_action_long_push-undeclared-first-use-in-this-function-error" /><item><title>RE: 'BSP_BUTTON_ACTION_LONG_PUSH' undeclared (first use in this function) error</title><link>https://devzone.nordicsemi.com/thread/429007?ContentTypeID=1</link><pubDate>Fri, 02 Jun 2023 12:27:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2f5d1436-3aa9-4c16-83d6-b5d8694840ea</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Berkay,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Which example you are testing with ? My suggestion is to start with ble_app_uart.&amp;nbsp;&lt;br /&gt;If you see something with &amp;quot;&lt;span&gt;unknown type &amp;#39;***&amp;#39; &amp;quot;&amp;nbsp; this mean the compiler couldn&amp;#39;t find the definition of that. You would need to check where it&amp;#39;s declared (maybe in the example) and have the same file included in your application.&amp;nbsp;&lt;br /&gt;For example nrf_nvic_state_t&amp;nbsp; is defined in nrf_nvic.h in&amp;nbsp;\components\softdevice\s140\headers&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 'BSP_BUTTON_ACTION_LONG_PUSH' undeclared (first use in this function) error</title><link>https://devzone.nordicsemi.com/thread/428190?ContentTypeID=1</link><pubDate>Tue, 30 May 2023 13:43:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:23bad16f-64bb-4ee7-b2eb-c5ac171c735f</guid><dc:creator>Berkay Dudu</dc:creator><description>&lt;p&gt;Hi I already got the code from SDK, it gave an error, can you help me I&amp;#39;ve tried and researched before, it&amp;#39;s not meant to help everything&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 'BSP_BUTTON_ACTION_LONG_PUSH' undeclared (first use in this function) error</title><link>https://devzone.nordicsemi.com/thread/428184?ContentTypeID=1</link><pubDate>Tue, 30 May 2023 13:34:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dafa1e5d-81eb-416e-95ae-c84989ac51fb</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi again,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;When you see an error please try to debug it. We can&amp;#39;t just fix everything for you.&amp;nbsp;&lt;br /&gt;Please search in an example to see where the&amp;nbsp;&lt;span&gt;nrf_nvic_state_t is declared and include that in your application.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 'BSP_BUTTON_ACTION_LONG_PUSH' undeclared (first use in this function) error</title><link>https://devzone.nordicsemi.com/thread/428177?ContentTypeID=1</link><pubDate>Tue, 30 May 2023 13:13:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:48d66db9-a3d4-40e1-9840-4ec62f54eaa1</guid><dc:creator>Berkay Dudu</dc:creator><description>&lt;p&gt;Hi, I recompiled the code and got error (unknown type &amp;#39;nrf_nvic_state_t&amp;#39;), what could be the reason?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 'BSP_BUTTON_ACTION_LONG_PUSH' undeclared (first use in this function) error</title><link>https://devzone.nordicsemi.com/thread/428138?ContentTypeID=1</link><pubDate>Tue, 30 May 2023 11:03:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c280cc6e-e8cc-4287-85d6-79b93b6edd33</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Berkay,&amp;nbsp;&lt;br /&gt;If you see an error please check which file causing it and if it&amp;#39;s related to any file or module has not been included.&amp;nbsp;&lt;br /&gt;The&amp;nbsp;&lt;span&gt;BSP_BUTTON_ACTION_LONG_PUSH is declared in bsp.h. If you use bsp module, please make sure you added the path to bsp.h into the project&amp;#39;s User include directory in project setting.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1685444603676v1.png" alt=" " /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;br /&gt;If you don&amp;#39;t plan to use bsp module please remove any code related to&amp;nbsp;BSP_BUTTON_ACTION_LONG_PUSH.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>