README.txt 81 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195
  1. README
  2. ^^^^^^
  3. o Environments
  4. - Installing Cygwin
  5. - Ubuntu Bash under Windows 10
  6. o Installation
  7. - Download and Unpack
  8. - Semi-Optional apps/ Package
  9. - Installation Directories with Spaces in the Path
  10. - Downloading from Repositories
  11. - Related Repositories
  12. - Notes about Header Files
  13. o Configuring NuttX
  14. - Instantiating "Canned" Configurations
  15. - Refreshing Configurations
  16. - NuttX Configuration Tool
  17. - Finding Selections in the Configuration Menus
  18. - Reveal Hidden Configuration Options
  19. - Make Sure that You are on the Right Platform
  20. - Comparing Two Configurations
  21. - Making defconfig Files
  22. - Incompatibilities with Older Configurations
  23. - NuttX Configuration Tool under DOS
  24. o Toolchains
  25. - Cross-Development Toolchains
  26. - NuttX Buildroot Toolchain
  27. o Shells
  28. o Building NuttX
  29. - Building
  30. - Re-building
  31. - Build Targets and Options
  32. - Native Windows Build
  33. - Installing GNUWin32
  34. o Cygwin Build Problems
  35. - Strange Path Problems
  36. - Window Native Toolchain Issues
  37. o Documentation
  38. ENVIRONMENTS
  39. ^^^^^^^^^^^^
  40. NuttX requires a POSIX development environment such as you would find under
  41. Linux or macOS. NuttX may also be installed and built on Windows system
  42. if you also provide such a POSIX development environment. Options for a
  43. POSIX development environment under Windows include:
  44. - An installation of Linux on a virtual machine (VM) in Windows. I have
  45. not been happy using a VM myself. I have had stability problems with
  46. open source VMs and commercial VMs cost more than I want to spend.
  47. Sharing files with Linux running in a VM is awkward; sharing devices
  48. connected to the Windows box with Linux in a VM is, at the very least,
  49. confusing; Using Windows tools (such as Segger J-Link) with files
  50. built under the Linux VM is not a possibility.
  51. - The Cygwin environment. Instructions for installation of Cygwin on a
  52. Windows system are provided in the following paragraph, "Installing
  53. Cygwin". Cygwin is a mature, well-tested, and very convenient
  54. environment. It is especially convenient if you need to
  55. integrate with Windows tools and files. Downsides are that the
  56. installation time is very long and the compile times are slow.
  57. - Ubuntu/Bash shell under Windows 10. This is a new option under
  58. Windows 10. See the section "Ubuntu Bash under Windows 10" below.
  59. This is an improvement over Cygwin if your concern is compile time;
  60. its build performance is comparable to native Linux, certainly better
  61. than the Cygwin build time. It also installs in a tiny fraction of
  62. the time as Cygwin, perhaps 20 minutes for the basic Ubuntu install
  63. (vs. more than a day for the complete Cygwin install).
  64. There have been even more recent ports of Linux environment to
  65. Windows. I need to update this section to include some mention of
  66. these alternatives.
  67. - The MSYS environment. MSYS derives from an older version of Cygwin
  68. simplified and adapted to work more naturally in the Windows
  69. environment. See http://www.mingw.org/wiki/MSYS if you are
  70. interested in using MSYS. The advantages of the MSYS environment is
  71. that it is better integrted with the native Windows environment and
  72. lighter weight; it uses only a minimal number of add-on POSIX-land
  73. tools.
  74. The download link in that Wiki takes you to the SourceForge download
  75. site. The SourceForge MSYS project has been stagnant for some time.
  76. The MSYS project has more recently moved to
  77. http://odsn.net/projects/sfnet_mingwbundle. Downloads of current .zip
  78. files are available there but no instructions for the installation.
  79. - MSYS2 appears to be a re-write of MSYS based on a newer version of
  80. Cygwin. Is it available at https://www.msys2.org. A windows
  81. installer is available at that site along with very good installation
  82. instructions. The download is relatively quick (at least compared to
  83. Cygwin) and the 'pacman' package management tool supports supports
  84. simple system updates. For example, 'pacman -S git' will install the
  85. GIT command line utilities.
  86. - Other POSIX environments. Check out:
  87. UnxUtils: https://sourceforge.net/projects/unxutils/,
  88. https://en.wikipedia.org/wiki/UnxUtils
  89. MobaXterm: https://mobaxterm.mobatek.net/
  90. Gow: https://github.com/bmatzelle/gow/wiki
  91. Disclaimer: In priniple, these should work. However, I have never
  92. used any of these environments and cannot guarantee that there is
  93. not some less-than-obvious issues.
  94. NuttX can also be installed and built on a native Windows system, but with
  95. some potential tool-related issues (see the discussion "Native Windows
  96. Build" under "Building NuttX" below). GNUWin32 is used to provide
  97. compatible native windows tools.
  98. Installing Cygwin
  99. -----------------
  100. Installing Cygwin on your Windows PC is simple, but time consuming. See
  101. http://www.cygwin.com/ for installation instructions. Basically you just
  102. need to download a tiny setup.exe program and it does the real, network
  103. installation for you.
  104. Some Cygwin installation tips:
  105. 1. Install at C:\cygwin
  106. 2. Install EVERYTHING: "Only the minimal base packages from the
  107. Cygwin distribution are installed by default. Clicking on categories
  108. and packages in the setup.exe package installation screen will
  109. provide you with the ability to control what is installed or updated.
  110. Clicking on the "Default" field next to the "All" category will
  111. provide you with the opportunity to install every Cygwin package.
  112. Be advised that this will download and install hundreds of megabytes
  113. to your computer."
  114. If you use the "default" installation, you will be missing many
  115. of the Cygwin utilities that you will need to build NuttX. The
  116. build will fail in numerous places because of missing packages.
  117. NOTE: You don't really have to install EVERYTHING but I cannot
  118. answer the question "Then what should I install?" I don't know
  119. the answer to that and so will continue to recommend installing
  120. EVERYTHING.
  121. You should certainly be able to omit "Science", "Math", and
  122. "Publishing". You can try omitting KDE, Gnome, GTK, and other
  123. graphics packages if you don't plan to use them.
  124. Perhaps a minimum set would be those packages listed below for the
  125. "Ubuntu Bash under Windows 10" installation?
  126. After installing Cygwin, you will get lots of links for installed
  127. tools and shells. I use the RXVT native shell. It is fast and reliable
  128. and does not require you to run the Cygwin X server (which is neither
  129. fast nor reliable). Unless otherwise noted, the rest of these
  130. instructions assume that you are at a bash command line prompt in
  131. either Linux or in Cygwin shell.
  132. UPDATE: The last time I installed EVERYTHING, the download was
  133. about 5GiB. The server I selected was also very slow so it took
  134. over a day to do the whole install!
  135. Using MSYS
  136. ----------
  137. MSYS is an environment the derives from Cygwin. Thus, most things said
  138. about Cygwin apply equally to MSYS. This section will, then, focus on
  139. the differences when using MSYS, specifically MSYS2.
  140. Here is it assumed that you have already downloaded and installed MSYS2
  141. from https://www.msys2.org using the windows installer available at that
  142. location. It is also assumed that you have brought in the necessary
  143. tools using the 'pacman' package management tool Tools needed including:
  144. pacman -S git
  145. pacman -S make
  146. pacman -S gcc
  147. pacman -S gdb
  148. And possibly others depending upon your usage. Then you will need to
  149. build and install kconfig-frontends per the instructions of the top-level
  150. README.txt file in the tools repository. This required the following
  151. additional tools:
  152. pacman -S bison
  153. pacman -S gperf
  154. pacman -S ncurses-devel
  155. pacman -S automake-wrapper
  156. pacman -S autoconf
  157. pacman -S pkg-config
  158. Because of some versioning issues, I had to run 'aclocal' prior to
  159. running the kconfig-frontends configure script. See "Configuring NuttX"
  160. below for futher information.ifq
  161. Unlike Cygwin, MSYS does not support symbolic links. The 'ln -s' commnad
  162. will, in fact, copy a directory! This means that you Make.defs file will
  163. have to include definitions like:
  164. ifeq ($(CONFIG_WINDOWS_MSYS),y)
  165. DIRLINK = $(TOPDIR)/tools/copydir.sh
  166. DIRUNLINK = $(TOPDIR)/tools/unlink.sh
  167. endif
  168. This will force the directory copies to work in a way that can be handled
  169. by the NuttX build system. NOTE: The default link.sh script has been
  170. updated so that is should now be MSYS2 compatible. The above is preferred
  171. but no longer necessary in the Make.defs file.
  172. To build the simulator under MSYS, you also need:
  173. pacman -S zlib-devel
  174. It appears that you cannot use directory names with spaces in them like
  175. "/c/Program\ Files \(86\)" in the MSYS path variable. I worked around this
  176. by create Windows junctions like this::
  177. 1. Open the a windows command terminal,
  178. 2. CD to c:\msys64, then
  179. 3. mklink /j programfiles "C:/Program\ Files" and
  180. 4. mklink /j programfiles86 "C:/Program\ Files\ \(x86\)"
  181. They then show up as /programfiles and /programfiles86 with the MSYS2
  182. sandbox. Thos paths can then be used with the PATH variable. I had
  183. to do something similar for the path to the GNU Tools "ARM Embedded
  184. Toolchain" which also has spaces in the path name.
  185. Ubuntu Bash under Windows 10
  186. ----------------------------
  187. A better version of a command-line only Ubuntu under Windows 10 (beta)
  188. has recently been made available from Microsoft.
  189. Installation
  190. ------------
  191. Installation instructions abound on the Internet complete with screen
  192. shots. I will attempt to duplicate those instructions in full here.
  193. Here are the simplified installation steps:
  194. - Open "Settings".
  195. - Click on "Update & security".
  196. - Click on "For Developers".
  197. - Under "Use developer features", select the "Developer mode" option to
  198. setup the environment to install Bash.
  199. - A message box should pop up. Click "Yes" to turn on developer mode.
  200. - After the necessary components install, you'll need to restart your
  201. computer.
  202. Once your computer reboots:
  203. - Open "Control Panel".
  204. - Click on "Programs".
  205. - Click on "Turn Windows features on or off".
  206. - A list of features will pop up, check the "Windows Subsystem for Linux
  207. (beta)" option.
  208. - Click OK.
  209. - Once the components installed on your computer, click the "Restart
  210. now" button to complete the task.
  211. After your computer restarts, you will notice that Bash will not appear in
  212. the "Recently added" list of apps, this is because Bash isn't actually
  213. installed yet. Now that you have setup the necessary components, use the
  214. following steps to complete the installation of Bash:
  215. - Open "Start", do a search for bash.exe, and press "Enter".
  216. - On the command prompt, type y and press Enter to download and install
  217. Bash from the Windows Store. This will take awhile.
  218. - Then you'll need to create a default UNIX user account. This account
  219. doesn't have to be the same as your Windows account. Enter the
  220. username in the required field and press Enter (you can't use the
  221. username "admin").
  222. - Close the "bash.exe" command prompt.
  223. Now that you completed the installation and setup, you can open the Bash
  224. tool from the Start menu like you would with any other app.
  225. Accessing Windows Files from Ubuntu
  226. -----------------------------------
  227. File systems will be mounted under "/mnt" so for example "C:\Program Files"
  228. appears at "/mnt/c/Program Files". This is as opposed to Cygwin where
  229. the same directory would appear at "/cygdrive/c/Program Files".
  230. With these differences (perhaps a few other Windows quirks) the Ubuntu
  231. install works just like Ubuntu running natively on your PC.
  232. A good tip for file sharing is to use symbolic links within your Ubuntu
  233. home directory. For example, suppose you have your "projects" directory
  234. at C:\Documents\projects. Then you can set up a link to the projects/
  235. directory in your Ubuntu directory like:
  236. ln -s /mnt/c/Documents/projects projects
  237. Accessing Ubuntu Files From Windows
  238. -----------------------------------
  239. In Ubuntu Userspace for Windows, the Ubuntu file system root directory is
  240. at:
  241. %localappdata%\lxss\rootfs
  242. Or
  243. C:\Users\Username\AppData\Local\lxss\rootfs
  244. However, I am unable to see my files under the rootfs\home directory.
  245. After some looking around, I find the home directory
  246. %localappdata%\lxss\home.
  247. With that trick access to the /home directory, you should actually be
  248. able to use Windows tools outside of the Ubuntu sandbox with versions of
  249. NuttX built within the sandbox using that path.
  250. Executing Windows Tools from Ubuntu
  251. -----------------------------------
  252. You can also execute Windows tools from within the Ubuntu sandbox:
  253. /mnt/c/Program\ Files\ \(x86\)/Microchip/xc32/v1.43/bin/xc32-gcc.exe --version
  254. Unable to translate current working directory. Using C:\WINDOWS\System32
  255. xc32-gcc.exe (Microchip Technology) 4.8.3 MPLAB XC32 Compiler v1.43 Build date: Mar 1 2017
  256. ...
  257. The error message indicates that there are more issues: You cannot mix
  258. Windows tools that use Windows style paths in an environment that uses
  259. POSIX paths. I think you would have to use Linux tools only from within
  260. the Ubuntu sandbox.
  261. Install Ubuntu Software
  262. -----------------------
  263. Use "sudo apt-get install <package name>". As examples, this is how
  264. you would get GIT:
  265. sudo apt-get install git
  266. This will get you a compiler for your host PC:
  267. sudo apt-get install gcc
  268. This will get you an ARM compiler for your target:
  269. sudo apt-get install gcc-arm-none-eabi
  270. NOTE: That is just an example. I am not sure if apt-get will give you a
  271. current or usable compiler. You should carefully select your toolchain
  272. for the needs of your project.
  273. You will also need to get the kconfig-frontends configuration as
  274. described below under "NuttX Configuration Tool". In order to build the
  275. kconfig-frontends configuration tool you will also need: make, gperf,
  276. flex, bison, and libncurses-dev.
  277. That is enough to do a basic NuttX build.
  278. Integrating with Windows Tools
  279. ------------------------------
  280. If you want to integrate with Windows native tools, then you would need
  281. deal with the same kind of craziness as with integrating Cygwin with
  282. native toolchains, see the section "Cygwin Build Problems" below.
  283. However, there is currently no build support for using Windows native
  284. tools with Ubuntu under Windows. This tool combination is made to work
  285. with Cygwin through the use of the 'cygpath -w' tool that converts paths
  286. from say '/cydrive/c/Program Files' to 'C:\Program Files'. There is,
  287. however, no corresponding tool to convert '/mnt/c/Program Files' in the
  288. Ubuntu environment.
  289. Graphics Support
  290. ----------------
  291. The Ubuntu version support by Microsoft is a command-line only version.
  292. There is no support for Linux graphics utilities.
  293. This limitation is not a limitation of Ubuntu, however, only in what
  294. Microsoft is willing to support. If you install a X-Server, then you
  295. can also use basic graphics utilities. See for example:
  296. http://www.howtogeek.com/261575/how-to-run-graphical-linux-desktop-applications-from-windows-10s-bash-shell/
  297. Many Linux graphics programs would, however, also require a graphics
  298. framework like GTK or Qt. So this might be a trip down the rabbit hole.
  299. INSTALLATION
  300. ^^^^^^^^^^^^
  301. There are two ways to get NuttX: You may download released, stable
  302. tarballs from either the Bitbucket or Sourceforge download locations.
  303. Or you may get NuttX by cloning the Bitbucket GIT repositories. Let's
  304. consider the released tarballs first:
  305. Download and Unpack
  306. -------------------
  307. Download and unpack the NuttX tarball. If you are reading this, then
  308. you have probably already done that. After unpacking, you will end
  309. up with a directory called nuttx-version (where version is the NuttX
  310. version number). You might want to rename that directory nuttx to
  311. match the various instructions in the documentation and some scripts
  312. in the source tree.
  313. Download locations:
  314. https://bitbucket.org/nuttx/nuttx/downloads
  315. https://sourceforge.net/projects/nuttx/files/nuttx/
  316. Semi-Optional apps/ Package
  317. ---------------------------
  318. All NuttX libraries and example code used to be in included within
  319. the NuttX source tree. As of NuttX-6.0, this application code was
  320. moved into a separate tarball, the apps tarball. If you are just
  321. beginning with NuttX, then you will want to download the versioned
  322. apps tarball along with the NuttX tarball. If you already have your
  323. own product application directory, then you may not need the apps
  324. tarball.
  325. It is called "Semi-optional" because if you don't have some apps/
  326. directory, NuttX will *fail* to build! You do not necessarily need
  327. to use the NuttX apps tarball but may, instead, provide your own
  328. custom application directory. Such a custom directory would need
  329. to include a valid Makefile to support the build and a valid Kconfig
  330. file to support the configuration. More about these files later.
  331. Download then unpack the apps tarball in the same directory where you
  332. unpacked the NuttX tarball. After you unpack the apps tarball, you
  333. will have a new directory called apps-version (where the version
  334. should exactly match the version of the NuttX tarball). Again, you
  335. might want to rename the directory to simply apps/ to match what
  336. you read in the documentation
  337. After unpacking (and renaming) the apps tarball, you will have two
  338. directories side by side like this:
  339. |
  340. +----+----+
  341. | |
  342. nuttx/ apps/
  343. This is important because the NuttX build will expect to find the
  344. apps directory in that (default) location. That default location
  345. can be changed by modifying your NuttX configuration file, but that
  346. is another story.
  347. Installation Directories with Spaces in the Path
  348. ------------------------------------------------
  349. The nuttx build directory should reside in a path that contains no
  350. spaces in any higher level directory name. For example, under
  351. Cygwin, your home directory might be formed from your first and last
  352. names like: "/home/First Last". That will cause strange errors when
  353. the make system tries to build.
  354. [Actually, that problem is probably not too difficult to fix. Some
  355. Makefiles probably just need some paths within double quotes]
  356. I work around spaces in the home directory name, by creating a
  357. new directory that does not contain any spaces, such as /home/nuttx.
  358. Then I install NuttX in /home/nuttx and always build from
  359. /home/nuttx/nuttx-code.
  360. Downloading from Repositories
  361. -----------------------------
  362. Cloning the Repository
  363. The current NuttX du jour is available in from a GIT repository. Here are
  364. instructions for cloning the core NuttX RTOS (corresponding to the nuttx
  365. tarball discussed above)::
  366. git clone https://bitbucket.org/nuttx/nuttx.git nuttx
  367. And the semi-optional apps/ application directory and be cloned like:
  368. git clone https://bitbucket.org/nuttx/apps.git apps
  369. That will give you the same directory structure like this:
  370. |
  371. +----+----+
  372. | |
  373. nuttx/ apps/
  374. Configuring the Clones
  375. The following steps need to be performed for each of the repositories.
  376. After changing to the clone directory:
  377. Set your identity:
  378. git config --global user.name "My Name"
  379. git config --global user.email my.name@example.com
  380. Colorized diffs are much easier to read:
  381. git config --global color.branch auto
  382. git config --global color.diff auto
  383. git config --global color.interactive auto
  384. git config --global color.status auto
  385. Checkout other settings
  386. git config --list
  387. Cloning NuttX Inside Cygwin
  388. If you are cloning the NuttX repository, it is recommended to avoid
  389. automatic end of lines conversions by git. These conversions may break
  390. some scripts like configure.sh. Before cloning, do the following:
  391. git config --global core.autocrlf false
  392. Related Repositories
  393. --------------------
  394. These are standalone repositories:
  395. * https://bitbucket.org/nuttx/apps
  396. This directory holds an optional package of applications and libraries
  397. can be used with the NuttX RTOS. There is a README.txt file there that
  398. will provide more information about that package.
  399. * https://bitbucket.org/nuttx/nxwidgets
  400. This is the NuttX C++ graphics support. This includes NxWM, the tiny
  401. NuttX Window Manager.
  402. * https://bitbucket.org/nuttx/uclibc
  403. This repository contains a version of the uClibc++ C++ library. This code
  404. originates from http://cxx.uclibc.org/ and has been adapted for NuttX by the
  405. RGMP team (http://rgmp.sourceforge.net/wiki/index.php/Main_Page).
  406. * https://bitbucket.org/nuttx/buildroot
  407. A environment that you can to use to build a custom, NuttX GNU toolchain.
  408. * https://bitbucket.org/nuttx/tools
  409. There are snapshots of some tools here that you will need to work with
  410. NuttX: kconfig-frontends, genromfs, and others.
  411. * https://bitbucket.org/nuttx/nonbsd
  412. A few drivers that are not integrated into the main NuttX source tree due
  413. to licensing issues.
  414. * https://bitbucket.org/nuttx/pascal
  415. Yes, this really is a Pascal compiler. The Pascal p-code run-time and
  416. pcode debugger can be built as a part of NuttX.
  417. Notes about Header Files
  418. ------------------------
  419. Other C-Library Header Files.
  420. When a GCC toolchain is built, it must be built against a C library.
  421. The compiler together with the contents of the C library completes the
  422. C language definition and provides the complete C development
  423. environment. NuttX provides its own, built-in C library. So the
  424. complete, consistent C language definition for use with NuttX comes from
  425. the combination of the compiler and the header files provided by the
  426. NuttX C library.
  427. When a GCC toolchain is built, it incorporates the C library header
  428. files into the compiler internal directories and, in this way, the C
  429. library really becomes a part of the toolchain. If you use the NuttX
  430. buildroot toolchain as described below under "NuttX Buildroot
  431. Toolchain", your GCC toolchain will build against the NuttX C library
  432. and will incorporate the NuttX C library header files as part of the
  433. toolchain.
  434. If you use some other, third-party tool chain, this will not be the
  435. case, however. Those toolchains were probably built against some
  436. other, incompatible C library distribution (such as newlib). Those
  437. tools will have incorporated the incompatible C library header files
  438. as part of the toolchain. These incompatible header files must *not*
  439. be used with NuttX because they will conflict with definitions in the
  440. NuttX built-in C-Library. For such toolchains that include header
  441. files from a foreign C-Library, NuttX must be compiled without using
  442. the standard header files that are distributed with your toolchain.
  443. This prevents including conflicting, incompatible header files such
  444. as stdio.h.
  445. The math.h and stdarg.h are probably the two most trouble some header
  446. files to deal with. These troublesome header files are discussed in
  447. more detail below.
  448. Header Files Provided by Your Toolchain.
  449. Certain header files, such as setjmp.h, stdarg.h, and math.h, may still
  450. be needed from your toolchain and your compiler may not, however, be able
  451. to find these if you compile NuttX without using standard header files
  452. (i.e., with -nostdinc). If that is the case, one solution is to copy
  453. those header file from your toolchain into the NuttX include directory.
  454. Duplicated Header Files.
  455. There are also a few header files that can be found in the nuttx/include
  456. directory which are duplicated by the header files from your toolchain.
  457. stdint.h and stdbool.h are examples. If you prefer to use the stdint.h
  458. and stdbool.h header files from your toolchain, those could be copied
  459. into the nuttx/include/ directory. Using most other header files from
  460. your toolchain would probably cause errors.
  461. math.h
  462. Even though you should not use a foreign C-Library, you may still need
  463. to use other, external libraries with NuttX. In particular, you may
  464. need to use the math library, libm.a. NuttX supports a generic, built-in
  465. math library that can be enabled using CONFIG_LIBM=y. However, you may
  466. still want to use a higher performance external math library that has
  467. been tuned for your CPU. Sometimes such tuned math libraries are
  468. bundled with your toolchain.
  469. The math library header file, math.h, is a then special case. If you do
  470. nothing, the standard math.h header file that is provided with your
  471. toolchain will be used.
  472. If you have a custom, architecture specific math.h header file, then
  473. that header file should be placed at arch/<cpu>/include/math.h. There
  474. is a stub math.h header file located at include/nuttx/lib/math.h. This stub
  475. header file can be used to "redirect" the inclusion to an architecture-
  476. specific math.h header file. If you add an architecture specific math.h
  477. header file then you should also define CONFIG_ARCH_MATH_H=y in your
  478. NuttX Configuration file. If CONFIG_ARCH_MATH_H is selected, then the
  479. top-level Makefile will copy the stub math.h header file from
  480. include/nuttx/lib/math.h to include/math.h where it will become the system
  481. math.h header file. The stub math.h header file does nothing other
  482. than to include that architecture-specific math.h header file as the
  483. system math.h header file.
  484. float.h
  485. If you enable the generic, built-in math library, then that math library
  486. will expect your toolchain to provide the standard float.h header file.
  487. The float.h header file defines the properties of your floating point
  488. implementation. It would always be best to use your toolchain's float.h
  489. header file but if none is available, a default float.h header file will
  490. be provided if this option is selected. However, there is no assurance
  491. that the settings in this float.h are actually correct for your platform!
  492. stdarg.h
  493. In most cases, the correct version of stdarg.h is the version provided
  494. with your toolchain. However, sometimes there are issues with
  495. using your toolchains stdarg.h. For example, it may attempt to draw in
  496. header files that do not exist in NuttX or perhaps the header files that
  497. it uses are not compatible with the NuttX header files. In those cases,
  498. you can use an architecture-specific stdarg.h header file by defining
  499. CONFIG_ARCH_STDARG_H=y.
  500. See the discussion above for the math.h header. This setting works
  501. exactly the same for the stdarg.h header file.
  502. CONFIGURING NUTTX
  503. ^^^^^^^^^^^^^^^^^
  504. Instantiating "Canned" Configurations
  505. -------------------------------------
  506. configure.sh and configure.bat:
  507. "Canned" NuttX configuration files are retained in:
  508. configs/<board-name>/<config-dir>
  509. Where <board-name> is the name of your development board and <config-dir>
  510. is the name of the sub-directory containing a specific configuration for
  511. that board. Only a few steps are required to instantiate a NuttX
  512. configuration, but to make the configuration even easier there are
  513. scripts available in the tools/ sub-directory combines those simple steps
  514. into one command.
  515. There is one tool for use with any Bash-like shell that does configuration
  516. steps. It is used as follows:
  517. tools/configure.sh <board-name>/<config-dir>
  518. There is an alternative Windows batch file that can be used in the windows
  519. native environment like:
  520. tools\configure.bat <board-name>\<config-dir>
  521. And, to make sure that other platforms are supported, there is also a
  522. C program at tools/configure.c that can be compiled to establish the
  523. board configuration.
  524. See tools/README.txt for more information about these scripts.
  525. General information about configuring NuttX can be found in:
  526. {TOPDIR}/configs/README.txt
  527. {TOPDIR}/configs/<board-name>/README.txt
  528. The Hidden Configuration Scripts:
  529. As mentioned above, there are only a few simple steps to instantiating a
  530. NuttX configuration. Those steps are hidden by the configuration scripts
  531. but are summarized below:
  532. 1. Copy Files
  533. Configuring NuttX requires only copying two files from the
  534. <config-dir> to the directory where you installed NuttX (TOPDIR):
  535. Copy configs/<board-name>/<config-dir>/Make.def to{TOPDIR}/Make.defs
  536. OR
  537. Copy configs/<board-name>/scripts/Make.def to{TOPDIR}/Make.defs
  538. Make.defs describes the rules needed by your tool chain to compile
  539. and link code. You may need to modify this file to match the
  540. specific needs of your toolchain. NOTE that a configuration may
  541. have its own unique Make.defs file in its configuration directory or
  542. it may use a common Make.defs file for the board in the scripts/
  543. directory. The first takes precedence.
  544. Copy configs/<board-name>/<config-dir>/defconfig to{TOPDIR}/.config
  545. The defconfig file holds the actual build configuration. This
  546. file is included by all other make files to determine what is
  547. included in the build and what is not. This file is also used
  548. to generate a C configuration header at include/nuttx/config.h.
  549. Copy other, environment-specific files to{TOPDIR}
  550. This might include files like .gdbinit or IDE configuration files
  551. like .project or .cproject.
  552. 2. Refresh the Configuration
  553. New configuration setting may be added or removed. Existing settings
  554. may also change there values or options. This must be handled by
  555. refreshing the configuration as described below.
  556. NOTE: NuttX uses only compressed defconfig files. For the NuttX
  557. defconfig files, this refreshing step is *NOT* optional; it is also
  558. necessary to uncompress and regenerate the full making file. This is
  559. discussed further below.
  560. Refreshing Configurations
  561. -------------------------
  562. Configurations can get out of date. As new configuration settings are
  563. added or removed or as dependencies between configuration settings
  564. change, the contents of a default configuration can become out of synch
  565. with the build systems. Hence, it is a good practice to "refresh" each
  566. configuration after configuring and before making. To refresh the
  567. configuration, use the NuttX Configuration Tool like this:
  568. make oldconfig
  569. AFTER you have instantiated the NuttX configuration as described above.
  570. The configuration step copied the .config file into place in the top-level
  571. NuttX directory; 'make oldconfig' step will then operate on that .config
  572. file to bring it up-to-date.
  573. If your configuration is out of date, you will be prompted by 'make oldconfig'
  574. to resolve the issues detected by the configuration tool, that is, to
  575. provide values for the new configuration options in the build system. Doing
  576. this can save you a lot of problems down the road due to obsolete settings in
  577. the default board configuration file. The NuttX configuration tool is
  578. discussed in more detail in the following paragraph.
  579. Confused about what the correct value for a new configuration item should
  580. be? Enter ? in response to the 'make oldconfig' prompt and it will show
  581. you the help text that goes with the option.
  582. If you don't want to make any decisions are willing to just accept the
  583. recommended default value for each new configuration item, an even easier
  584. way is:
  585. make olddefconfig
  586. The olddefconfig target will simply bring your configuration up to date with
  587. the current Kconfig files, setting any new options to the default value.
  588. No questions asked.
  589. NuttX Configuration Tool
  590. ------------------------
  591. An automated tool has been incorporated to support re-configuration
  592. of NuttX. This automated tool is based on the kconfig-frontends
  593. application available at http://ymorin.is-a-geek.org/projects/kconfig-frontends
  594. (A snapshot of this tool is also available from the tools repository at
  595. https://bitbucket.org/nuttx/tools). This application provides a tool
  596. called 'kconfig-mconf' that is used by the NuttX top-level Makefile.
  597. The following make target is provided:
  598. make menuconfig
  599. This make target will bring up NuttX configuration menus.
  600. WARNING: Never do 'make menuconfig' on a configuration that has
  601. not been converted to use the kconfig-frontends tools! This will
  602. damage your configuration (see
  603. http://www.nuttx.org/doku.php?id=wiki:howtos:convertconfig).
  604. How do we tell a new configuration from an old one? See "Incompatibilities
  605. with Older Configurations" below.
  606. The 'menuconfig' make target depends on two things:
  607. 1. The Kconfig configuration data files that appear in almost all
  608. NuttX directories. These data files are the part that is still
  609. under development (patches are welcome!). The Kconfig files
  610. contain configuration information for the configuration settings
  611. relevant to the directory in which the Kconfig file resides.
  612. NOTE: For a description of the syntax of this configuration file,
  613. see kconfig-language.txt in the tools repository at
  614. https://bitbucket.org/nuttx/tools
  615. 2. The 'kconfig-mconf' tool. 'kconfig-mconf' is part of the
  616. kconfig-frontends package. You can download that package from
  617. the website http://ymorin.is-a-geek.org/projects/kconfig-frontends
  618. or you can use the snapshot in the tools repository at
  619. https://bitbucket.org/nuttx/tools.
  620. Building kconfig-frontends under Linux may be as simple as
  621. 'configure; make; make install' but there may be some build
  622. complexities, especially if you are building under Cygwin. See
  623. the more detailed build instructions in the top-level README.txt
  624. file of the tools repository at https://bitbucket.org/nuttx/tools.
  625. The 'make install' step will, by default, install the 'kconfig-mconf'
  626. tool at /usr/local/bin/mconf. Where ever you choose to
  627. install 'kconfig-mconf', make certain that your PATH variable includes
  628. a path to that installation directory.
  629. The kconfig-frontends tools will not build in a native Windows
  630. environment directly "out-of-the-box". For the Windows native
  631. case, you should use the modified version of kconfig-frontends
  632. that can be found at
  633. http://uvc.de/posts/linux-kernel-configuration-tool-mconf-under-windows.html
  634. The basic configuration order is "bottom-up":
  635. - Select the build environment,
  636. - Select the processor,
  637. - Select the board,
  638. - Select the supported peripherals
  639. - Configure the device drivers,
  640. - Configure the application options on top of this.
  641. This is pretty straight forward for creating new configurations
  642. but may be less intuitive for modifying existing configurations.
  643. Another ncurses-based tool that is an option to kconfig-mconf is
  644. kconfig-nconf. The differences are primary in in the aesthetics of the
  645. UI. If you have kconfig-nconf built, then you can invoke that front end
  646. with:
  647. make nconfig
  648. If you have an environment that supports the Qt or GTK graphical systems
  649. (probably KDE or gnome, respectively, or Cygwin under Windows with Qt or
  650. GTK installed), then you can also build the graphical kconfig-frontends,
  651. kconfig-qconf and kconfig-gconf. In these case, you can start the
  652. graphical configurator with either:
  653. make qconfig
  654. or
  655. make gconfig
  656. Some keyboard shortcuts supported by kconfig-mconf, the tool that runs
  657. when you do 'make menuconfig':
  658. - '?' will bring up the mconfig help display.
  659. - '/' can be used find configuration selections.
  660. - 'Z' can be used to reveal hidden configuration options
  661. These last two shortcuts are described further in the following
  662. paragraphs.
  663. Finding Selections in the Configuration Menus
  664. ---------------------------------------------
  665. The NuttX configuration options have gotten complex and it can be very
  666. difficult to find options in the menu trees if you are not sure where
  667. to look. The "basic configuration order" describe above can help to
  668. narrow things down.
  669. But if you know exactly what configuration setting you want to select,
  670. say CONFIG_XYZ, but not where to find it, then the 'make menuconfig'
  671. version of the tool offers some help: By pressing the '/' key, the
  672. tool will bring up a menu that will allow you to search for a
  673. configuration item. Just enter the string CONFIG_XYZ and press 'ENTER'.
  674. It will show you not only where to find the configuration item, but
  675. also all of the dependencies related to the configuration item.
  676. Reveal Hidden Configuration Options
  677. -----------------------------------
  678. If you type 'Z', then kconfig-mconf will change what is displayed.
  679. Normally, only enabled features that have all of their dependencies met
  680. are displayed. That is, of course, not very useful if you would like to
  681. discover new options or if you are looking for an option and do not
  682. realize that the dependencies have not yet been selected and, hence, it
  683. is not displayed.
  684. But if you enter 'Z', then every option will be shown, whether or not its
  685. dependencies have been met. You can then see everything that could be
  686. selected with the right dependency selections. These additional options
  687. will be shown the '-' for the selection and for the value (since it
  688. cannot be selected and has no value). About all you do is to select
  689. the <Help> option to see what the dependencies are.
  690. Make Sure that You are on the Right Platform
  691. --------------------------------------------
  692. Saved configurations may run on Linux, Cygwin (32- or 64-bit), or other
  693. platforms. The platform characteristics can be changed use 'make
  694. menuconfig'. Sometimes this can be confusing due to the differences
  695. between the platforms. Enter sethost.sh
  696. sethost.sh is a simple script that changes a configuration to your
  697. host platform. This can greatly simplify life if you use many different
  698. configurations. For example, if you are running on Linux and you
  699. configure like this:
  700. tools/configure.sh board/configuration
  701. The you can use the following command to both (1) make sure that the
  702. configuration is up to date, AND (2) the configuration is set up
  703. correctly for Linux:
  704. tools/sethost.sh -l
  705. Or, if you are on a Windows/Cygwin 64-bit platform:
  706. tools/sethost.sh -c
  707. Or, for MSYS/MSYS2:
  708. tools/sethost.sh -g
  709. Other options are available from the help option built into the
  710. script. You can see all options with:
  711. tools/sethost.sh -h
  712. Recently, the options to the configure.sh (and configure.bat) scripts have
  713. been extended so that you both setup the configuration, select for the host
  714. platform that you use, and uncompress and refresh the defconfig file all in
  715. one command like:
  716. tools/configure.sh -l board/configuration
  717. For a Linux host or for a Windows/Cygwin host:
  718. tools/configure.sh -h board/configuration
  719. Other options are available from the help option built into the
  720. script. You can see all options with:
  721. tools/configure.sh -h
  722. Comparing Two Configurations
  723. ----------------------------
  724. If you try to compare two configurations using 'diff', you will probably
  725. not be happy with the result. There are superfluous things added to
  726. the configuration files that make comparisons with the human eye
  727. difficult.
  728. There is a tool at nuttx/tools/cmpconfig.c that can be built to simplify
  729. these comparisons. The output from this difference tool will show only
  730. the meaningful differences between two configuration files. This tool is
  731. built as follows:
  732. cd nuttx/tools
  733. make -f Makefile.host
  734. This will create a program called 'cmpconfig' or 'comconfig.exe' on Windows.
  735. Why would you want to compare two configuration files? Here are a few
  736. of the reasons why I do this
  737. 1. When I create a new configuration I usually base it on an older
  738. configuration and I want to know, "What are the options that I need to
  739. change to add the new feature to the older configurations?" For example,
  740. suppose that I have a boardA/nsh configuration and I want to create a
  741. boardA/nxwm configuration. Suppose I already have boardB/nsh and
  742. boardB/nxwm configurations. Then by comparing the boardB/nsh with the
  743. boardB/nxwm I can see the modifications that I would need to make to my
  744. boardA/nsh to create a new boardA/nxwm.
  745. 2. But the most common reason that I use the 'cmpconfig' program is to
  746. check the results of "refreshing" a configuration with 'make oldconfig'
  747. (see the paragraph "Refreshing Configurations" above). The 'make
  748. oldconfig' command will make changes to my configuration and using
  749. 'cmpconfig', I can see precisely what those changes were and if any
  750. should be of concern to me.
  751. 3. The 'cmpconfig' tool can also be useful when converting older, legacy
  752. manual configurations to the current configurations based on the
  753. kconfig-frontends tools. See the following paragraph.
  754. Making defconfig Files
  755. ----------------------
  756. .config Files as defconfig Files:
  757. The minimum defconfig file is simply the generated .config file with
  758. CONFIG_APPS_DIR setting removed or commented out. That setting provides
  759. the name and location of the apps/ directory relative to the nuttx build
  760. directory. The default is ../apps/, however, the apps directory may be
  761. any other location and may have a different name. For example, the name
  762. of versioned NuttX releases are always in the form apps-xx.yy where xx.yy
  763. is the version number.
  764. Finding the apps/ Directory Path:
  765. When the default configuration is installed using one of the scripts or
  766. programs in the NuttX tools directory, there will be an option to provide
  767. the path to the apps/ directory. If not provided, then the configure tool
  768. will look around and try to make a reasonable decision about where the
  769. apps/ directory is located.
  770. Compressed defconfig Files:
  771. The Makefile also supports an option to generate very small defconfig
  772. files. The .config files are quite large and complex. But most of the
  773. settings in the .config file simply have the default settings from the
  774. Kconfig files. These .config files can be converted into small defconfig
  775. file:
  776. make savedefconfig
  777. That make target will generate a defconfig file in the top-level
  778. directory. The size reduction is really quite remarkable:
  779. wc -l .config defconfig
  780. 1085 .config
  781. 82 defconfig
  782. 1167 total
  783. In order to be usable, the .config file installed from the compressed
  784. defconfig file must be reconstituted using:
  785. make olddefconfig
  786. NOTE 1: Only compressed defconfig files are retained in the NuttX repository.
  787. All patches and PRs that attempt to add or modify a defconfig file MUST
  788. use the compressed defconfig format as created by 'make savdefconfig.'
  789. NOTE 2: When 'make savedefconfig' runs it will try several things some of
  790. which are expected to fail. In these cases you will see an error message
  791. from make followed by "(ignored)." You should also ignore these messages
  792. CAUTION: This size reduction was accomplished by removing all setting
  793. from the .config file that were at the default value. 'make olddefconfig'
  794. can regenerate the original .config file by simply restoring those default
  795. settings. The underlying assumption here is, of course, that the default
  796. settings do not change. If the default settings change, and they often
  797. do, then the original .config may not be reproducible.
  798. So if your project requires 100% reproducibility over a long period of
  799. time, you make want to save the complete .config files vs. the standard,
  800. compressed defconfig file.
  801. Configuring with "Compressed" defconfig Files:
  802. As described above defconfig, all NuttX defconfig files are compressed
  803. using 'make savedeconfig'. These compressed defconfig files are
  804. generally not fully usable as they are and may not build the target
  805. binaries that you want because the compression process removed all of
  806. the default settings from the defconfig file. To restore the default
  807. settings, you should run the following after configuring:
  808. make olddefconfig
  809. That will restore the the missing defaulted values.
  810. Using this command after configuring is generally a good practice anyway:
  811. Even if the defconfig files are not "compressed" in this fashion, the
  812. defconfig file may be old and the only way to assure that the installed
  813. .config is is up to date is via 'make oldconfig' or 'make olddefconfig'.
  814. See the paragraph above entitled ""Refreshing Configurations" for
  815. additional information.
  816. Incompatibilities with Older Configurations
  817. -------------------------------------------
  818. ***** WARNING *****
  819. The current NuttX build system supports *only* the new compressed,
  820. defconfig configuration files generated using the kconfig-frontends tools
  821. as described in the preceding section. Support for the older, legacy,
  822. manual configurations was eliminated in NuttX 7.0; support for
  823. uncompressed .config-files-as-defconfig files was eliminated after
  824. NuttX-7.21. All configurations must now be done using the
  825. kconfig-frontends tool. The older manual configurations and the new
  826. kconfig-frontends configurations are not compatible. Old legacy
  827. configurations can *not* be used with the kconfig-frontends tool and,
  828. hence, cannot be used with releases of NuttX 7.0 and beyond:
  829. If you run 'make menuconfig' with a legacy configuration the resulting
  830. configuration will probably not be functional.
  831. Q: How can I tell if a configuration is a new kconfig-frontends
  832. configuration or an older, manual configuration?
  833. A: Only old, manual configurations will have an appconfig file
  834. Q: How can I convert a older, manual configuration into a new,
  835. kconfig-frontends toolchain.
  836. A: Refer to http://www.nuttx.org/doku.php?id=wiki:howtos:convertconfig
  837. ***** WARNING *****
  838. As described above, whenever you use a configuration, you really should
  839. always refresh the configuration with the following command *before* you
  840. make NuttX:
  841. make oldconfig
  842. OR
  843. make olddefconfig
  844. This will make sure that the configuration is up-to-date in the event that
  845. it has lapsed behind the current NuttX development (see the paragraph
  846. "Refreshing Configurations" above). But this only works with *new*
  847. configuration files created with the kconfig-frontends tools.
  848. Further, this step is *NOT* optional with the new, compressed defconfig
  849. files. It is a necessary step that will also uncompress the defconfig
  850. file, regenerating the .config and making it usable for NuttX builds.
  851. Never do 'make oldconfig' (OR 'make menuconfig') on a configuration that
  852. has not been converted to use the kconfig-frontends tools! This will
  853. damage your configuration (see
  854. http://www.nuttx.org/doku.php?id=wiki:howtos:convertconfig).
  855. NuttX Configuration Tool under DOS
  856. ----------------------------------
  857. Recent versions of NuttX support building NuttX from a native Windows
  858. console window (see "Native Windows Build" below). But kconfig-frontends
  859. is a Linux tool. At one time this was a problem for Windows users, but
  860. now there is a specially modified version of the kconfig-frontends tools
  861. that can be used:
  862. http://uvc.de/posts/linux-kernel-configuration-tool-mconf-under-windows.html
  863. The configuration steps most recent versions of NuttX require the
  864. kconfig-tweak tool that is not not available in the the above. However,
  865. there has been an update to this Kconfig Windows tools that does include
  866. kconfig-tweak: http://reclonelabs.com/more-kconfig-awesomeness-for-windows/
  867. Source code is available here: https://github.com/reclone/kconfig-frontends-win32
  868. and https://github.com/reclone/kconfig-frontends-win32/releases
  869. It is also possible to use the version of kconfig-frontends built
  870. under Cygwin outside of the Cygwin "sandbox" in a native Windows
  871. environment:
  872. 1. You can run the configuration tool using Cygwin. However, the
  873. Cygwin Makefile.win will complain so to do this will, you have
  874. to manually edit the .config file:
  875. a. Delete the line: CONFIG_WINDOWS_NATIVE=y
  876. b. Change the apps/ directory path, CONFIG_APPS_DIR to use Unix
  877. style delimiters. For example, change "..\apps" to "../apps"
  878. And of course, after you use the configuration tool you need to
  879. restore CONFIG_WINDOWS_NATIVE=y and the correct CONFIG_APPS_DIR.
  880. 2) You can, with some effort, run the Cygwin kconfig-mconf tool
  881. directly in the Windows console window. In this case, you do not
  882. have to modify the .config file, but there are other complexities:
  883. a. You need to temporarily set the Cygwin directories in the PATH
  884. variable then run kconfig-mconf manually like:
  885. kconfig-mconf Kconfig
  886. There is a Windows batch file at tools/kconfig.bat that automates
  887. these steps:
  888. tools/kconfig menuconfig
  889. b. There is an issue with accessing DOS environment variables from
  890. the Cygwin kconfig-mconf running in the Windows console. The
  891. following change to the top-level Kconfig file seems to work
  892. around these problems:
  893. config APPSDIR
  894. string
  895. - option env="APPSDIR"
  896. + default "../apps"
  897. TOOLCHAINS
  898. ^^^^^^^^^^
  899. Cross-Development Toolchains
  900. ----------------------------
  901. In order to build NuttX for your board, you will have to obtain a cross-
  902. compiler to generate code for your target CPU. For each board,
  903. configuration, there is a README.txt file (at configs/<board-name>/README.txt).
  904. That README file contains suggestions and information about appropriate
  905. tools and development environments for use with your board.
  906. In any case, the PATH environment variable will need to be updated to
  907. include the location where the build can find the toolchain binaries.
  908. NuttX Buildroot Toolchain
  909. -------------------------
  910. For many configurations, a DIY set of tools is available for NuttX. These
  911. tools can be downloaded from the NuttX Bitbucket.org file repository. After
  912. unpacking the buildroot tarball, you can find instructions for building
  913. the tools in the buildroot/configs/README.txt file.
  914. Check the README.txt file in the configuration directory for your board
  915. to see if you can use the buildroot toolchain with your board (this
  916. README.txt file is located in configs/<board-name>/README.txt).
  917. This toolchain is available for both the Linux and Cygwin development
  918. environments.
  919. Advantages: (1) NuttX header files are built into the tool chain,
  920. and (2) related support tools like NXFLAT tools, the ROMFS
  921. genromfs tools, and the kconfig-frontends tools can be built into your
  922. toolchain.
  923. Disadvantages: This tool chain is not was well supported as some other
  924. toolchains. GNU tools are not my priority and so the buildroot tools
  925. often get behind. For example, until recently there was no EABI support
  926. in the NuttX buildroot toolchain for ARM.
  927. NOTE: For Cortex-M3/4, there are OABI and EABI versions of the buildroot
  928. toolchains. If you are using the older OABI toolchain the prefix for
  929. the tools will be arm-nuttx-elf-; for the EABI toolchain the prefix will
  930. be arm-nuttx-eabi-. If you are using the older OABI toolchain with
  931. an ARM Cortex-M3/4, you will need to set CONFIG_ARMV7M_OABI_TOOLCHAIN
  932. in the .config file in order to pick the right tool prefix.
  933. If the make system ever picks the wrong prefix for your toolchain, you
  934. can always specify the prefix on the command to override the default
  935. like:
  936. make CROSSDEV=arm-nuttx-elf
  937. SHELLS
  938. ^^^^^^
  939. The NuttX build relies on some shell scripts. Some are inline in the
  940. Makefiles and many are executable scripts in the tools/. directory. The
  941. scripts were all developed using bash and many contain bash shell
  942. dependencies.
  943. Most of the scripts begin with #!/bin/bash to specifically select the
  944. bash shell. Some still have #!/bin/sh but I haven't heard any complaints
  945. so these must not have bash dependencies.
  946. There are two shell issues that I have heard of:
  947. 1. Linux where /bin/sh refers to an incompatible shell (like ksh or csh).
  948. In this case, bash is probably available and the #!/bin/bash at the
  949. beginning of the file should do the job. If any scripts with #!/bin/sh
  950. fail, try changing that to #!/bin/bash and let me know about the change.
  951. 2. FreeBSD with the Bourne Shell and no bash shell.
  952. The other, reverse case has also been reported on FreeBSD setups that
  953. have the Bourne shell, but not bash. In this base, #!/bin/bash fails
  954. but #!/bin/sh works okay. My recommendation in this case is to create
  955. a symbolic link at /bin/bash that refers to the Bourne shell.
  956. There may still be issues, however, with certain the bash-centric scripts
  957. that will require modifications.
  958. BUILDING NUTTX
  959. ^^^^^^^^^^^^^^
  960. Building
  961. --------
  962. NuttX builds in-place in the source tree. You do not need to create
  963. any special build directories. Assuming that your Make.defs is setup
  964. properly for your tool chain and that PATH environment variable contains
  965. the path to where your cross-development tools are installed, the
  966. following steps are all that are required to build NuttX:
  967. cd{TOPDIR}
  968. make
  969. At least one configuration (eagle100) requires additional command line
  970. arguments on the make command. Read{TOPDIR}/configs/<board-name>/README.txt
  971. to see if that applies to your target.
  972. Re-building
  973. -----------
  974. Re-building is normally simple -- just type make again.
  975. But there are some things that can "get you" when you use the Cygwin
  976. development environment with Windows native tools. The native Windows
  977. tools do not understand Cygwin's symbolic links, so the NuttX make system
  978. does something weird: It copies the configuration directories instead of
  979. linking to them (it could, perhaps, use the NTFS 'mklink' command, but it
  980. doesn't).
  981. A consequence of this is that you can easily get confused when you edit
  982. a file in one of the linked (i.e., copied) directories, re-build NuttX,
  983. and then not see your changes when you run the program. That is because
  984. build is still using the version of the file in the copied directory, not
  985. your modified file!
  986. Older versions of NuttX did not support dependencies in this
  987. configuration. So a simple work around this annoying behavior in this
  988. case was the following when you re-build:
  989. make clean_context all
  990. This 'make' command will remove of the copied directories, re-copy them,
  991. then make NuttX.
  992. However, more recent versions of NuttX do support dependencies for the
  993. Cygwin build. As a result, the above command will cause everything to be
  994. rebuilt (because it removes and will cause recreating the
  995. include/nuttx/config.h header file). A much less gracefully but still
  996. effective command in this case is the following for the ARM configuration:
  997. rm -rf arch/arm/src/chip arch/arm/src/board
  998. This "kludge" simple removes the copied directories. These directories
  999. will be re-created when you do a normal 'make' and your edits will then be
  1000. effective.
  1001. Build Targets and Options
  1002. -------------------------
  1003. Build Targets:
  1004. Below is a summary of the build targets available in the top-level
  1005. NuttX Makefile:
  1006. all
  1007. The default target builds the NuttX executable in the selected output
  1008. formats.
  1009. clean
  1010. Removes derived object files, archives, executables, and temporary
  1011. files, but retains the configuration and context files and directories.
  1012. distclean
  1013. Does 'clean' then also removes all configuration and context files.
  1014. This essentially restores the directory structure to its original,
  1015. unconfigured stated.
  1016. Application housekeeping targets. The APPDIR variable refers to the user
  1017. application directory. A sample apps/ directory is included with NuttX,
  1018. however, this is not treated as part of NuttX and may be replaced with a
  1019. different application directory. For the most part, the application
  1020. directory is treated like any other build directory in the Makefile script.
  1021. However, as a convenience, the following targets are included to support
  1022. housekeeping functions in the user application directory from the NuttX
  1023. build directory.
  1024. apps_clean
  1025. Perform the clean operation only in the user application directory
  1026. apps_distclean
  1027. Perform the distclean operation only in the user application directory.
  1028. The apps/.config file is preserved so that this is not a "full" distclean
  1029. but more of a configuration "reset" for the application directory.
  1030. export
  1031. The export target will package the NuttX libraries and header files into
  1032. an exportable package. Caveats: (1) These needs some extension for the KERNEL
  1033. build. (2) The logic in tools/mkexport.sh only supports GCC and, for example,
  1034. explicitly assumes that the archiver is 'ar'
  1035. download
  1036. This is a helper target that will rebuild NuttX and download it to the target
  1037. system in one step. The operation of this target depends completely upon
  1038. implementation of the DOWNLOAD command in the user Make.defs file. It will
  1039. generate an error an error if the DOWNLOAD command is not defined.
  1040. The following targets are used internally by the make logic but can be invoked
  1041. from the command under certain conditions if necessary.
  1042. depend
  1043. Create build dependencies. (NOTE: There is currently no support for build
  1044. dependencies under Cygwin using Windows-native toolchains.)
  1045. context
  1046. The context target is invoked on each target build to assure that NuttX is
  1047. properly configured. The basic configuration steps include creation of the
  1048. the config.h and version.h header files in the include/nuttx directory and
  1049. the establishment of symbolic links to configured directories.
  1050. clean_context
  1051. This is part of the distclean target. It removes all of the header files
  1052. and symbolic links created by the context target.
  1053. Build Options:
  1054. Of course, the value any make variable an be overridden from the make command
  1055. line. However, there is one particular variable assignment option that may
  1056. be useful to you:
  1057. V=1
  1058. This is the build "verbosity flag." If you specify V=1 on the make command
  1059. line, you will see the exact commands used in the build. This can be very
  1060. useful when adding new boards or tracking down compile time errors and
  1061. warnings (Contributed by Richard Cochran).
  1062. Native Windows Build
  1063. --------------------
  1064. The beginnings of a Windows native build are in place but still not often
  1065. used as of this writing. The build was functional but because of lack of
  1066. use may find some issues to be resolved with this build configuration.
  1067. The windows native build logic initiated if CONFIG_WINDOWS_NATIVE=y is
  1068. defined in the NuttX configuration file:
  1069. This build:
  1070. - Uses all Windows style paths
  1071. - Uses primarily Windows batch commands from cmd.exe, with
  1072. - A few extensions from GNUWin32
  1073. In this build, you cannot use a Cygwin or MSYS shell. Rather the build must
  1074. be performed in a Windows console window. Here is a better terminal than the
  1075. standard issue, CMD.exe terminal: ConEmu which can be downloaded from:
  1076. https://sourceforge.net/projects/conemu/ or https://conemu.github.io/ .
  1077. Build Tools. The build still relies on some Unix-like commands. I use
  1078. the GNUWin32 tools that can be downloaded from http://gnuwin32.sourceforge.net/
  1079. using the 'Download all' selection. Individual packages can be download
  1080. instead if you know what you are doing and want a faster download (No, I
  1081. can't tell you which packages you should or should not download).
  1082. Host Compiler: I use the MingGW GCC compiler which can be downloaded from
  1083. http://www.mingw.org/. If you are using GNUWin32, then it is recommended
  1084. the you not install the optional MSYS components as there may be conflicts.
  1085. This capability should still be considered a work in progress because:
  1086. (1) It has not been verified on all targets and tools, and
  1087. (2) it still lacks some of the creature-comforts of the more mature
  1088. environments.
  1089. Installing GNUWin32
  1090. -------------------
  1091. The Windows native build will depend upon a few Unix-like tools that can be
  1092. provided either by MSYS or GNUWin32. The GNUWin32 are available from
  1093. http://gnuwin32.sourceforge.net/. GNUWin32 provides ports of tools with a
  1094. GPL or similar open source license to modern MS-Windows (Microsoft Windows
  1095. 2000 / XP / 2003 / Vista / 2008 / 7). See
  1096. http://gnuwin32.sourceforge.net/packages.html for a list of all of the tools
  1097. available in the GNUWin32 package.
  1098. The SourceForge project is located here:
  1099. http://sourceforge.net/projects/gnuwin32/. The project is still being
  1100. actively supported (although some of the Windows ports have gotten very old).
  1101. Some commercial toolchains include a subset of the GNUWin32 tools in the
  1102. installation. My recommendation is that you download the GNUWin32 tools
  1103. directly from the sourceforge.net website so that you will know what you are
  1104. using and can reproduce your build environment.
  1105. GNUWin32 Installation Steps:
  1106. The following steps will download and execute the GNUWin32 installer.
  1107. 1. Download GetGNUWin32-x.x.x.exe from
  1108. http://sourceforge.net/projects/getgnuwin32/files/. This is the
  1109. installer. The current version as of this writing is 0.6.3.
  1110. 2. Run the installer.
  1111. 3. Accept the license.
  1112. 4. Select the installation directory. My recommendation is the
  1113. directory that contains this README file (<this-directory>).
  1114. 5. After running GetGNUWin32-0.x.x.exe, you will have a new directory
  1115. <this-directory>/GetGNUWin32
  1116. Note that the GNUWin32 installer didn't install GNUWin32. Instead, it
  1117. installed another, smarter downloader. That downloader is the GNUWin32
  1118. package management tool developed by the Open SSL project.
  1119. The following steps probably should be performed from inside a DOS shell.
  1120. 6. Change to the directory created by GetGNUWin32-x.x.x.exe
  1121. cd GetGNUWin32
  1122. 7. Execute the download.bat script. The download.bat script will download
  1123. about 446 packages! Enough to have a very complete Linux-like environment
  1124. under the DOS shell. This will take awhile. This step only downloads
  1125. the packages and the next step will install the packages.
  1126. download
  1127. 8. This step will install the downloaded packages. The argument of the
  1128. install.bat script is the installation location. C:\gnuwin32 is the
  1129. standard install location:
  1130. install C:\gnuwin32
  1131. NOTE: This installation step will install *all* GNUWin32 packages... far
  1132. more than you will ever need. If disc space is a problem for you, you might
  1133. need to perform a manual installation of the individual ZIP files that you
  1134. will find in the <this directory>/GetGNUWin32/packages directory.
  1135. CYGWIN BUILD PROBLEMS
  1136. ^^^^^^^^^^^^^^^^^^^^^
  1137. Performance
  1138. -----------
  1139. Build performance under Cygwin is really not so bad, certainly not as good
  1140. as a Linux build. However, often you will find that the performance is
  1141. not just bad but terrible. If you are seeing awful performance.. like two
  1142. or three compilations per second.. the culprit is usually your Windows
  1143. Anti-Virus protection interfering with the build tool program execution.
  1144. I use Cygwin quite often and I use Windows Defender. In order to get good
  1145. build performance, I routinely keep the Windows Defender "Virus & Threat
  1146. Protections Settings" screen up: I disable "Real-Time Protection" just
  1147. before entering 'make' then turn "Real-Time Protection" back on when the
  1148. build completes. With this additional nuisance step, I find that build
  1149. performance under Cygwin is completely acceptable.
  1150. Strange Path Problems
  1151. ---------------------
  1152. If you see strange behavior when building under Cygwin then you may have
  1153. a problem with your PATH variable. For example, if you see failures to
  1154. locate files that are clearly present, that may mean that you are using
  1155. the wrong version of a tool. For example, you may not be using Cygwin's
  1156. 'make' program at /usr/bin/make. Try:
  1157. which make
  1158. /usr/bin/make
  1159. When you install some toolchains (such as Yargarto or CodeSourcery tools),
  1160. they may modify your PATH variable to include a path to their binaries.
  1161. At that location, they may have GNUWin32 versions of the tools. So you
  1162. might actually be using a version of make that does not understand Cygwin
  1163. paths.
  1164. The solution is either:
  1165. 1. Edit your PATH to remove the path to the GNUWin32 tools, or
  1166. 2. Put /usr/local/bin, /usr/bin, and /bin at the front of your path:
  1167. export PATH=/usr/local/bin:/usr/bin:/bin:$PATH
  1168. Window Native Toolchain Issues
  1169. ------------------------------
  1170. There are many popular Windows native toolchains that may be used with NuttX.
  1171. Examples include CodeSourcery (for Windows), devkitARM, and several vendor-
  1172. provided toolchains. There are several limitations with using a and Windows
  1173. based toolchain in a Cygwin environment. The three biggest are:
  1174. 1. The Windows toolchain cannot follow Cygwin paths. Path conversions are
  1175. performed automatically in the Cygwin makefiles using the 'cygpath' utility
  1176. but you might easily find some new path problems. If so, check out 'cygpath -w'
  1177. 2. Windows toolchains cannot follow Cygwin symbolic links. Many symbolic links
  1178. are used in Nuttx (e.g., include/arch). The make system works around these
  1179. problems for the Windows tools by copying directories instead of linking them.
  1180. But this can also cause some confusion for you: For example, you may edit
  1181. a file in a "linked" directory and find that your changes had no effect.
  1182. That is because you are building the copy of the file in the "fake" symbolic
  1183. directory. If you use a Windows toolchain, you should get in the habit of
  1184. making like this:
  1185. make clean_context all
  1186. An alias in your .bashrc file might make that less painful. The rebuild
  1187. is not a long as you might think because there is no dependency checking
  1188. if you are using a native Windows toolchain. That bring us to #3:
  1189. General Pre-built Toolchain Issues
  1190. ----------------------------------
  1191. To continue with the list of "Window Native Toolchain Issues" we can add
  1192. the following. These, however, are really just issues that you will have
  1193. if you use any pre-built toolchain (vs. building the NuttX toolchain from
  1194. the NuttX buildroot package):
  1195. There may be incompatibilities with header files, libraries, and compiler
  1196. built-in functions detailed below. For the most part, these issues
  1197. are handled in the existing make logic. But if you are breaking new ground,
  1198. then you may encounter these:
  1199. 4. Header Files. Most pre-built toolchains will build with a foreign C
  1200. library (usually newlib, but maybe uClibc or glibc if you are using a
  1201. Linux toolchain). This means that the header files from the foreign
  1202. C library will be built into the toolchain. So if you "include <stdio.h>",
  1203. you will get the stdio.h from the incompatible, foreign C library and
  1204. not the nuttx stdio.h (at nuttx/include/stdio.h) that you wanted.
  1205. This can cause confusion in the builds and you must always be
  1206. sure the -nostdinc is included in the CFLAGS. That will assure that
  1207. you take the include files only from
  1208. 5. Libraries. What was said above header files applies to libraries.
  1209. You do not want to include code from the libraries of any foreign
  1210. C libraries built into your toolchain. If this happens you will get
  1211. perplexing errors about undefined symbols. To avoid these errors,
  1212. you will need to add -nostdlib to your CFLAGS flags to assure that
  1213. you only take code from the NuttX libraries.
  1214. This, however, may causes other issues for libraries in the toolchain
  1215. that you do want (like libgcc.a or libm.a). These are special-cased
  1216. in most Makefiles, but you could still run into issues of missing
  1217. libraries.
  1218. 6. Built-Ins. Some compilers target a particular operating system.
  1219. Many people would, for example, like to use the same toolchain to
  1220. develop Linux and NuttX software. Compilers built for other
  1221. operating systems may generate incompatible built-in logic and,
  1222. for this reason, -fno-builtin should also be included in your
  1223. C flags
  1224. And finally you may not be able to use NXFLAT.
  1225. 7. NXFLAT. If you use a pre-built toolchain, you will lose all support
  1226. for NXFLAT. NXFLAT is a binary format described in
  1227. Documentation/NuttXNxFlat.html. It may be possible to build
  1228. standalone versions of the NXFLAT tools; there are a few examples
  1229. of this in the buildroot repository at https://bitbucket.org/nuttx/buildroot
  1230. However, it is possible that there could be interoperability issues
  1231. with your toolchain since they will be using different versions of
  1232. binutils and possibly different ABIs.
  1233. Building Original Linux Boards in Cygwin
  1234. ----------------------------------------
  1235. Some default board configurations are set to build under Linux and others
  1236. to build under Windows with Cygwin. Various default toolchains may also
  1237. be used in each configuration. It is possible to change the default
  1238. setup. Here, for example, is what you must do in order to compile a
  1239. default Linux configuration in the Cygwin environment using the
  1240. CodeSourcery for Windows toolchain. After instantiating a "canned"
  1241. NuttX configuration, run the target 'menuconfig' and set the following
  1242. items:
  1243. Build Setup->Build Host Platform->Windows
  1244. Build Setup->Windows Build Environment->Cygwin
  1245. System Type->Toolchain Selection->CodeSourcery GNU Toolchain under Windows
  1246. In Windows 7 it may be required to open the Cygwin shell as Administrator
  1247. ("Run As" option, right button) you find errors like "Permission denied".
  1248. Recovering from Bad Configurations
  1249. ----------------------------------
  1250. Many people make the mistake of configuring NuttX with the "canned"
  1251. configuration and then just typing 'make' with disastrous consequences;
  1252. the build may fail with mysterious, uninterpretable, and irrecoverable
  1253. build errors. If, for example, you do this with an unmodified Linux
  1254. configuration in a Windows/Cgwin environment, you will corrupt the
  1255. build environment. The environment will be corrupted because of POSIX vs
  1256. Windows path issues and with issues related to symbolic links. If you
  1257. make the mistake of doing this, the easiest way to recover is to just
  1258. start over: Do 'make distclean' to remove every trace of the corrupted
  1259. configuration, reconfigure from scratch, and make certain that the set
  1260. the configuration correctly for your platform before attempting to make
  1261. again.
  1262. Just fixing the configuration file after you have instantiated the bad
  1263. configuration with 'make' is not enough.
  1264. DOCUMENTATION
  1265. ^^^^^^^^^^^^^
  1266. Additional information can be found in the Documentation/ directory and
  1267. also in README files that are scattered throughout the source tree. The
  1268. documentation is in HTML and can be access by loading the following file
  1269. into your Web browser:
  1270. Documentation/index.html
  1271. NuttX documentation is also available online at http://www.nuttx.org.
  1272. Below is a guide to the available README files in the NuttX source tree:
  1273. nuttx/
  1274. |
  1275. |- arch/
  1276. | |
  1277. | |- arm/
  1278. | | `- src
  1279. | | |- lpc214x/README.txt
  1280. | | `- stm32l4/README.txt
  1281. | |- renesas/
  1282. | | |- include/
  1283. | | | `-README.txt
  1284. | | |- src/
  1285. | | | `-README.txt
  1286. | |- x86/
  1287. | | |- include/
  1288. | | | `-README.txt
  1289. | | `- src/
  1290. | | `-README.txt
  1291. | `- z80/
  1292. | | `- src/
  1293. | | |- z80/README.txt
  1294. | | `- z180/README.txt, z180_mmu.txt
  1295. | `- README.txt
  1296. |- audio/
  1297. | `-README.txt
  1298. |- binfmt/
  1299. | `-libpcode/
  1300. | `-README.txt
  1301. |- configs/
  1302. | |- amber/
  1303. | | `- README.txt
  1304. | |- arduino-mega2560/
  1305. | | `- README.txt
  1306. | |- arduino-due/
  1307. | | `- README.txt
  1308. | |- avr32dev1/
  1309. | | `- README.txt
  1310. | |- b-l475e-iot01a/
  1311. | | `- README.txt
  1312. | |- bambino-200e/
  1313. | | `- README.txt
  1314. | |- c5471evm/
  1315. | | `- README.txt
  1316. | |- clicker2-stm32
  1317. | | `- README.txt
  1318. | |- cloudctrl
  1319. | | `- README.txt
  1320. | |- demo0s12ne64/
  1321. | | `- README.txt
  1322. | |- dk-tm4c129x/
  1323. | | `- README.txt
  1324. | |- ea3131/
  1325. | | `- README.txt
  1326. | |- ea3152/
  1327. | | `- README.txt
  1328. | |- eagle100/
  1329. | | `- README.txt
  1330. | |- efm32-g8xx-stk/
  1331. | | `- README.txt
  1332. | |- efm32gg-stk3700/
  1333. | | `- README.txt
  1334. | |- ekk-lm3s9b96/
  1335. | | `- README.txt
  1336. | |- ez80f910200kitg/
  1337. | | |- ostest/README.txt
  1338. | | `- README.txt
  1339. | |- ez80f910200zco/
  1340. | | |- dhcpd/README.txt
  1341. | | |- httpd/README.txt
  1342. | | |- nettest/README.txt
  1343. | | |- nsh/README.txt
  1344. | | |- ostest/README.txt
  1345. | | |- poll/README.txt
  1346. | | `- README.txt
  1347. | |- fire-stm32v2/
  1348. | | `- README.txt
  1349. | |- flipnclick-pic32mz/
  1350. | | `- README.txt
  1351. | |- flipnclick-sam3x/
  1352. | | `- README.txt
  1353. | |- freedom-k28f/
  1354. | | `- README.txt
  1355. | |- freedom-k64f/
  1356. | | `- README.txt
  1357. | |- freedom-k66f/
  1358. | | `- README.txt
  1359. | |- freedom-kl25z/
  1360. | | `- README.txt
  1361. | |- freedom-kl26z/
  1362. | | `- README.txt
  1363. | |- gapuino/
  1364. | | `- README.txt
  1365. | |- hymini-stm32v/
  1366. | | `- README.txt
  1367. | |- imxrt1050-evk
  1368. | | `- README.txt
  1369. | |- kwikstik-k40/
  1370. | | `- README.txt
  1371. | |- launchxl-cc1310/
  1372. | | `- README.txt
  1373. | |- launchxl-cc1312r1/
  1374. | | `- README.txt
  1375. | |- launchxl-tms57004/
  1376. | | `- README.txt
  1377. | |- lincoln60/
  1378. | | `- README.txt
  1379. | |- lm3s6432-s2e/
  1380. | | `- README.txt
  1381. | |- lm3s6965-ek/
  1382. | | `- README.txt
  1383. | |- lm3s8962-ek/
  1384. | | `- README.txt
  1385. | |- lpc4330-xplorer/
  1386. | | `- README.txt
  1387. | |- lpc4337-ws/
  1388. | | `- README.txt
  1389. | |- lpc4357-evb/
  1390. | | `- README.txt
  1391. | |- lpc4370-link2/
  1392. | | `- README.txt
  1393. | |- lpcxpresso-lpc1115/
  1394. | | `- README.txt
  1395. | |- lpcxpresso-lpc1768/
  1396. | | `- README.txt
  1397. | |- lpcxpresso-lpc54628/
  1398. | | `- README.txt
  1399. | |- maple/
  1400. | | `- README.txt
  1401. | |- max32660-evsys/
  1402. | | `- README.txt
  1403. | |- mbed/
  1404. | | `- README.txt
  1405. | |- mcb1700/
  1406. | | `- README.txt
  1407. | |- mcu123-lpc214x/
  1408. | | `- README.txt
  1409. | |- metro-m4/
  1410. | | `- README.txt
  1411. | |- micropendous3/
  1412. | | `- README.txt
  1413. | |- mikroe-stm32f/
  1414. | | `- README.txt
  1415. | |- mirtoo/
  1416. | | `- README.txt
  1417. | |- misoc/
  1418. | | `- README.txt
  1419. | |- moteino-mega/
  1420. | | `- README.txt
  1421. | |- ne63badge/
  1422. | | `- README.txt
  1423. | |- nrf52-generic/
  1424. | | `- README.txt
  1425. | |- ntosd-dm320/
  1426. | | |- doc/README.txt
  1427. | | `- README.txt
  1428. | |- nucleo-144/
  1429. | | `- README.txt
  1430. | |- nucleo-f072rb/
  1431. | | `- README.txt
  1432. | |- nucleo-f091rc/
  1433. | | `- README.txt
  1434. | |- nucleo-f303re/
  1435. | | `- README.txt
  1436. | |- nucleo-f334r8/
  1437. | | `- README.txt
  1438. | |- nucleo-f4x1re/
  1439. | | `- README.txt
  1440. | |- nucleo-f410rb
  1441. | | `- README.txt
  1442. | |- nucleo-f446re
  1443. | | `- README.txt
  1444. | |- nucleo-l432kc/
  1445. | | `- README.txt
  1446. | |- nucleo-l452re/
  1447. | | `- README.txt
  1448. | |- nucleo-l476rg/
  1449. | | `- README.txt
  1450. | |- nucleo-l496zg/
  1451. | | `- README.txt
  1452. | |- nutiny-nuc120/
  1453. | | `- README.txt
  1454. | |- olimex-efm32g880f129-stk/
  1455. | | `- README.txt
  1456. | |- olimex-lpc1766stk/
  1457. | | `- README.txt
  1458. | |- olimex-lpc2378/
  1459. | | `- README.txt
  1460. | |- olimex-lpc-h3131/
  1461. | | `- README.txt
  1462. | |- olimex-stm32-h405/
  1463. | | `- README.txt
  1464. | |- olimex-stm32-h407/
  1465. | | `- README.txt
  1466. | |- olimex-stm32-p107/
  1467. | | `- README.txt
  1468. | |- olimex-stm32-p207/
  1469. | | `- README.txt
  1470. | |- olimex-stm32-p407/
  1471. | | `- README.txt
  1472. | |- olimex-strp711/
  1473. | | `- README.txt
  1474. | |- omnibusf4/
  1475. | | `- README.txt
  1476. | |- open1788/
  1477. | | `- README.txt
  1478. | |- p112/
  1479. | | `- README.txt
  1480. | |- pcduino-a10/
  1481. | | `- README.txt
  1482. | |- photon/
  1483. | | `- README.txt
  1484. | |- pic32mx-starterkit/
  1485. | | `- README.txt
  1486. | |- pic32mx7mmb/
  1487. | | `- README.txt
  1488. | |- pic32mz-starterkit/
  1489. | | `- README.txt
  1490. | |- qemu-i486/
  1491. | | `- README.txt
  1492. | |- sabre-6quad/
  1493. | | `- README.txt
  1494. | |- sama5d2-xult/
  1495. | | `- README.txt
  1496. | |- sama5d3x-ek/
  1497. | | `- README.txt
  1498. | |- sama5d3-xplained/
  1499. | | `- README.txt
  1500. | |- sama5d4-ek/
  1501. | | `- README.txt
  1502. | |- samd20-xplained/
  1503. | | `- README.txt
  1504. | |- samd21-xplained/
  1505. | | `- README.txt
  1506. | |- saml21-xplained/
  1507. | | `- README.txt
  1508. | |- sam3u-ek/
  1509. | | `- README.txt
  1510. | |- sam4cmp-db
  1511. | | `- README.txt
  1512. | |- sam4e-ek/
  1513. | | `- README.txt
  1514. | |- sam4l-xplained/
  1515. | | `- README.txt
  1516. | |- sam4s-xplained/
  1517. | | `- README.txt
  1518. | |- sam4s-xplained-pro/
  1519. | | `- README.txt
  1520. | |- same70-xplained/
  1521. | | `- README.txt
  1522. | |- samv71-xult/
  1523. | | `- README.txt
  1524. | |- sim/
  1525. | | |- include/README.txt
  1526. | | `- README.txt
  1527. | |- shenzhou/
  1528. | | `- README.txt
  1529. | |- skp16c26/
  1530. | | `- README.txt
  1531. | |- spresense/
  1532. | | `- README.txt
  1533. | |- stm3210e-eval/
  1534. | | |- RIDE/README.txt
  1535. | | `- README.txt
  1536. | |- stm3220g-eval/
  1537. | | `- README.txt
  1538. | |- stm3240g-eval/
  1539. | | `- README.txt
  1540. | |- stm32_tiny/
  1541. | | `- README.txt
  1542. | |- stm32f103-minumum/
  1543. | | `- README.txt
  1544. | |- stm32f3discovery/
  1545. | | `- README.txt
  1546. | |- stm32f4discovery/
  1547. | | `- README.txt
  1548. | |- stm32f411e-disco/
  1549. | | `- README.txt
  1550. | |- stm32f429i-disco/
  1551. | | |- fb/README.txt
  1552. | | `- README.txt
  1553. | |- stm32f746g-disco/
  1554. | | _- fb/README.txt
  1555. | | _- nxdemo/README.txt
  1556. | | _- nxterm/README.txt
  1557. | | `- README.txt
  1558. | |- stm32f769i-disco/
  1559. | | `- README.txt
  1560. | |- stm32l476-mdk/
  1561. | | `- README.txt
  1562. | |- stm32l476vg-disco/
  1563. | | `- README.txt
  1564. | |- stm32l4r9ai-disco/
  1565. | | `-README.txt
  1566. | |- stm32ldiscovery/
  1567. | | `- README.txt
  1568. | |- stm32vldiscovery/
  1569. | | `- README.txt
  1570. | |- sure-pic32mx/
  1571. | | `- README.txt
  1572. | |- teensy-2.0/
  1573. | | `- README.txt
  1574. | |- teensy-3.x/
  1575. | | `- README.txt
  1576. | |- teensy-lc/
  1577. | | `- README.txt
  1578. | |- tm4c123g-launchpad/
  1579. | | `- README.txt
  1580. | |- tm4c1294-launchpad/
  1581. | | `- README.txt
  1582. | |- twr-k60n512/
  1583. | | `- README.txt
  1584. | |- tms570ls31x-usb-kit/
  1585. | | `- README.txt
  1586. | |- twr-k64f120m/
  1587. | | `- README.txt
  1588. | |- u-blox-co27/
  1589. | | `- README.txt
  1590. | |- ubw32/
  1591. | | `- README.txt
  1592. | |- us7032evb1/
  1593. | | `- README.txt
  1594. | |- viewtool-stm32f107/
  1595. | | `- README.txt
  1596. | |- xmc5400-relax/
  1597. | | `- README.txt
  1598. | |- z16f2800100zcog/
  1599. | | |- ostest/README.txt
  1600. | | |- pashello/README.txt
  1601. | | `- README.txt
  1602. | |- z80sim/
  1603. | | `- README.txt
  1604. | |- z8encore000zco/
  1605. | | |- ostest/README.txt
  1606. | | `- README.txt
  1607. | |- z8f64200100kit/
  1608. | | |- ostest/README.txt
  1609. | | `- README.txt
  1610. | |- zkit-arm-1769/
  1611. | | `- README.txt
  1612. | |- zp214xpa/
  1613. | | `- README.txt
  1614. | `- README.txt
  1615. |- drivers/
  1616. | |- eeprom/
  1617. | | `- README.txt
  1618. | |- lcd/
  1619. | | | README.txt
  1620. | | `- pcf8574_lcd_backpack_readme.txt
  1621. | |- mtd/
  1622. | | `- README.txt
  1623. | |- sensors/
  1624. | | `- README.txt
  1625. | |- syslog/
  1626. | | `- README.txt
  1627. | `- README.txt
  1628. |- fs/
  1629. | |- binfs/
  1630. | | `- README.txt
  1631. | |- cromfs/
  1632. | | `- README.txt
  1633. | |- mmap/
  1634. | | `- README.txt
  1635. | |- nxffs/
  1636. | | `- README.txt
  1637. | |- smartfs/
  1638. | | `- README.txt
  1639. | |- procfs/
  1640. | | `- README.txt
  1641. | |- spiffs/
  1642. | | `- README.md
  1643. | `- unionfs/
  1644. | `- README.txt
  1645. |- graphics/
  1646. | `- README.txt
  1647. |- libs/
  1648. | |- README.txt
  1649. | |- libc/
  1650. | | |- zoneinfo
  1651. | | | `- README.txt
  1652. | | `- README.txt
  1653. | |- libdsp/
  1654. | | `- README.txt
  1655. | |- libnx/
  1656. | | |- nxfongs
  1657. | | | `- README.txt
  1658. | | `- README.txt
  1659. | |- libxx/
  1660. | `- README.txt
  1661. |- mm/
  1662. | |- shm/
  1663. | | `- README.txt
  1664. | `- README.txt
  1665. |- net/
  1666. | |- sixlowpan
  1667. | | `- README.txt
  1668. | `- README.txt
  1669. |- pass1/
  1670. | `- README.txt
  1671. |- syscall/
  1672. | `- README.txt
  1673. `- tools/
  1674. `- README.txt
  1675. Below is a guide to the available README files in the semi-optional apps/
  1676. source tree:
  1677. apps/
  1678. |- examples/
  1679. | |- bastest/README.txt
  1680. | |- json/README.txt
  1681. | |- pashello/README.txt
  1682. | `- README.txt
  1683. |- gpsutils/
  1684. | `- minmea/README.txt
  1685. |- graphics/
  1686. | |- tiff/README.txt
  1687. | `- traveler/tools/tcledit/README.txt
  1688. |- interpreters/
  1689. | |- bas/
  1690. | | `- README.txt
  1691. | |- ficl/
  1692. | | `- README.txt
  1693. | `- README.txt
  1694. |- modbus/
  1695. | `- README.txt
  1696. |- netutils/
  1697. | |- discover/
  1698. | | `- README.txt
  1699. | |- ftpc/
  1700. | | `- README.txt
  1701. | |- json/
  1702. | | `- README.txt
  1703. | |- telnetd/
  1704. | | `- README.txt
  1705. | `- README.txt
  1706. |- nshlib/
  1707. | `- README.txt
  1708. |- NxWidgets/
  1709. | `- README.txt
  1710. |- system/
  1711. | |- cdcacm/
  1712. | | `- README.txt
  1713. | |- i2c/
  1714. | | `- README.txt
  1715. | |- inifile/
  1716. | | `- README.txt
  1717. | |- install/
  1718. | | `- README.txt
  1719. | |- nsh/
  1720. | | `- README.txt
  1721. | |- nxplayer/
  1722. | | `- README.txt
  1723. | |- psmq/
  1724. | | `- README.txt
  1725. | |- symtab/
  1726. | | `- README.txt
  1727. | |- termcurses/
  1728. | | `- README.txt
  1729. | |- usbmsc/
  1730. | | `- README.txt
  1731. | `- zmodem/
  1732. | `- README.txt
  1733. `- wireless
  1734. |- bluetooth/
  1735. | `- btsak/
  1736. | `- README.txt
  1737. `- ieee802154
  1738. `- i8sak/
  1739. `- README.txt
  1740. Additional README.txt files in the other, related repositories:
  1741. NxWidgets/
  1742. |- Doxygen
  1743. | `- README.txt
  1744. |- tools
  1745. | `- README.txt
  1746. |- UnitTests
  1747. | `- README.txt
  1748. `- README.txt
  1749. buildroot/
  1750. `- README.txt
  1751. tools/
  1752. `- README.txt
  1753. uClibc++/
  1754. `- README.txt
  1755. pascal/
  1756. `- README.txt