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.

Halcogen includes and ...getting started with it

Other Parts Discussed in Thread: HALCOGEN, TMS570LS3137

Hi,

I'm new to the forum so hope this is the right place for this question (is not feel free to move it).

I've follow the halcogen starting instructions to generate a test code:

Code Composer Studio v4:
- File -> New -> CCS project, Name: halcogen-test
- ->NEXT, Project Type: ARM
- ->NEXT->NEXT: Device Variant: Cortex R TMS570LS3137
- FINISH

Halcogen v03.05.00
- File -> new project,
     Family: TMS570LS31x,
     Device: TMDX570LS31HDK
     Name: halcogen-test
     Uncheck: "Create Directory for project"
     Location : same as CCS project directory
- File -> Generate code

Code Composer Studio
- Project -> build all

Here a lot of "could not open source file ....h" errors are generated. Seems that the "include" dir generated by halcogen is not in the include paths list. Where this setting can be corrected?

BTW: where there's a good starting point other than generating a test code to stering navigating the lot of options of the halcogen environement and to understand the coding way of the TMS570?

Thank you,

Matteo

  • Hi Matteo,

    The default include path for a CCS project only defines the compiler's "include" folder as the place to look for source and header files. You can add your own folder path to the list of include folders by updating the project properties.

    Once you get the "properties" window for your project, open the "CCS Build" section and then open the "ARM Compiler" subsection to find the "Include Options".

    Next, click on the "Add" button under the "Add dir to #include search path..." section as shown below.

    This will open another window that will allow you to choose any folder that has your header files.

    As for your other comment, the best way to get started with HALCoGen is to use the example code projects that are included as part of the "help" file. These code generation examples walk you through the steps required to configure certain aspects of a particular module, generate the code, load the code in a CCS project, compile the code, and then execute it on a part. As you make your own edits to the HALCoGen projects, you will become more familiar with the tool itself.

    Please let us know if we can help in the mean time.

    Regards, Sunil

  • Thank you for the answer. The first part is solved.

    About the second question:

    - where can I found a comprehensive programmers reference with the the function description?

    - there's a document describing the next steps to follow (after build and compile) to work with the board and the emulator?

    Thank you

  • Hi Matteo,

    The technical reference manual for the MCU can be found from the Hercules Safety MCU's technical documents page at: http://www.ti.com/lsds/ti/microcontroller/safety_mcu/tech_docs.page under the "User Guides" section. The TRM includes the definition for each control/status register and explains the programmers' model for each IP on the MCU.

    There is not a separate reference manual for HALCoGen. The best way to get started with this tool is to walk through the example code-generation projects that are included as part of the "help" file. These examples will help you understand the steps required to configure certain aspects of a particular module, generate the code, load the code in a CCS project, compile the code, and then execute it on a part.

    Regards, Sunil