0% found this document useful (0 votes)
9 views21 pages

BBB Guid

The Beagle Bone Black Baremetal Development Guide provides instructions for installing the AM335X StarterWare package and CCS tool, as well as building drivers and applications for the Beagle Bone Black. It includes detailed steps for creating new projects, configuring build settings, and specifying output files. The guide also covers building both debug and release modes for various applications, including GPIO and USB mass storage functionalities.

Uploaded by

makeitsimpler105
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
9 views21 pages

BBB Guid

The Beagle Bone Black Baremetal Development Guide provides instructions for installing the AM335X StarterWare package and CCS tool, as well as building drivers and applications for the Beagle Bone Black. It includes detailed steps for creating new projects, configuring build settings, and specifying output files. The guide also covers building both debug and release modes for various applications, including GPIO and USB mass storage functionalities.

Uploaded by

makeitsimpler105
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 21

Beagle Bone Black

Baremetal Development
Guide
Contents
1. Introduction...................................................................................................................................2
2. Installation of ti’s AM335X_StarterWare_02_00_01_01 Pa..........................................................2
2.1. c.................................................................................................................................................2
3. Installation of CCS tool...................................................................................................................2
3.1. Installation CCS tool...................................................................................................................2
4. Building Driver for Beagle Bone Black............................................................................................2
4.1. Building Drivers for Debug Mode...............................................................................................2
4.2. Building Drives for Release Mode............................................................................................10
5. Building Application.....................................................................................................................10
5.1. GPIO – LED Blink Application...................................................................................................10
5.2. USB Mass Storage Class – Host Mode......................................................................................10
6. Building Custom Application........................................................................................................10
6.1. New project Creaction.............................................................................................................10
6.2. Linker Command Information..................................................................................................13
6.3. Build Settings...........................................................................................................................13
6.3.1. Builder Setting.....................................................................................................................13
6.3.2. Post Build Setting.................................................................................................................14
6.3.3. Output File Specification......................................................................................................15
6.3.4. Adding driver, system, platform and utils libraries..............................................................16
6.4. Build Project / Rebuild.............................................................................................................18
7. Fsd...............................................................................................................................................20
7.1. S...............................................................................................................................................20
8. df.................................................................................................................................................20
1. Introduction

2. Installation of ti’s AM335X_StarterWare_02_00_01_01


Package

3. Installation of CCS tool

3.1. Installation CCS tool


4. Building Driver for Beagle Bone Black

4.1. Building Drivers for Debug Mode


 Open CCS tool and select the workspace
 Import the drivers, platform, system, utils projects from the staterware installation package.
In this case the path is C:\ti\AM335X_StarterWare_02_00_01_01\build\armv7a\cgt_ccs
• You will see similar tab as below fig with imported projects list [drivers, platform, system, utils].

Build the projects [drivers, platform, system, utils] with build button as shown in below.
4.2. Building Drives for Release Mode
5. Building Application

5.1. USB Mass Storage Class – Host Mode


6. Building Custom Application

6.1. New project Creation


 File -> New -> CCS Project

 Select Target as AM33x – Cortex A8 and AM3358


o Note : If BBB is built with AM3359, select as AM3359
 Select TI v20.2.5.LTS Compiler Version
 Project templates and examples look like as follows,

 After creation of project, Project Explorer looks like,


6.2. Linker Command Information

6.3. Build Settings

6.3.1. Builder Setting


 Go to Builder tab from Build option as shown below
 Deselect Use default build command
 Use the Build Command as:
${CCS_UTILS_DIR}/bin/gmake -k -j ${NUMBER_OF_PROCESSORS} -s
6.3.2. Post Build Setting
 Go to Setps tab from Build option as shown below

 Change the Post-build Steps as follows,

"${CCS_INSTALL_ROOT}/utils/tiobj2bin/tiobj2bin.bat" "${Project_Path}/${ConfigName}/$
{ProjName}.out" "${Project_Path}/${ConfigName}/${ProjName}.bin"
"${CG_TOOL_ROOT}/bin/armofd.exe" "${CG_TOOL_ROOT}/bin/armhex.exe" "$
{CCS_INSTALL_ROOT}/utils/tiobj2bin/mkhex4bin.exe" &
"C:/ti/AM335X_StarterWare_02_00_01_01/tools/ti_image/tiimage.exe" "0x80000000" "NONE" "$
{Project_Path}/${ConfigName}/${ProjName}_ti.bin"

Assume my Project Path is C:/Users/Chakrapani/ti/workspace_ccs/HelloWorld, replace $


{Project_Path} this C:/Users/Chakrapani/ti/workspace_ccs/HelloWorld

After replacing look like this:

"${CCS_INSTALL_ROOT}/utils/tiobj2bin/tiobj2bin.bat"
"C:/Users/Chakrapani/ti/workspace_ccs/HelloWorld/${ConfigName}/${ProjName}.out"
"C:/Users/Chakrapani/ti/workspace_ccs/HelloWorld/${ConfigName}/${ProjNa

me}.bin" "${CG_TOOL_ROOT}/bin/armofd.exe" "${CG_TOOL_ROOT}/bin/armhex.exe" "$


{CCS_INSTALL_ROOT}/utils/tiobj2bin/mkhex4bin.exe" &
"C:/ti/AM335X_StarterWare_02_00_01_01/tools/ti_image/tiimage.exe" "0x80000000" "NONE"
"C:/Users/Chakrapani/ti/workspace_ccs/HelloWorld/${ConfigName}/${ProjName}_ti.bin"

6.3.3. Output File Specification


 Select basic option from,
o Build->Arm Linker->Basic Option
6.3.4. Adding driver, system, platform and utils
libraries
 Select basic option from,
o Build->Arm Linker->File Search Path and it is as,
 Add following file in case of debug mode,
o C:\ti\AM335X_StarterWare_02_00_01_01\binary\armv7a\cgt_ccs\am335x\drivers\Debug\drivers.lib
o C:\ti\AM335X_StarterWare_02_00_01_01\binary\armv7a\cgt_ccs\am335x\system_config\Debug\system.lib
o C:\ti\AM335X_StarterWare_02_00_01_01\binary\armv7a\cgt_ccs\am335x\beaglebone\platform\Debug\platform.lib
o

 Add following file in case release mode


Release
o C:\ti\AM335X_StarterWare_02_00_01_01\binary\armv7a\cgt_ccs\am335x\drivers\Release\drivers.lib
o C:\ti\AM335X_StarterWare_02_00_01_01\binary\armv7a\cgt_ccs\am335x\system_config\Release\system.lib
o C:\ti\AM335X_StarterWare_02_00_01_01\binary\armv7a\cgt_ccs\am335x\beaglebone\platform\Release\platform.lib
o C:\ti\AM335X_StarterWare_02_00_01_01\binary\armv7a\cgt_ccs\utils\Release\utils.lib

After adding the library file look as follows,


 Apply and Close

6.4. Build Project / Rebuild


 Build the project using build option as follow
 After successful build, output files

HelloWorld.out and HelloWorld.bin are generated in the project folder.

This the file need to store in to boot device.

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy