1
完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
我遇到了运行FOC SDK v4.3的一些问题。
我的硬件设置: 控制板:NUCLEO - STM303(ST部件号) 电源板:X-NUCLEO-IHM08M1(ST部件号) PMSM电机 IDE:IAR 目前我能够编译和下载代码到F303RE,但是电机只会短时间旋转,然后停止,需要使用黑色复位按钮重置,以便使用用户按钮再次开始运行(蓝色)在F303RE上。我不确定问题是什么,但我注意到F303RE没有构建配置。 目前我打开STM32 PMSM FOC LIB Web Project EWARM STM32F30x_Workspace.eww并使用STM32303C-EVAL_SINGLEDRIVE作为选项在下拉菜单中进行构建,请参见附图。 为什么IAR下拉菜单中没有F303RE的构建配置? 当构建配置错误时,我是否应该能够编译并下载到目标? 我的问题可能显然有各种类型的来源,但我想确保我至少使用正确的构建配置。 #f303re#iar-ide 以上来自于谷歌翻译 以下为原文 I am experiencing some issues running the FOC SDK v4.3. My HW-setup: Control board: NUCLEO - STM303 (ST part number) Power board: X-NUCLEO-IHM08M1 (ST part number) PMSM motor IDE: IAR Currently I am able to compile and download code to the F303RE, however the motor only spins a short period of time, and then stops, requiring a reset with the black reset button in order to make it start running again using the user button (blue) on the F303RE. I am not sure what the problem is, but I notice that there is no build configuration for the F303RE. Currently I open STM32 PMSM FOC LIBWebProjectEWARMSTM32F30x_Workspace.eww and build using STM32303C-EVAL_SINGLEDRIVE as option in the drop-down menu, please see attached pic. Why is there no build config for F303RE in IAR drop-down menu? Should I even be able to compile and download to target when the build config is wrong? My problems could have all types of sources obviously, but I would like to ensure that I am using the correct build config at least. #f303re #iar-ide |
|
相关推荐
6个回答
|
|
ST经常限制对EVAL系列板的示例支持,您可能必须根据您对所使用的工具链的理解将代码移植到DISCO和NUCLEO板。
以上来自于谷歌翻译 以下为原文 ST frequently limits example support to EVAL series boards, you might have to port code to DISCO and NUCLEO boards based on your understanding of the tool chain you are using. |
|
|
|
正如我理解Fredrik的问题,他正在使用核板,但需要选择eAR版本的IAR配置,因为这是IAR配置似乎“最接近”303RE。 (当使用相同的硬件配置(NUCLEO-STM303RE + X-NUCLEO-IHM08M1)时,至少这是我的看法)。
所以考虑到这一点 - 它是否仍然有意义地建议移植到核心?这不是弗雷德里克正在询问的这个港口吗? 以上来自于谷歌翻译 以下为原文 As I understood Fredrik’s problem, he is using the nucleo board, but needs to select the eval-version of IAR configuration because this is the IAR config that seems to be 'closest' to the 303RE. (At least this was my thaughts when using the same HW configuration (NUCLEO - STM303RE + X-NUCLEO-IHM08M1)). So with that in mind - is it still meaningful advise porting to nucleo? Isn't it exactly this port Fredrik is asking about? |
|
|
|
是的,你完全理解我的问题。实际上STM32303C-EVAL基于STM32F303VCT6,因此它足够接近使用移植到STM32303C-EVAL的IAR项目闪存到NUCLEO-F303RE目标。
我希望NUCLEO有一个可以运行的端口--F303RE,但正如Clive One指出的那样,情况似乎并非如此。所以我似乎必须将STM3232303C-EVAL的代码移植到NUCLEO - F303RE板上。 你是怎么回事的? 硬件配置(NUCLEO - STM303RE + X-NUCLEO-IHM08M1) Gunnar?您是否使用ST MC Workbench生成头文件 - >修改过的项目 - >下载并调试了? 以上来自于谷歌翻译 以下为原文 Yes, you have understood my problem exactly. Indeed the STM32303C-EVAL is based on STM32F303VCT6 and so it is close enough to be flashed to the NUCLEO - F303RE target using project in IAR ported to STM32303C-EVAL. I was hoping that there was a ready-to-run port for the NUCLEO - F303RE, but as Clive One points out this does not seem to be the case. So it seems I will have to port the code for STM3232303C-EVAL over to NUCLEO - F303RE board. What did you with the HW configuration (NUCLEO - STM303RE + X-NUCLEO-IHM08M1) Gunnar?Did you use ST MC Workbench to generate header files -> modified project -> downloaded and debugged? |
|
|
|
首先我配置了
用于FOC控制的X-NUCLEO-IHM08M1,如UM1996 DocID028716第7页中所述, 然后,是的,我从ST MC Workbench生成了头文件, 然后我选择了303C项目并将MCU修改为303RE。 (我认为这是本质 - 它是很多尝试和测试,所以它可能是我缺少的一些步骤) 有关详细信息,请参见附图。 因此,我已经启动并运行了电机 - 但是我也得到速度误差在中等RPM(无传感器运行)时停止。我还没有机会做这么多的测试,但是我非常希望从这个配置中学习其他人的经验 |
|
|
|
好的,谢谢Gunnar非常有帮助的答案。
我将继续工作,并随时向您发布我的进展(或缺乏进展)和调查结果。 以上来自于谷歌翻译 以下为原文 Ok, thank you Gunnar for very helpful answers. I will continue work, and keep you posted on my progress (or lack thereof) and findings. |
|
|
|
我忘了更新这个论坛。该错误实际上是在硬件中,我已经切换了没有正确连接电机的相位。
尽管如此,作为MCU的从303C项目到F303RE的端口应该在IDE中完成,例如IAR Embedded Workbench,如您所建议的那样。 现在电机正在运行,无传感器和编码器。 以上来自于谷歌翻译 以下为原文 I forgot to update this forum. The error was actualy in HW, I had switched the not connected the phases of the motor properly. Nonetheless, a port to from 303C project to F303RE as MCU should be done in IDE, such as IAR Embedded Workbench as you also suggested. The motor is now up an running with sensor-less and encoder. |
|
|
|
只有小组成员才能发言,加入小组>>
请教:在使用UDE STK时,单片机使用SPC560D30L1,在配置文件怎么设置或选择?里面只有SPC560D40的选项
2730 浏览 1 评论
3239 浏览 1 评论
请问是否有通过UART连接的两个微处理器之间实现双向值交换的方法?
1808 浏览 1 评论
3647 浏览 6 评论
6035 浏览 21 评论
1338浏览 4评论
198浏览 3评论
对H747I-DISCO写程序时将CN2的st-link复用为usart1,再次烧录时无法检测到stlink怎么解决?
350浏览 2评论
STM32G474RE芯片只是串口发个数据就发烫严重是怎么回事?
442浏览 2评论
STM32处理增量式编码器Z信号如何判断中断是正转的还是反向转的?
273浏览 2评论
小黑屋| 手机版| Archiver| 德赢Vwin官网 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-23 00:25 , Processed in 1.325388 second(s), Total 87, Slave 71 queries .
Powered by 德赢Vwin官网 网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
德赢Vwin官网 观察
版权所有 © 湖南华秋数字科技有限公司
德赢Vwin官网 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号