Other Parts Discussed in Thread: DRV8301, OPA2374, BOOSTXL-DRV8301
Tool/software: Code Composer Studio
Hello -
I have a custom hardware design, and am having a couple of issues bringing the board up. This is not my first design using InstaSPIN so I am not a newb per se.
I have remapped the PWM channels and ADC inputs, changed the necessary user.h values, and am running lab 5b (MW 16) with previously-identified motor values.
I should also preface that I am using a DRV8301 plus a third current shunt amplifier circuit. The third current shunt amp doesn't appear to be behaving properly on this board, so I have user.h set to use 2 current sensors.
The problem I am experiencing is that once I enable the run_identify flag, the motor does generally start spinning. However, at varying times (sometimes almost immediately, sometimes not for several minutes) the system will halt unexpectedly, and all of my watch variables in CCS (the default ones for lab 5b) are reset to their initial/default values. I can tell from setting breakpoints that when this occurs, main() is being executed again. This is only supposed to happen once at startup correct?
This issue is making it difficult to look for faults et al. since all of the debug values are lost/reset when this occurs.
Any help/insight would be greatly appreciated!
Best,
-asifjahmed