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.

TMS470 HET Assembler



Normal 0 false false false EN-US ZH-CN X-NONE MicrosoftInternetExplorer4

Normal 0 false false false EN-US ZH-CN X-NONE MicrosoftInternetExplorer4

 Hi,

I'm new to TMS470 microprocessor.
I've problem using the HET assembler. How can I assemble the HET code in to *.c and *.h files?

I've tried to use the TMS470 assembler and IAR IDE (followed the tech. document), but with no success.
1. HET Assembler Using Command line or batch file:
het470 -hc32 -n0 HET_counter.het .\ HET_counter_H
pause

Note: my TMS470 het filename is HET_counter.het

2. For using IAR Embedded Workbench (the IAR kickstart, came with the evaluation kit), it seems like the HET470.exe and HET470wrap.exe are missing from the ARM\bin folder. Where can I get those exe files?
I followed the steps in: http://focus.ti.com/lit/an/spna069/spna069.pdf


Thank you very much for all the help I can get!

  • Hi,

    Yes, I got the HET file assembled using the batch file method.

    It's just a simple syntax error in my HET file, where  " ; " should be used instead of " // " in front of the comments line.

     

    (what I do:

    1. Copy the HET470.exe to the same project folder as the HET file

    2. Write a *bat file:

    het470 -hc32 -n0 HET_counter.het .\ HET_counter_H
    pause.

    3. Run the *.bat file )

     

     

    However, I'm still not able to use IAR to compile the HET file. I've downloaded the HET470.exe from IAR website (saved to ARM\bin), but I could not find the HET470wrap.exe.

    Any ideas how to assemble HET file using IAR?

    Thanks!

     

  • Soo,

    1. HET assembler is embedded in HET IDE (a GUI program provided at TMS570 HET IDE ). This tool help you to compile and simulat your HET file and generate the .C, .H file. This link  "HET IDE Overview"  is a video introducing how to use this tool.

    2. Once the .c and .H file are generated, you have to add the .c file into your project. The .c file is a set of instructions. Then, you need to copy the instructions in the '.c' file to the HET RAM.

    This link http://focus.ti.com/mcu/docs/litabsmultiplefilelist.tsp?sectionId=96&tabId=1502&literatureNumber=spraba0b&docCategoryId=1&familyId=1870 is an application notes (including source code), showing how to generate a PWM using HET and the available tools. It is built through TI CCS. You can read it and understand how to copy the instructions into HET RAM.

    Regards,

    Haixiao

     

  • Hi Haixiao,

      Thank you very much for your help and the useful information!

     I've downloaded the HET IDE, and tried it out. The *c and *h files generated using HET IDE are identical to the one generated using HET470.exe (batch file method).

     I've added the generated *.c file to my project, and also copied the instructions in *.c file to the HET RAM. Now, my project is being compiled error free.

     Thanks!