ST意法半导体
直播中

王桂兰

7年用户 1159经验值
私信 关注
[问答]

STEVAL-SPIN3201板上的电机根本不运行

问候!
我在使用来自Nanotec的DB87L01-S BLDC电机时遇到STEVAL-SPIN3201板的问题。

我将电路板连接到三相,内部霍尔传感器,外部DC和PC,并使用SW4STM32 IDE使用FOC SDK 4.3闪烁SPIN3270。
使用ST Motor Workbench插入电机参数(极对,电阻,电感等)。构建和刷新演示项目没有问题;但是,电机在运行代码后无意运行。通过单步执行代码,我发现在按下电路板上的“START_STOP”按钮后几乎立即设置了“MC_FOC_DURAtiON”错误代码。头文件用简短的解释'FOC rate too high'列出了这个错误,所以我选择了最低的PWM速率和执行速率(4500Hz),仍然有相同的结果。
进一步调试代码以找到这个错误的起源导致没有令人满意的结论(显然在PWM定时器寄存器'TIM1-> SR'中有一点没有正确重置?),所以我刚想出来的想法这可能是什么问题。有没有人有什么建议可以查看或者哪些参数可能还需要进一步调整?
在这里您还可以看到二手电机的简短数据表:
https://community.st.com/external-link.jspa?url=https%3A%2F%2Fde.nanotec.com%2Ffileadmin%2Ffiles%2FDatenblaetter%2FBLDC%2FDB87%2FDB87L01-S_neu.pdf
提前谢谢了!
-M

#foc-sdk-4.3#steval-spin3201 #mc_foc_duration

以上来自于谷歌翻译


以下为原文




Greetings!
I am having trouble with the STEVAL-SPIN3201 board in combination with a DB87L01-S BLDC motor from Nanotec.

I connected the board to the three phases, the internal hall sensors, to the external DC and to the PC and flashed the SPIN3270 with the FOC SDK 4.3 using the SW4STM32 IDE.
The parameters of the motor (pole pairs, resistance, inductivity etc.) were inserted using the ST Motor Workbench. Building and flashing the demo project was no problem; however, the motor makes no intention to run after running the code. By stepping through the code I figured out that 'MC_FOC_DURATION' error code is set almost immediately after pushing the 'START_STOP' button on the board. The header file lists this error with the short explanation 'FOC rate too high', so I choose the lowest PWM rate possible in combination with the execution rate (4500Hz), still with the same result.
Debugging the code further to find the origin of this error led to no satisfying conclusion (apparently something about a bit in the PWM timer register 'TIM1->SR' that has not been reseted correctly?), so I am freshly out of ideas what the problem could be here. Does anyone have any suggestions where to look or what parameters may also need further adjustments?
Here you can also see the short datasheet of the used motor:
https://community.st.com/external-link.jspa?url=https%3A%2F%2Fde.nanotec.com%2Ffileadmin%2Ffiles%2FDatenblaetter%2FBLDC%2FDB87%2FDB87L01-S_neu.pdf
Many thanks in advance!
-M

#foc-sdk-4.3 #steval-spin3201 #mc_foc_duration

回帖(13)

胡红枚

2019-1-14 06:50:50
我有同样的问题,开箱即用STEVAL-SPIN3201套件不会使用库存固件旋转我的任何电机。它甚至没有尝试按下启动后,没有从我的电源汲取额外的电流,电路板立即进入FOC_DURATION故障。疯。

以上来自于谷歌翻译


以下为原文




I have this same problem, out of the box the STEVAL-SPIN3201 kit does not spin any of my motors with the stock firmware. It doesn't even attempt to after pressing start, no extra current is drawn from my power supply, the board immediately goes into FOC_DURATION fault. Crazy.
举报

王桂兰

2019-1-14 07:03:30
与此同时,我发现了一个(有些奇怪的)解决方法,可以启动并运行SDK:
 
出于好奇,我尝试了Keil的microVision IDE来构建和刷新软件而不是SW4STM32 IDE,
令人惊讶的结果是一切似乎都很好!我几乎立刻得到了电机响应,并且通过改变一些参数,我甚至可以顺利地运行它;除此之外,我没有以任何方式改变固件到达那里。我想它与STM-Eclipse IDE中的相应编译器有关...

以上来自于谷歌翻译


以下为原文




In the meantime, I found a (somewhat strange) workaround to be able to get the SDK up and running:

Out of curiosity, I tried the microVision IDE from Keil to build and flash the software instead of the SW4STM32 IDE, with
the suprising result that everything seems to work quite well! I almost immediately got the motor responding, and with changing a few parameters I even got to run it smoothly; aside from that, I did not alter the firmware in any way to get there. I guess that  it has something to do with the corresponding compiler within the STM-Eclipse IDE...
举报

胡红枚

2019-1-14 07:16:40
嗨Max,谢谢你的回复。
我明天会尝试你的建议,希望这有效。

以上来自于谷歌翻译


以下为原文




Hi Max, thank you for your reply.
I will try your suggestion tomorrow and hopefully that works.
举报

胡红枚

2019-1-14 07:29:05
嗨Max,我有一个问题要问你。工作区是否使用免费版本的Keil uVision IDE成功编译,或者您是否拥有付费版本。我收到编译错误。

以上来自于谷歌翻译


以下为原文




Hi Max, I have a question for you. Did the workspace compile successfully with the free version of the Keil uVision IDE or do you have the paid version. I am getting compilation errors.
举报

更多回帖

发帖
×
20
完善资料,
赚取积分