quickstart.rst 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550
  1. .. _quickstart:
  2. Quick Startup
  3. =============
  4. .. _quickstart_using_nside:
  5. Use Nuclei N100 SDK in Nuclei Studio
  6. ------------------------------------
  7. You can download **Nuclei Studio IDE >= 2025.02** from |nuclei_download_center|, and follow
  8. `Nuclei Studio and Nuclei Tools User Guide`_ to learn how to use it.
  9. But if you want to use latest source code of Nuclei N100 SDK, please follow the rest
  10. part of this guide to build and run using Nuclei N100 SDK Build System in Makefile.
  11. .. _quickstart_setup_tools_env:
  12. Setup Tools and Environment
  13. ---------------------------
  14. To start to use Nuclei N100 SDK, you need to install the following tools:
  15. .. _quickstart_setup_tools_env_nside:
  16. Use Prebuilt Tools in Nuclei Studio
  17. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  18. Since **2020.10** release version of Nuclei Studio, you just need to download the
  19. **Nuclei Studio IDE** from |nuclei_download_center| for your development OS, and
  20. no need to do the following steps below, the prebuilt tools are already included.
  21. For example:
  22. * In Windows, if you have extracted the Nuclei Studio IDE to ``D:\Software\NucleiStudio_IDE_202502``,
  23. then you can find the prebuilt tools in ``D:\Software\NucleiStudio_IDE_202502\NucleiStudio\toolchain``.
  24. * In Linux, if you have extracted the Nuclei Studio IDE to ``/home/labdev/NucleiStudio_IDE_202502``,
  25. then you can find the prebuilt tools in ``/home/labdev/NucleiStudio_IDE_202502/NucleiStudio/toolchain``.
  26. You can also update tools located in the Nuclei Studio prebuilt tools ``toolchain`` by downloading newer version
  27. from `Nuclei Tools`_ and replace it.
  28. If you have downloaded and extracted the Nuclei Studio, then you can jump to :ref:`quickstart_get_set_nuclei_sdk` and ignore below steps.
  29. .. _quickstart_get_set_nuclei_sdk:
  30. Get and Setup Nuclei N100 SDK
  31. -----------------------------
  32. The source code of Nuclei N100 SDK is maintained in |github| and |gitee|.
  33. * We mainly maintained github version, and gitee version is mirrored, just for fast access in China.
  34. * Check source code in |github_nuclei_sdk| or |gitee_nuclei_sdk| according to your network status.
  35. * Stable version of Nuclei N100 SDK is maintained in **master** version, if you want release version of **Nuclei N100 SDK**,
  36. please check in |github_nuclei_sdk_release|.
  37. **Here are the steps to clone the latest source code from Github:**
  38. * Make sure you have installed Git tool, see https://git-scm.com/download/
  39. * Then open your terminal, and make sure git command can be accessed
  40. * Run ``git clone -b master_n100 https://github.com/Nuclei-Software/nuclei-sdk nuclei-n100-sdk`` to clone source code
  41. into ``nuclei-n100-sdk`` folder
  42. .. note::
  43. - **develop_n100** branch is develop branch for Nuclei 100 series RISC-V CPU support.
  44. - **master_n100** branch is stable branch for Nuclei 100 series RISC-V CPU support.
  45. - If you have no access to github.com, you can also use command
  46. ``git clone -b master_n100 https://gitee.com/Nuclei-Software/nuclei-sdk nuclei-n100-sdk`` to clone from gitee.
  47. - If you have no internet access, you can also use pre-downloaded ``nuclei-n100-sdk`` code,
  48. and use it.
  49. - If the backup repo is not up to date, you can import github repo in gitee by yourself, see
  50. https://gitee.com/projects/import/url
  51. * Create tool environment config file for Nuclei N100 SDK
  52. .. note::
  53. If you want to use **Terapines ZCC** toolchain, you can download it from https://www.terapines.com/, or use
  54. **Nuclei Studio >= 2025.02**, a **Terapines ZCC Lite** version is integrated in **<NucleiStudio>/toolchain/zcc** folder,
  55. and you also need to add extra **PATH** into your environment, like this:
  56. - **Windows**: execute ``set PATH=\path\to\zcc\bin;%PATH%`` in windows cmd terminal before run Nuclei SDK
  57. - **Linux**: execute ``set PATH=/path/to/zcc/bin:$PATH`` in linux shell terminal before build Nuclei SDK
  58. - **Windows**
  59. If you want to use Nuclei N100 SDK in **Windows Command Prompt** terminal, you need to
  60. create ``setup_config.bat`` in ``nuclei-n100-sdk`` folder, and open this file
  61. your editor, and paste the following content, assuming you followed
  62. :ref:`quickstart_setup_tools_env`, and prebuilt tools located in
  63. ``D:\Software\NucleiStudio_IDE_202502\NucleiStudio\toolchain``,
  64. otherwise please use your correct tool root path.
  65. .. code-block:: bat
  66. set NUCLEI_TOOL_ROOT=D:\Software\NucleiStudio_IDE_202502\NucleiStudio\toolchain
  67. If you want to use Nuclei N100 SDK in **Windows PowerShell** terminal, you need to create
  68. a ``setup_config.ps1`` in ``nuclei-n100-sdk`` folder, and edit this file with content below
  69. if your prebuilt tools are located in ``D:\Software\NucleiStudio_IDE_202502\NucleiStudio\toolchain``:
  70. .. code-block:: ps1
  71. $NUCLEI_TOOL_ROOT="D:\Software\NucleiStudio_IDE_202502\NucleiStudio\toolchain"
  72. - **Linux**
  73. Create ``setup_config.sh`` in ``nuclei-n100-sdk`` folder, and open this file
  74. your editor, and paste the following content, assuming you followed
  75. :ref:`quickstart_setup_tools_env` and prebuilt tools located in
  76. ``/home/labdev/NucleiStudio_IDE_202502/NucleiStudio/toolchain``,
  77. otherwise please use your correct tool root path.
  78. .. code-block:: shell
  79. NUCLEI_TOOL_ROOT=/home/labdev/NucleiStudio_IDE_202502/NucleiStudio/toolchain
  80. .. _quickstart_buildrundebug_app:
  81. Build, Run and Debug Sample Application
  82. ---------------------------------------
  83. Assume you have followed steps in :ref:`quickstart_get_set_nuclei_sdk` to clone
  84. source code and create files below:
  85. * ``setup_config.bat`` for run in **Windows Command Prompt** terminal
  86. * ``setup_config.ps1`` for run in **Windows PowerShell** terminal
  87. * ``setup_config.sh`` for run in **Linux Bash** terminal
  88. To build, run and debug application, you need to open command terminal in ``nuclei-n100-sdk``
  89. folder.
  90. * For **Windows** users, you can open **Windows Command Prompt** terminal and cd to ``nuclei-n100-sdk`` folder,
  91. then run the following commands to setup build environment for Nuclei N100 SDK, the output will
  92. be similar as this screenshot :ref:`figure_quickstart_6`:
  93. .. code-block:: bat
  94. :linenos:
  95. setup.bat
  96. echo %PATH%
  97. where riscv64-unknown-elf-gcc openocd make rm
  98. make help
  99. .. _figure_quickstart_6:
  100. .. figure:: /asserts/images/nuclei_sdk_open_cmd.png
  101. :width: 80 %
  102. :align: center
  103. :alt: Setup Build Environment for Nuclei N100 SDK in Windows Command Prompt
  104. Setup Build Environment for Nuclei N100 SDK in Windows Command Prompt
  105. * For **Linux** users, you can open **Linux Bash** terminal and cd to ``nuclei-n100-sdk`` folder,
  106. then run the following commands to setup build environment for Nuclei N100 SDK, the output will
  107. be similar as this screenshot :ref:`figure_quickstart_7`:
  108. .. code-block:: shell
  109. :linenos:
  110. source setup.sh
  111. echo $PATH
  112. which riscv64-unknown-elf-gcc openocd make rm
  113. make help
  114. .. _figure_quickstart_7:
  115. .. figure:: /asserts/images/nuclei_sdk_open_shell.png
  116. :width: 80 %
  117. :align: center
  118. :alt: Setup Build Environment for Nuclei N100 SDK in Linux Bash
  119. Setup Build Environment for Nuclei N100 SDK in Linux Bash
  120. .. note::
  121. * Only first line ``setup.bat`` or ``source setup.sh`` are required before build, run or debug application.
  122. The ``setup.bat`` and ``setup.sh`` are just used to append Nuclei RISC-V GCC Toolchain, OpenOCD and Build-Tools
  123. binary paths into environment variable **PATH**
  124. * line 2-4 are just used to check whether build environment is setup correctly, especially the **PATH** of
  125. Nuclei Tools are setup correctly, so we can use the ``riscv64-unknown-elf-xxx``, ``openocd``, ``make`` and ``rm``
  126. tools
  127. * If you know how to append Nuclei RISC-V GCC Toolchain, OpenOCD and Build-Tools binary paths to **PATH** variable
  128. in your OS environment, you can also put the downloaded Nuclei Tools as you like, and no need to run ``setup.bat``
  129. or ``source setup.sh``
  130. * If you want to run in **Windows PowerShell**, please run ``. .\setup.ps1`` instead of ``setup.bat``, and
  131. ``setup_config.ps1`` must be created as described in :ref:`quickstart_get_set_nuclei_sdk`.
  132. Here for a quick startup, this guide will take board :ref:`design_board_nuclei_fpga_eval`
  133. for example to demostrate how to setup hardware, build run and debug application in Windows.
  134. The demo application, we will take ``application/baremetal/helloworld`` for example.
  135. First of all, please reuse previously build environment command terminal.
  136. Run ``cd application/baremetal/helloworld`` to cd the ``helloworld`` example folder.
  137. Hardware Preparation
  138. ~~~~~~~~~~~~~~~~~~~~
  139. Please check :ref:`design_board` and find your board's page, and follow **Setup** section
  140. to setup your hardware, mainly **JTAG debugger driver setup and on-board connection setup**.
  141. * Power on the :ref:`design_board_nuclei_fpga_eval` board, and use USB Type-C data cable to connect the board and your PC,
  142. make sure you have setup the JTAG driver correctly, and you can see JTAG port and serial port.
  143. * Open a UART terminal tool such as |teraterm| or |minicom|, and minitor the serial port of the Board,
  144. the UART baudrate is *115200 bps*
  145. * If you are building example for your own SoC and Board, please pass correct :ref:`develop_buildsystem_var_soc` and
  146. :ref:`develop_buildsystem_var_board` make variable. eg. If you SoC is ``evalsoc`` and Board is ``nuclei_fpga_eval``,
  147. just pass ``SOC=evalsoc BOARD=nuclei_fpga_eval`` to make instead of the one mentioned below. If your default board
  148. for this ``evalsoc`` is ``nuclei_fpga_eval``, then you don't need to pass ``BOARD=nuclei_fpga_eval``.
  149. * If you don't pass any SOC or BOARD via make, ``evalsoc`` and ``nuclei_fpga_eval`` are default SoC and Board.
  150. Build Application
  151. ~~~~~~~~~~~~~~~~~
  152. We need to build application for this board :ref:`design_board_nuclei_fpga_eval` using this command line:
  153. .. note::
  154. * Since below steps are taking evalsoc SoC based board nuclei_fpga_eval to do demostration,
  155. and when you pass ``SOC=evalsoc``, the default BOARD will be ``nuclei_fpga_eval``, so
  156. do you don't need to pass ``BOARD=nuclei_fpga_eval``
  157. * You can check default SOC/BOARD/CORE information passed by using make target ``info``, eg.
  158. ``make SOC=evalsoc info``, for more information, please check :ref:`develop_buildsystem_make_targets`.
  159. .. code-block:: shell
  160. # clean application if build in other application before or build for other board
  161. make SOC=evalsoc clean
  162. # first build choice: using full command line
  163. make SOC=evalsoc all
  164. # second build choice: using simple command line, since when SOC=evalsoc, default BOARD is nuclei_fpga_eval
  165. make SOC=evalsoc all
  166. Here is the sample output of this command:
  167. .. code-block::
  168. # NOTICE: You can check this configuration whether it matched your desired configuration
  169. Current Configuration: TOOLCHAIN=nuclei_gnu RISCV_ARCH=rv32ic RISCV_ABI=ilp32 RISCV_TUNE=nuclei-100-series RISCV_CMODEL=medlow SOC=evalsoc BOARD=nuclei_fpga_eval CORE=n100 ARCH_EXT= DOWNLOAD=ilm STDCLIB=newlib_nano SMP= BOOT_HARTID=
  170. "Assembling : " ../../../SoC/evalsoc/Common/Source/GCC/intexc_evalsoc.S
  171. "Assembling : " ../../../SoC/evalsoc/Common/Source/GCC/startup_evalsoc.S
  172. ... ...
  173. "Compiling : " ../../../SoC/evalsoc/Common/Source/Stubs/write.c
  174. "Compiling : " ../../../SoC/evalsoc/Common/Source/evalsoc_soc.c
  175. "Compiling : " ../../../SoC/evalsoc/Common/Source/system_evalsoc.c
  176. "Compiling : " main.c
  177. "Linking : " helloworld.elf
  178. text data bss dec hex filename
  179. 13022 112 2290 15424 3c40 helloworld.elf
  180. As you can see, that when the application is built successfully, the elf will be generated
  181. and will also print the size information of the ``helloworld.elf``.
  182. .. note::
  183. * In order to make sure that there is no application build before, you can run
  184. ``make SOC=evalsoc clean`` to clean previously built
  185. objects and build dependency files.
  186. * About the make variable or option(**SOC**, **BOARD**) passed to make command, please refer
  187. to :ref:`develop_buildsystem`.
  188. Run Application
  189. ~~~~~~~~~~~~~~~
  190. If the application is built successfully for this board :ref:`design_board_nuclei_fpga_eval`,
  191. then you can run it using this command line:
  192. .. code-block:: shell
  193. make SOC=evalsoc upload
  194. Here is the sample output of this command:
  195. .. code-block::
  196. "Download and run helloworld.elf"
  197. riscv64-unknown-elf-gdb helloworld.elf -ex "set remotetimeout 240" \
  198. -ex "target remote | openocd -c \"gdb_port pipe; log_output openocd.log\" -f ../../../SoC/evalsoc/Board/nuclei_fpga_eval/openocd_evalsoc.cfg" \
  199. --batch -ex "monitor halt" -ex "monitor halt" -ex "monitor flash protect 0 0 last off" -ex "load" -ex "monitor resume" -ex "monitor shutdown" -ex "quit"
  200. D:\Software\Nuclei\gcc\bin\riscv64-unknown-elf-gdb.exe: warning: Couldn't determine a path for the index cache directory.
  201. Nuclei OpenOCD, 64-bit Open On-Chip Debugger 0.10.0+dev-00014-g0eae03214 (2019-12-12-07:43)
  202. Licensed under GNU GPL v2
  203. For bug reports, read
  204. http://openocd.org/doc/doxygen/bugs.html
  205. _start0800 () at ../../../SoC/evalsoc/Common/Source/GCC/startup_evalsoc.S:359
  206. 359 j 1b
  207. cleared protection for sectors 0 through 127 on flash bank 0
  208. Loading section .init, size 0x266 lma 0x8000000
  209. Loading section .text, size 0x2e9c lma 0x8000280
  210. Loading section .rodata, size 0x1f0 lma 0x8003120
  211. Loading section .data, size 0x70 lma 0x8003310
  212. Start address 0x800015c, load size 13154
  213. Transfer rate: 7 KB/sec, 3288 bytes/write.
  214. shutdown command invoked
  215. A debugging session is active.
  216. Inferior 1 [Remote target] will be detached.
  217. Quit anyway? (y or n) [answered Y; input not from terminal]
  218. [Inferior 1 (Remote target) detached]
  219. As you can see the application is uploaded successfully using ``openocd`` and ``gdb``,
  220. then you can check the output in your UART terminal, see :ref:`figure_quickstart_8`.
  221. .. _figure_quickstart_8:
  222. .. figure:: /asserts/images/nuclei_app_helloworld_uart.png
  223. :width: 80 %
  224. :align: center
  225. :alt: Nuclei N100 SDK Hello World Application UART Output
  226. Nuclei N100 SDK Hello World Application UART Output
  227. Debug Application
  228. ~~~~~~~~~~~~~~~~~
  229. If the application is built successfully for this board :ref:`design_board_nuclei_fpga_eval`,
  230. then you can debug it using this command line:
  231. .. code-block:: shell
  232. make SOC=evalsoc debug
  233. 1. The program is not loaded automatically when you enter to debug state, just in case you want to
  234. debug the program running on the board.
  235. .. code-block::
  236. "Download and debug helloworld.elf"
  237. riscv64-unknown-elf-gdb helloworld.elf -ex "set remotetimeout 240" \
  238. -ex "target remote | openocd -c \"gdb_port pipe; log_output openocd.log\" -f ../../../SoC/evalsoc/Board/nuclei_fpga_eval/openocd_evalsoc.cfg"
  239. D:\Software\Nuclei\gcc\bin\riscv64-unknown-elf-gdb.exe: warning: Couldn't determine a path for the index cache directory.
  240. GNU gdb (GDB) 8.3.0.20190516-git
  241. Copyright (C) 2019 Free Software Foundation, Inc.
  242. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
  243. This is free software: you are free to change and redistribute it.
  244. There is NO WARRANTY, to the extent permitted by law.
  245. Type "show copying" and "show warranty" for details.
  246. This GDB was configured as "--host=i686-w64-mingw32 --target=riscv64-unknown-elf".
  247. Type "show configuration" for configuration details.
  248. For bug reporting instructions, please see:
  249. <http://www.gnu.org/software/gdb/bugs/>.
  250. Find the GDB manual and other documentation resources online at:
  251. <http://www.gnu.org/software/gdb/documentation/>.
  252. --Type <RET> for more, q to quit, c to continue without paging--
  253. For help, type "help".
  254. Type "apropos word" to search for commands related to "word"...
  255. Reading symbols from helloworld.elf...
  256. Remote debugging using | openocd -c \"gdb_port pipe; log_output openocd.log\" -f ../../../SoC/evalsoc/Board/nuclei_fpga_eval/openocd_evalsoc.cfg
  257. Nuclei OpenOCD, 64-bit Open On-Chip Debugger 0.10.0+dev-00014-g0eae03214 (2019-12-12-07:43)
  258. Licensed under GNU GPL v2
  259. For bug reports, read
  260. http://openocd.org/doc/doxygen/bugs.html
  261. _start0800 () at ../../../SoC/evalsoc/Common/Source/GCC/startup_evalsoc.S:359
  262. 359 j 1b
  263. 2. If you want to load the built application, you can type ``load`` to load the application.
  264. .. code-block::
  265. (gdb) load
  266. Loading section .init, size 0x266 lma 0x8000000
  267. Loading section .text, size 0x2e9c lma 0x8000280
  268. Loading section .rodata, size 0x1f0 lma 0x8003120
  269. Loading section .data, size 0x70 lma 0x8003310
  270. Start address 0x800015c, load size 13154
  271. Transfer rate: 7 KB/sec, 3288 bytes/write.
  272. 3. If you want to set a breakpoint at *main*, then you can type ``b main`` to set a breakpoint.
  273. .. code-block::
  274. (gdb) b main
  275. Breakpoint 1 at 0x8001b04: file helloworld.c, line 85.
  276. 4. If you want to set more breakpoints, you can do as you like.
  277. 5. Then you can type ``c``, then the program will stop at **main**
  278. .. code-block::
  279. (gdb) c
  280. Continuing.
  281. Note: automatically using hardware breakpoints for read-only addresses.
  282. Breakpoint 1, main () at helloworld.c:85
  283. 85 srand(__get_rv_cycle() | __get_rv_instret() | __RV_CSR_READ(CSR_MCYCLE));
  284. 6. Then you can step it using ``n`` (short of next) or ``s`` (short of step)
  285. .. code-block::
  286. (gdb) n
  287. 86 uint32_t rval = rand();
  288. (gdb) n
  289. 87 rv_csr_t misa = __RV_CSR_READ(CSR_MISA);
  290. (gdb) s
  291. 89 printf("MISA: 0x%lx\r\n", misa);
  292. (gdb) n
  293. 90 print_misa();
  294. (gdb) n
  295. 92 printf("Hello World!\r\n");
  296. (gdb) n
  297. 93 printf("Hello World!\r\n");
  298. 7. If you want to quit debugging, then you can press ``CTRL - c``, and type ``q`` to quit debugging.
  299. .. code-block::
  300. (gdb) Quit
  301. (gdb) q
  302. A debugging session is active.
  303. Inferior 1 [Remote target] will be detached.
  304. Quit anyway? (y or n) y
  305. Detaching from program: D:\workspace\Sourcecode\nuclei-n100-sdk\application\baremetal\helloworld\helloworld.elf, Remote target
  306. Ending remote debugging.
  307. [Inferior 1 (Remote target) detached]
  308. .. note::
  309. * More about how to debug using gdb, you can refer to the `GDB User Manual`_.
  310. * If you want to debug using Nuclei Studio, you can open Nuclei Studio, and create a debug configuration,
  311. and choose the application elf, and download and debug in IDE.
  312. Create helloworld Application
  313. -----------------------------
  314. If you want to create your own ``helloworld`` application, it is also very easy.
  315. There are several ways to achieve it, see as below:
  316. * **Method 1:** You can find a most similar sample application folder and copy it, such as
  317. ``application/baremetal/helloworld``, you can copy and rename it as ``application/baremetal/hello``
  318. - Open the ``Makefile`` in ``application/baremetal/hello``
  319. 1. Change ``TARGET = helloworld`` to ``TARGET = hello``
  320. - Open the ``helloworld.c`` in ``application/baremetal/hello``, and replace the content using code below:
  321. .. code-block:: c
  322. :linenos:
  323. // See LICENSE for license details.
  324. #include <stdio.h>
  325. #include <time.h>
  326. #include <stdlib.h>
  327. #include "nuclei_sdk_soc.h"
  328. int main(void)
  329. {
  330. printf("Hello World from Nuclei RISC-V Processor!\r\n");
  331. return 0;
  332. }
  333. - Save all the changes, and then you can follow the steps described
  334. in :ref:`quickstart_buildrundebug_app` to run or debug this new application.
  335. * **Method 2:** You can also do it from scratch, with just create simple ``Makefile`` and ``main.c``
  336. - Create new folder named ``hello`` in ``application/baremetal``
  337. - Create two files named ``Makefile`` and ``main.c``
  338. - Open ``Makefile`` and edit the content as below:
  339. .. code-block:: makefile
  340. :linenos:
  341. TARGET = hello
  342. NUCLEI_SDK_ROOT = ../../..
  343. SRCDIRS = .
  344. INCDIRS = .
  345. include $(NUCLEI_SDK_ROOT)/Build/Makefile.base
  346. - Open ``main.c`` and edit the content as below:
  347. .. code-block:: c
  348. :linenos:
  349. // See LICENSE for license details.
  350. #include <stdio.h>
  351. #include <time.h>
  352. #include <stdlib.h>
  353. #include "nuclei_sdk_soc.h"
  354. int main(void)
  355. {
  356. printf("Hello World from Nuclei RISC-V Processor!\r\n");
  357. return 0;
  358. }
  359. - Save all the changes, and then you can follow the steps described
  360. in :ref:`quickstart_buildrundebug_app` to run or debug this new application.
  361. .. note::
  362. * If your are looking for how to run for other boards, please ref to :ref:`design_board`.
  363. * Please refer to :ref:`develop_appdev` and :ref:`develop_buildsystem` for more information.
  364. * If you want to access SoC related APIs, please use ``nuclei_sdk_soc.h`` header file.
  365. * If you want to access SoC and board related APIs, please use ``nuclei_sdk_hal.h`` header file.
  366. * For simplified application development, you can use ``nuclei_sdk_hal.h`` directly.
  367. .. _quickstart_advanced_usage:
  368. Advanced Usage
  369. --------------
  370. For more advanced usage, please follow the items as below:
  371. * Click :ref:`design` to learn about Nuclei N100 SDK Design and Architecture, Board and SoC support documentation.
  372. * Click :ref:`develop` to learn about Nuclei N100 SDK Build System and Application Development.
  373. * Click :ref:`design_app` to learn about each application usage and expected output.
  374. .. note::
  375. * If you met some issues in using this guide, please check :ref:`faq`,
  376. if still not solved, please :ref:`contribute_submit_issue`.
  377. * If you are trying to **develop Nuclei N100 SDK application in IDE**, now you have three choices:
  378. 1. **Recommended**: Since Nuclei Studio 2025.02, Nuclei N100 SDK will be deeply integrated with
  379. Nuclei Studio IDE, you can easily create a Nuclei N100 SDK Project in Nuclei Studio through IDE
  380. Project Wizard, and easily configure selected Nuclei N100 SDK project using SDK Configuration Tool,
  381. for more details, please click `Nuclei Tools`_ to download Nuclei Studio IDE, and refer to
  382. the `Nuclei Studio and Nuclei Tools User Guide`_ for how to use it.
  383. 2. You can take a try using IAR workbench, we provided prebuilt projects directly in Nuclei N100 SDK,
  384. just check the ``ideprojects/iar`` folder to learn about it.
  385. .. _GDB User Manual: https://www.gnu.org/software/gdb/documentation/
  386. .. _Nuclei Tools: https://nucleisys.com/download.php
  387. .. _Nuclei Studio and Nuclei Tools User Guide: https://doc.nucleisys.com/nuclei_tools/