Other Parts Discussed in Thread: MCF8329A,
Tool/software:
I've been developing an ESC using the MCF8329A gate driver, and am currently using the MCF8329EVM as a bridge between motor studio and my ESC (done by removing the jumpers on the SCL and SDA connections, and wiring the i2c lines on my ESC to the mcu-side pins). However, when I try to start spinning one of my potential target motors, it frequently stops almost immediately and motor studio shows an "APP_RESET" fault. To characterise "frequently": it may start just fine 10 times in a row, or it may throw a fault 5 times before it starts a single time. If I spin the same motor with the ESC circuitry built into the MCF8329EVM, it works with no issue.
I would like to know what sequence of events are actually known to lead to an app reset fault. Could it be the MCF8329A browning out? A loss of communication between the MCF8329A and the machine running motor studio? Some software issue with motor studio itself (unlikely, since it only seems to be failing when attached to my ESC)? A malformed i2c instruction causing the app to experience an error?
What I've tried:
- Assuming it was possibly related to noise during the open loop portion of the cycle, I tried decreasing the open loop acceleration coefficients. Using the ESC built into the EVM, coefficients of a1=50 and a2=1000 work well. With the ESC I've been developing, I can get the motor spinning sometimes if I have a1 set to 25, 50, 75, or 100, and a2 set to 0 (with the highest rate of success at a1=25).
- I was seeing some noise (about 200ns of 40MHz ripple every 20us or so) on the Vreg line of the gate driver, ie pin 2, so I added an additional 0.1uF decoupling cap in parallel with the 2.2uF decoupling cap I already had. The noise now appears to be an 80MHz ripple, and the ESC might be spinning the motor a little more consistently.
- There's no appreciable noise visible on the input power rail (48V) when the app reset fault happens
- I have a 3.3V regulator rather than running the MCF8329A off it's own Avdd rail, and while there's no visible noise on the input of the voltage regulator, the noise that's visible on pin 2 seems to be visible on the output of the voltage regulator.
- I've confirmed that the noise on pin 2 is happening at the same amplitude and frequency whether or not the motor starts spinning properly, suggesting to me that it isn't related.