Learn about the development environment of CC3200 (1) CCS chapter

Source: Internet
Author: User

Learn the CC3200 together

Introduction to the development environment (1) CCS chapter

Tom Cruise

Order:

Limited ability, inevitably wrong, there is a problem please contact me, please leave a message or e-mail contact

QQ Group Exchange: 482729453 mail contact [email protected]

Data sharing link http://pan.baidu.com/s/1hqiWB56

Version: 20151215

Learn the CC3200 together 2

Introduction to the development environment (1) CCS Chapter 2

First, Introduction to the development environment 3

1. compiling tools 3

2. download Tool 3

3. Summary 3

Second, Introduction to CCS and IAR 4

Third, CCS installation Requirements 5

Four, CCS installation process 6

Five, Installing the SDK

Six, Import the official project

Seven, Compile the first running water lamp project

1. compiling driverlib

2. compiling Blinky

3. Insert the board and set the board

4. Debug Emulation

5. Summary

    1. Introduction to the development environment
      1. Compiling tools
    • Ccs
    • IAR
    • Gcc
    • Energia

The compilation tool can only compile the source code and emulation function, and does not have the function of downloading the code.

Common in the domestic Ccs,iar,gcc,ccs and IAR is the most common, so mainly around these two to explain.

    1. Download tool
    • Uniflash Software

We can use the Uniflash software to download the compilation tool generated by the bin to CC3200 external Flash, please remember that CC3200 although the ROM, but we do not download the bin file to ROM, can only be downloaded to external flash.

    1. Summarize

Basically we can use CCS plus uniflash, or IAR plus uniflash to complete the development of CC3200, of course, we may also use other tools to speed up our development. These software can be found on TI's official website, if not found please download http://pan.baidu.com/s/1hqiWB56 or contact me here.

    1. CCS, IAR introduction

      CCS software is the official recommended software, its core is eclipse, what is Eclipse? If you've developed Java or Android, you know what eclipse is. Eclipse is an open-source, Java-based, extensible development platform. Simply put, eclipse is a development environment that can develop a lot of software, so you can compile a lot of code if you provide a plugin. CCS was modified by Eclipse. So many plugins that can be used on eclipse can also be used in CCS, and the shortcut keys used in Eclipse can be used in CCS as well. Why introduce eclipse? Because it is often seen that there is a knowledge that CCS has no code complement function? So I answer CCS is eclipse, meaning is to call you to Baidu Eclipse code completion function, Eclipse is the world uses a very wide software, relatively speaking, CCS users are much less, so about the use of eclipse in the online search can find a big push. The

      IAR is the compilation environment and debugger for C/s + + and is used in development tools for embedded systems. With a lot of people, so the use of the method is a random search can search a bunch.

      As far as individuals are concerned, use CCS as much as possible. But CCS on the computer requirements are relatively high, the best CPU is I3 above (not including I3), I3 estimated barely, may be slightly card.

    2. CCS installation Requirements
    • The system is preferably 32 64 > bit can be installed. Other systems are cumbersome to install, not recommended for other systems.
    • path requirements cannot have spaces, Chinese characters, names cannot be too long, The best are pure English, these requirements are you develop must pay attention to, do not install a software are not installed, go out only will be laughed.
  1. CCS installation process
    1. download CCS

    The official website provides two installation methods, one for online installation and the other for offline installation. The main introduction is the offline installation. Install package Ccs6.1.1.00022_win32.zip, this is the latest version of the current.

    1. Start installation

      unzip get

     

    Click Ccs_setup_6.1.1.00022.exe

    Accept the agreement, click Next

    We can be lazy, directly installed on the C drive, Click Next

    To tick the options, click Next

    Click Next

    To tick the option, click Finsh, wait for the installation, if the installation is not successful at this time, please re-download the software and reinstall. It takes a long time to install, so we can have a lazy sleep first.

    Wait for the flowers to thank.

    Click Finish. Complete the installation.

     

    1. set workspace for CCS

    What is a workspace? Is where your code is stored.

    First open CCS.

    If you do not set a default workspace, you will see the next time you open CCS, you can go to

    Select a path, tick (save every day), click OK.

    will now jump out of

    Click No.

    This is the just-on-boot interface for CCS.

    At this point, the CCS end is set.

     

  2. Installing the SDK

    What is the SDK? Baidu Encyclopedia: Software Development Toolkit (Foreign language acronym: SDK, Foreign language full name: Software development Kit) is typically a collection of software engineers developing tools to build applications for specific software packages, software frameworks, hardware platforms, operating systems, and so on. CC3200 's SDK is the official source code and works, so we need to install the SDK first.

    Installation package Name: Cc3200sdk-1.1.0-windows-installer.exe

    The installation process is next.

    This will jump out of the dialog box, select the path of the installation, click Next directly.

    This will jump out of the dialog box. This dialog box is to select the driver to install the emulator, and click Yes directly. This is important.

    Complete the installation.

  3. Import the Official project
    1. Open CCS
    2. Click File, then click Import

    3. Import CCS Project

    Select CCS Projects and click Next

    Please follow the instructions to proceed, here I am importing all projects, click Finish.

    Now we're going to look at our work space.

    Is it a lot more files? If you do not import, your workspace at this time is not so many files.

    Take a look at CCS, which is a lot more work at this time.

  4. Compile the first running water lamp project
      1. Compiling driverlib

        let's see. Driverlib Engineering.

        Driverlib is the peripheral driver package, which is TI provided, these driver packages are encapsulated in the configuration of the register process.

    includes is the header file.

    Release is the file generated by the compilation.

    all the others . C file.

    if the compilation succeeds, the Console The following information appears.

      1. Compiling Blinky

        Compilation succeeded:

      2. Insert the board and set the board

    If your board is official, please set the board to the following state,

    The yellow jumping caps are all plugged in, the green does not plug in:

    Connect the board to the computer and view the Device Manager

    If the above information appears, it means that your driver installation is complete, and your emulator is not a problem. If it does not appear, please check that the driver is installed or the board may be broken.

      1. debug emulation

         

        ccs " Span style= "font-family: the song Body;" > only software emulation, not the ability to burn code. ccs support SWD and jtag jtag simulation. This is also to be set, otherwise ccs Don't know what tool you're going to use to emulate, If you are using the official board, the method is as follows:

      2. Click View, then click Target configurations

         

      3. find the following interface

      4. right-click User Defined, select Import Target configuration

         

      1. Select Cc3200.ccxml under the installation path of the SDK

      2. Select OK

      3. Right-click Cc3200.ccxml, select Set as Default in context

      4. Setup Complete

    Then we'll do the simulation:

      1. Click Run->debug

      1. Check that there is no entry to debug success

        The successful interface is this:

      1. Run the program, click the icon in the mouse pointer, or press f8

      2. observe the status of the board, if you are the official board, and the code has not been modified, You can see the board appeared running lights phenomenon.
      3. Summary

        key:

    • The jumping cap of the board must be set well. Because the CC3200 has a boot mode. What is the startup mode? That 's where CC3200 started running the code when it was just on.
    • Debug must be configured before Cc3200.ccxml that the decision of this document Debug is to use SWD or JTAG Way of.

Learn about the development environment of CC3200 (1) CCS chapter

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.