Other Parts Discussed in Thread: CONTROLSUITE
Hello,
I am using F28377D to implement current hysteresis control, and have some problem running the code standalone.
I use the CMPSS8 to form an upper and lower limit, and compare a signal to it and connect the CMPSS8 output to PWM8 and 9 through ePWMXBAR, such that is will set the PWM high/low to make the current signal to bounce between the upper and lower limit. It works fine in debug mode with both RAM and FLASH. However, when I program it to FLASH and turn off and turn back on the power, the current hysteresis part does not work any more. I tried: flash the chip, turn off power, turn on power, connect to target, load symbols only, and click run, everything all works fine then. But as long as I just cycle the power, it does not run the hysteresis control part. I can tell the program is partially running, as I have other constant frequency PWM, etc., and I can see those signals on the scope, but just the hysteresis control part is not running.
I check the following link according to the kind suggest of a member of the forum,
processors.wiki.ti.com/.../FAQs
I am still not very sure what is the cause of this problem. Any direction would be greatly appreciated. Thank you.
Best regards,
Shibin