<?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>Thingy91X - HMAC</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/126229/thingy91x---hmac</link><description>Hi, 
 We&amp;#39;re trying to implement HMAC signing on a Thingy91X but getting stuck each time on -134 errors. Having read the resource on your docs AI I&amp;#39;m aware of the limitations on TF-M on the Thingy91X, but am not quite clear why it is possible to run the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 21 Jan 2026 12:18:19 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/126229/thingy91x---hmac" /><item><title>RE: Thingy91X - HMAC</title><link>https://devzone.nordicsemi.com/thread/559261?ContentTypeID=1</link><pubDate>Wed, 21 Jan 2026 12:18:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7110220b-9569-4af6-9472-6afe7578e836</guid><dc:creator>andychess</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;span&gt;&amp;Oslash;yvind,&lt;br /&gt;&lt;br /&gt;Also from me, apologies for the late reply.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;I tried you suggestion and the result is the same.&amp;nbsp;&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1768997733827v1.png" alt=" " /&gt;&lt;br /&gt;&lt;br /&gt;The second boot was with NO_DEFINED_LAYOUT.&lt;br /&gt;&lt;br /&gt;Here is the build output:&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;west build -p -b thingy91x/nrf9151/ns -- -DSB_CONFIG_THINGY91X_NO_PREDEFINED_LAYOUT=y&lt;br /&gt;-- west build: making build dir /Users/andy/nordic/ncs/v3.1.0/nrf/samples/crypto/hmac/build pristine&lt;br /&gt;-- west build: generating a build system&lt;br /&gt;Loading Zephyr module(s) (Zephyr base): sysbuild_default&lt;br /&gt;-- Found Python3: /Users/andy/nrfenv/bin/python3.13 (found suitable version &amp;quot;3.13.9&amp;quot;, minimum required is &amp;quot;3.10&amp;quot;) found components: Interpreter&lt;br /&gt;-- Cache files will be written to: /Users/andy/Library/Caches/zephyr&lt;br /&gt;-- Found west (found suitable version &amp;quot;1.4.0&amp;quot;, minimum required is &amp;quot;0.14.0&amp;quot;)&lt;br /&gt;-- Board: thingy91x, qualifiers: nrf9151/ns&lt;br /&gt;Parsing /Users/andy/nordic/ncs/v3.1.0/zephyr/share/sysbuild/Kconfig&lt;br /&gt;Loaded configuration &amp;#39;/Users/andy/nordic/ncs/v3.1.0/nrf/samples/crypto/hmac/build/_sysbuild/empty.conf&amp;#39;&lt;br /&gt;Merged configuration &amp;#39;/Users/andy/nordic/ncs/v3.1.0/nrf/samples/crypto/hmac/build/_sysbuild/empty.conf&amp;#39;&lt;br /&gt;Merged configuration &amp;#39;/Users/andy/nordic/ncs/v3.1.0/nrf/samples/crypto/hmac/build/zephyr/misc/generated/extra_kconfig_options.conf&amp;#39;&lt;br /&gt;Configuration saved to &amp;#39;/Users/andy/nordic/ncs/v3.1.0/nrf/samples/crypto/hmac/build/zephyr/.config&amp;#39;&lt;br /&gt;Kconfig header saved to &amp;#39;/Users/andy/nordic/ncs/v3.1.0/nrf/samples/crypto/hmac/build/_sysbuild/autoconf.h&amp;#39;&lt;br /&gt;--&lt;br /&gt; **************************&lt;br /&gt; * Running CMake for hmac *&lt;br /&gt; **************************&lt;/p&gt;
