<?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>NRF9160 partitions issue with hardware CC310 crypto library</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/50465/nrf9160-partitions-issue-with-hardware-cc310-crypto-library</link><description>Hello everyone! 
 I&amp;#39;ve tried to run mbedtls crypto functions which are using cc310 hardware implementation and I have partitions overlap issue. 
 Our main goal is to test RSA-related functions to understand better how we can work with this library. I</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 14 Aug 2019 12:22:05 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/50465/nrf9160-partitions-issue-with-hardware-cc310-crypto-library" /><item><title>RE: NRF9160 partitions issue with hardware CC310 crypto library</title><link>https://devzone.nordicsemi.com/thread/204064?ContentTypeID=1</link><pubDate>Wed, 14 Aug 2019 12:22:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9aa2341c-3cf4-44ce-bd4e-f6f92a2af6ff</guid><dc:creator>DenisAks</dc:creator><description>&lt;p&gt;Thanks, I solved my problem with partitions. These partitiona settings works&amp;nbsp;at me.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/nrf9160_5F00_pca10090.zip"&gt;devzone.nordicsemi.com/.../nrf9160_5F00_pca10090.zip&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF9160 partitions issue with hardware CC310 crypto library</title><link>https://devzone.nordicsemi.com/thread/203259?ContentTypeID=1</link><pubDate>Fri, 09 Aug 2019 10:37:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3285d0a9-a8b3-4eba-b49b-3b0988c9c11f</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I am sorry for the late reply, and for the mistake in my previous post. What I should have said was that setting the size to &lt;em&gt;a multiple of&lt;/em&gt;&amp;nbsp;0x8000 should work, as that will make the SPM end (and thus application start) on a 32 kB region boundary.&amp;nbsp;It must be large enough to fit, so if you get a &amp;quot;will not fit in region&amp;quot; linker error you need to increase the size further (still making sure it is a multiple of&amp;nbsp;0x8000.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF9160 partitions issue with hardware CC310 crypto library</title><link>https://devzone.nordicsemi.com/thread/202876?ContentTypeID=1</link><pubDate>Wed, 07 Aug 2019 14:40:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:953a496b-b4fa-4fd2-a49b-87eae0090502</guid><dc:creator>DenisAks</dc:creator><description>&lt;p&gt;Hi.&lt;/p&gt;
&lt;p&gt;I&amp;nbsp;aligned now all partitions by 32Kb.&lt;/p&gt;
&lt;p&gt;And tried compile SPM with RSA mbed TLS function.&lt;/p&gt;
&lt;p&gt;Same error. I tried with SPM reserved size 0x8000, 0x19000, and 0x20000.&lt;/p&gt;
&lt;p&gt;Do you have any ideas how we&amp;nbsp;solve this problem?&lt;/p&gt;
&lt;p&gt;Could you also try compile my sources at your side?&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Here error when I set flash reserved page size to 0x19000&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;Building ‘spm/zephyr/include/generated/driver-validation.h’ from solution ‘build’ in configuration ‘Common’
  Combining ‘spm/zephyr/include/generated/driver-validation.h’
Building ‘spm/zephyr/CMakeFiles/spm_driver_validation_h_target’ from solution ‘build’ in configuration ‘Common’
Building ‘spm/zephyr/spm_driver_validation_h_target’ from solution ‘build’ in configuration ‘Common’
Building ‘spm/zephyr/include/generated/kobj-types-enum.h’ from solution ‘build’ in configuration ‘Common’
  Combining ‘spm/zephyr/include/generated/kobj-types-enum.h’
Building ‘spm/zephyr/include/generated/otype-to-str.h’ from solution ‘build’ in configuration ‘Common’
Building ‘spm/zephyr/CMakeFiles/spm_kobj_types_h_target’ from solution ‘build’ in configuration ‘Common’
Building ‘spm/zephyr/spm_kobj_types_h_target’ from solution ‘build’ in configuration ‘Common’
Building ‘spm/zephyr/misc/generated/syscalls.json’ from solution ‘build’ in configuration ‘Common’
  Combining ‘spm/zephyr/misc/generated/syscalls.json’
Building ‘spm/zephyr/include/generated/syscall_list.h’ from solution ‘build’ in configuration ‘Common’
  Combining ‘spm/zephyr/include/generated/syscall_list.h’
