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.

How does the HET IDE code work?

Other Parts Discussed in Thread: RM42L432

Hi,

I have two rather basic questions here.

1)If I write a code using HET IDE and include it in my main project (I'm using RM42L432), does it get executed once when I call "HetInit()"? Or do I have to put it in a while loop?

2)If I want to call a function which exists in that code through my main program, how do I do it? I have its memory location as HET_INIT0_PST[<some value>]. 

Regards,

Abhishek

  • Abhishek Narwekar said:

    Hi,

    I have two rather basic questions here.

    1)If I write a code using HET IDE and include it in my main project (I'm using RM42L432), does it get executed once when I call "HetInit()"? Or do I have to put it in a while loop?

    HW: You write code in HET IDE, then, you include the .c and .h file generated from HET IDE to the CCS. After that, once you call the HetInit, actully, it is the last line of HetInit triggers the HET execusion.

    hetREG->GCR = 0x01030001U;

    2)If I want to call a function which exists in that code through my main program, how do I do it? I have its memory location as HET_INIT0_PST[<some value>]. 

    HW: Take a look at this line in hetinit,

    memcpy((void *)hetRAM, (const void *)hetPROGRAM, sizeof(hetPROGRAM));

    It copies the .c file you created in Het IDE to the on-chip HET RAM, after that , once you run

    hetREG->GCR = 0x01030001U;

    The new code will start to run.

    Regards,

    Abhishek