This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Linux CCSv5 Tutorial

So I am working on a project using BeagleBone (the small version of BeagleBoard) and CCS5 with the host being Ubuntu 10.4. Basically the need is to access/write code for the board at the chip level, whilst skipping the OS. Given that I am the researcher for this, and I do Cyber Defence, not programming, I was given the tools needed however I am clueless really as to go about it. We plan on developing specialised apps utilising BB. Right now the main issue I'm having is: 1. How to even use CCSv5 2. How to get the code into BB to test it (I was given that as an action item) 3. How to even write the code (though I can figure that out, I know bash and python, but they need it in C) As trivial as this may seem, this is really my only resource available to me. Thus any further assistance would be swell. V/R, Capt. Simeon Blatchley
  • Simeon,

    You mentioned Linux in the subject line, therefore I assume you are using this OS and would like to perform low-level debugging and code loading - i.e., skipping the OS as you mentioned.

    In this case, the IDE will allow you to go through the process of creating the code in C/C++ or assembly, loading and/or inspecting the code loaded to the target and interact with its memory contents.

    Answering your questions;

    1) The best procedure to get acquainted with CCS is to follow the Getting Started Guide, which goes through the process of installing, creating the first project and debugging it.

    2) Although the guide above uses the software simulator, this can be easily extended to the hardware. Choose the appropriate options in the section Creating a Target Configuration File  shown in the chapter Project debugging. In the case of BeagleBone the settings are Connection: XDS100v2, Device/target can be either AM335x (the Generic) or, if you installed the device support files (link shown in the guide) you also have a BeagleBone device/target.

    3) To write the code you must have a knowledge of assembly, C or C++. However, when interacting with Linux and its pre-bootloaders (xloader and u-boot) you will have to reference additional documentation for the software package (SDK) suitable for your board.

    http://processors.wiki.ti.com/index.php/Sitara_Linux_Software_Developer%E2%80%99s_Guide

    Other two references that will help you perform debugging in such environments are shown in the two links below:

    http://processors.wiki.ti.com/index.php/Linux_Debug_in_CCSv5

    http://processors.wiki.ti.com/index.php/U-boot_Debug_in_CCSv5

    Regards,

    Rafael

  • Yes thanks! I am currently using Ubuntu 10.4. or am whilst working on this project. Sorry my information was so vague. This has some key information I was looking for so thanks again! V/R, Simeon P.S. If you know of any project links off hand that'd be swell, just to use as an example/guideline..if not I can search around.