&lt;p&gt;Loading Zephyr default modules (Zephyr base).&lt;br /&gt;-- Application: /Users/andy/nordic/ncs/v3.1.0/nrf/samples/crypto/hmac&lt;br /&gt;-- CMake version: 4.1.2&lt;br /&gt;-- Found Python3: /Users/andy/nrfenv/bin/python (found suitable version &amp;quot;3.13.9&amp;quot;, minimum required is &amp;quot;3.10&amp;quot;) found components: Interpreter&lt;br /&gt;-- Cache files will be written to: /Users/andy/Library/Caches/zephyr&lt;br /&gt;-- Zephyr version: 4.1.99 (/Users/andy/nordic/ncs/v3.1.0/zephyr)&lt;br /&gt;-- Found west (found suitable version &amp;quot;1.4.0&amp;quot;, minimum required is &amp;quot;0.14.0&amp;quot;)&lt;br /&gt;-- Board: thingy91x, qualifiers: nrf9151/ns&lt;br /&gt;-- Found host-tools: zephyr 0.17.0 (/opt/nordic/ncs/toolchains/5c0d382932/opt/zephyr-sdk)&lt;br /&gt;-- Found toolchain: zephyr 0.17.0 (/opt/nordic/ncs/toolchains/5c0d382932/opt/zephyr-sdk)&lt;br /&gt;-- Found Dtc: /opt/homebrew/bin/dtc (found suitable version &amp;quot;1.7.2&amp;quot;, minimum required is &amp;quot;1.4.6&amp;quot;)&lt;br /&gt;-- Found BOARD.dts: /Users/andy/nordic/ncs/v3.1.0/nrf/boards/nordic/thingy91x/thingy91x_nrf9151_ns.dts&lt;br /&gt;-- Generated zephyr.dts: /Users/andy/nordic/ncs/v3.1.0/nrf/samples/crypto/hmac/build/hmac/zephyr/zephyr.dts&lt;br /&gt;-- Generated pickled edt: /Users/andy/nordic/ncs/v3.1.0/nrf/samples/crypto/hmac/build/hmac/zephyr/edt.pickle&lt;br /&gt;-- Generated devicetree_generated.h: /Users/andy/nordic/ncs/v3.1.0/nrf/samples/crypto/hmac/build/hmac/zephyr/include/generated/zephyr/devicetree_generated.h&lt;/p&gt;
&lt;p&gt;warning: PM_DEVICE_RUNTIME (defined at soc/nordic/nrf54h/Kconfig.defconfig:40,&lt;br /&gt;subsys/pm/Kconfig:119) was assigned the value &amp;#39;y&amp;#39; but got the value &amp;#39;n&amp;#39;. Check these unsatisfied&lt;br /&gt;dependencies: ((PM_DEVICE &amp;amp;&amp;amp; SOC_SERIES_NRF54HX &amp;amp;&amp;amp; SOC_FAMILY_NORDIC_NRF) || PM_DEVICE) (=n). See&lt;br /&gt;&lt;a href="http://docs.zephyrproject.org/latest/kconfig.html#CONFIG_PM_DEVICE_RUNTIME"&gt;docs.zephyrproject.org/.../kconfig.html&lt;/a&gt; and/or look up&lt;br /&gt;PM_DEVICE_RUNTIME in the menuconfig/guiconfig interface. The Application Development Primer, Setting&lt;br /&gt;Configuration Values, and Kconfig - Tips and Best Practices sections of the manual might be helpful&lt;br /&gt;too.&lt;/p&gt;
&lt;p&gt;Parsing /Users/andy/nordic/ncs/v3.1.0/zephyr/Kconfig&lt;br /&gt;Loaded configuration &amp;#39;/Users/andy/nordic/ncs/v3.1.0/nrf/boards/nordic/thingy91x/thingy91x_nrf9151_ns_defconfig&amp;#39;&lt;br /&gt;Merged configuration &amp;#39;/Users/andy/nordic/ncs/v3.1.0/nrf/samples/crypto/hmac/prj.conf&amp;#39;&lt;br /&gt;Merged configuration &amp;#39;/Users/andy/nordic/ncs/v3.1.0/nrf/samples/crypto/hmac/boards/thingy91x_nrf9151_ns.conf&amp;#39;&lt;br /&gt;Merged configuration &amp;#39;/Users/andy/nordic/ncs/v3.1.0/nrf/samples/crypto/hmac/build/hmac/zephyr/.config.sysbuild&amp;#39;&lt;br /&gt;Configuration saved to &amp;#39;/Users/andy/nordic/ncs/v3.1.0/nrf/samples/crypto/hmac/build/hmac/zephyr/.config&amp;#39;&lt;br /&gt;Kconfig header saved to &amp;#39;/Users/andy/nordic/ncs/v3.1.0/nrf/samples/crypto/hmac/build/hmac/zephyr/include/generated/zephyr/autoconf.h&amp;#39;&lt;br /&gt;-- Found GnuLd: /opt/nordic/ncs/toolchains/5c0d382932/opt/zephyr-sdk/arm-zephyr-eabi/arm-zephyr-eabi/bin/ld.bfd (found version &amp;quot;2.38&amp;quot;)&lt;br /&gt;-- The C compiler identification is GNU 12.2.0&lt;br /&gt;-- The CXX compiler identification is GNU 12.2.0&lt;br /&gt;-- The ASM compiler identification is GNU&lt;br /&gt;-- Found assembler: /opt/nordic/ncs/toolchains/5c0d382932/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc&lt;br /&gt;=========== Generating psa_crypto_config ===============&lt;br /&gt;Backup: CONFIG_MBEDTLS_PSA_CRYPTO_SPM: False&lt;br /&gt;Backup: CONFIG_MBEDTLS_PSA_CRYPTO_C: False&lt;br /&gt;Backup: CONFIG_MBEDTLS_PSA_CRYPTO_KEY_ID_ENCODES_OWNER: False&lt;br /&gt;Backup: CONFIG_MBEDTLS_PLATFORM_SETUP_TEARDOWN_ALT: False&lt;br /&gt;Backup: CONFIG_MBEDTLS_THREADING_C: True&lt;br /&gt;Backup: CONFIG_MBEDTLS_THREADING_ALT: False&lt;br /&gt;=========== Checkpoint: backup ===============&lt;br /&gt;Restore: CONFIG_MBEDTLS_PSA_CRYPTO_SPM: False&lt;br /&gt;Restore: CONFIG_MBEDTLS_PSA_CRYPTO_C: False&lt;br /&gt;Restore: CONFIG_MBEDTLS_PSA_CRYPTO_KEY_ID_ENCODES_OWNER: False&lt;br /&gt;Restore: CONFIG_MBEDTLS_PLATFORM_SETUP_TEARDOWN_ALT: False&lt;br /&gt;Restore: CONFIG_MBEDTLS_THREADING_C: True&lt;br /&gt;Restore: CONFIG_MBEDTLS_THREADING_ALT: False&lt;br /&gt;=========== End psa_crypto_config ===============&lt;br /&gt;=========== Generating psa_crypto_library_config ===============&lt;br /&gt;Backup: CONFIG_MBEDTLS_PSA_CRYPTO_C: False&lt;br /&gt;Backup: CONFIG_MBEDTLS_PSA_CRYPTO_KEY_ID_ENCODES_OWNER: False&lt;br /&gt;Backup: CONFIG_MBEDTLS_PSA_CRYPTO_SPM: False&lt;br /&gt;Backup: CONFIG_MBEDTLS_USE_PSA_CRYPTO: True&lt;br /&gt;Backup: CONFIG_MBEDTLS_PLATFORM_PRINTF_ALT: False&lt;br /&gt;Backup: CONFIG_MBEDTLS_THREADING_C: True&lt;br /&gt;Backup: CONFIG_MBEDTLS_THREADING_ALT: False&lt;br /&gt;=========== Checkpoint: backup ===============&lt;br /&gt;Restore: CONFIG_MBEDTLS_PSA_CRYPTO_C: False&lt;br /&gt;Restore: CONFIG_MBEDTLS_PSA_CRYPTO_KEY_ID_ENCODES_OWNER: False&lt;br /&gt;Restore: CONFIG_MBEDTLS_PSA_CRYPTO_SPM: False&lt;br /&gt;Restore: CONFIG_MBEDTLS_USE_PSA_CRYPTO: True&lt;br /&gt;Restore: CONFIG_MBEDTLS_PLATFORM_PRINTF_ALT: False&lt;br /&gt;Restore: CONFIG_MBEDTLS_THREADING_C: True&lt;br /&gt;Restore: CONFIG_MBEDTLS_THREADING_ALT: False&lt;br /&gt;=========== End psa_crypto_library_config ===============&lt;br /&gt;-- Using ccache: /opt/homebrew/bin/ccache&lt;br /&gt;-- Found gen_kobject_list: /Users/andy/nordic/ncs/v3.1.0/zephyr/scripts/build/gen_kobject_list.py&lt;br /&gt;-- Configuring done (3.1s)&lt;br /&gt;-- Generating done (0.2s)&lt;br /&gt;-- Build files have been written to: /Users/andy/nordic/ncs/v3.1.0/nrf/samples/crypto/hmac/build/hmac&lt;br /&gt;Dropping partition &amp;#39;nrf_modem_lib_trace&amp;#39; since its size is 0.&lt;br /&gt;Dropping partition &amp;#39;nonsecure_storage&amp;#39; since it is empty.&lt;br /&gt;-- Configuring done (5.0s)&lt;br /&gt;-- Generating done (0.0s)&lt;br /&gt;-- Build files have been written to: /Users/andy/nordic/ncs/v3.1.0/nrf/samples/crypto/hmac/build&lt;br /&gt;-- west build: building application&lt;br /&gt;[5/10] Performing build step for &amp;#39;hmac&amp;#39;&lt;br /&gt;[1/278] Preparing syscall dependency handling&lt;/p&gt;
&lt;p&gt;[6/278] Generating include/generated/zephyr/version.h&lt;br /&gt;-- Zephyr version: 4.1.99 (/Users/andy/nordic/ncs/v3.1.0/zephyr), build: ncs-v3.1.0&lt;br /&gt;[12/278] Generating ../../tfm/CMakeCache.txt&lt;br /&gt;-- Found Git: /usr/bin/git (found version &amp;quot;2.50.1 (Apple Git-155)&amp;quot;)&lt;br /&gt;-- The C compiler identification is GNU 12.2.0&lt;br /&gt;-- The CXX compiler identification is GNU 12.2.0&lt;br /&gt;-- The ASM compiler identification is GNU&lt;br /&gt;-- Found assembler: /opt/nordic/ncs/toolchains/5c0d382932/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc&lt;br /&gt;-- Found Python3: /Users/andy/nrfenv/bin/python (found version &amp;quot;3.13.9&amp;quot;) found components: Interpreter&lt;br /&gt;-- Found Python3: /Users/andy/nrfenv/bin/python (found suitable version &amp;quot;3.13.9&amp;quot;, minimum required is &amp;quot;3.10&amp;quot;) found components: Interpreter&lt;br /&gt;-- Cache files will be written to: /Users/andy/Library/Caches/zephyr&lt;br /&gt;CMake Warning (dev) at /Users/andy/nordic/ncs/v3.1.0/nrf/modules/trusted-firmware-m/tfm_boards/nrf9120/CMakeLists.txt:24 (install):&lt;br /&gt; Policy CMP0177 is not set: install() DESTINATION paths are normalized. Run&lt;br /&gt; &amp;quot;cmake --help-policy CMP0177&amp;quot; for policy details. Use the cmake_policy&lt;br /&gt; command to set the policy and suppress this warning.&lt;br /&gt;This warning is for project developers. Use -Wno-dev to suppress it.&lt;/p&gt;
&lt;p&gt;-- Configuring done (0.5s)&lt;br /&gt;-- Generating done (0.0s)&lt;br /&gt;-- Build files have been written to: /Users/andy/nordic/ncs/v3.1.0/nrf/samples/crypto/hmac/build/hmac/tfm&lt;br /&gt;[17/278] Performing build step for &amp;#39;tfm&amp;#39;&lt;br /&gt;[137/141] Linking C executable bin/tfm_s.axf&lt;br /&gt;Memory region Used Size Region Size %age Used&lt;br /&gt; FLASH: 32092 B 32 KB 97.94%&lt;br /&gt; RAM: 10692 B 40 KB 26.10%&lt;br /&gt;[141/141] Linking C static library secure_fw/libtfm_s_veneers.a&lt;br /&gt;[19/278] Performing install step for &amp;#39;tfm&amp;#39;&lt;br /&gt;-- Install configuration: &amp;quot;MinSizeRel&amp;quot;&lt;br /&gt;----- Installing platform NS -----&lt;br /&gt;[278/278] Linking C executable zephyr/zephyr.elf&lt;br /&gt;Memory region Used Size Region Size %age Used&lt;br /&gt; FLASH: 70260 B 992 KB 6.92%&lt;br /&gt; RAM: 25104 B 203416 B 12.34%&lt;br /&gt; IDT_LIST: 0 GB 32 KB 0.00%&lt;br /&gt;Generating files from /Users/andy/nordic/ncs/v3.1.0/nrf/samples/crypto/hmac/build/hmac/zephyr/zephyr.elf for board: thingy91x&lt;br /&gt;[10/10] Generating ../merged.hex&lt;/p&gt;
&lt;p&gt;nrfenv  12:09  andy  ~/nordic/ncs/v3.1.0/nrf/samples/crypto/hmac  ◈ v3.1.0  west flash --recover&lt;br /&gt;-- west flash: rebuilding&lt;br /&gt;[0/5] Performing build step for &amp;#39;hmac&amp;#39;&lt;br /&gt;[0/14] Performing build step for &amp;#39;tfm&amp;#39;&lt;br /&gt;ninja: no work to do.&lt;br /&gt;[2/3] Performing install step for &amp;#39;tfm&amp;#39;&lt;br /&gt;-- Install configuration: &amp;quot;MinSizeRel&amp;quot;&lt;br /&gt;----- Installing platform NS -----&lt;br /&gt;[3/3] Completed &amp;#39;tfm&amp;#39;&lt;br /&gt;[4/5] cd /Users/andy/nordic/ncs/v3.1.0/nrf/samples/crypto/hmac/build/_sysbuild &amp;amp;&amp;amp; /opt/homebrew/bin/cmake -E true&lt;br /&gt;-- west flash: using runner nrfutil&lt;br /&gt;-- runners.nrfutil: reset after flashing requested&lt;br /&gt;Using board 000853003346&lt;br /&gt;-- runners.nrfutil: Recovering and erasing all flash memory.&lt;br /&gt;-- runners.nrfutil: Flashing file: /Users/andy/nordic/ncs/v3.1.0/nrf/samples/crypto/hmac/build/merged.hex&lt;br /&gt;-- runners.nrfutil: Connecting to probe&lt;br /&gt;-- runners.nrfutil: Recover&lt;br /&gt;-- runners.nrfutil: Erasing address ranges touched by firmware&lt;br /&gt;-- runners.nrfutil: Programming image&lt;br /&gt;-- runners.nrfutil: Verifying image&lt;br /&gt;-- runners.nrfutil: Reset&lt;br /&gt;-- runners.nrfutil: Board(s) with serial number(s) 853003346 flashed successfully.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Thingy91X - HMAC</title><link>https://devzone.nordicsemi.com/thread/558772?ContentTypeID=1</link><pubDate>Thu, 15 Jan 2026 09:25:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6dcc6e58-d0c0-4d1c-8c8a-4451aaaabb16</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Hi Andy, sorry for the late reply. Could you test building the project with the following:&amp;nbsp;&lt;code&gt;&lt;span&gt;west build -b thingy91x/nrf9151/ns -- -DSB_CONFIG_THINGY91X_NO_PREDEFINED_LAYOUT=y&lt;/span&gt;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;This will only work if you are using an external programmer i.e. programming through RTT.&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Øyvind&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Thingy91X - HMAC</title><link>https://devzone.nordicsemi.com/thread/557479?ContentTypeID=1</link><pubDate>Sat, 20 Dec 2025 08:29:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d6c6444b-f37b-43a5-bc52-14937506f466</guid><dc:creator>andychess</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;span&gt;&amp;Oslash;yvind,&lt;br /&gt;&lt;br /&gt;Thanks for the quick response.&lt;br /&gt;&lt;br /&gt;Apologies for not mentioning that I&amp;#39;m working with SDK v3.1.0 (and modem firmware 2.0.3).&amp;nbsp; &lt;br /&gt;&lt;br /&gt;We&amp;#39;re using the Thing91x as a prototype for a commercial product and the final version will have a simpler structure (nrf9151 + nrf7000) so it&amp;#39;s not critical to have HMAC working at this stage.&amp;nbsp; That said, as the Thingy91x is marketed as a prototyping device for cellular products, I would expect to be able to use most sdk features that we plan for the final design.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
[quote userid="77062" url="~/f/nordic-q-a/126229/thingy91x---hmac/557413"]&lt;div&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;The Thingy:91 X has some extra configurations and a pm_static that defines some memory regions for the HW which ensures that when you program the firmware through USB, it works correctly without updating the MCUboot bootloader.&lt;/span&gt;&lt;/div&gt;[/quote]
&lt;p&gt;&lt;span&gt;We&amp;#39;re logging and programming through RTT.&amp;nbsp; Does this give an opportunity to simplify things at all?&amp;nbsp; Can you point me to some resource on the subject, if it exists?&lt;br /&gt;&lt;br /&gt;Once we started hitting the -134 error in our own code, I simply built the nrf9151dk version in the samples folder (nrf/samples/crypto/hmac) and saw that it worked.&amp;nbsp; I then naively copied the board .conf file for the dk as you suggested.&amp;nbsp; This overruns the RAM by 300% on the Thingy91x, caused it seems by&amp;nbsp; &amp;nbsp;&lt;br /&gt;&lt;br /&gt;CONFIG_TFM_PROFILE_TYPE_NOT_SET=y&lt;br /&gt;&lt;br /&gt;Removing this and adding the HEAP_SIZE settings gives thingy91x_nrf9151_ns.conf as below:&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;CONFIG_PSA_CRYPTO_DRIVER_CC3XX=y&lt;/p&gt;
&lt;p&gt;# Mbedtls configuration&lt;br /&gt;CONFIG_MBEDTLS_ENABLE_HEAP=y&lt;br /&gt;CONFIG_MBEDTLS_HEAP_SIZE=8192&lt;br /&gt;&lt;br /&gt;This builds, but gives the output that we were getting in our own code.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;span&gt;[00:00:00.258,026] &amp;lt;inf&amp;gt; spi_nor: GD25LE255E@0: 32 MiBy flash&lt;br /&gt;*** Booting nRF Connect SDK v3.1.0-6c6e5b32496e ***&lt;br /&gt;*** Using Zephyr OS v4.1.99-1612683d4010 ***&lt;br /&gt;[00:00:00.299,346] &amp;lt;inf&amp;gt; hmac: Starting HMAC example...&lt;br /&gt;[00:00:00.299,346] &amp;lt;inf&amp;gt; hmac: Generating random HMAC key...&lt;br /&gt;[00:00:00.299,468] &amp;lt;inf&amp;gt; hmac: psa_generate_key failed! (Error: -134)&lt;br /&gt;[00:00:00.299,468] &amp;lt;inf&amp;gt; hmac: Example exited with error!&lt;br /&gt;&lt;br /&gt;I would really like to understand the issue here and the underlying cause.&amp;nbsp;I failed to find a single source in the documentation that gives a comprehensive overview of TF-M beyond the very basics.&amp;nbsp; Most of the information on specific CONFIGs seems to be quite scattered.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Andy&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Thingy91X - HMAC</title><link>https://devzone.nordicsemi.com/thread/557413?ContentTypeID=1</link><pubDate>Fri, 19 Dec 2025 09:41:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a89f04d0-2655-4376-ab6d-1ae2c32e3426</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
[quote user=""]The docs AI couldn&amp;#39;t find anything obviously wrong with the code, so I&amp;#39;m turning to a human for help:-).[/quote]
&lt;p&gt;Thanks for giving a shot and providing more input to our AI support. There are unfortunately some limitations. Good thing to reach out to us after searching first.&amp;nbsp;&lt;/p&gt;
[quote user=""]We&amp;#39;re trying to implement HMAC signing on a Thingy91X but getting stuck each time on -134 errors.[/quote]
&lt;div&gt;
&lt;div&gt;&lt;span&gt;What version of nRF Connect SDK are you working on?&lt;br /&gt;&lt;br /&gt;&lt;code&gt;#define&lt;/code&gt;&lt;/span&gt;&lt;code&gt;&lt;span&gt; NRF_ENOTSUP &lt;/span&gt;&lt;span&gt;134&lt;/span&gt;&lt;span&gt; /**&amp;lt; Not supported */&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;or in this case&amp;nbsp;&lt;code&gt;PSA_ERROR_NOT_SUPPORTED&lt;/code&gt; from&amp;nbsp;&lt;code&gt;modules/crypto/mbedtls/include/psa/crypto_values.h&lt;/code&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;/** The requested operation or a parameter is not supported
 * by this implementation.
 *
 * Implementations should return this error code when an enumeration
 * parameter such as a key type, algorithm, etc. is not recognized.
 * If a combination of parameters is recognized and identified as
 * not valid, return #PSA_ERROR_INVALID_ARGUMENT instead. */
