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.

Program word insertion in CCS

Other Parts Discussed in Thread: HALCOGEN, TMS570LS3137

I want to put the instructions (PCNT, BRANCH) which the HET IDE so kindly generated into the RAM so that the HET will carry out my algorithm.

I can't just include the .c and .h files that the HET IDE generated because the std_het.h library isn't included.

Andd I can't include the std_het.h library because it apparently conflicts with the libraries generated by HALCOGEN.

So, how do I put a few words like this..(PCNT, BRANCH)..

//The header will probably be necessary as well.

// Is there a different library I can use to replace std_het.h?

#include "std_het.h"  

HET_MEMORY HET_INIT0_PST[2] =
{

/* L01_0 */
{
0x00001768,
0x00000000,
0x00000000,
0x00000000
},

/* L02_0 */
{
0x00000D00,
0x00000000,
0x00000000,
0x00000000
}
};

// INTO THE HET MEMORY LOCATION?

  • Hi Charles,

    I have set a project using the HET IDE to do a simple PWM blinking a pin on TMS570LS3137 and it worked well.

    1- On HET IDE, create your HET code

    2- On HALCoGen make sure the HET Global Timing Configuration is identical to the one you have in the HET IDE

    3- On HALCoGen give the path to your het code c and h files in the NHET Driver Settings and make sure you check the box for Enable Advanced Config Mode

    4- In the main() function add hetInit(); - this will properly initialize your HET by a memcopy of your HET code into the HET RAM (pointer is hetRAM1)

    5- the std_nhet.h file is included in the project using HALCoGen and doesn't require to be copied over from the HET IDE project.

    Please let me know if that fixes your problem.

    Thanks and regards,

    TI Forum team

     

     

  • Hello Charles,

    Did the information provided by Luc answer your question? If so, please mark his answer verified so that we can close the thread.