Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

= 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.htmlImage RemovedImage Added for instructions

The JLink software is available on Arch AUR: jlink-software-and-documentation. Please install it.

...

For more information on openSDA: 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.htmlImage RemovedImage Added

GNU Make doc may be also valuable: https://www.gnu.org/software/make/manual/make.htmlImage RemovedImage Added

Connect to the OpenSDA serial console

Open a new terminal and run the minterm:

...