<?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>How to set up custom board file in nRF9160?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/50862/how-to-set-up-custom-board-file-in-nrf9160</link><description>I&amp;#39;m trying to make a custom board file, but it doesn&amp;#39;t work yet. Any help?</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 19 Aug 2019 14:32:12 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/50862/how-to-set-up-custom-board-file-in-nrf9160" /><item><title>RE: How to set up custom board file in nRF9160?</title><link>https://devzone.nordicsemi.com/thread/204823?ContentTypeID=1</link><pubDate>Mon, 19 Aug 2019 14:32:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3379f4f9-d7aa-46f3-8be2-5cda3dfc75ea</guid><dc:creator>Yusuke</dc:creator><description>&lt;p&gt;solved.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/49719/how-to-create-a-custom-board-file-for-the-nrf9160"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/49719/how-to-create-a-custom-board-file-for-the-nrf9160&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to set up custom board file in nRF9160?</title><link>https://devzone.nordicsemi.com/thread/203676?ContentTypeID=1</link><pubDate>Mon, 12 Aug 2019 17:49:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3f83c8e8-9b6e-4170-9522-ce0ede4877de</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;I did&amp;nbsp;not modify the device tree in any way, if I remember correctly. Try using the board-folder in the zipped file as&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/members/jseaman_4000_coaxinc.com"&gt;Jeff Seaman&lt;/a&gt;&amp;nbsp;provided in &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/49719/how-to-create-a-custom-board-file-for-the-nrf9160"&gt;this thread&lt;/a&gt;, and then follow the steps I explained in the same thread.&lt;/p&gt;
&lt;p&gt;When you have that working, you can modify the config and dts files of the board, according to your&amp;nbsp;own needs.&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: How to set up custom board file in nRF9160?</title><link>https://devzone.nordicsemi.com/thread/203536?ContentTypeID=1</link><pubDate>Mon, 12 Aug 2019 10:55:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3285183f-4a85-467f-9bdc-9b8d367508d8</guid><dc:creator>Yusuke</dc:creator><description>&lt;p&gt;OK. I set the&amp;nbsp;ZEPHYR_TOOLCHAIN_VARIANT-variable by this&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;lt;under th hello_world project directory&amp;gt;
$ set ZEPHYR_TOOLCHAIN_VARIANT=gnuarmemb
$ set GNUARMEMB_TOOLCHAIN_PATH=c:\gnuarmemb&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;reference:&amp;nbsp;&lt;a href="https://wiki.makerdiary.com/nrf52832-mdk/zephyr/"&gt;https://wiki.makerdiary.com/nrf52832-mdk/zephyr/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;However, I still get some errors. Reading &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/49719/how-to-create-a-custom-board-file-for-the-nrf9160"&gt;the post&lt;/a&gt;, it seems that you need to fix device tree in spm project. How should I fix that? Any advice?&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;C:\Users\user1\nRF9160\ncs\nrf\samples\nrf9160\hello_world&amp;gt;west build -b nrf9160_pca20190ns
source directory: C:\Users\user1\nRF9160\ncs\nrf\samples\nrf9160\hello_world
build directory: C:\Users\user1\nRF9160\ncs\nrf\samples\nrf9160\hello_world\build (created)
BOARD: nrf9160_pca20190ns (origin: command line)
-- Using application from &amp;#39;C:/Users/user1/nRF9160/ncs/nrf/samples/nrf9160/hello_world&amp;#39;
Zephyr version: 1.14.99
-- Found PythonInterp: C:/Python37/python.exe (found suitable version &amp;quot;3.7.4&amp;quot;, minimum required is &amp;quot;3.4&amp;quot;)
-- Selected BOARD nrf9160_pca20190ns
-- Found west: C:/Python37/Scripts/west.exe (found suitable version &amp;quot;0.6.0&amp;quot;, minimum required is &amp;quot;0.5.6&amp;quot;)
-- Cache files will be written to: C:\Users\user1\AppData\Local/.cache/zephyr
-- Loading C:/Users/user1/nRF9160/ncs/zephyr/boards/arm/nrf9160_pca20190/nrf9160_pca20190ns.dts as base
-- Overlaying C:/Users/user1/nRF9160/ncs/zephyr/dts/common/common.dts
Parsing Kconfig tree in C:/Users/user1/nRF9160/ncs/zephyr/Kconfig
Loaded configuration &amp;#39;C:/Users/user1/nRF9160/ncs/zephyr/boards/arm/nrf9160_pca20190/nrf9160_pca20190ns_defconfig&amp;#39;
Merged configuration &amp;#39;C:/Users/user1/nRF9160/ncs/nrf/samples/nrf9160/hello_world/prj.conf&amp;#39;
Configuration saved to &amp;#39;C:/Users/user1/nRF9160/ncs/nrf/samples/nrf9160/hello_world/build/zephyr/.config&amp;#39;
-- The C compiler identification is GNU 7.3.1
-- The CXX compiler identification is GNU 7.3.1
-- The ASM compiler identification is GNU
-- Found assembler: C:/gnuarmemb/bin/arm-none-eabi-gcc.exe
-- Performing Test toolchain_is_ok
-- Performing Test toolchain_is_ok - Success
Including module: nrf in path: C:\Users\user1\nRF9160\ncs\nrf
-- Using application from &amp;#39;C:/Users/user1/nRF9160/ncs/nrf/samples/nrf9160/spm&amp;#39;
Zephyr version: 1.14.99
Changed board to secure nrf9160_pca20035 (NOT NS)
-- Loading C:/Users/user1/nRF9160/ncs/zephyr/boards/arm/nrf9160_pca20190/nrf9160_pca20190.dts as base
-- Overlaying C:/Users/user1/nRF9160/ncs/zephyr/dts/common/common.dts
Parsing Kconfig tree in C:/Users/user1/nRF9160/ncs/zephyr/Kconfig
Loaded configuration &amp;#39;C:/Users/user1/nRF9160/ncs/zephyr/boards/arm/nrf9160_pca20190/nrf9160_pca20190_defconfig&amp;#39;
Merged configuration &amp;#39;C:/Users/user1/nRF9160/ncs/nrf/samples/nrf9160/spm/prj.conf&amp;#39;
Configuration saved to &amp;#39;C:/Users/user1/nRF9160/ncs/nrf/samples/nrf9160/hello_world/build/spm/zephyr/.config&amp;#39;
Including module: nrf in path: C:\Users\user1\nRF9160\ncs\nrf
Including module: nffs in path: C:\Users\user1\nRF9160\ncs\modules\fs\nffs
Including module: segger in path: C:\Users\user1\nRF9160\ncs\modules\debug\segger
Including module: mbedtls in path: C:\Users\user1\nRF9160\ncs\modules\crypto\mbedtls
Including module: mcuboot in path: C:\Users\user1\nRF9160\ncs\mcuboot\zephyr
Including module: mcumgr in path: C:\Users\user1\nRF9160\ncs\modules\lib\mcumgr
Including module: tinycbor in path: C:\Users\user1\nRF9160\ncs\modules\lib\tinycbor
Including module: nrfxlib in path: C:\Users\user1\nRF9160\ncs\nrfxlib
Including module: nffs in path: C:\Users\user1\nRF9160\ncs\modules\fs\nffs
Including module: segger in path: C:\Users\user1\nRF9160\ncs\modules\debug\segger
Including module: mbedtls in path: C:\Users\user1\nRF9160\ncs\modules\crypto\mbedtls
Including module: mcuboot in path: C:\Users\user1\nRF9160\ncs\mcuboot\zephyr
Including module: mcumgr in path: C:\Users\user1\nRF9160\ncs\modules\lib\mcumgr
Including module: tinycbor in path: C:\Users\user1\nRF9160\ncs\modules\lib\tinycbor
Including module: nrfxlib in path: C:\Users\user1\nRF9160\ncs\nrfxlib
Running Partition Manager...
-- Configuring done
-- Generating done
-- Build files have been written to: C:/Users/user1/nRF9160/ncs/nrf/samples/nrf9160/hello_world/build
[38/283] Building C object spm/zephyr/CMakeFiles/spm_zephyr.dir/C_/Users/user1/nRF9160/ncs/nrf/subsys/spm/spm.c.obj
FAILED: spm/zephyr/CMakeFiles/spm_zephyr.dir/C_/Users/user1/nRF9160/ncs/nrf/subsys/spm/spm.c.obj
C:\gnuarmemb\bin\arm-none-eabi-gcc.exe -DBUILD_VERSION=v1.14.99-ncs2-495-ga8933a2ead01 -DKERNEL -DMBEDTLS_CONFIG_FILE=\&amp;quot;nrf-config.h\&amp;quot; -DNRF9160_XXAA -DUSE_PARTITION_MANAGER=1 -D_FORTIFY_SOURCE=2 -D__ZEPHYR__=1 -IC:/Users/user1/nRF9160/ncs/zephyr/kernel/include -IC:/Users/user1/nRF9160/ncs/zephyr/arch/arm/include -IC:/Users/user1/nRF9160/ncs/zephyr/include -IC:/Users/user1/nRF9160/ncs/zephyr/include/drivers -Ispm/zephyr/include/generated -IC:/Users/user1/nRF9160/ncs/zephyr/soc/arm/nordic_nrf/nrf91 -IC:/Users/user1/nRF9160/ncs/zephyr/soc/arm/nordic_nrf/include -IC:/Users/user1/nRF9160/ncs/zephyr/lib/libc/minimal/include -IC:/Users/user1/nRF9160/ncs/zephyr/ext/hal/cmsis/Include -IC:/Users/user1/nRF9160/ncs/zephyr/ext/hal/nordic/nrfx -IC:/Users/user1/nRF9160/ncs/zephyr/ext/hal/nordic/nrfx/drivers/include -IC:/Users/user1/nRF9160/ncs/zephyr/ext/hal/nordic/nrfx/hal -IC:/Users/user1/nRF9160/ncs/zephyr/ext/hal/nordic/nrfx/mdk -IC:/Users/user1/nRF9160/ncs/zephyr/ext/hal/nordic/. -IC:/Users/user1/nRF9160/ncs/nrf/include -IC:/Users/user1/nRF9160/ncs/nrfxlib/crypto/nrf_cc310_mbedcrypto/include/mbedtls -Ispm/zephyr/modules/nrfxlib/nrf_security/include -IC:/Users/user1/nRF9160/ncs/mbedtls/include -IC:/Users/user1/nRF9160/ncs/mbedtls/include/mbedtls -isystem c:/gnuarmemb/bin/../lib/gcc/arm-none-eabi/7.3.1/include -isystem c:/gnuarmemb/bin/../lib/gcc/arm-none-eabi/7.3.1/include-fixed -Os -nostdinc -imacros C:/Users/user1/nRF9160/ncs/nrf/samples/nrf9160/hello_world/build/spm/zephyr/include/generated/autoconf.h -ffreestanding -fno-common -g -mthumb -mcpu=cortex-m33 -mfpu=fpv5-sp-d16 -mfloat-abi=hard -Wall -Wformat -Wformat-security -Wno-format-zero-length -Wno-main -Wno-pointer-sign -Wpointer-arith -Wno-unused-but-set-variable -Werror=implicit-int -fno-asynchronous-unwind-tables -fno-pie -fno-pic -fno-strict-overflow -fno-reorder-functions -fno-defer-pop -ffunction-sections -fdata-sections -mabi=aapcs -march=armv8-m.main+dsp -mcmse -std=c99 -MD -MT spm/zephyr/CMakeFiles/spm_zephyr.dir/C_/Users/user1/nRF9160/ncs/nrf/subsys/spm/spm.c.obj -MF spm\zephyr\CMakeFiles\spm_zephyr.dir\C_\Users\user1\nRF9160\ncs\nrf\subsys\spm\spm.c.obj.d -o spm/zephyr/CMakeFiles/spm_zephyr.dir/C_/Users/user1/nRF9160/ncs/nrf/subsys/spm/spm.c.obj   -c C:/Users/user1/nRF9160/ncs/nrf/subsys/spm/spm.c
C:/Users/user1/nRF9160/ncs/nrf/subsys/spm/spm.c: In function &amp;#39;spm_config_peripherals&amp;#39;:
C:/Users/user1/nRF9160/ncs/nrf/subsys/spm/spm.c:293:24: error: &amp;#39;NRF_UARTE2&amp;#39; undeclared (first use in this function); did you mean &amp;#39;NRF_UARTE0&amp;#39;?
   PERIPH(&amp;quot;NRF_UARTE2&amp;quot;, NRF_UARTE2, CONFIG_SPM_NRF_UARTE2_NS),
                        ^