Building ‘spm/zephyr/CMakeFiles/spm_syscall_list_h_target’ from solution ‘build’ in configuration ‘Common’
Building ‘spm/zephyr/include/generated/syscall_dispatch.c’ from solution ‘build’ in configuration ‘Common’
Building ‘spm/zephyr/spm_syscall_list_h_target’ from solution ‘build’ in configuration ‘Common’
Building ‘spm/zephyr/include/generated/syscall_macros.h’ from solution ‘build’ in configuration ‘Common’
  Combining ‘spm/zephyr/include/generated/syscall_macros.h’
Building ‘spm/zephyr/CMakeFiles/spm_syscall_macros_h_target’ from solution ‘build’ in configuration ‘Common’
Building ‘spm/zephyr/spm_syscall_macros_h_target’ from solution ‘build’ in configuration ‘Common’
Building ‘cmake_object_order_depends_target_spm_offsets’ from solution ‘build’ in configuration ‘Common’
Building ‘spm/zephyr/spm_offsets’ from solution ‘build’ in configuration ‘Common’
  Compiling ‘offsets.c’
Building ‘spm/zephyr/include/generated/offsets.h’ from solution ‘build’ in configuration ‘Common’
  Combining ‘spm/zephyr/include/generated/offsets.h’
Building ‘spm/zephyr/CMakeFiles/spm_offsets_h’ from solution ‘build’ in configuration ‘Common’
Building ‘spm/zephyr/spm_offsets_h’ from solution ‘build’ in configuration ‘Common’
Building ‘cmake_object_order_depends_target_spm_app’ from solution ‘build’ in configuration ‘Common’
Building ‘cmake_object_order_depends_target_spm_arch__arm__core’ from solution ‘build’ in configuration ‘Common’
Building ‘cmake_object_order_depends_target_spm_arch__arm__core__cortex_m’ from solution ‘build’ in configuration ‘Common’
Building ‘cmake_object_order_depends_target_spm_arch__arm__core__cortex_m__mpu’ from solution ‘build’ in configuration ‘Common’
Building ‘cmake_object_order_depends_target_spm_drivers__serial’ from solution ‘build’ in configuration ‘Common’
Building ‘cmake_object_order_depends_target_spm_kernel’ from solution ‘build’ in configuration ‘Common’
Building ‘cmake_object_order_depends_target_spm_lib__libc__minimal’ from solution ‘build’ in configuration ‘Common’
Building ‘cmake_object_order_depends_target_spm_mbedcrypto_vanilla’ from solution ‘build’ in configuration ‘Common’
Building ‘cmake_object_order_depends_target_spm_mbeddrbg’ from solution ‘build’ in configuration ‘Common’
Building ‘cmake_object_order_depends_target_spm_zephyr’ from solution ‘build’ in configuration ‘Common’
Building ‘spm/zephyr/linker.cmd’ from solution ‘build’ in configuration ‘Common’
  Combining ‘spm/zephyr/linker.cmd’
Building ‘spm/zephyr/CMakeFiles/spm_linker_script_target’ from solution ‘build’ in configuration ‘Common’
Building ‘spm/zephyr/spm_linker_script_target’ from solution ‘build’ in configuration ‘Common’
Building ‘cmake_object_order_depends_target_spm_zephyr_prebuilt’ from solution ‘build’ in configuration ‘Common’
Building ‘spm/spm_app/libspm_app.a’ from solution ‘build’ in configuration ‘Common’
  Compiling ‘main.c’
  Archiving ‘libspm_app.a’
Building ‘spm/zephyr/libspm_zephyr.a’ from solution ‘build’ in configuration ‘Common’
  Compiling ‘isr_tables.c’
  Compiling ‘sw_isr_common.c’
  Compiling ‘arm_core_cmse.c’
  Compiling ‘arm_core_tz.c’
  Compiling ‘crc32_sw.c’
  Compiling ‘crc16_sw.c’
  Compiling ‘crc8_sw.c’
  Compiling ‘crc7_sw.c’
  Compiling ‘fdtable.c’
  Compiling ‘mempool.c’
  Compiling ‘rb.c’
  Compiling ‘thread_entry.c’
  Compiling ‘work_q.c’
  Compiling ‘printk.c’
  Compiling ‘configs.c’
  Compiling ‘soc.c’
  Compiling ‘mpu_regions.c’
  Compiling ‘system_nrf9160.c’
  Compiling ‘nrfx_glue.c’
  Compiling ‘power.c’
  Compiling ‘reboot.c’
  Compiling ‘policy_residency.c’
  Compiling ‘uart_console.c’
  Compiling ‘nrf_power_clock.c’
  Compiling ‘sys_clock_init.c’
  Compiling ‘nrf_rtc_timer.c’
  Compiling ‘spm.c’
  Compiling ‘secure_services.c’
    implicit declaration of function &amp;#39;SEGGER_RTT_Init&amp;#39; [-Wimplicit-function-declaration]
    &amp;#39;err&amp;#39; is used uninitialized in this function [-Wuninitialized]
  Compiling ‘SEGGER_RTT.c’
  Compiling ‘SEGGER_RTT_zephyr.c’
  Archiving ‘libspm_zephyr.a’
