<?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>TZ_NONSECURE_FUNC_PTR_CREATE SPM error with v1.0.0 for nRF9160 in linux</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/56321/tz_nonsecure_func_ptr_create-spm-error-with-v1-0-0-for-nrf9160-in-linux</link><description>I am a novice and using nrf9160 DK now.I has completed the &amp;quot;getting started assistant&amp;quot; also updated the modem. 
 I&amp;#39;ve got a problem when building nrf9160_pca10090ns for at_client application or any other sample aplications by the following command: 
</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 10 Jan 2020 03:21:40 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/56321/tz_nonsecure_func_ptr_create-spm-error-with-v1-0-0-for-nrf9160-in-linux" /><item><title>RE: TZ_NONSECURE_FUNC_PTR_CREATE SPM error with v1.0.0 for nRF9160 in linux</title><link>https://devzone.nordicsemi.com/thread/228454?ContentTypeID=1</link><pubDate>Fri, 10 Jan 2020 03:21:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cb85c748-0f93-4376-b897-7f9ff8a7a781</guid><dc:creator>peng ping</dc:creator><description>&lt;p&gt;Dear Heidi，&lt;/p&gt;
&lt;p&gt;Thank you so much. I just switched gcc 8 to gcc 7 and the build command was successful.&lt;/p&gt;
&lt;p&gt;Best wishes！&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: TZ_NONSECURE_FUNC_PTR_CREATE SPM error with v1.0.0 for nRF9160 in linux</title><link>https://devzone.nordicsemi.com/thread/228363?ContentTypeID=1</link><pubDate>Thu, 09 Jan 2020 13:05:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7559f070-3913-416f-8826-6354ef634796</guid><dc:creator>Heidi</dc:creator><description>&lt;p&gt;Hi!&lt;/p&gt;
&lt;p&gt;Looks like you&amp;#39;re still using GCC 8.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;-- The C compiler identification is GNU 8.3.1&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;I got the same error as you while using GCC 8 but when I switched to GCC 7 (2018-Q2) it worked.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Heidi&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: TZ_NONSECURE_FUNC_PTR_CREATE SPM error with v1.0.0 for nRF9160 in linux</title><link>https://devzone.nordicsemi.com/thread/228240?ContentTypeID=1</link><pubDate>Thu, 09 Jan 2020 00:51:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:58c6ce5b-3ee4-4db0-ba21-b5e9338b4b64</guid><dc:creator>peng ping</dc:creator><description>&lt;p&gt;&lt;span style="vertical-align:inherit;"&gt;&lt;span style="vertical-align:inherit;"&gt;&lt;span style="vertical-align:inherit;"&gt;&lt;span style="vertical-align:inherit;"&gt;I am working on NCS v1.0.0. And I run the build command as you said, the error still exists.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;pp@pp-OptiPlex-9020:/opt/sourcecode/ncs/nrf/samples/nrf9160/at_client$ west build -b nrf9160_pca10090ns -p
Making build dir /opt/sourcecode/ncs/nrf/samples/nrf9160/at_client/build pristine
source directory: /opt/sourcecode/ncs/nrf/samples/nrf9160/at_client
build directory: /opt/sourcecode/ncs/nrf/samples/nrf9160/at_client/build
BOARD: nrf9160_pca10090ns (origin: command line)
-- Using application from &amp;#39;/opt/sourcecode/ncs/nrf/samples/nrf9160/at_client&amp;#39;
Zephyr version: 1.14.99
-- Found PythonInterp: /usr/bin/python3 (found suitable version &amp;quot;3.5.2&amp;quot;, minimum required is &amp;quot;3.4&amp;quot;) 
-- Selected BOARD nrf9160_pca10090ns
-- Found west: /home/pp/.local/bin/west (found suitable version &amp;quot;0.6.3&amp;quot;, minimum required is &amp;quot;0.5.6&amp;quot;)
-- Cache files will be written to: /home/pp/.cache/zephyr
-- Loading /opt/sourcecode/ncs/zephyr/boards/arm/nrf9160_pca10090/nrf9160_pca10090ns.dts as base
-- Overlaying /opt/sourcecode/ncs/zephyr/dts/common/common.dts
Parsing Kconfig tree in /opt/sourcecode/ncs/zephyr/Kconfig
Loading /opt/sourcecode/ncs/zephyr/boards/arm/nrf9160_pca10090/nrf9160_pca10090ns_defconfig as base
Merging /opt/sourcecode/ncs/nrf/samples/nrf9160/at_client/prj.conf
Configuration written to &amp;#39;/opt/sourcecode/ncs/nrf/samples/nrf9160/at_client/build/zephyr/.config&amp;#39;
-- The C compiler identification is GNU 8.3.1
-- The CXX compiler identification is GNU 8.3.1
-- The ASM compiler identification is GNU
-- Found assembler: /opt/gnuarmemb/bin/arm-none-eabi-gcc
-- Performing Test toolchain_is_ok
-- Performing Test toolchain_is_ok - Success
Including module: nrf in path: /opt/sourcecode/ncs/nrf
-- Using application from &amp;#39;/opt/sourcecode/ncs/nrf/samples/nrf9160/spm&amp;#39;
Zephyr version: 1.14.99
Changed board to secure nrf9160_pca10090 (NOT NS)
-- Loading /opt/sourcecode/ncs/zephyr/boards/arm/nrf9160_pca10090/nrf9160_pca10090.dts as base
-- Overlaying /opt/sourcecode/ncs/zephyr/dts/common/common.dts
-- Overlaying /opt/sourcecode/ncs/nrf/samples/nrf9160/spm/nrf9160_pca10090.overlay
Parsing Kconfig tree in /opt/sourcecode/ncs/zephyr/Kconfig
Loading /opt/sourcecode/ncs/zephyr/boards/arm/nrf9160_pca10090/nrf9160_pca10090_defconfig as base
Merging /opt/sourcecode/ncs/nrf/samples/nrf9160/spm/prj.conf
Configuration written to &amp;#39;/opt/sourcecode/ncs/nrf/samples/nrf9160/at_client/build/spm/zephyr/.config&amp;#39;
Including module: nrf in path: /opt/sourcecode/ncs/nrf
Including module: nffs in path: /opt/sourcecode/ncs/modules/fs/nffs
Including module: segger in path: /opt/sourcecode/ncs/modules/debug/segger
Including module: mcuboot in path: /opt/sourcecode/ncs/mcuboot/zephyr
Including module: mcumgr in path: /opt/sourcecode/ncs/modules/lib/mcumgr
Including module: tinycbor in path: /opt/sourcecode/ncs/modules/lib/tinycbor
Including module: nrfxlib in path: /opt/sourcecode/ncs/nrfxlib
Including module: nffs in path: /opt/sourcecode/ncs/modules/fs/nffs
Including module: segger in path: /opt/sourcecode/ncs/modules/debug/segger
Including module: mcuboot in path: /opt/sourcecode/ncs/mcuboot/zephyr
Including module: mcumgr in path: /opt/sourcecode/ncs/modules/lib/mcumgr
Including module: tinycbor in path: /opt/sourcecode/ncs/modules/lib/tinycbor
Including module: nrfxlib in path: /opt/sourcecode/ncs/nrfxlib
CMake Warning at /opt/sourcecode/ncs/zephyr/CMakeLists.txt:1345 (message):
  

        ------------------------------------------------------------
        --- WARNING:  __ASSERT() statements are globally ENABLED ---
        --- The kernel will run more slowly and use more memory  ---
        ------------------------------------------------------------


