DUE TO SPAM, SIGN-UP IS DISABLED. Goto Selfserve wiki signup and request an account.
...
Getting Started with NuttX – FreeScale / NXP Kinetis Tower K64F120M (Arch Linux)
Here we will try to set up a functional Nuttx environment on a TWR-K64F120M Tower evaluation board, combined with the TWR-SER for Ethernet access on Arch Linux OS.
...
- nsh: uses the main board only. nsh prompt will be available on OpenSDA serial bridge. SDHC card is automounted in /mnt/sdcard
- netnsh: uses main board coupled with TWR-SER board. nsh prompt will be available on both OpenSDA serial bridge and Ethernet
Installing the ARM tool chain
See "Getting Started with NuttX – Nucleo STM32F303 (Arch Linux)" page for instructions.
Install Nuttx
| Code Block |
|---|
$ mkdir twr-k64f120m; cd twr-k64f120m $ git clone https://bitbucket.org/nuttx/nuttx $ git clone https://bitbucket.org/nuttx/apps $ cd nuttx $ tools/configure.sh twr-k64f120m:nsh $ tools/configure.sh twr-k64f120m:netnsh |
...
One can see the firmware nuttx.hex has been successfully generated.
Flash & debug with JLInk OpenSDA and gdb
Should you not have a JTAG probe, JLink is kindly providing a proprietary OpenSDA V2 firmware which will allow to flash and debug with JLink software trhoug the USB link,
while still keeping the serial bridge feature.
So please install this firwmare on your tower kit. See https://www.segger.com/opensda.html![]()
for instructions
The JLink software is available on Arch AUR: jlink-software-and-documentation. Please install it.
...
To stop the code, press Ctlrl+C
For more information on openSDAOpenSDA: www.nxp.com/pages/opensda-serial-and-debug-adapter:OPENSDA
and for GNU gdb: https://www.chemie.fu-berlin.de/chemnet/use/info/gdb/gdb_toc.html![]()
![]()
GNU Make doc may be also valuable: https://www.gnu.org/software/make/manual/make.html![]()
![]()
Connect to the OpenSDA serial console
Open a new terminal and run the mintermminiterm:
| Code Block |
|---|
$ miniterm.py --filter direct /dev/ttyACM0 115200 miniterm.py /dev/ttyACM0 115200 --- Miniterm on /dev/ttyACM0 115200,8,N,1 --- --- Quit: Ctrl+] | Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H --- |
...
Congratulation! You are started with Nuttx NuttX!