Building ‘spm/zephyr/arch/arm/core/libspm_arch__arm__core.a’ from solution ‘build’ in configuration ‘Common’
  Assembling ‘exc_exit.S’
  Assembling ‘swap_helper.S’
  Assembling ‘cpu_idle.S’
  Assembling ‘fault_s.S’
  Assembling ‘isr_wrapper.S’
  Compiling ‘irq_init.c’
  Compiling ‘swap.c’
  Compiling ‘fault.c’
  Compiling ‘irq_manage.c’
  Compiling ‘thread.c’
  Compiling ‘fatal.c’
  Compiling ‘sys_fatal_error_handler.c’
  Compiling ‘thread_abort.c’
  Archiving ‘libspm_arch__arm__core.a’
Building ‘spm/zephyr/arch/arm/core/cortex_m/libspm_arch__arm__core__cortex_m.a’ from solution ‘build’ in configuration ‘Common’
  Assembling ‘vector_table.S’
  Assembling ‘reset.S’
  Assembling ‘nmi_on_reset.S’
  Compiling ‘prep_c.c’
  Compiling ‘scb.c’
  Compiling ‘nmi.c’
  Compiling ‘exc_manage.c’
  Archiving ‘libspm_arch__arm__core__cortex_m.a’
Building ‘spm/zephyr/arch/arm/core/cortex_m/mpu/libspm_arch__arm__core__cortex_m__mpu.a’ from solution ‘build’ in configuration ‘Common’
  Compiling ‘arm_core_mpu.c’
  Compiling ‘arm_mpu.c’
  Archiving ‘libspm_arch__arm__core__cortex_m__mpu.a’
Building ‘spm/zephyr/lib/libc/minimal/libspm_lib__libc__minimal.a’ from solution ‘build’ in configuration ‘Common’
  Compiling ‘atoi.c’
  Compiling ‘strtol.c’
  Compiling ‘strtoul.c’
  Compiling ‘malloc.c’
  Compiling ‘bsearch.c’
  Compiling ‘exit.c’
  Compiling ‘strncasecmp.c’
  Compiling ‘strstr.c’
  Compiling ‘string.c’
  Compiling ‘prf.c’
  Compiling ‘stdout_console.c’
  Compiling ‘sprintf.c’
  Compiling ‘fprintf.c’
  Archiving ‘libspm_lib__libc__minimal.a’
Building ‘spm/zephyr/drivers/serial/libspm_drivers__serial.a’ from solution ‘build’ in configuration ‘Common’
  Compiling ‘uart_nrfx_uarte.c’
  Archiving ‘libspm_drivers__serial.a’
Building ‘spm/zephyr/modules/nrfxlib/nrf_security/src/mbedtls/libspm_mbeddrbg.a’ from solution ‘build’ in configuration ‘Common’
  Compiling ‘ctr_drbg.c’
  Compiling ‘entropy.c’
  Archiving ‘libspm_mbeddrbg.a’