Running Partition Manager...
-- Configuring done
-- Generating done
-- Build files have been written to: /opt/sourcecode/ncs/nrf/samples/nrf9160/at_client/build
[8/309] Preparing syscall dependency handling

[9/309] Preparing syscall dependency handling

[26/309] Building C object spm/zephyr/...ourcecode/ncs/nrf/subsys/spm/spm.c.obj
FAILED: ccache /opt/gnuarmemb/bin/arm-none-eabi-gcc -DBUILD_VERSION=v1.14.99-ncs2 -DKERNEL -DMBEDTLS_CONFIG_FILE=\&amp;quot;nrf-config.h\&amp;quot; -DNRF9160_XXAA -DUSE_PARTITION_MANAGER=1 -D_FORTIFY_SOURCE=2 -D__ZEPHYR__=1 -I/opt/sourcecode/ncs/zephyr/kernel/include -I/opt/sourcecode/ncs/zephyr/arch/arm/include -I/opt/sourcecode/ncs/zephyr/include -I/opt/sourcecode/ncs/zephyr/include/drivers -Ispm/zephyr/include/generated -I/opt/sourcecode/ncs/zephyr/soc/arm/nordic_nrf/nrf91 -I/opt/sourcecode/ncs/zephyr/soc/arm/nordic_nrf/include -I/opt/sourcecode/ncs/zephyr/lib/libc/minimal/include -I/opt/sourcecode/ncs/zephyr/ext/hal/cmsis/Include -I/opt/sourcecode/ncs/zephyr/ext/hal/nordic/nrfx -I/opt/sourcecode/ncs/zephyr/ext/hal/nordic/nrfx/drivers/include -I/opt/sourcecode/ncs/zephyr/ext/hal/nordic/nrfx/hal -I/opt/sourcecode/ncs/zephyr/ext/hal/nordic/nrfx/mdk -I/opt/sourcecode/ncs/zephyr/ext/hal/nordic/. -I/opt/sourcecode/ncs/nrf/include -I/opt/sourcecode/ncs/nrfxlib/crypto/nrf_cc310_mbedcrypto/include/mbedtls -Ispm/zephyr/modules/nrfxlib/nrf_security/include -I/opt/sourcecode/ncs/mbedtls/include -I/opt/sourcecode/ncs/mbedtls/include/mbedtls -isystem /opt/gnuarmemb/bin/../lib/gcc/arm-none-eabi/8.3.1/include -isystem /opt/gnuarmemb/bin/../lib/gcc/arm-none-eabi/8.3.1/include-fixed -Os -nostdinc -g -imacros /opt/sourcecode/ncs/nrf/samples/nrf9160/at_client/build/spm/zephyr/include/generated/autoconf.h -ffreestanding -fno-common -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 -fmacro-prefix-map=/opt/sourcecode/ncs/zephyr=. -ffunction-sections -fdata-sections -mabi=aapcs -march=armv8-m.main+dsp -mcmse -std=c99 -MD -MT spm/zephyr/CMakeFiles/spm_zephyr.dir/opt/sourcecode/ncs/nrf/subsys/spm/spm.c.obj -MF spm/zephyr/CMakeFiles/spm_zephyr.dir/opt/sourcecode/ncs/nrf/subsys/spm/spm.c.obj.d -o spm/zephyr/CMakeFiles/spm_zephyr.dir/opt/sourcecode/ncs/nrf/subsys/spm/spm.c.obj   -c /opt/sourcecode/ncs/nrf/subsys/spm/spm.c
/opt/sourcecode/ncs/nrf/subsys/spm/spm.c: In function &amp;#39;spm_jump&amp;#39;:
/opt/sourcecode/ncs/nrf/subsys/spm/spm.c:392:14: error: called object is not a function or function pointer
  reset_ns = TZ_NONSECURE_FUNC_PTR_CREATE(vtor_ns[1]);
[26/309] Building C object spm/zephyr/...core/cortex_m/cmse/arm_core_cmse.c.obj
ninja: build stopped: subcommand failed.
ERROR: command exited with status 1: /usr/local/bin/cmake --build /opt/sourcecode/ncs/nrf/samples/nrf9160/at_client/build
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Best wishes!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: TZ_NONSECURE_FUNC_PTR_CREATE SPM error with v1.0.0 for nRF9160 in linux</title><link>https://devzone.nordicsemi.com/thread/228070?ContentTypeID=1</link><pubDate>Wed, 08 Jan 2020 09:49:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:233459b2-2ad6-4aa8-9f45-0ccdb855f045</guid><dc:creator>Heidi</dc:creator><description>&lt;p&gt;Hi!&lt;/p&gt;
&lt;p&gt;Which version of NCS are you working on?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Can you try running the build command again with a -p flag?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;west build -b nrf9160_pca10090ns -p&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Heidi&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>