C:/Users/user1/nRF9160/ncs/nrf/subsys/spm/spm.c:93:23: note: in definition of macro &amp;#39;NRFX_PERIPHERAL_ID_GET&amp;#39;
  (uint8_t)((uint32_t)(base_addr) &amp;gt;&amp;gt; 12)
                       ^~~~~~~~~
C:/Users/user1/nRF9160/ncs/nrf/subsys/spm/spm.c:293:3: note: in expansion of macro &amp;#39;PERIPH&amp;#39;
   PERIPH(&amp;quot;NRF_UARTE2&amp;quot;, NRF_UARTE2, CONFIG_SPM_NRF_UARTE2_NS),
   ^~~~~~
C:/Users/user1/nRF9160/ncs/nrf/subsys/spm/spm.c:293:24: note: each undeclared identifier is reported only once for each function it appears in
   PERIPH(&amp;quot;NRF_UARTE2&amp;quot;, NRF_UARTE2, CONFIG_SPM_NRF_UARTE2_NS),
                        ^
C:/Users/user1/nRF9160/ncs/nrf/subsys/spm/spm.c:93:23: note: in definition of macro &amp;#39;NRFX_PERIPHERAL_ID_GET&amp;#39;
  (uint8_t)((uint32_t)(base_addr) &amp;gt;&amp;gt; 12)
                       ^~~~~~~~~