Building ‘spm/zephyr/modules/nrfxlib/nrf_security/src/mbedtls/libspm_mbedcrypto_vanilla.a’ from solution ‘build’ in configuration ‘Common’
  Compiling ‘aes.c’
  Compiling ‘aesni.c’
  Compiling ‘arc4.c’
  Compiling ‘aria.c’
  Compiling ‘asn1parse.c’
  Compiling ‘asn1write.c’
  Compiling ‘base64.c’
  Compiling ‘bignum.c’
  Compiling ‘blowfish.c’
  Compiling ‘camellia.c’
  Compiling ‘ccm.c’
  Compiling ‘chacha20.c’
  Compiling ‘chachapoly.c’
  Compiling ‘cipher.c’
  Compiling ‘cmac.c’
  Compiling ‘des.c’
  Compiling ‘dhm.c’
  Compiling ‘ecdh.c’
  Compiling ‘ecdsa.c’
  Compiling ‘ecjpake.c’
  Compiling ‘ecp.c’
  Compiling ‘ecp_curves.c’
  Compiling ‘entropy_poll.c’
  Compiling ‘error.c’
  Compiling ‘gcm.c’
  Compiling ‘havege.c’
  Compiling ‘hkdf.c’
  Compiling ‘hmac_drbg.c’
  Compiling ‘md.c’
  Compiling ‘md2.c’
  Compiling ‘md4.c’
  Compiling ‘md5.c’
  Compiling ‘md_wrap.c’
  Compiling ‘memory_buffer_alloc.c’
  Compiling ‘nist_kw.c’
  Compiling ‘oid.c’
  Compiling ‘padlock.c’
  Compiling ‘pk.c’
  Compiling ‘pk_wrap.c’
  Compiling ‘pkcs12.c’
  Compiling ‘pkcs5.c’
  Compiling ‘pkparse.c’
  Compiling ‘pkwrite.c’
  Compiling ‘platform.c’
    implicit declaration of function &amp;#39;SEGGER_RTT_Write&amp;#39; [-Wimplicit-function-declaration]
  Compiling ‘platform_util.c’
  Compiling ‘poly1305.c’
  Compiling ‘ripemd160.c’
  Compiling ‘rsa.c’
  Compiling ‘rsa_internal.c’
  Compiling ‘sha1.c’
  Compiling ‘sha256.c’
  Compiling ‘sha512.c’
  Compiling ‘threading.c’
  Compiling ‘timing.c’
  Compiling ‘version.c’
  Compiling ‘version_features.c’
  Compiling ‘xtea.c’
  Compiling ‘cipher_wrap.c’
  Compiling ‘pem.c’
  Archiving ‘libspm_mbedcrypto_vanilla.a’
Building ‘spm/zephyr/kernel/libspm_kernel.a’ from solution ‘build’ in configuration ‘Common’
  Compiling ‘device.c’
  Compiling ‘errno.c’
  Compiling ‘idle.c’
  Compiling ‘init.c’
  Compiling ‘mailbox.c’
  Compiling ‘mem_slab.c’
  Compiling ‘mempool.c’
  Compiling ‘msg_q.c’
  Compiling ‘mutex.c’
  Compiling ‘pipes.c’
  Compiling ‘queue.c’
  Compiling ‘sched.c’
  Compiling ‘sem.c’
  Compiling ‘stack.c’
  Compiling ‘system_work_q.c’
  Compiling ‘thread.c’
  Compiling ‘thread_abort.c’
  Compiling ‘version.c’
  Compiling ‘work_q.c’
  Compiling ‘smp.c’
  Compiling ‘timeout.c’
  Compiling ‘timer.c’
  Archiving ‘libspm_kernel.a’
Building ‘spm/zephyr/spm_zephyr_prebuilt.elf’ from solution ‘build’ in configuration ‘Common’
  Compiling ‘empty_file.c’
  Linking ‘spm_zephyr_prebuilt.elf’
    KB       100 KB     64.00%
    B        64 KB     17.17%
    B         2 KB      1.95%
    SPM and app are sharing an SPU region. Cannot partition flash correctly into secure and non-secure. Adjust partitions sizes so they are placed in separate regions.
    ld returned 1 exit status
Build failed&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Here error when I set flash reserved page size to 0x8000&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/0x8000_5F00_for_5F00_SPM.PNG" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1565187398935v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;Building ‘spm/zephyr/include/generated/driver-validation.h’ from solution ‘build’ in configuration ‘Common’
  Combining ‘spm/zephyr/include/generated/driver-validation.h’
Building ‘spm/zephyr/CMakeFiles/spm_driver_validation_h_target’ from solution ‘build’ in configuration ‘Common’
Building ‘spm/zephyr/spm_driver_validation_h_target’ from solution ‘build’ in configuration ‘Common’
Building ‘spm/zephyr/include/generated/kobj-types-enum.h’ from solution ‘build’ in configuration ‘Common’
  Combining ‘spm/zephyr/include/generated/kobj-types-enum.h’
