完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
扫一扫,分享给好友
嗨社区,
我正试图在ST电机控制工作台(v.4.3)的监视器中与STEVAL-SPIN3201交谈,在通过USB连接的Microsoft Surface Pro 2 Windows 8上运行(COM3在9600波特),但我一直在错误信息: 连接失败!没有响应,请检查通信电缆,电路板上的电源或波特率(设置为9600 bps)。 使用Keil uVision v.5 MDK-Lite(调试选项设置为ST-Link Debugger与目标COM中的SW端口)我已编译(通过批量构建)并将可执行文件下载到板上(由led LD2显示为绿色/红色闪烁) 。我实际上设法让Workbench连接一次,首先运行STM32 ST-LINK Utility v.4,将其连接到主板(显示地址内容),然后退出ST-LINK。然后Workbench确实连接了。电机甚至开始转动,无传感器操作,尽管存在即时故障超速反馈。但是在使用不同的启动参数重新编译后重复相同的步骤,我现在无法连接Workbench(连接和断开连接和断开的各种Keil和ST-LINK组合,拔出和重新插入USB和32 V到板上,启动和停止Workbench和笔记本电脑,不同的USB电缆)。在设备管理器中,看起来COM3端口具有工作设备驱动程序,用于“STMicroelectronics STLink虚拟COM端口(COM3)”。 总而言之,即使ST-LINK和Keil通过USB电缆与电路板通信,当我在Workbench中点击Connect图标(插头)时,我所能得到的只是红色信息'Connection Failed!....'。 任何建议都感激不尽!我也问技术支持,并会发布他们提出的任何建议。 干杯,彼得 #ST-工作台连接失败的到STEVAL-spin3201 以上来自于谷歌翻译 以下为原文 Hi Community, I'm trying to talk to to STEVAL-SPIN3201 within the Monitor of ST Motor Control Workbench (v.4.3), running on a Microsoft Surface Pro 2 Windows 8, connected by USB (COM3 at 9600 baud), but I keep getting the error message: �Connection Failed! No response, check the communication cable, the power on the board or the baudrate (set to 9600 bps).' Using Keil uVision v.5 MDK-Lite (debug option set to ST-Link Debugger with SW Port in Target COM) I have compiled (by batch build) and downloaded the executable to the board (shown by led LD2 blinking green/red). I actually did manage to get Workbench to connect once, by first running STM32 ST-LINK Utility v.4, connecting that to the board (which showed the address contents) and then exiting ST-LINK. Then Workbench did connect. The motor even started turning, sensorless operation, though there was an immediate Fault over Speed feedback. But repeating the same procedure after recompiling with different start-up parameters, I cannot now get Workbench to connect (for all sorts of combinations of Keil and ST-LINK connected and disconnected, on or off, unplugging and replugging USB and 32 V to board, starting and stopping Workbench and the laptop, a different USB cable). In Device Manager, it looks like the COM3 Port has a working device driver, for 'STMicroelectronics STLink Virtual COM Port (COM3)'. To sum up, even though ST-LINK and Keil are talking to the board through the USB cable, all I can get when hitting the Connect icon (the plug) within Workbench is the red message 'Connection Failed!....'. Any suggestions gratefully received! I've asked Technical Support too, and will post any suggestions they make. Cheers, Peter #st-workbench-�connection-failed�-to-steval-spin3201 |
|
相关推荐
6个回答
|
|
这种问题通常是由于您在FOC库中设置的UART速度与您在工作台上设置的UART速度不匹配所致。
请使用受保护的箱(UART速度115200bps)检查通信是否正常。 无需连接电机,只需进行通讯测试。 以上来自于谷歌翻译 以下为原文 This kind of problem is usually due to a mismatch between the UART speed you set in the FOC library and the one you are setting on the workbench. Please, check if the communication is ok using the atteched bin (UART speed 115200bps). No need to connect the motor, only communication test. |
|
|
|
亲爱的恩里科,
非常感谢你的建议!是的 - 它确实连接了!使用STM32 ST-Link Utility,我闪存了您发送的二进制文件,然后在ST电机控制工作台监视器中,仍然打开了我用于电机的项目,但是通过端口设置115200,它连接 - 显示绿色'固件STM32 FOC SDK Ver。 4.3.0'(我之前在一次会议中看过,但从那时起才看到'设备未连接'为红色)。我没有那辆Bullrunning电机所以没有连接电机。鼓励,我进入控制阶段参数,将Baudrate更改为115200,命中生成,全部使用Keil,将我的电机的新代码刷新到电路板上,并尝试从Workbench Monitor再次连接到115200。唉,同样的旧“沟通失败!”错误。 我想知道是否可能因为Keil在Pack Installer的Boards目录中没有STEVAL-SPIN3201板。我只为STM32F031C6设备安装了包 http://www.st.com/en/motor-drivers/stspin32f0.html 告诉我在STSPIN32F0 。我可能要选择一些类似于STEVAL-SPIN3201的ST板吗?但我可能在某处做错了。 如果您可以建议上面的任何下一步,我将再次感激不尽! 干杯,彼得。 以上来自于谷歌翻译 以下为原文 Dear Enrico, Thank you very much for that suggestion! Yes – it did connect! Using STM32 ST-Link Utility, I flashed the binary you sent, then in ST Motor Control Workbench Monitor, still open on the project I have been using for my motor, but with the Port setting 115200, it connected - bringing up the green 'Firmware STM32 FOC SDK Ver. 4.3.0' (which I saw in one session before, but ever since have only seen 'Device not connected' in red). I didn't have that Bullrunning motor so had no motor connected. Encouraged, I went into Control Stage Parameters, changed the Baudrate to 115200, hit Generation, built all in Keil, flashed the new code for my motor to the board, and tried to connect again at 115200 from Workbench Monitor. Alas, the same old “Communication Failed!â€� error. I’m wondering if it could be because Keil does not have the STEVAL-SPIN3201 board amongst its Boards directory in Pack Installer. I have only installed the pack for the STM32F031C6 device, which http://www.st.com/en/motor-drivers/stspin32f0.html tells me is in STSPIN32F0 . Might I have to select some other ST board similar to STEVAL-SPIN3201? But I may well be doing something wrong somewhere. If you can suggest any next step from the above, I’d be very grateful again! Cheers, Peter. |
|
|
|
彼得,嗨,
我的想法已经不多了。 在我看来,最好的解决方案是清理项目并重新使用 http://www.st.com/content/st_com/en/products/embedded-software/motor-control-ic-software/stsw-spin3201.html 软件示例。它是适用于STEVAL-SPIN3201的MC SDK 4.3的预配置设置。这是我用来生成我发给你的二进制文件的同一个项目。 在包中,您还可以找到包含MC Workbench项目的文件夹“Web Utilities WB_Projects SDK43x”。 打开它并插入应用程序的参数以生成新的“.h”配置文件。 建议不要同时启用电位计功能和启用uart通信。 再见 恩里科 以上来自于谷歌翻译 以下为原文 Hi Peter, I'm running out of ideas. In my opinion the best solution is to clean-up the project and restart using the http://www.st.com/content/st_com/en/products/embedded-software/motor-control-ic-software/stsw-spin3201.html software example.It is a pre-configured setup of the MC SDK 4.3 fitting the STEVAL-SPIN3201. It is the same project I used to generate the binary I sent you. Into the package you also find the folder 'WebUtilitiesWB_ProjectsSDK43x' containing a MC Workbench project. Open it and insert the parameters for your application for generating the new '.h' configuration files. It is not recommended to have the potentiometer feature and the uart communication enabled at the same time. Ciao Enrico |
|
|
|
再次感谢您的后续建议。它有效!通过获得提供的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 |
|
|
|
感谢您对我们文档的反馈。我会将其转发给文档团队,以便相应地改进UM2168。
以上来自于谷歌翻译 以下为原文 Thanks for the feedback on our documentation. I'll forward it to the doc team in order to improve the UM2168 accordingly. |
|
|
|
你好,
我对System Workbench for STM32 IDE也有同样的问题。 如果我使用UM2152中描述的预编译的bullrunning二进制文件(EWARM_STEVAL_SPIN3201_BullRunning_MCWorkbench.bin),则ST电机控制工作台(v.4.3)监视器中STEVAL-SPIN3201之间的连接正常。 然后我使用示例FOC项目STSPIN32F0(用户项目和MC库)并使用ST IDE构建所有项目。 如果我通过IDE或刚刚生成的* .bin文件刷新新SW,我无法通过ST电机控制工作台(v.4.3)与STEVAL-SPIN3201建立任何连接。 我已经检查了头文件中的baude率'USART_SPEED',它与工作台中设置的相同。 我也完全按照之前的要求完成了项目的设置。 剩下的问题是什么? 最好的祝福, 亚历克斯 以上来自于谷歌翻译 以下为原文 Hello, I have the same problem with System Workbench for STM32 IDE. If I use the precompiled bullrunning binary (EWARM_STEVAL_SPIN3201_BullRunning_MCWorkbench.bin) as decribed in UM2152 the connection between the STEVAL-SPIN3201 within the Monitor of ST Motor Control Workbench (v.4.3) works fine. Then I use the example FOC project STSPIN32F0 (User Project and MC Library) and build all with ST IDE. If I flash the new SW, via the IDE or using the *.bin file just generated, I can not get any connection to STEVAL-SPIN3201 with the ST Motor Control Workbench (v.4.3) . I've checked the baude rate 'USART_SPEED' in the header file and it is the same than the one set in the workbench. I Also set up the project completly again as mensioned before. What can be the problem remaining? Best regards, Alex |
|
|
|
只有小组成员才能发言,加入小组>>
请教:在使用UDE STK时,单片机使用SPC560D30L1,在配置文件怎么设置或选择?里面只有SPC560D40的选项
2574 浏览 1 评论
3192 浏览 1 评论
请问是否有通过UART连接的两个微处理器之间实现双向值交换的方法?
1761 浏览 1 评论
3587 浏览 6 评论
5965 浏览 21 评论
924浏览 4评论
1300浏览 4评论
在Linux上安装Atollic TRUEStudio的步骤有哪些呢?
563浏览 3评论
使用DMA激活某些外设会以导致外设无法工作的方式生成代码是怎么回事
1286浏览 3评论
1338浏览 3评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-11-5 06:19 , Processed in 1.385403 second(s), Total 90, Slave 71 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号