App: Fix TF-M Application example

Signed-off-by: Anton Komlev <anton.komlev@arm.com>
Change-Id: Ie946c15371ad4b7854595a38f19c8357f4f4ea59
diff --git a/examples/tf-m-example-ns-app/CMakeLists.txt b/examples/tf-m-example-ns-app/CMakeLists.txt
index 386ea77..1e93790 100644
--- a/examples/tf-m-example-ns-app/CMakeLists.txt
+++ b/examples/tf-m-example-ns-app/CMakeLists.txt
@@ -51,6 +51,13 @@
         tfm_api_ns
 )
 
+if (CONFIG_TFM_USE_TRUSTZONE)
+    target_link_libraries(tfm_ns
+        PRIVATE
+            tfm_api_ns_tz
+    )
+endif()
+
 set_target_properties(tfm_ns PROPERTIES
     SUFFIX ".axf"
     RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin"
diff --git a/examples/tf-m-example-ns-app/main.c b/examples/tf-m-example-ns-app/main.c
index 8c1f7dc..9428c7b 100644
--- a/examples/tf-m-example-ns-app/main.c
+++ b/examples/tf-m-example-ns-app/main.c
@@ -63,7 +63,7 @@
     printf("Hello TF-M world\r\n");
 
     uint32_t fw_version = psa_framework_version();
-    printf("FW  version = %d\r\n", fw_version);
+    printf("PSA Framework Version = %d.%d\r\n", fw_version >> 8, fw_version & 0xFF);
 
     uint8_t number;
     printf("Testing psa get random number...\r\n");