Building ‘spm/zephyr/include/generated/otype-to-str.h’ from solution ‘build’ in configuration ‘Common’
Building ‘spm/zephyr/CMakeFiles/spm_kobj_types_h_target’ from solution ‘build’ in configuration ‘Common’
Building ‘spm/zephyr/spm_kobj_types_h_target’ from solution ‘build’ in configuration ‘Common’
Building ‘spm/zephyr/misc/generated/syscalls.json’ from solution ‘build’ in configuration ‘Common’
  Combining ‘spm/zephyr/misc/generated/syscalls.json’
Building ‘spm/zephyr/include/generated/syscall_list.h’ from solution ‘build’ in configuration ‘Common’
  Combining ‘spm/zephyr/include/generated/syscall_list.h’
Building ‘spm/zephyr/CMakeFiles/spm_syscall_list_h_target’ from solution ‘build’ in configuration ‘Common’
Building ‘spm/zephyr/include/generated/syscall_dispatch.c’ from solution ‘build’ in configuration ‘Common’
Building ‘spm/zephyr/spm_syscall_list_h_target’ from solution ‘build’ in configuration ‘Common’
Building ‘spm/zephyr/include/generated/syscall_macros.h’ from solution ‘build’ in configuration ‘Common’
  Combining ‘spm/zephyr/include/generated/syscall_macros.h’
Building ‘spm/zephyr/CMakeFiles/spm_syscall_macros_h_target’ from solution ‘build’ in configuration ‘Common’
Building ‘spm/zephyr/spm_syscall_macros_h_target’ from solution ‘build’ in configuration ‘Common’
Building ‘cmake_object_order_depends_target_spm_offsets’ from solution ‘build’ in configuration ‘Common’
Building ‘spm/zephyr/spm_offsets’ from solution ‘build’ in configuration ‘Common’
  Compiling ‘offsets.c’
Building ‘spm/zephyr/include/generated/offsets.h’ from solution ‘build’ in configuration ‘Common’
  Combining ‘spm/zephyr/include/generated/offsets.h’
Building ‘spm/zephyr/CMakeFiles/spm_offsets_h’ from solution ‘build’ in configuration ‘Common’
Building ‘spm/zephyr/spm_offsets_h’ from solution ‘build’ in configuration ‘Common’
Building ‘cmake_object_order_depends_target_spm_app’ from solution ‘build’ in configuration ‘Common’
Building ‘cmake_object_order_depends_target_spm_arch__arm__core’ from solution ‘build’ in configuration ‘Common’
Building ‘cmake_object_order_depends_target_spm_arch__arm__core__cortex_m’ from solution ‘build’ in configuration ‘Common’
Building ‘cmake_object_order_depends_target_spm_arch__arm__core__cortex_m__mpu’ from solution ‘build’ in configuration ‘Common’
Building ‘cmake_object_order_depends_target_spm_drivers__serial’ from solution ‘build’ in configuration ‘Common’
Building ‘cmake_object_order_depends_target_spm_kernel’ from solution ‘build’ in configuration ‘Common’
Building ‘cmake_object_order_depends_target_spm_lib__libc__minimal’ from solution ‘build’ in configuration ‘Common’
Building ‘cmake_object_order_depends_target_spm_mbedcrypto_vanilla’ from solution ‘build’ in configuration ‘Common’
Building ‘cmake_object_order_depends_target_spm_mbeddrbg’ from solution ‘build’ in configuration ‘Common’
Building ‘cmake_object_order_depends_target_spm_zephyr’ from solution ‘build’ in configuration ‘Common’
Building ‘spm/zephyr/linker.cmd’ from solution ‘build’ in configuration ‘Common’
  Combining ‘spm/zephyr/linker.cmd’
Building ‘spm/zephyr/CMakeFiles/spm_linker_script_target’ from solution ‘build’ in configuration ‘Common’
Building ‘spm/zephyr/spm_linker_script_target’ from solution ‘build’ in configuration ‘Common’
Building ‘cmake_object_order_depends_target_spm_zephyr_prebuilt’ from solution ‘build’ in configuration ‘Common’
Building ‘spm/spm_app/libspm_app.a’ from solution ‘build’ in configuration ‘Common’
  Compiling ‘main.c’
  Archiving ‘libspm_app.a’
