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.

RM57L843: NHET program generated by HalCoGen

Part Number: RM57L843
Other Parts Discussed in Thread: HALCOGEN

Hello

In our board, not all NHET pins are available for HET functions. HalConGen generates a standard program with 7 PWMs. We have configured some PWMs to the same pin, 0, which I believe is not correct. I don't want to leave these PWM funcions in the program because someone could try to use them.

Is there a way in HalConGen to only enable the functions we want?

If I just remove the instructions, should I change the LRP too?

Best Regards,

Marcio.

  • Hi Marcio,

    Is there a way in HalConGen to only enable the functions we want?

    You can disable the pin action for PWM.

    Even though code created for PWM, if we didn't enable the above highlighted checkboxes there won't be any pin action for corresponding PWM. So here just enable the pin action for only for your required PWM's.

    If I just remove the instructions, should I change the LRP too?

    It is not mandatory, but you can reduce if you want. Because the main intention of Loop Resolution Time is that it should be enough to execute all the instructions in the loop before it expires. If you reduce the instructions, then obviously it will take less time to execute compared to previous value.

    But removing the instructions is not a good idea because if you regenerate the code from HALCoGen then removed code will again gets generated.

    Instead of this method it would be better to use HET_IDE for code generation, in this case you can just create minimal code which is required for your application.

    --
    Thanks & regards,
    Jagadish.