Bios Getting Started Guide
Bios Getting Started Guide
June 4, 2013
Preface
Notational Conventions
This document uses the following conventions:
Program listings, program examples, and interactive displays are shown in a special typeface. Examples use a bold version of the special typeface for emphasis. Here is a sample program listing:
#include <xdc/runtime/System.h> int main(){ System_printf("Hello World!\n"); return (0); }
Square brackets ( [ and ] ) identify an optional parameter. If you use an optional parameter, you specify the information within the brackets. Unless the square brackets are in a bold typeface, do not enter the brackets themselves.
ii
Trademarks
The Texas Instruments logo and Texas Instruments are registered trademarks of Texas Instruments. Trademarks of Texas Instruments include: TI, Code Composer, Code Composer Studio, DSP/BIOS, SYS/BIOS, SPOX, TMS320, TMS320C54x, TMS320C55x, TMS320C62x, TMS320C64x, TMS320C67x, TMS320C28x, TMS320C5000, TMS320C6000 and TMS320C2000. Windows is a registered trademark of Microsoft Corporation. Linux is a registered trademark of Linus Torvalds. All other brand or product names are trademarks or registered trademarks of their respective companies or organizations.
iii
Contents
Read This First ...........................................................................................................................................ii About This Manual ............................................................................................................................... ii How to Use This Manual ..................................................................................................................... ii Notational Conventions ....................................................................................................................... ii Related Documentation from Texas Instruments................................................................................ ii Trademarks ......................................................................................................................................... iii Using SYS/BIOS with CCS .................................................................................................................... 1-5 1.1 Installing SYS/BIOS ................................................................................................................. 1-5 1.2 Creating SYS/BIOS Projects with the TI Resource Explorer .................................................. 1-6 1.3 SYS/BIOS Examples ............................................................................................................... 1-8 1.4 Working with CCS Build Settings ............................................................................................ 1-8 1.5 Using XGCONF to Configure SYS/BIOS Modules and Objects ............................................. 1-9 1.6 Building a SYS/BIOS Project................................................................................................. 1-10 1.7 Running a SYS/BIOS Project ................................................................................................ 1-10 More About SYS/BIOS ......................................................................................................................... 2-12 2.1 Using SYS/BIOS as a Standalone Product ........................................................................... 2-12 2.2 Learning More ........................................................................................................................ 2-13 2.3 About XDCtools ..................................................................................................................... 2-14
Chapter 1
Topic
Page
1.1 Installing SYS/BIOS ...............................................................................................................5 1.2 Creating SYS/BIOS Projects with the TI Resource Explorer................................................6 1.3 SYS/BIOS ..............................................................................................................................8 1.4 Working with CCS Build Settings .........................................................................................8 1.5 Using XGCONF to Configure SYS/BIOS Modules and Objects ...........................................9 1.6 Building a SYS/BIOS Project ...............................................................................................10 1.7 Running a SYS/BIOS Project...............................................................................................10
4) Select the example you want to create. A description of the selected example is shown at the top of the page to the right of the example list. To get started
with SYS/BIOS, you can choose one of the Generic Examples, such as the Log Example or Task Mutex Example. 5) When you are ready to create your own application project, you might choose the "Minimal" or "Typical" example depending on how memorylimited your target is. For some device families, device-specific SYS/BIOS templates are also provided. (If you have other software components that use SYS/BIOS, such as IPC, you can choose a template provided for that component.) 6) Click the Step 1 link in the right pane of the TI Resource Explorer to Import the example project into CCS. This adds a new project to your Project Explorer view.
7) The project created will have a name with the format <example_name>_<board>.You can expand the project to view or change the source code and configuration file. 8) The page shown when you select an example in the TI Resource Explorer provides additional links to perform common actions with that example. Youll see a green checkmark next to the steps that you have performed. 9) Use the Step 2 link in the TI Resource Explorer when you are ready to build the project. If you want to change any build options, right click on the project and select Properties from the context menu. For example, you can change compiler, linker, and RTSC (XDCtools) options.
10) Use the Step 3 link in the TI Resource Explorer to change the connection used to communicate with the board. The current setting is shown in the TI Resource Explorer page for the selected example. (If you want to use a simulator instead of a hardware connection, choose View > Target Configurations in CCS and find the *.ccxml file for your project. Double-click on the file to open the Target Configuration File editor. Change the Connection as needed, and click Save.)
11) Use the Step 4 link in the TI Resource Explorer to launch a debug session for the project and switch to the CCS Debug Perspective.
Benchmark Example C++ Example (bigtime) Clock Example Error Example Event Example Hello Example Log Example Memory Example Small Example Static Example Swi Example Task Mutex Example
For some device families, device-specific SYS/BIOS templates are also provided. (If you have other software components that use SYS/BIOS, such as IPC, you can choose a template provided for that component.) When you are ready to create your own application project, you might choose the "Minimal" or "Typical" example depending on how memory-limited your target is.
For more details, see Section 2.2 of the SYS/BIOS Users Guide.
6) In the ROV window, expand the tree to see the ti.sysbios.knl.Task module. The right pane shows a list of the Task threads in the application. As you advance from breakpoint to breakpoint, you see the run mode of the threads change.
10
11
Chapter 2
Topic
Page
2.1 Using SYS/BIOS as a Standalone Product ......................................................................... 11 2.2 Learning More...................................................................................................................... 13 2.3 About XDCtools ...................................................................................................................14
12
SYS/BIOS Release Notes. In the top-level SYS/BIOS installation directory, or choose Help > Help Contents in CCS and expand the SYS/BIOS item. SYS/BIOS Users Guide (SPRUEX3). In <bios_install_dir>/docs, or choose Help > Help Contents in CCS and expand the SYS/BIOS item. Also available on the Texas Instruments website (http://www.ti.com/lit/pdf/spruex3). Migrating a DSP/BIOS 5 Application to SYS/BIOS 6 (SPRAAS7). In <bios_install_dir>/docs/ Bios_Legacy_App_Note.pdf, or choose Help > Help Contents in CCS and expand the SYS/BIOS item. Also available on the Texas Instruments website (http://www.ti.com/lit/pdf/spraas7). SYS/BIOS API Reference (also called "CDOC"). Run <bios_install_dir>/docs/cdoc/index.html, or choose Help > Help Contents in CCS and expand the SYS/BIOS item. SYS/BIOS main page (http://processors.wiki.ti.com/index.php/Category:SYSBIOS) on the TI Embedded Processors Wiki. This page provides links to many resources for using SYS/BIOS. SYS/BIOS quick starts (http://processors.wiki.ti.com/index.php/SYS/BIOS_Quick_Starts) provide target-specific examples of how to create, build, and run sample projects. BIOS forum (http://e2e.ti.com/support/embedded/f/355.aspx) on TIs E2E Community. SYS/BIOS Product Folder (http://focus.ti.com/docs/toolsw/folders/print/dspbios6.html) on ti.com Embedded Software Download Page (http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/index.html)
To learn more about using Code Composer Studio (CCS), see the following:
CCS online help. Choose Help > Help Contents in CCS. CCSv5 main page (http://processors.wiki.ti.com/index.php/Category:Code_Composer_Studio_v5) on the TI Embedded Processors Wiki Code Composer forum (http://e2e.ti.com/support/development_tools/code_composer_studio/f/81.aspx) on TIs E2E Community
13
XDCtools API Reference (also called "CDOC"). Run <xdctools_install_dir>/docs/xdctools.chm, or choose Help > Help Contents in CCS and expand the XDCtools item. RTSC-Pedia Wiki (http://rtsc.eclipse.org/docs-tip) BIOS forum (http://e2e.ti.com/support/embedded/f/355.aspx) on TIs E2E Community Embedded Software Download Page (http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/index.html)
14