<?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>custom_board.h not found</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/82010/custom_board-h-not-found</link><description>Hi, 
 I have created a custom board with a nrf52840 on it. I am working with Embedded Studio v5.64 and the Nordic SDK v. 17.1.0. When I use the preprocessor definition BOARD_PCA10056, my code builds and I am able to flash my board. Then I try to use my</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 23 Nov 2021 14:02:50 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/82010/custom_board-h-not-found" /><item><title>RE: custom_board.h not found</title><link>https://devzone.nordicsemi.com/thread/340365?ContentTypeID=1</link><pubDate>Tue, 23 Nov 2021 14:02:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:447d298d-8ffd-44e1-9af9-5ba10b3b9f61</guid><dc:creator>sebka</dc:creator><description>&lt;p&gt;Alright, maybe I have to set it up again from scratch. Thank you very much for your help and effort.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: custom_board.h not found</title><link>https://devzone.nordicsemi.com/thread/340345?ContentTypeID=1</link><pubDate>Tue, 23 Nov 2021 13:11:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b4a5850f-2195-4468-b6e7-09907c87971d</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I am not able to reproduce this. When I build your project the&amp;nbsp;custom_board.h file is included. However, there are errors due to key things missing in the custom_board.h file, but that is a different matter (and expected given the code and content of the file):&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;4&amp;gt; C:\Users\eith\Downloads\nRF5_SDK_17.1.0_ddde560\components\libraries\bsp\bsp.c:615:23: error: &amp;#39;BUTTONS_NUMBER&amp;#39; undeclared (first use in this function); did you mean &amp;#39;BUTTONS_MASK&amp;#39;?
4&amp;gt; C:\Users\eith\Downloads\nRF5_SDK_17.1.0_ddde560\components\libraries\bsp\bsp.c:615:23: note: each undeclared identifier is reported only once for each function it appears in
1&amp;gt; C:\Users\eith\Downloads\nRF5_SDK_17.1.0_ddde560\examples\ble_peripheral\ble_app_uart_test\main.c:196:67: warning: passing argument 2 of &amp;#39;ble_nus_data_send&amp;#39; discards &amp;#39;const&amp;#39; qualifier from pointer target type [-Wdiscarded-qualifiers]
1&amp;gt; In file included from C:\Users\eith\Downloads\nRF5_SDK_17.1.0_ddde560\examples\ble_peripheral\ble_app_uart_test\main.c:56:
1&amp;gt; ../../../../../../components/ble/ble_services/ble_nus/ble_nus.h:233:40: note: expected &amp;#39;uint8_t *&amp;#39; {aka &amp;#39;unsigned char *&amp;#39;} but argument is of type &amp;#39;const uint8_t *&amp;#39; {aka &amp;#39;const unsigned char *&amp;#39;}
Build failed&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: custom_board.h not found</title><link>https://devzone.nordicsemi.com/thread/340322?ContentTypeID=1</link><pubDate>Tue, 23 Nov 2021 12:01:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:67bfae6b-a2e6-4d48-8774-00c626e21c5f</guid><dc:creator>sebka</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/nRF5_5F00_SDK_5F00_17.1.0_5F00_ddde560.zip"&gt;devzone.nordicsemi.com/.../nRF5_5F00_SDK_5F00_17.1.0_5F00_ddde560.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;This is the stripped down SDK, the nRF5_SDK...-folder in the paths from above&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: custom_board.h not found</title><link>https://devzone.nordicsemi.com/thread/340321?ContentTypeID=1</link><pubDate>Tue, 23 Nov 2021 11:55:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dd633eba-a232-4fd5-b5b4-863dab3ea76e</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;That is really odd. Can you upload the stripped down SDK&amp;nbsp; you are using here so I can take a look?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: custom_board.h not found</title><link>https://devzone.nordicsemi.com/thread/340315?ContentTypeID=1</link><pubDate>Tue, 23 Nov 2021 11:46:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dd368e26-e4e6-4d68-ad53-91fbdc313a4f</guid><dc:creator>sebka</dc:creator><description>[quote userid="7377" url="~/f/nordic-q-a/82010/custom_board-h-not-found/340288#340288"]You write you changed the preprocessor definition, so I assume that means you removed&amp;nbsp;BOARD_PCA10056 and used&amp;nbsp;BOARD_CUSTOM instead, as shown below?[/quote]
&lt;p&gt;Yes, exactly like that.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;The paths are:&lt;br /&gt;git_repo\nRF5_SDK_17.1.0_ddde560\examples\ble_peripheral\ble_app_uart_test\pca10056\s113\ses (project file)&lt;br /&gt;git_repo\nRF5_SDK_17.1.0_ddde560\components\boards (custom_board.h)&lt;br /&gt;&lt;br /&gt;I placed a stripped down version of the SDK (deleted all unnecessary examples) in a private Git repo, which I have only once on my machine.&lt;br /&gt;I also:&lt;br /&gt;- copy pasted the file name from inside the boards.h file and renamed the custom_board.h file with it.&lt;br /&gt;- right-clicked the boards.h file and opened it in the file explorer. I ended up in the same folder that also contains the pca10056.h and custom_board.h&lt;br /&gt;- renamed the pca10056.h file to verify that it is indeed the right folder. After renaming it the same &amp;quot;file not found&amp;quot; error occurs as expected, which means that it should be the right folder&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: custom_board.h not found</title><link>https://devzone.nordicsemi.com/thread/340288?ContentTypeID=1</link><pubDate>Tue, 23 Nov 2021 10:10:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7752c1f0-9c25-4807-ad59-7fd1e472eb35</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;You write you changed the preprocessor definition, so I assume that means you removed&amp;nbsp;BOARD_PCA10056 and used&amp;nbsp;BOARD_CUSTOM instead, as shown below?&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/custom_5F00_board_5F00_define.PNG" /&gt;&lt;/p&gt;
&lt;p&gt;There must be a sensible explanation for this, for instance a typo in the file name or that it is located in the wrong directory etc (perhaps you have downloaded the SDK several times or have several versions, and do changes in different ones?). To narrow down, can you copy-paste the full path of both the project file and the custom_board.h file, so that we see that they are correctly located with respect to one another?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>