C:/Users/user1/nRF9160/ncs/nrf/subsys/spm/spm.c:293:3: note: in expansion of macro &amp;#39;PERIPH&amp;#39;
   PERIPH(&amp;quot;NRF_UARTE2&amp;quot;, NRF_UARTE2, CONFIG_SPM_NRF_UARTE2_NS),
   ^~~~~~
C:/Users/user1/nRF9160/ncs/nrf/subsys/spm/spm.c:301:22: error: &amp;#39;NRF_PWM1&amp;#39; undeclared (first use in this function); did you mean &amp;#39;NRF_PWM0&amp;#39;?
   PERIPH(&amp;quot;NRF_PWM1&amp;quot;, NRF_PWM1, CONFIG_SPM_NRF_PWM1_NS),
                      ^
C:/Users/user1/nRF9160/ncs/nrf/subsys/spm/spm.c:93:23: note: in definition of macro &amp;#39;NRFX_PERIPHERAL_ID_GET&amp;#39;
  (uint8_t)((uint32_t)(base_addr) &amp;gt;&amp;gt; 12)
                       ^~~~~~~~~
C:/Users/user1/nRF9160/ncs/nrf/subsys/spm/spm.c:301:3: note: in expansion of macro &amp;#39;PERIPH&amp;#39;
   PERIPH(&amp;quot;NRF_PWM1&amp;quot;, NRF_PWM1, CONFIG_SPM_NRF_PWM1_NS),
   ^~~~~~