#define PSA_ERROR_NOT_SUPPORTED         ((psa_status_t)-134)&lt;/pre&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;The Thingy:91 X has some extra configurations and a pm_static that defines some memory regions for the HW which ensures that when you program the firmware through USB, it works correctly without updating the MCUboot bootloader.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;This is why it is not directly supported out of the box.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;That said, if it works on the nRF9151DK it should work on the&amp;nbsp;&lt;/span&gt;&lt;span&gt;Thingy:91 X.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;span&gt;One setting that could throw the&amp;nbsp;&lt;code&gt;PSA_ERROR_NOT_SUPPORTED&lt;/code&gt; is the lack of heap size i.e.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;
&lt;div&gt;
&lt;div&gt;&lt;code&gt;&lt;span&gt;CONFIG_MBEDTLS_HEAP_SIZE&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;Looking at the board files in under boards folder, the Thingy:91 X is missing. You can try to copy&amp;nbsp;&lt;code&gt;nrf/samples/crypto/hmac/boards/nrf9151dk_nrf9151.conf&lt;/code&gt; and &lt;code&gt;nrf9151dk_nrf9151_ns.conf&lt;/code&gt; and rename to&amp;nbsp;&lt;code&gt;thingy91x_nrf9151.conf&lt;/code&gt; and&amp;nbsp;&lt;code&gt;thingy91x_nrf9151_ns.conf&lt;/code&gt; respectively. These files may include the settings needed.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;I&amp;#39;m not able to build the sample at all for the Thingy:91 X. Are you able to share you&amp;#39;re project?&lt;br /&gt;&lt;br /&gt;Kind regards,&lt;br /&gt;Øyvind&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>