Hi, I cannot compile because of the error below. Thank you in advance for any help.
I have updated the toolchain and sdk recently. Tried also with 2.6.1 and 2.7.0, the same error.
C:/ncs/v2.6.2/nrf/modules/trusted-firmware-m/tfm_boards/common/crypto_keys.c: In function 'tfm_plat_get_huk':
C:/ncs/v2.6.2/nrf/modules/trusted-firmware-m/tfm_boards/common/crypto_keys.c:35:44: error: 'HUK_KEYSLOT_MEXT' undeclared (first use in this function); did you mean 'HUK_KEYSLOT_KDR'?
35 | int err = hw_unique_key_derive_key(HUK_KEYSLOT_MEXT, NULL, 0, label, sizeof(label), buf,buf_len);
| ^~~~~~~~~~~~~~~~
| HUK_KEYSLOT_KDR
prj.conf (based on nrf9161_ns)
#### "debugging" ########################################## ### debug network timing # CONFIG_NET_LOG=y ### debug MQTT timing # CONFIG_MQTT_LOG_LEVEL_DBG=y ### debug optimizations (-Og) CONFIG_DEBUG=y CONFIG_DEBUG_OPTIMIZATIONS=y CONFIG_DEBUG_THREAD_INFO=y ### to try to debug unwanted soft resets (n=not resetting): CONFIG_RESET_ON_FATAL_ERROR=n # Enable SEGGER RTT CONFIG_LOG=y CONFIG_USE_SEGGER_RTT=y CONFIG_LOG_BACKEND_RTT=y # Increase the log buffer size (in bytes) CONFIG_LOG_BUFFER_SIZE=4096 # Enable asynchronous logging (optional, for better performance) CONFIG_LOG_MODE_DEFERRED=y # # CONFIG_LOG_MODE_IMMEDIATE=y # CONFIG_NVS_LOG_LEVEL_DBG=y # CPU load #CONFIG_CPU_LOAD_LOG_PERIODIC=y #CONFIG_CPU_LOAD_LOG_INTERVAL=1000 ### debugging threads CONFIG_THREAD_ANALYZER=y CONFIG_THREAD_ANALYZER_AUTO=y ### NVS CONFIG_FLASH=y CONFIG_FLASH_PAGE_LAYOUT=y CONFIG_NVS=y CONFIG_REBOOT=y CONFIG_MPU_ALLOW_FLASH_WRITE=y # CONFIG_REBOOT=n # ### SECURE TFM logging ### disabling logging of TF-M # CONFIG_TFM_LOG_LEVEL_SILENCE=y ### forward TF-M secure logging to the same UART as application logging (comment the previous) CONFIG_TFM_SECURE_UART=y CONFIG_TFM_SECURE_UART_SHARE_INSTANCE=y CONFIG_TFM_SECURE_UART0=y CONFIG_TFM_PARTITION_LOG_LEVEL_DEBUG=y CONFIG_TFM_SPM_LOG_LEVEL_DEBUG=y # Dump exception info. Must be combined with enabling log output. CONFIG_TFM_EXCEPTION_INFO_DUMP=y ############################################################# # CONFIG_NEWLIB_LIBC_NANO=n # Enable snprintf float CONFIG_NEWLIB_LIBC_FLOAT_PRINTF=y ### Possible solution for Fatal error??? # Don't use the minimal TF-M configuration as that doesn't support logging CONFIG_TFM_PROFILE_TYPE_NOT_SET=y ### Memory CONFIG_MAIN_STACK_SIZE=2048 CONFIG_HEAP_MEM_POOL_SIZE=4096 CONFIG_ISR_STACK_SIZE=4096 # try to increase MODEM library heap size: # CONFIG_NRF_MODEM_LIB_HEAP_SIZE=4096 # Modem trace CONFIG_AT_HOST_LIBRARY=y # uart CONFIG_UART_ASYNC_API=y # ! the following must be done not to loosing RX characters: assigning timer 2 to RX processing: CONFIG_UART_1_NRF_HW_ASYNC=y CONFIG_UART_1_NRF_HW_ASYNC_TIMER=2 # if dynamic uart configuration needed CONFIG_UART_USE_RUNTIME_CONFIGURE=y # Newlib CONFIG_NEWLIB_LIBC=y # Networking CONFIG_NETWORKING=y CONFIG_NET_NATIVE=n CONFIG_NET_SOCKETS_OFFLOAD=y CONFIG_NET_SOCKETS=y CONFIG_NET_SOCKETS_POSIX_NAMES=y # Modem library CONFIG_NRF_MODEM_LIB=y # LTE link control CONFIG_LTE_LINK_CONTROL=y CONFIG_LTE_NETWORK_MODE_LTE_M_NBIOT=y # MQTT CONFIG_MQTT_LIB=y CONFIG_MQTT_CLEAN_SESSION=y #ADC CONFIG_ADC=y #I2C, IMU CONFIG_I2C=y CONFIG_SENSOR=y