C:/Users/user1/nRF9160/ncs/nrf/subsys/spm/spm.c:302:22: error: &amp;#39;NRF_PWM2&amp;#39; undeclared (first use in this function); did you mean &amp;#39;NRF_PWM1&amp;#39;?
   PERIPH(&amp;quot;NRF_PWM2&amp;quot;, NRF_PWM2, CONFIG_SPM_NRF_PWM2_NS),
                      ^
C:/Users/user1/nRF9160/ncs/nrf/subsys/spm/spm.c:93:23: note: in definition of macro &amp;#39;NRFX_PERIPHERAL_ID_GET&amp;#39;
  (uint8_t)((uint32_t)(base_addr) &amp;gt;&amp;gt; 12)
                       ^~~~~~~~~
C:/Users/user1/nRF9160/ncs/nrf/subsys/spm/spm.c:302:3: note: in expansion of macro &amp;#39;PERIPH&amp;#39;
   PERIPH(&amp;quot;NRF_PWM2&amp;quot;, NRF_PWM2, CONFIG_SPM_NRF_PWM2_NS),
   ^~~~~~
C:/Users/user1/nRF9160/ncs/nrf/subsys/spm/spm.c:303:22: error: &amp;#39;NRF_PWM3&amp;#39; undeclared (first use in this function); did you mean &amp;#39;NRF_PWM2&amp;#39;?
   PERIPH(&amp;quot;NRF_PWM3&amp;quot;, NRF_PWM3, CONFIG_SPM_NRF_PWM3_NS),
                      ^
