ST意法半导体
直播中

王思敏

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

在IAR中没有F303RE的构建配置

我遇到了运行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)

符伯峪

2019-6-28 15:16:44
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.
举报

余少华

2019-6-28 15:27:04
正如我理解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?
举报

王思敏

2019-6-28 15:45:05
是的,你完全理解我的问题。实际上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?
举报

余少华

2019-6-28 15:58:21
首先我配置了
用于FOC控制的X-NUCLEO-IHM08M1,如UM1996 DocID028716第7页中所述,
然后,是的,我从ST MC Workbench生成了头文件,
然后我选择了303C项目并将MCU修改为303RE。
(我认为这是本质 - 它是很多尝试和测试,所以它可能是我缺少的一些步骤)
有关详细信息,请参见附图。
因此,我已经启动并运行了电机 - 但是我也得到速度误差在中等RPM(无传感器运行)时停止。我还没有机会做这么多的测试,但是我非常希望从这个配置中学习其他人的经验
举报

更多回帖

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