Docs: Fixed minor formatting error in IAR build instructions
Added supported toolchain versions.
Signed-off-by: TTornblom <thomas.tornblom@iar.com>
Change-Id: I01f9d5a6d12f1e1032776da78dc52e9278bd4e18
diff --git a/docs/user_guides/tfm_build_instruction_iar.rst b/docs/user_guides/tfm_build_instruction_iar.rst
index fdb0a47..847587a 100644
--- a/docs/user_guides/tfm_build_instruction_iar.rst
+++ b/docs/user_guides/tfm_build_instruction_iar.rst
@@ -9,6 +9,8 @@
Notes for building with IARARM
------------------------------
+ IAR Embedded Workbench for ARM (EWARM) versions 8.42 or later are required.
+
Currently the MUSCA_B1, MUSCA_S1 and SSE-200_AWS targets are not supported with IARARM,
due to lack of testing.
@@ -31,13 +33,15 @@
For mbed-crypto (CMakeLists.txt):
- if(CMAKE_COMPILER_IS_IAR)
-- set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} --warn_about_c_style_casts --warnings_are_errors -Ohz")
-+ set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} --warn_about_c_style_casts")
-+ set(CMAKE_C_FLAGS_RELEASE "-Ohz")
-+ set(CMAKE_C_FLAGS_DEBUG "--debug -On")
-+ set(CMAKE_C_FLAGS_CHECK "--warnings_are_errors")
- endif(CMAKE_COMPILER_IS_IAR)
+.. code-block:: bash
+
+ if(CMAKE_COMPILER_IS_IAR)
+ - set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} --warn_about_c_style_casts --warnings_are_errors -Ohz")
+ + set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} --warn_about_c_style_casts")
+ + set(CMAKE_C_FLAGS_RELEASE "-Ohz")
+ + set(CMAKE_C_FLAGS_DEBUG "--debug -On")
+ + set(CMAKE_C_FLAGS_CHECK "--warnings_are_errors")
+ endif(CMAKE_COMPILER_IS_IAR)
Build steps: