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.

TMS570LC4357: The N2HET is debugged with the CPU

Part Number: TMS570LC4357


Hi Team,

1) Configuration register HETGCR.is=0, using the N2HET module as per section 23.4.4 of the manual. However, when the CPU is halted at the breakpoint, the N2HET module does not stop functioning. Is additional configuration or action required? 

2) Configure breakpoints as described in Section 23.1.7 of the manual, but after the N2HET is stopped, the CPU does not stop and continues to function normally. 

3) Follow section 23.1.7 to configure the CPU and N2HET restart. However, the N2HET works directly without waiting for the CPU to exit the debug state. Does the restart require additional configuration or action? 

Could you please help check this case? Thanks.

Best Regards,

Cherry

  • Hi Cherry,

    We started working on this issue and will try to address as soon as possible.

    --

    Thanks & regards,
    Jagdish.

  • Hi Cherry,

    Just now i tested the first issue you mentioned and you are right about it, i mean even if we pause the debug in LC4357 the N2HET wave is not stopping. And i tested same in RM46 board but there it is stopping, if we clear the 17th bit (Ignore Suspend) of GCR register.

    Give me some more time to debug further and update to you.

    --

    Thanks & regards,
    Jagadish.

  • Hi Jagadish,

    Thank you for the support and expect your findings.

    Thanks and regards,

    Cherry

  • Hi Cherry,

    I want to suggest one better way to stop the N2HET program.

    We just need to set the 22nd bit in the program field of the instruction to stop the N2HET program right after the execution of the instruction. For example i want to stop the N2HET program after the first instruction.

    Then first i want to know the N2HET program start address

    For my example it is "0xFF460000U", so that means my program will start from this address and first instruction will be in this address only.

    And here the program field value is "0x00002C80U", that means 22nd bit is 0. So now if i want to stop the program i will just SET this bit in the memory browser window.

    After SET the 22nd bit value my N2HET program got suspend and i can't no longer see the PWM waveform. To again run the N2HET program we just need to restart the code.

    Yes, there looks some issue with IS bit of N2HET, but I would suggest this is the best way because we can stop execution at any instruction and can see the status.

    --

    Thanks & regards,
    Jagadish.