Other Parts Discussed in Thread: DRV8301, DRV8305
I was trying to test the dual motor labs
The lab manual says refer to comments in the code. I dont see any directions in the comments on how to run the code and what variables to set in the expressions tab based on the .js files.
I tried running both 6(e) and 11(d) but they seem to get stuck. Usually my best way to know that instaspin code is running is to observe VdcBus_kV in the expressions tab , it should turn yellow because vbus doesn't ever stay exactly the same. In this case, the VdcBus_kV just stayed at 0.0
I tried to put in some global test variables to see if control is going into main or is it getting stuck inside some loop.
I tracked it down,
looks like control does go into main
then it runs and exits the for(mtrNum=HAL_MTR1;mtrNum<=HAL_MTR2;mtrNum++)
it also runs and exits the for(cnt=0;cnt<6;cnt++)
but then i saw it executed line : HAL_enableAdcInts(halHandle);
but it got stuck some where inside : HAL_enableGlobalInts(halHandle);
when i went furhter in, it seems to be stuck inside : CPU_enableGlobalInts(obj->cpuHandle);
Any suggestions on how to get labs 6(e) and 11(d) running.
Where these labs tested on real hardware ie 2 x drv301 boards on top of launchpad with 2 motors hooked in?