Giter VIP home page Giter VIP logo

t32's Introduction

About t32

Go wrapper for Lauterbach Trace32 Remote API.

It is based on the API shipped with Trace32 S.2012.0y.000038005 Build 38005

Requirements:

  • C version of Trace32 Remote API to compile this module. For copyright issue, the files not included.
  • MinGW (32bit / 64bit depends on your Go version) installed, needed by cgo to compile C code.

Install

  • Assume your Go is installed at c:\go, Download t32.go and put into folder: c:\go\src\pkg\github.com\yongzhy\t32

  • Copy from c:\T32\demo\api\capi\src the following three files, put them in the same folder as t32.go

      hlinknet.c
      hremote.c
      t32.h
    
  • From MinGW command prompt, issue following command :

      go install github.com/yongzhy/t32
    

Example

Start Trace32 with following configuration:

; Remote API Access
RCL=NETASSIST
PACKLEN=1024
PORT=2000

Example Code:

if err := t32.Config("NODE=", "localhost"); err != nil {
	panic(err)
}
if err := t32.Config("PACKLEN=", "1024"); err != nil {
	panic(err)
}
if err := t32.Config("PORT=", "2000"); err != nil {
	panic(err)
}
if err := t32.Init(); err != nil {
	panic(err)
}
if err := t32.Attach(t32.T32_DEV_ICD); err != nil {
	panic(err)
}
if err := t32.Cmd("Print \"Hello\"); err != nil {
    panic(err)
}
t32.Exit()

t32's People

Contributors

yongzhy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

bathepawan

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.