Other Parts Discussed in Thread: DRV8301-69M-KIT
DRV8301-69M-KIT,用自带的foc程序,不能写入flash,直接连接电脑时,程序正常工作。
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
DRV8301-69M-KIT,用自带的foc程序,不能写入flash,直接连接电脑时,程序正常工作。
你好,抱歉耽搁了这么久,期间有美国那边节假日。
在flash中运行lab的话除了上面链接中对硬件进行一些设置,还需要对一些标志位做修改。比如lab02b中,要将:
... while(!(gMotorVars.Flag_enableSys)); ... while(gMotorVars.Flag_enableSys) ... CTRL_setFlag_enableCtrl(ctrlHandle, gMotorVars.Flag_Run_Identify); ...
替换为:
... while(!(1)); ... while(1) ... CTRL_setFlag_enableCtrl(ctrlHandle, 1); ...
这样在离线模式下不需要手动修改(也没办法修改) "gmotorvars.flag_enablesys" & "gmotorvars.flag_run_identify"这两个标志位值也能实现电机的驱动。