robotics-university.com | Hello friends, today I invite you to learn about one of popular 32-bit microcontroller chip from Texas Instruments (TI). On this article, I will make a guidance to get started MSP432 microcontroller chip programming using Code Composer Studio IDE software. This software has provided by Texas Instruments for its microcontroller chips user. On this project, I use MSP432P401R (MSP‑EXP432P401R) series microcontroller chip that was embeded on SimpleLink LaunchPad development kit (See figure 1). For your information, MSP432 is a microcontroller with ARM Cortex-M4F architecture that produced by TI. Okey ... let’s continue read this article and practiced by follow the guidance on this project, in order you can build your own MSP432 project at home.
1. Project Materials
To build this project, we have to has the project materials. Below I write-down the needs hardware and software in order you can make this project realized.
A. Hardware needs
(1) SimpleLink MSP432P401R development kit (32-bit ARM Cortex-M4F) from TI.
(2) Data cable (USB type-A to Micro USB type-B).
(3) Computer/Laptop.
Figure 1. SimpleLink MSP432 (MSP432P401R) development kit
B. Software needs
(1) Code Composer (CoCo) Studio.
Code Composer Studio or CCS for short is a suite of development tools including an editor, project management system, compiler, debugger, profiling and visualization tools.
The latest version of CoCo Studio 9.3.0 available to download here!
For your information, there is no license fee associated with Code Composer Studio. Users are free to download and install Code Composer Studio without having to purchase a license. The license terms for Code Composer Studio are shown at installation and available afterwards in the/doc folder.
2. The Interface of SimpleLink MSP432 Development Kit with Computer & LED
To start the project, at the first, you have to make your computer connect to the SimpleLink MSP432 development kit via USB port and connect the MSP432P401R microcontroller I/O pins with two light emitting diode (LED) components on PORT-5 (P5.2 and P5.4). See figure 2.
Figure 2. The interfacing of SimpleLink MSP432 development kit with computer
3. The Installation of the Needed Software
If you have downloaded Code Composer Studio installer file, then save it on your computer hard-disk, and you want to use it to build an embedded systems project, you have to install it first on your computer.
To get started install the Code Composer (Coco) Studio on your computer, open the directory/folder where have you save the zip package file of Coco Studio installer (Offline) that you have downloaded before, then extract it.
Figure 3. Code Composer Studio installer file
Next, open the extracted folder of the Coco Studio. To start install, double-click the Coco Studio exe file and then follow every single step of Coco Studio installation process until the process complete (See figure 3).
4. Getting Started to New Project Building
After you have installed all of the needed software on part-3 and connect your SimpleLink MSP432 development kit to computer with follow the figure 2 above, now it’s time to getting started build your first embedded systems project.
STEP 1: Create New Project
To create a new project on Code Composer Studio platform, you can read my previous article about “How to Create New Project & Hardware Connection Verify On Coco Studio” here!
STEP 2: Create Program On Code Composer Studio Program Editor
On this first project, we will create a program to control two LED (Ligth Emitting Diode) which installed on P5.2 and P5.4 of SimpleLink MSP432 development kit. Write the program below on the CCS IDE program editor (See Program 1).
Program 1: main.c
This program will make LED components which installed on P5.2 pin dan P5.4 pin light up alternately with different delay value.
STEP 6: Build The Project
If you have been finished create your program, next, you have to “build” or compile that program, in order your program can be sent to the target microcontroller chip and configure its function as your expectation. To know the program building steps, you can read my previous article about “HowTo Build Project On Code Composer Studio” here!
STEP 7: Debug or Load The Project/Program
On Code Composer Studio, after a project has built successfully, there are two method to send the program-output to the microcontroller chip, i.e. Debug the program and Load the program. To know the program debugging or loading steps, you can read my previous article about “How To Debug and Load Project Using Code Composer Studio” here!
STEP 8: Ensure The Project Result As Your Expectation
To ensure that the built program has downloaded into the target microcontroller chip properly, please observe the project hardware. Is the LED behaviour has been as your expectation? If yes, that is sign that the built program has downloaded well.
Recommended articles:
0 comments:
Post a Comment