ROBOTICS UNIVERSITY. Powered by Blogger.

How To Debug and Load Project Using Code Composer Studio



robotics-university.com | Hello friends, if you build your embedded systems project using Texas Instruments microcontroller chips and Code Composer Studio IDE software, when you want to send your program-output into the target microcontroller chips, you have two options to choosen, i.e. Debug and Load. Have you known the difference and the equation between them? If haven’t yet, below I show you the method how to debug and load project using Code Composer Studio, then I also show you the comparisons between both of them. 

1. PROJECT DEBUGGING 
When using Code Composer Studio, debug means you load program-output to the target microcontroller chip and at the same time you can analyze or optimize your embedded systems project using project optimizer features. In order you can understand my explanation, please try debug a project. To debug a project, select “Run” menu then “Debug” on the Code Composer Studio menu-bar or press shortcut-key F11 (See figure 1). 

Figure 1. Step to debug the project/program 

Once you press “Run” menu then select “Debug (F11)” option on Code Composer Studio, the debug page feature (Analyze and Optimize feature) will be opened (See figure 2), among others Memory allocation tab, Optimizer assistant tab, Stack usage tab, and etc. 

Figure 2. Code Composer Studio Debug feature page 

And at the same time, the program-output sent to the target microcontroller chip (MSP432P401R). To see the hardware behavior and knowing the project result, push reset button on the SimpleLink MSP432 development kit. 

2. PROGRAM LOADING 
When using Code Composer Studio, load means you load program-output to the target microcontroller chip, after that you can see the hardware behavior and knowing the project result. To load a program (Load program to the target microcontroller chip only), select “Run” menu then “Load” and select “Select Program to Load” option on the Code Composer Studio menu-bar (See figure 3). 

Figure 3. Step to load the program-output (1) 

Then click “Browse” button to browse the program-output (See figure 4). 

Figure 4. Step to load the program-output (2) - Browse the program-output 

Open your related project folder (led_1 is my project folder), select the program-output (a program with “out” extension), next, press “Open” button (see figure 5), then press “OK” button (See figure 6). 

Figure 5. Step to load the program-output (3) - Select the program-output (out file) 

Figure 6. Step to load the program-output (4) - The selected program-output 

Once you press “OK” button (see figure 6), the load program-output process will run and finally show Code Composer Studio Load feature page (See figure 7). See the hardware behavior to knowing the project result. 

Figure 7. Code Composer Studio Load feature page 

3. THE COMPARISONS BETWEEN DEBUG & LOAD 
From the explanation above, we know about the different and the equation between Debug and Load. Below is Table 1 which give us knowledge about the Debug and Load comparisons. 

Table 1. The Debug & Load Comparisons 

After you know the different and the equation between Debug and Load, now it is depend on your needs to debug or to load. If you only want to send your program to the target microcontroller chip, use Load. But if you want to send your program to the target microcontroller chip and at the same time you also want to analyze or optimize your embedded systems project, use debug. 


0 Comment For "How To Debug and Load Project Using Code Composer Studio"

Back To Top