You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1. (Python3 is needed) Run `iar_gen.py` to generate .ipcf files of examples:
209
+
1. (Python3 is needed) Run ``iar_gen.py`` to generate .ipcf files of examples:
207
210
208
211
.. code-block::
209
212
@@ -212,3 +215,15 @@ Run examples
212
215
213
216
2. Open `Project -> Add project Connection ...`, click `OK`, choose `tinyusb\\examples\\(.ipcf of example)`.
214
217
For example `C:\\tinyusb\\examples\\device\\cdc_msc\\iar_cdc_msc.ipcf`
218
+
219
+
Native CMake support (9.50.1+)
220
+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
221
+
222
+
With 9.50.1 release, IAR added experimental native CMake support (strangely not mentioned in public release note). Now it's possible to import CMakeLists.txt then build and debug as a normal project.
223
+
224
+
Following these steps:
225
+
226
+
1. Add IAR compiler binary path to system ``PATH`` environment variable, such as ``C:\Program Files\IAR Systems\Embedded Workbench 9.2\arm\bin``.
227
+
2. Create new project in IAR, in Tool chain dropdown menu, choose CMake for Arm then Import ``CMakeLists.txt`` from chosen example directory.
228
+
3. Set up board option in ``Option - CMake/CMSIS-TOOLBOX - CMake``, for example :code:`-DBOARD=stm32f439nucleo -DTOOLCHAIN=iar`, **Uncheck 'Override tools in env'**.
229
+
4. (For debug only) Choose correct CPU model in ``Option - General Options - Target``, to profit register and memory view.
0 commit comments