再次感谢您的后续建议。它有效!通过获得提供的BullRunning电机工作台项目,我已经能够连接到电路板(
SDK43x-STEVAL-SPIN3201-BullRunning.stmcx来自目录STSW-SPIN3201 Web Utilities WB_Projects SDK43x)工作,然后从该项目中更改电机参数。
但是,需要的第一步是获得STEVAL-SPIN3201板的正确目录。我最初遵循了UM2168(DocID030267 Rev 2)中给出的说明。 16表示启动STM32F0xx_Workspace.eww(IAR的文件类型)并选择Project STM32SPIN。对于Keil,等效的多项目工作区是STM32F0xx_Workspace.uvmpw,我从C: Program Files(x86) STMicroelectronics FOC SDK v4.3 STM32 PMSM FOC LIB获得。所以我在STM32 PMSM FOC LIB中的三个目录(Common,Docs和Web)中构建了我的项目,如STM32 PMSM FOC SDK FAQ(来自stsw-stm32100.html主页)所述。但我认为这会为STM32制作项目,而不是专门用于STEVAL-SPIN3201板,除了一次(?!),我无法连接它。
我认为不需要在UM2168中使用该指令(使用STM32F0xx_Workspace ......),而是需要使用早期用户手册UM2152(DocID030110 Rev 1)中给出的指令来说明使用目录(通用,文档和Web) STSW-SPIN3201并通过文件 Web Project MDK-ARM STSPIN32F0_MC Library.uvmpw打开多项目工作区。这确实创建了一个STEVAL-STSPIN32F0项目。另一个关键要求(在UM2152中提到但在UM2168中没有提到)是在加载二进制文件后点击板上的复位按钮。在Keil中可以通过转到配置目标选项,调试选项卡,St-Link调试器设置,Flash下载以及选择“重置并运行”来避免这种情况(如
http://www.emcu.eu/how-to-use-the-steval-spin3201-based-on-stspin32f0/
)。
简而言之,我认为使用STEVAL-SPIN3201板必须遵循UM2152而不是UM2168的第3章来建立项目。
再次感谢,
彼得
以上来自于谷歌翻译
以下为原文
Thank you again for this follow-up suggestion. It has worked! I have been able to connect to the board by getting the supplied BullRunning motor workbench project (
SDK43x-STEVAL-SPIN3201-BullRunning.stmcx from directory STSW-SPIN3201WebUtilitiesWB_ProjectsSDK43x) working, then changing the motor parameters from within that project.
A major first step needed, though, was to get the correct directories for the STEVAL-SPIN3201 board. I had initially followed the instructions given in UM2168 (DocID030267 Rev 2) on p. 16 which says to start the STM32F0xx_Workspace.eww (IAR's file type) and choose the Project STM32SPIN. For Keil, the equivalent multi-projects workspace is STM32F0xx_Workspace.uvmpw which I got from C:Program Files (x86)STMicroelectronicsFOC SDKv4.3STM32 PMSM FOC LIB. So I had built my project from the three directories (Common, Docs and Web) in the STM32 PMSM FOC LIB, as advised in the STM32 PMSM FOC SDK FAQ (from the stsw-stm32100.html home page). But I think this makes projects for STM32, not specifically for the STEVAL-SPIN3201 board, and except for one time (?!), I could not get it to connect.
Instead of using that instruction in UM2168 (to use STM32F0xx_Workspace...), I think one needs to use the instruction given in the earlier user manual UM2152 (DocID030110 Rev 1) which says to use the directories (Common, Docs and Web) from STSW-SPIN3201 and to open the multi-projects workspace via the file WebProjectMDK-ARM STSPIN32F0_MC Library.uvmpw. This does create a STEVAL-STSPIN32F0 project. Another key requirement (mentioned p. 10 of UM2152 but not in UM2168) is to hit the reset button on the board after loading the binary. This can be avoided in Keil by going to Configure target options, Debug tab, St-Link Debugger Settings, Flash Download, and selecting 'Reset and Run' (as suggested in
http://www.emcu.eu/how-to-use-the-steval-spin3201-based-on-stspin32f0/
).
In short, I think to use the STEVAL-SPIN3201 board one has to follow UM2152 not Sec 3 of UM2168 in establishing the project.
Thanks again,
Peter