GithubHelp home page GithubHelp logo

rprasanth / cc3200 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from nqd/cc3200

0.0 2.0 0.0 39.22 MB

cc3200 with linux

C 52.54% C++ 1.76% Objective-C 1.81% Makefile 0.68% Batchfile 0.82% HTML 0.40% CSS 0.13% Shell 0.01% JavaScript 0.06% Pascal 0.20% XS 41.53% PHP 0.01% Java 0.07%

cc3200's Introduction

CC3200 Development under Linux

Note:

  • This document contains a HOWTO on developing applications for the TI CC3200 Launchpad under Ubuntu 64bit. It is a work-in-progress, but all information contained should work and has been tested on my Ubuntu system. If you feel that something is missing, can be improved or is wrong, please let me know.
  • Libs and examples are extracted from TI CC3200SDK v1.0.0. I will keep this project up-to-date with TI SDK release.

Setup

Install GNU Tools for ARM Embeded Processor: gcc-arm-none-eabi, gdb-arm-none-eabi

Install OpenOCD for onchip debugging: openocd (v0.7)

The launchpad is based on an FTDI chip, and current Linux kernels provide very good support for it. If the kernel module does not kick in automatically, because TI did change VID and PID code. Run the command below (for kernel >= 3.12)

  modprobe ftdi_sio
  echo 0451 c32a > /sys/bus/usb-serial/drivers/ftdi_sio/new_id

The board should have enumberated as /dev/ttyUSB{0,1}. We will use ttyUSB1 for UART backchannel

Build your first example

Take example/blinky as example. Go to gcc, type make -f Makefile, you will see the blinky.axf generated under exe folder. Copy this file to /tools/gcc_scripts.

First, make sure you got openocd setup by running openocd -f cc3200.cfg, you should get output like

  Open On-Chip Debugger 0.7.0 (2013-10-22-08:31)
  Licensed under GNU GPL v2
  For bug reports, read
    http://openocd.sourceforge.net/doc/doxygen/bugs.html
  Info : only one transport option; autoselect 'jtag'
  adapter speed: 1000 kHz
  cc3200_dbginit
  Info : clock speed 1000 kHz
  Info : JTAG tap: cc3200.jrc tap/device found: 0x0b97c02f (mfg: 0x017, part: 0xb97c, ver: 0x0)
  Info : JTAG tap: cc3200.dap enabled
  Info : cc3200.cpu: hardware has 6 breakpoints, 4 watchpoints

Then, begin to debug with arm-none-eabi-gdb -x gdbinit blinky.axf. Typing continue when got input prompt, you will see three LEDs of the launchpad blinking.

cc3200's People

Contributors

nqd avatar

Watchers

James Cloos avatar Prasanth R avatar

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.