https://github.com/nopnop2002/nuttx_api_examples
nuttx api examples
https://github.com/nopnop2002/nuttx_api_examples
examples nuttx
Last synced: about 1 year ago
JSON representation
nuttx api examples
- Host: GitHub
- URL: https://github.com/nopnop2002/nuttx_api_examples
- Owner: nopnop2002
- Created: 2018-09-23T05:12:21.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2024-01-08T03:10:35.000Z (over 2 years ago)
- Last Synced: 2025-02-28T19:53:14.354Z (over 1 year ago)
- Topics: examples, nuttx
- Language: C
- Homepage:
- Size: 64.5 KB
- Stars: 6
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Software requirements
Nuttx Version 12.3 or lower.
From Nuttx Version 12.0, the global variable of ```g_system_timer``` has been changed to ```g_system_ticks```.
# Install Nuttx
Install Nuttx to $HOME/nuttxspaces.
```
$ mkdir $HOME/nuttxspace
$ cd $HOME/nuttxspace
$ git clone -b releases/12.3 https://github.com/apache/nuttx.git nuttx
$ git clone -b releases/12.3 https://github.com/apache/nuttx-apps apps
```
# How to use
Copy all file to your $HOME/nuttxspaces/apps/examples directory and add all examples to Kconfig.
```
$ git clone https://github.com/nopnop2002/nuttx_api_examples
$ cd nuttx_api_examples
$ cp -r nuttx_* $HOME/nuttxspace/apps/examples/
$ cp $HOME/nuttxspace/apps/examples/Kconfig $HOME/nuttxspace/apps/examples/Kconfig.old
$ sed s@HOME@$HOME/nuttxspace/apps/examples@g Kconfig >> $HOME/nuttxspace/apps/examples/Kconfig
$ cd $HOME/nuttxspace/nuttx
$ make menuconfig
```


Add the following example.


```
$ make
$ st-flash --connect-under-reset write nuttx.bin 0x8000000
```
If you find any bugs, please let us know using issues.