完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
问候!
我在使用来自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个回答
|
|
我有同样的问题,开箱即用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. |
|
|
|
与此同时,我发现了一个(有些奇怪的)解决方法,可以启动并运行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... |
|
|
|
嗨Max,谢谢你的回复。
我明天会尝试你的建议,希望这有效。 以上来自于谷歌翻译 以下为原文 Hi Max, thank you for your reply. I will try your suggestion tomorrow and hopefully that works. |
|
|
|
嗨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. |
|
|
|
嘿Alex,
如果我没记错的话,我也有一些关于闪存图像最大尺寸的问题,在免费版Keil中限制为32kB。 查看“C / C ++”选项卡下的项目选项,您将找到有关代码生成的一些选项;当我使用优化级别3(-O3)并启用“优化时间”时,我能够正确构建和刷新(基本不变)固件。 以上来自于谷歌翻译 以下为原文 Hey Alex, If I remember correctly, I also had some issues regarding the maximum size of the flash image, which is limited to 32kB in the free version of Keil. Look at the project options under the tab 'C/C++' and you will find some options regarding code generation; when I use Optimization level 3 (-O3) and enable 'Optimize for Time', I was able to build and flash the (basically unchanged) firmware correctly. |
|
|
|
嗨,
我尝试使用uVision 5.24(STM32F0 / L0的免费许可证)和附加的MC工作台设置构建STSW-SPIN3201固件(我使用电机数据表作为参考,但不是100%确定我没有在ke中产生一些错误计算)。 结果代码没有给我FOC持续时间失败,你能查一下吗? (我认为无需将其连接到电机)。 我唯一的解释是在编译期间出现了一些优化错误。 恩里科 以上来自于谷歌翻译 以下为原文 Hi, I tried to build the STSW-SPIN3201 firmware using uVision 5.24 (free license for STM32F0/L0) and the attached MC workbench setup (I used the motor datasheet as reference, but not 100% sure I didn't made some error in the ke calculation). The resulting code give me no FOC duration failure, could you check? (no need to connect it to the motor I think). The only explanation I have is some optimization error during the compilation. Enrico |
|
|
|
和附加的MC工作台设置
对不起,但我在你的回复中找不到任何附件(你如何在帖子中上传内容?)...... 你能通过电子邮件发给我吗? -M 以上来自于谷歌翻译 以下为原文 and the attached MC workbench Setup Sorry, but i could not find any attachement in your reply (how DO you upload something in a post here?)... could you send it to me via E-Mail? -M |
|
|
|
嗨,
附件应该在我的回复底部可见。 您可以使用高级编辑器(回复框的右上角)上传附件。 以上来自于谷歌翻译 以下为原文 Hi, The attachments should be visible in the bottom of my reply. You can upload attachments using the advanced editor (upper right corner in the reply box). |
|
|
|
顺便说一下...在论坛流中看不到附件,你必须打开
https://community.st.com/0D50X00009XkXBLSA3 。 注意:原始帖子包含大量线程对话,只能迁移到第9级 以上来自于谷歌翻译 以下为原文 By the way... the attachments are not visible in the forum stream, you must open the https://community.st.com/0D50X00009XkXBLSA3 . Note: the original post contained a large number of threaded conversations and was only able to be migrated to the 9th level |
|
|
|
是的,“收件箱视图”可能相当烦人,受访者需要“线程视图”,点击收件箱视图中的主题标题即可实现。
以上来自于谷歌翻译 以下为原文 Yes the 'Inbox View' can be rather annoying, the respondent needs 'Thread View', clicking on the thread title from the inbox view gets you to that. |
|
|
|
|
|
|
|
确实......添加一个小剪辑图标可能非常有用。
以上来自于谷歌翻译 以下为原文 Indeed... adding a small clip icon could be very very useful. |
|
|
|
|
|
|
|
只有小组成员才能发言,加入小组>>
请教:在使用UDE STK时,单片机使用SPC560D30L1,在配置文件怎么设置或选择?里面只有SPC560D40的选项
2725 浏览 1 评论
3237 浏览 1 评论
请问是否有通过UART连接的两个微处理器之间实现双向值交换的方法?
1807 浏览 1 评论
3646 浏览 6 评论
6034 浏览 21 评论
1336浏览 4评论
197浏览 3评论
对H747I-DISCO写程序时将CN2的st-link复用为usart1,再次烧录时无法检测到stlink怎么解决?
350浏览 2评论
STM32G474RE芯片只是串口发个数据就发烫严重是怎么回事?
442浏览 2评论
STM32处理增量式编码器Z信号如何判断中断是正转的还是反向转的?
268浏览 2评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-22 12:49 , Processed in 1.319756 second(s), Total 100, Slave 84 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号