Skip to content

Nim-on-ARM: Runtime and BSP suport to enable Nim on ARM Cortex MCUs

License

Notifications You must be signed in to change notification settings

Jeff-Ciesielski/narm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

83 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NARM: Nim-on-ARM

Just enough runtime and BSP support to enable easy use of nim on ARM Cortex MCUs

Prerequisites

  1. GNU Make
  2. gcc-arm-embedded
  3. Nim
  4. openocd

Creating a new project:

  1. Create (if necessary) board and CPU definitions (see existing examples for details).
  2. Create an application folder in the apps directory
  3. Create a config.mk file for your application (see existing examples)
  4. Store your application code in the newly created directory and edit your config.mk file appropriately

Building

  1. 'cd' to the root of base project directory
  2. type 'make APP=your_app_name'

Debugging

  1. Install openocd with support for your JTAG dongle
  2. Add an openocd.cfg to your project (see existing examples)
  3. Install DDD (data display debugger) (optional)
  4. Type: sudo make APP=your_app_name openocd (this starts the debugger)
  5. Attach your favorite debugger (gdb/ddd/insight) to the openocd session (a make command for ddd is included in the makefile)

Licensing

All of the makefiles and device drivers contained herin are licensed under the MIT license, HOWEVER, any application code is property of its respective owners. Any vendor provided code (ST SPL for example) are subject to their included licenses.

About

Nim-on-ARM: Runtime and BSP suport to enable Nim on ARM Cortex MCUs

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published