3 Simple Ways to
Share What You Make

With Instructables you can share what you make with the world — and tap into an ever-growing community of creative experts.

PhotosPhotos

Share one or more photos of a project, recipe, or whatever you've made, quickly and easily.

Step by StepStep-By-Step

Share your step-by-step photos with text instructions of what you made so others can do it too!

VideoVideo

Share your how-to video. You'll need your embed code from a video site such as YouTube.

MSP430 Based Chronulator (using Launchpad chip)

Step 3Using IAR Embedded Workbench KickStart

Using IAR Embedded Workbench KickStart

In this step I would like to give the basic procedure for using the IAR compiler/debugger. Later in the project we will be tuning the adjustment arrays for the meters to compensate for nonlinearities. We will end up going through this process several times. Also, I wanted to point out steps 3 and 4, which caused me to do some head scratching because I didn't know about them.

  1.   Open existing or create new workspace.
  2.   Create new project for Chronulator.
  3.   Select Project -> Options... -> category: general options and change
        device to MSP430G2211.
  4.   Change Category to "Debugger" and change "Driver" to FET Debugger.
  5.   Hit ok.
  6.   Create new file (file -> new -> file)
  7.   Copy/paste code into new file and name file.
  8.   Go to the workspace window, your Chronulator project should be there. If not
        select the correct tab at the bottom of the window.
  9.   Right click the project in the tree and select add -> file "your file name .c".
        Your file should be added to the project tree.
10.   Right click the project again and select Rebuild all.
        You can now expand the "your file name.c" branch of the tree and see the
        h files that are added.
11.   Now to put the code on your chip, select the "make" icon or menu:
        Project -> make, or F7 (to make).
12.   Make sure that your Launchpad is plugged in to a USB port and that the
        Launchpad board has the MSP430G2211 chip on board (or has been connected via
        "spy-by-wire" with the project board) and the 32K crystal has been installed.
13.   Select the "Download and Debug" icon or menu: Project -> Download and Debug,
        or Ctrl+D.  This will download the code to the chip and start the debugger.
14.   If everything is ok, your computer will pause for a brief time and then a new set
        of toolbars will show up. This is the debugger. For the simplest case, we can
        hit the "Go" toolbar icon, watch the circuit operation and then hit the
        "Stop Debugger" toolbar icon. When you stop the debugger, the toolbar
        will return to their normal state.

If you make changes to the code you cycle through steps 12 to 14.



« Previous StepDownload PDFView All StepsNext Step »

Pro

Get More Out of Instructables

Already have an Account?

close

All Steps Viewing
View all steps of an Instructable on the same page when you're a Pro Member.

Upgrade to Pro today!
30
Followers
8
Author:Doug Paradis