Building ‘spm/zephyr/libspm_zephyr.a’ from solution ‘build’ in configuration ‘Common’
  Compiling ‘isr_tables.c’
  Compiling ‘sw_isr_common.c’
  Compiling ‘arm_core_cmse.c’
  Compiling ‘arm_core_tz.c’
  Compiling ‘crc32_sw.c’
  Compiling ‘crc16_sw.c’
  Compiling ‘crc8_sw.c’
  Compiling ‘crc7_sw.c’
  Compiling ‘fdtable.c’
  Compiling ‘mempool.c’
  Compiling ‘rb.c’
  Compiling ‘thread_entry.c’
  Compiling ‘work_q.c’
  Compiling ‘printk.c’
  Compiling ‘configs.c’
  Compiling ‘soc.c’
  Compiling ‘mpu_regions.c’
  Compiling ‘system_nrf9160.c’
  Compiling ‘nrfx_glue.c’
  Compiling ‘power.c’
  Compiling ‘reboot.c’
  Compiling ‘policy_residency.c’
  Compiling ‘uart_console.c’
  Compiling ‘nrf_power_clock.c’
  Compiling ‘sys_clock_init.c’
  Compiling ‘nrf_rtc_timer.c’
  Compiling ‘spm.c’
  Compiling ‘secure_services.c’
    implicit declaration of function &amp;#39;SEGGER_RTT_Init&amp;#39; [-Wimplicit-function-declaration]
    &amp;#39;err&amp;#39; is used uninitialized in this function [-Wuninitialized]
  Compiling ‘SEGGER_RTT.c’
  Compiling ‘SEGGER_RTT_zephyr.c’
  Archiving ‘libspm_zephyr.a’
Building ‘spm/zephyr/arch/arm/core/libspm_arch__arm__core.a’ from solution ‘build’ in configuration ‘Common’
  Assembling ‘exc_exit.S’
  Assembling ‘swap_helper.S’
  Assembling ‘cpu_idle.S’
  Assembling ‘fault_s.S’
  Assembling ‘isr_wrapper.S’
  Compiling ‘irq_init.c’
  Compiling ‘swap.c’
  Compiling ‘fault.c’
  Compiling ‘irq_manage.c’
  Compiling ‘thread.c’
  Compiling ‘fatal.c’
  Compiling ‘sys_fatal_error_handler.c’
  Compiling ‘thread_abort.c’
  Archiving ‘libspm_arch__arm__core.a’
Building ‘spm/zephyr/arch/arm/core/cortex_m/libspm_arch__arm__core__cortex_m.a’ from solution ‘build’ in configuration ‘Common’
  Assembling ‘vector_table.S’
  Assembling ‘reset.S’
  Assembling ‘nmi_on_reset.S’
  Compiling ‘prep_c.c’
  Compiling ‘scb.c’
  Compiling ‘nmi.c’
  Compiling ‘exc_manage.c’
  Archiving ‘libspm_arch__arm__core__cortex_m.a’
Building ‘spm/zephyr/arch/arm/core/cortex_m/mpu/libspm_arch__arm__core__cortex_m__mpu.a’ from solution ‘build’ in configuration ‘Common’
  Compiling ‘arm_core_mpu.c’
  Compiling ‘arm_mpu.c’
  Archiving ‘libspm_arch__arm__core__cortex_m__mpu.a’
Building ‘spm/zephyr/lib/libc/minimal/libspm_lib__libc__minimal.a’ from solution ‘build’ in configuration ‘Common’
  Compiling ‘atoi.c’
  Compiling ‘strtol.c’
  Compiling ‘strtoul.c’
  Compiling ‘malloc.c’
  Compiling ‘bsearch.c’
  Compiling ‘exit.c’
  Compiling ‘strncasecmp.c’
  Compiling ‘strstr.c’
  Compiling ‘string.c’
  Compiling ‘prf.c’
  Compiling ‘stdout_console.c’
  Compiling ‘sprintf.c’
  Compiling ‘fprintf.c’
  Archiving ‘libspm_lib__libc__minimal.a’
Building ‘spm/zephyr/drivers/serial/libspm_drivers__serial.a’ from solution ‘build’ in configuration ‘Common’
  Compiling ‘uart_nrfx_uarte.c’
  Archiving ‘libspm_drivers__serial.a’
