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
Copy file name to clipboardExpand all lines: NMSIS/ideprojects/iar/README.md
+15-9Lines changed: 15 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,8 @@
4
4
> This NMSIS IAR prebuilt projects maybe out of date, you may need to add NMSIS DSP and NN source code into IAR projects
5
5
> by yourself.
6
6
7
+
## Introduction
8
+
7
9
In this folder, we provided a prebuilt IAR workspace(for IAR RISC-V version 3.30.1) to build NMSIS DSP/NN libraries.
8
10
9
11
> You can refer to these demo projects to build your own iar projects.
@@ -30,6 +32,8 @@ These projects demonstrated the following features:
30
32
> and these prebuilt project used NMSIS Core/DSP/NN header files provided in Nuclei SDK which is the NMSIS 1.4.0
31
33
> release version, and default using library is also Nuclei SDK prebuilt NMSIS 1.4.0 DSP/NN GCC library.
32
34
35
+
## How to use
36
+
33
37
How to build the projects in **nmsis_dsp_examples.eww** and **nmsis_nn_examples.eww** workspace:
34
38
35
39
* Clone the ``NMSIS`` and ``nuclei-sdk`` respository
@@ -92,7 +96,15 @@ After done, the ``nuclei-sdk`` and ``NMSIS`` directory must place **in the same
92
96
93
97
* After example built successfully, the executable target is in `Your path\NMSIS\NMSIS\ideprojects\iar\examples\Debug\Exe` with **.out** which can be downloaded to our FPGA evaluation board.
94
98
95
-
**Some Notes**:
99
+
You can directly try with these prebuilt IAR workspaces by clicking ``nmsis_library.eww``/``nmsis_dsp_examples.eww``/``nmsis_nn_examples.eww`` after you have installed [IAR Workbench](https://www.iar.com/riscv).
100
+
101
+

102
+
103
+

104
+
105
+
For more details about how to use IAR workbench, please refer to its user guides.
106
+
107
+
## FAQs
96
108
97
109
***nn_cifar10_example** and **riscv_linear_interp_example** use the linker script `Your path\NMSIS\NMSIS\ideprojects\iar\linker\iar_evalsoc_ilm_512K.icf`, while by default others use the one in `Your path\nuclei-sdk\SoC\evalsoc\Board\nuclei_fpga_eval\Source\IAR`:
98
110
* nn_cifar10_example takes more than 64KBytes rom/ram size, so it uses `iar_evalsoc_ilm_512K.icf` where set ROM and RAM to 512KBytes(our Evaluation SoC's best config bitstream ilm/dlm size)
@@ -109,14 +121,8 @@ After done, the ``nuclei-sdk`` and ``NMSIS`` directory must place **in the same
109
121
110
122
> define region RAM_region32 = mem:[from 0x90000000 to 0x9007FFFF];
111
123
112
-
* Stack and heap size is 0x1000(4KBytes), you can adapt it according to your application in IAR project settings: `Options->General Options->Code Generation->Stack/Heap`.
124
+
* Stack and heap size in IAR is **0x1000(4KBytes)**, you can adapt it according to your application in IAR project settings: `Options->General Options->Code Generation->Stack/Heap`.
113
125
114
126
* The examples build with **header files** from `Your path\nuclei-sdk\NMSIS`, please check whether the version is same with `Your path\NMSIS\NMSIS`, if not, sync it according to `Your path\NMSIS\NMSIS`.
115
127
116
-
You can directly try with these iar workspaces by clicking nmsis_library.eww/nmsis_dsp_examples.eww/nmsis_nn_examples.eww after you have installed [IAR Workbench](https://www.iar.com/riscv).
117
-
118
-

119
-
120
-

121
-
122
-
For more details about how to use IAR workbench, please refer to its user guides.
128
+
*[IAR IDE shows that Fatal Error\[Li001\]: could not open file ideprojects\iar\library\prebuilt\libnmsis_dsp_rv32imafdc.a](https://github.com/Nuclei-Software/NMSIS/issues/4)
0 commit comments