Skip to content

liexusong/tinkerpal

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TinkerPal

Lightweight JavaScript engine and ecosystem for embedded platforms

Roadmap

Build Status Coverage Status codecov.io Coverity Scan Build Documentation Status

Platforms

All supported platform provide a serial console, some provide GPIO and SPI support

  • TI Stellaris EK-LM4F120XL (“Stellaris Launchpad”)
  • TI Stellaris EK-LM3S6965
  • TI Stellaris LM3S6918 (“RDK-IDM”)
  • TI Tiva C EK-TM4C123GXL (“Tiva C Launchpad”)
  • TI Tiva C EK-TM4C1294XL ("Tiva C Connected Launchpad")
  • TI MSP-EXP430F5529 (“MSP430F5529 USB Experimenter’s Board”)
  • TI MSP-EXP430F5529LP (“MSP430F5529 Launchpad”)
  • ST STM32F3Discovery
  • ST STM32F4Discovery
  • ST STM32F429IDiscovery
  • HY 24" STM32F103 based board
  • Freescale FRDM-KL25Z
  • Linux/Cygwin

Installation

Basic pre-requisites

  • gcc
  • make
  • gperf
  • flex
  • bison
  • libncurses5-dev

lm4tools

  • git-core
  • libusb-1.0.0-dev
  • pkg-config

mspdebug

  • libreadline6

ST Link

  • autoconf

STM32Loader

  • python
  • python-serial

Runtime

screen / minicom / putty

Obtaining Toolchain / SDK

ARM cross compilation toolchain can be found at https://launchpad.net/gcc-arm-embedded Alternatively, you can use an optimized toolchain from http://tinkerpal.org/sat.tgz

BSPs are downloaded automatically as part of the build process

Building

> make menuconfig
> make

Environment Variables

  • CROSS_COMPILE - compiler prefix

Building for a specific target

> make <defconfig file>
Where defconfig files can be found in boards/configs/
> make

Examples

Building as a Linux executable

> make unix_sim_gcc_defconfig
> make

The output executable can be found at ./build.Linux/tp

Building for the Stellaris Launchpad on Linux

> export CROSS_COMPILE=arm-none-eabi-
> make lm4f120xl_gcc_defconfig
> make

The output file can be found at ./build.Linux/tp.bin

Flashing TinkerPal

Most targets can be flashed by running 'make burn'. Note: this requires root privileges

About

Embedded JavaScript Engine and Ecosystem

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C 89.7%
  • C++ 4.1%
  • JavaScript 2.1%
  • Makefile 1.5%
  • Yacc 0.6%
  • Perl 0.6%
  • Other 1.4%