Building ‘spm/zephyr/modules/nrfxlib/nrf_security/src/mbedtls/libspm_mbeddrbg.a’ from solution ‘build’ in configuration ‘Common’
  Compiling ‘ctr_drbg.c’
  Compiling ‘entropy.c’
  Archiving ‘libspm_mbeddrbg.a’
Building ‘spm/zephyr/modules/nrfxlib/nrf_security/src/mbedtls/libspm_mbedcrypto_vanilla.a’ from solution ‘build’ in configuration ‘Common’
  Compiling ‘aes.c’
  Compiling ‘aesni.c’
  Compiling ‘aria.c’
  Compiling ‘arc4.c’
  Compiling ‘asn1parse.c’
  Compiling ‘asn1write.c’
  Compiling ‘base64.c’
  Compiling ‘bignum.c’
  Compiling ‘blowfish.c’
  Compiling ‘camellia.c’
  Compiling ‘ccm.c’
  Compiling ‘chacha20.c’
  Compiling ‘chachapoly.c’
  Compiling ‘cipher.c’
  Compiling ‘cmac.c’
  Compiling ‘des.c’
  Compiling ‘dhm.c’
  Compiling ‘ecdh.c’
  Compiling ‘ecdsa.c’
  Compiling ‘ecjpake.c’
  Compiling ‘ecp.c’
  Compiling ‘ecp_curves.c’
  Compiling ‘entropy_poll.c’
  Compiling ‘error.c’
  Compiling ‘gcm.c’
  Compiling ‘havege.c’
  Compiling ‘hkdf.c’
  Compiling ‘hmac_drbg.c’
  Compiling ‘md.c’
  Compiling ‘md2.c’
  Compiling ‘md4.c’
  Compiling ‘md5.c’
  Compiling ‘md_wrap.c’
  Compiling ‘memory_buffer_alloc.c’
  Compiling ‘nist_kw.c’
  Compiling ‘oid.c’
  Compiling ‘padlock.c’
  Compiling ‘pk.c’
  Compiling ‘pk_wrap.c’
  Compiling ‘pkcs12.c’
  Compiling ‘pkcs5.c’
  Compiling ‘pkparse.c’
  Compiling ‘pkwrite.c’
  Compiling ‘platform.c’
    implicit declaration of function &amp;#39;SEGGER_RTT_Write&amp;#39; [-Wimplicit-function-declaration]
  Compiling ‘platform_util.c’
  Compiling ‘poly1305.c’
  Compiling ‘ripemd160.c’
  Compiling ‘rsa.c’
  Compiling ‘rsa_internal.c’
  Compiling ‘sha1.c’
  Compiling ‘sha256.c’
  Compiling ‘sha512.c’
  Compiling ‘threading.c’
  Compiling ‘timing.c’
  Compiling ‘version.c’
  Compiling ‘version_features.c’
  Compiling ‘xtea.c’
  Compiling ‘cipher_wrap.c’
  Compiling ‘pem.c’
  Archiving ‘libspm_mbedcrypto_vanilla.a’
Building ‘spm/zephyr/kernel/libspm_kernel.a’ from solution ‘build’ in configuration ‘Common’
  Compiling ‘device.c’
  Compiling ‘errno.c’
  Compiling ‘idle.c’
  Compiling ‘init.c’
  Compiling ‘mailbox.c’
  Compiling ‘mem_slab.c’
  Compiling ‘mempool.c’
  Compiling ‘msg_q.c’
  Compiling ‘mutex.c’
  Compiling ‘pipes.c’
  Compiling ‘queue.c’
  Compiling ‘sched.c’
  Compiling ‘sem.c’
  Compiling ‘stack.c’
  Compiling ‘system_work_q.c’
  Compiling ‘thread.c’
  Compiling ‘thread_abort.c’
  Compiling ‘work_q.c’
  Compiling ‘version.c’
  Compiling ‘smp.c’
  Compiling ‘timeout.c’
  Compiling ‘timer.c’
  Archiving ‘libspm_kernel.a’
