<?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 Issues with zypher project in SES</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/83310/custom-board-issues-with-zypher-project-in-ses</link><description>I copied the button project from samples in other drive. Copied the ../boards/arm/nRF534DK_nRF5340 in the new project folder. Then, I changed the names of board in all file as explined in video https://www.youtube.com/watch?v=KSivO9Cf1TE . When, try to</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 11 Jan 2022 10:28:35 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/83310/custom-board-issues-with-zypher-project-in-ses" /><item><title>RE: Custom Board Issues with zypher project in SES</title><link>https://devzone.nordicsemi.com/thread/347123?ContentTypeID=1</link><pubDate>Tue, 11 Jan 2022 10:28:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cc54f272-c58b-4b54-bb55-98896224c76d</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;Try changing the compatible to&amp;nbsp;&amp;quot;lcd16x2-pins&amp;quot; (same as in the yaml file), so the overlay file looks like this:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;/{
    aliases {
        lcd0 = &amp;amp;lcd0;
    };

    lcd16x2 {
        compatible = &amp;quot;lcd16x2-pins&amp;quot;;
        status = &amp;quot;okay&amp;quot;;
        lcd0: lcd_0{
            lcdgpios = &amp;lt;&amp;amp;gpio1 10 GPIO_ACTIVE_HIGH&amp;gt;;
            label = &amp;quot;LCD_D1&amp;quot;;
            status = &amp;quot;okay&amp;quot;;
        };
    };
};&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;When I did that, and tested with this code:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;#define LCD_PIN0_NODE DT_ALIAS(lcd0)
static struct gpio_dt_spec lcd_pin0 = GPIO_DT_SPEC_GET_OR(LCD_PIN0_NODE, lcdgpios, {0});
.
.
.
void main(void)
{
    printk(&amp;quot;lcd_pin0.port: %p\n&amp;quot;,(void*)lcd_pin0.port);
    printk(&amp;quot;lcd_pin0.pin: %d\n&amp;quot;, lcd_pin0.pin);
    .
    .&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;It worked fine, I got this output:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;*** Booting Zephyr OS build v2.6.99-ncs1-1  ***
lcd_pin0.port: 0x4b20
lcd_pin0.pin: 10
.
.
.&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Custom Board Issues with zypher project in SES</title><link>https://devzone.nordicsemi.com/thread/347022?ContentTypeID=1</link><pubDate>Mon, 10 Jan 2022 19:55:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2e909144-f4aa-426c-88d2-fda2a9c9a88c</guid><dc:creator>mexco</dc:creator><description>&lt;p&gt;Dear, the yaml file is in att&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/1805.lcd16x2_2D00_pins.yaml.txt"&gt;devzone.nordicsemi.com/.../1805.lcd16x2_2D00_pins.yaml.txt&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Custom Board Issues with zypher project in SES</title><link>https://devzone.nordicsemi.com/thread/347016?ContentTypeID=1</link><pubDate>Mon, 10 Jan 2022 19:21:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6db603fc-89f2-4b07-83c7-32b5d8c7cdd4</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;I could not find the .yaml file for the compatible &amp;quot;lcd_pins&amp;quot; in&amp;nbsp;&amp;lt;ncs location&amp;gt;\zephyr\dts\bindings\, so I assume you have added it yourself. If so, could you upload that file, so I can test this on my side.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Custom Board Issues with zypher project in SES</title><link>https://devzone.nordicsemi.com/thread/346808?ContentTypeID=1</link><pubDate>Sun, 09 Jan 2022 14:45:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4bb28056-aadf-4a0c-9679-c7f43dcade21</guid><dc:creator>mexco</dc:creator><description>&lt;p&gt;Dear Simon, after copying the custom board to nrc/... directory, the Build is successful. When, Debug is run, and rach to the custom Pins initialization, the custom pins do not have any address assgigned. Pls, see the image.&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/3817.debug.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Custom Board Issues with zypher project in SES</title><link>https://devzone.nordicsemi.com/thread/346490?ContentTypeID=1</link><pubDate>Thu, 06 Jan 2022 13:20:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4bcf9120-7c8b-4136-a6ab-714710075731</guid><dc:creator>mexco</dc:creator><description>&lt;p&gt;Hi Simon, I shall try to keep custom board in project folder and revert to you with result ..thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Custom Board Issues with zypher project in SES</title><link>https://devzone.nordicsemi.com/thread/346474?ContentTypeID=1</link><pubDate>Thu, 06 Jan 2022 12:45:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:321c040b-ae9c-4bac-a56f-eb92991446ea</guid><dc:creator>Simon</dc:creator><description>[quote user="simoniversen"]By the way, if you want to place the board inside the project, check out the sample /ncs/zephyr/samples/application_development/out_of_tree_board to see how to go about it.[/quote]
&lt;p&gt;See my comment earlier and check out the sample&amp;nbsp;&lt;a href="https://github.com/nrfconnect/sdk-zephyr/tree/v2.6.99-ncs1-1/samples/application_development/out_of_tree_board"&gt;https://github.com/nrfconnect/sdk-zephyr/tree/v2.6.99-ncs1-1/samples/application_development/out_of_tree_board&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;provide the custom path of the board folder by using this line:&amp;nbsp;&lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/v2.6.99-ncs1-1/samples/application_development/out_of_tree_board/CMakeLists.txt#L6"&gt;https://github.com/nrfconnect/sdk-zephyr/blob/v2.6.99-ncs1-1/samples/application_development/out_of_tree_board/CMakeLists.txt#L6&lt;/a&gt;. If you put the board folder in your project, you need to set it to&amp;nbsp;&lt;span&gt;&lt;code&gt;${CMAKE_CURRENT_LIST_DIR}&lt;/code&gt;.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Custom Board Issues with zypher project in SES</title><link>https://devzone.nordicsemi.com/thread/346424?ContentTypeID=1</link><pubDate>Thu, 06 Jan 2022 10:53:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d3f937b1-0030-4436-b7da-235fd51c84a1</guid><dc:creator>mexco</dc:creator><description>&lt;p&gt;Dear Simon, I also copied the my custom board to nrc/........ The CMake and Buil Solution now run successfully. But, is it mondatory to keep custom board in default directory of nrc ? If, a custom path of board is to be provided, how can that be done ? please, test at your end and then guide me .&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Custom Board Issues with zypher project in SES</title><link>https://devzone.nordicsemi.com/thread/346391?ContentTypeID=1</link><pubDate>Thu, 06 Jan 2022 09:53:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e18c44ce-0a1e-4180-b901-0724af490085</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;I did the following:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Updated NCS to v1.7.1&lt;/li&gt;
&lt;li&gt;Copied the board folder&amp;nbsp;bms_nrf5340 into&amp;nbsp;&lt;em&gt;/ncs/zephyr/boards/arm&lt;/em&gt;&lt;/li&gt;
&lt;li&gt;Copied the bms sample into /ncs/zephyr/samples&lt;/li&gt;
&lt;li&gt;Built the bms sample with the bms board:
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;&amp;nbsp;west build -b bms_nrf5340_cpuapp -d build_test&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;It worked fine:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;simon@simon-HP-Pavilion-Laptop-14-bf1xx:~/ncs/zephyr/samples/bms$ west build -b bms_nrf5340_cpuapp -d build_1234
-- west build: generating a build system
Including boilerplate (Zephyr base): /home/simon/ncs/zephyr/cmake/app/boilerplate.cmake
CMake Deprecation Warning at /home/simon/ncs/zephyr/cmake/app/boilerplate.cmake:37 (cmake_policy):
.
.
.
.
-- Build files have been written to: /home/simon/ncs/zephyr/samples/bms/build_1234
-- west build: building application
[1/150] Preparing syscall dependency handling

[143/150] Linking C executable zephyr/zephyr_prebuilt.elf

[150/150] Linking C executable zephyr/zephyr.elf
Memory region         Used Size  Region Size  %age Used
           FLASH:       21052 B         1 MB      2.01%
            SRAM:        6208 B       448 KB      1.35%
        IDT_LIST:          0 GB         2 KB      0.00%&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;I&amp;#39;m using Linux and have not SES installed, but I don&amp;#39;t see why the approach above shouldn&amp;#39;t work on SES as well.&lt;/p&gt;
&lt;p&gt;Try the approach above. Delete the build folder before building again and make sure to place the board folder inside&amp;nbsp;&lt;em&gt;/ncs/zephyr/boards/arm&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;If it still doesn&amp;#39;t work for you I will install SES and try to get it working there.&lt;/p&gt;
&lt;p&gt;By the way, if you want to place the board inside the project, check out the sample /ncs/zephyr/samples/application_development/out_of_tree_board to see how to go about it.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;
&lt;div style="left:75px;top:62px;"&gt;
&lt;div&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Custom Board Issues with zypher project in SES</title><link>https://devzone.nordicsemi.com/thread/345980?ContentTypeID=1</link><pubDate>Tue, 04 Jan 2022 17:06:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9f4dbafc-f47b-4777-830a-517825d6a697</guid><dc:creator>mexco</dc:creator><description>&lt;p&gt;Dear Simon, I followed the procedure suggested by you to change board name. The custom name of my project is bms. When, project is created nRF Connect SDK , I selected my custom project and manually added the board from same directory. The bms project folder is in attachement. I am using nRF V1.71. The error as shown in attached is shown an project is not created.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/6406.bms.rar"&gt;devzone.nordicsemi.com/.../6406.bms.rar&lt;/a&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/arch.png" /&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Custom Board Issues with zypher project in SES</title><link>https://devzone.nordicsemi.com/thread/345906?ContentTypeID=1</link><pubDate>Tue, 04 Jan 2022 12:47:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f10b757b-707a-49c4-94cd-2f8be7bb94f4</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;I tried to create a custom board from the nRF5340 DK in NCS v1.8.0&lt;/p&gt;
&lt;p&gt;I used the case sensitive find and replace functionality in vs code to do the following:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Replace all instances of &amp;quot;NRF5340DK&amp;quot; with &amp;quot;CUSTOM&amp;quot;&lt;/li&gt;
&lt;li&gt;Replace all instances of &amp;quot;nrf5340dk&amp;quot; with &amp;quot;custom&amp;quot;&lt;/li&gt;
&lt;li&gt;Replace all instances of &amp;quot;nRF5340 DK&amp;quot; with &amp;quot;Custom&amp;quot;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Then I modifed all the file names by replacing &amp;quot;nrf5340dk&amp;quot; with custom.&lt;/p&gt;
&lt;p&gt;Evenutally I tested the sample ncs/zephyr/samples/hello_world (NCS v1.8.0) and it worked like expected:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;*** Booting Zephyr OS build v2.7.0-ncs1-1-g0dce71e2a469  ***
Hello World! custom_nrf5340_cpuapp&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Here is the generated board folder. Can you test it on your side with NCS v1.8.0 and see if it works?&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/6521.custom_5F00_nrf5340.zip"&gt;devzone.nordicsemi.com/.../6521.custom_5F00_nrf5340.zip&lt;/a&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></channel></rss>