Other Parts Discussed in Thread: DRV8301
Tool/software: Code Composer Studio
I am having some issues with my DRV8301-HC-C2-KIT resetting while driving a high load with large torque spikes. I'm thinking this may be due to the overcurrent protections. I'm confident that I have all of my current settings correct in my user.h file, but I haven't been able to figure out how to change the OcMode in the drv8301.h file. I see the different modes are enumerated starting on line 228, but I don't know which mode is currently in use. How do I set the mode? I am relatively new to coding in CCS, so my apologies if this is a dumb question. I've attached my drv8301.h file (currently using the unedited file provided by the instaspin labs).drv8301.h