Building ‘spm/zephyr/spm_zephyr_prebuilt.elf’ from solution ‘build’ in configuration ‘Common’
  Compiling ‘empty_file.c’
  Linking ‘spm_zephyr_prebuilt.elf’
    KB        32 KB    200.00%
    B        64 KB     17.17%
    spm\zephyr\spm_zephyr_prebuilt.elf section `_TEXT_SECTION_NAME_2&amp;#39; will not fit in region `FLASH&amp;#39;
    SPM and app are sharing an SPU region. Cannot partition flash correctly into secure and non-secure. Adjust partitions sizes so they are placed in separate regions.
    region `FLASH&amp;#39; overflowed by 32768 bytes
    ld returned 1 exit status
    B         2 KB      1.95%
Build failed&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;New partitions sizes I&amp;nbsp;added to attached files.Also I added my spm and secure_service sample project files and all build directories.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/nrf9160_5F00_pca10090_5F00_32Kb_5F00_aligned.zip"&gt;devzone.nordicsemi.com/.../nrf9160_5F00_pca10090_5F00_32Kb_5F00_aligned.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/spm_5F00_folder_5F00_from_5F00_subsys_5F00_folder.zip"&gt;devzone.nordicsemi.com/.../spm_5F00_folder_5F00_from_5F00_subsys_5F00_folder.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/nrf9160_5F00_sample_5F00_folder_5F00_spm_5F00_reserved_5F00_size_5F00_0x8000.zip"&gt;devzone.nordicsemi.com/.../nrf9160_5F00_sample_5F00_folder_5F00_spm_5F00_reserved_5F00_size_5F00_0x8000.zip&lt;/a&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/nrf9160_5F00_sample_5F00_folder_5F00_spm_5F00_reserved_5F00_size_5F00_0x19000.zip"&gt;devzone.nordicsemi.com/.../nrf9160_5F00_sample_5F00_folder_5F00_spm_5F00_reserved_5F00_size_5F00_0x19000.zip&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF9160 partitions issue with hardware CC310 crypto library</title><link>https://devzone.nordicsemi.com/thread/202114?ContentTypeID=1</link><pubDate>Fri, 02 Aug 2019 11:30:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f45b9255-00de-4568-b7d1-8799a6d759ea</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;You should increase the size of the flash space reserve for SPM so that it ends at the end of a 32 kB region. So setting it to 0x8000 should work.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF9160 partitions issue with hardware CC310 crypto library</title><link>https://devzone.nordicsemi.com/thread/201945?ContentTypeID=1</link><pubDate>Thu, 01 Aug 2019 14:55:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:97aa8c5f-f890-4fb4-9d7d-5e1865d8c6dd</guid><dc:creator>DenisAks</dc:creator><description>&lt;p&gt;Do you mean that there are two regions: secure and non-secure (32Kb each) and secure region is big enough, while non-secure is too small and should be increased?&lt;/p&gt;
&lt;p&gt;Could you clarify where I can change this?&lt;/p&gt;
&lt;p&gt;Thanks in advance.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF9160 partitions issue with hardware CC310 crypto library</title><link>https://devzone.nordicsemi.com/thread/201822?ContentTypeID=1</link><pubDate>Thu, 01 Aug 2019 11:11:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8dc58c76-5c3e-4ff6-b239-e6224dae2d59</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The linker issue is due to a too small partition size. That is also the case for the second issue, so you should expand that further since the SPU regions are 32 kB.&lt;/p&gt;
&lt;p&gt;The reason is that the SPM and application must be placed in different SPU regions (of 32 kB size) because one is secure and the other is non-secure. So the second error you get is because the region is large enough to fit the code, but you need additional empty space to place the app in a new region.&lt;/p&gt;
&lt;p&gt;Note that there is an issue with RSA in the current nrf_cc310_mbedcrypto library that you will likely meet. This will be fixed in the next release, which I expect will be out quite soon.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF9160 partitions issue with hardware CC310 crypto library</title><link>https://devzone.nordicsemi.com/thread/201534?ContentTypeID=1</link><pubDate>Wed, 31 Jul 2019 11:24:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a5b9812d-2a4f-404c-a1c5-86cd09915c22</guid><dc:creator>DenisAks</dc:creator><description>&lt;p&gt;You can find partitions config and *.map files in attachments of the previous post.&lt;/p&gt;
&lt;p&gt;And also I see that&amp;nbsp;links in previous post were&amp;nbsp;corrupted, so I added&amp;nbsp;it once again:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/50155/nrf9160-memory-partition"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/50155/nrf9160-memory-partition&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrfxlib/crypto/doc/nrf_cc310_mbedcrypto.html"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrfxlib/crypto/doc/nrf_cc310_mbedcrypto.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Thanks again.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>