C:/Users/user1/nRF9160/ncs/nrf/subsys/spm/spm.c:93:23: note: in definition of macro &amp;#39;NRFX_PERIPHERAL_ID_GET&amp;#39;
  (uint8_t)((uint32_t)(base_addr) &amp;gt;&amp;gt; 12)
                       ^~~~~~~~~
C:/Users/user1/nRF9160/ncs/nrf/subsys/spm/spm.c:303:3: note: in expansion of macro &amp;#39;PERIPH&amp;#39;
   PERIPH(&amp;quot;NRF_PWM3&amp;quot;, NRF_PWM3, CONFIG_SPM_NRF_PWM3_NS),
   ^~~~~~
[43/283] Building C object spm/zephyr/CMakeFiles/spm_zephyr.dir/drivers/clock_control/nrf_power_clock.c.obj
ninja: build stopped: subcommand failed.
ERROR: command exited with status 1: &amp;#39;C:\Program Files\CMake\bin\cmake.EXE&amp;#39; --build &amp;#39;C:\Users\user1\nRF9160\ncs\nrf\samples\nrf9160\hello_world\build&amp;#39;&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to set up custom board file in nRF9160?</title><link>https://devzone.nordicsemi.com/thread/203526?ContentTypeID=1</link><pubDate>Mon, 12 Aug 2019 10:22:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dba775ff-e813-4374-aedd-c4117625684e</guid><dc:creator>Yusuke</dc:creator><description>&lt;p&gt;Hi, Simon. Thank you for a reply.&lt;/p&gt;
&lt;p&gt;I overlooked the post. I followed the instruction that you suggested and got this error. How can I solve this?&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;$ west build -b nrf9160_pca20190ns
source directory: /Users/fukuharayuusuke/nRF9160/ncs/nrf/samples/nrf9160/custom_board_file_test
build directory: /Users/fukuharayuusuke/nRF9160/ncs/nrf/samples/nrf9160/custom_board_file_test/build (created)
BOARD: nrf9160_pca20190ns (origin: command line)
-- Using application from &amp;#39;/Users/fukuharayuusuke/nRF9160/ncs/nrf/samples/nRF9160/custom_board_file_test&amp;#39;
Zephyr version: 1.14.99
-- Found PythonInterp: /Users/fukuharayuusuke/.pyenv/shims/python (found suitable version &amp;quot;3.7.2&amp;quot;, minimum required is &amp;quot;3.4&amp;quot;) 
-- Selected BOARD nrf9160_pca20190ns
-- Found west: /Users/fukuharayuusuke/.local/bin/west (found suitable version &amp;quot;0.6.0&amp;quot;, minimum required is &amp;quot;0.5.6&amp;quot;)
-- Cache files will be written to: /Users/fukuharayuusuke/Library/Caches/zephyr
CMake Error at /Users/fukuharayuusuke/nRF9160/ncs/zephyr/cmake/extensions.cmake:1320 (message):
  Assertion failed: Zephyr toolchain variant invalid: please set the
  ZEPHYR_TOOLCHAIN_VARIANT-variable
Call Stack (most recent call first):
  /Users/fukuharayuusuke/nRF9160/ncs/zephyr/cmake/generic_toolchain.cmake:54 (assert)
  /Users/fukuharayuusuke/nRF9160/ncs/zephyr/cmake/app/boilerplate.cmake:495 (include)
  CMakeLists.txt:9 (include)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to set up custom board file in nRF9160?</title><link>https://devzone.nordicsemi.com/thread/203507?ContentTypeID=1</link><pubDate>Mon, 12 Aug 2019 08:52:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:137a439e-3eac-42d8-919b-b727c64cef23</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;Have you seen &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/49719/how-to-create-a-custom-board-file-for-the-nrf9160"&gt;this thread&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>