完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
是否有文档显示从处理器读取时如何解释“标志”和“状态”(串行通信)寄存器。我可以查询和接收u32 Flags数据和u8状态数据,但是用户手册没有为该位提供任何上下文。
使用帧代码0x06也是如此,它假设报告''板信息''。我得到一个包含大量数据的框架,无法解释它。 最后我确实看到了错误代码0x0a,但未在手册中列出。我猜这是一个错误的CRC错误代码? 还有其他文件说明STM32 PMSM MC Library v3.0用户手册以外的其他信息吗? 谢谢 埃里克 #STM32-FOC-PMSM,sdkv3.0 以上来自于谷歌翻译 以下为原文 Is there a document that shows how to interpret the ''flags'' and ''status'' (Serial communication) register when read from the processor. I can query and receive the u32 Flags data and the u8 status data but the user manual doesn't provide any context to the bit's. The same goes for using frame code 0x06 which is suppose to report ''board info''. I get a frame with a lot of data and no way to interpret it. Finally I did see an error code of 0x0a which isn't listed in the manual. I'm guessing this is a bad CRC error code? Is there another document which descibeds this information other then STM32 PMSM MC Library v3.0 User manual? Thanks Eric #stm32-foc-pmsm-sdkv3.0 |
|
相关推荐
3个回答
|
|
你好Eric
STM32 FOC SDK 3.0中实现的串行通信是尝试建立固件和PC之间的实时通信的第一步。考虑到Workbench的第一个版本不支持实时通信。 我们知道在STM32 FOC SDK 3.0的用户手册中,有一些关于串行通信寄存器的错误,可能没有很好的记录。 我们现在正在开发一个新版本的协议,用于与ST MC Workbench(1.2)通信,并使固件兼容,我们将很快发布3.0.1版本。 关于MC协议的文档,我们没有新的文档发布。它将在STM32 FOC SDK 3.2的发布中完成。 在那之前,我可以尝试解释您需要的MC协议发布版本的beaviour。 状态寄存器根据下表重新生成固件状态机的状态 < / COLGROUP> 闲 为0x0 IDLE_ALIGNMENT 为0x1 对准 0X2 IDLE_START 0x3 开始 为0x4 开始运行 0x5的 跑 为0x6 ANY_STOP 为0x7 停 0x8中 STOP_IDLE 0x9 FAULT_NOW 是0xA FAULT_OVER 0XB 标志寄存器是由以下位或-ed编写的位字段值 < / COLGROUP> 没有错误 为0x0000 FOC持续时间 0×0001 OVER_VOLTAGE 0×0002 UNDER_VOLTAGE 0x0004 过热 ×0008 START_UP_FAILURE 0×0010 SPEED_FEEDBACK 0×0020 过流 即0x0040 SOFTWARE_ERROR 0x0080 获取电路板信息0x06 0x00 0x06帧返回包含固件版本的字符串,您可以尝试在ascii中解码它。最后,0x0A错误代码是BAD CRC。考虑到某些寄存器不正确地在您的用户手册中找到表映射,请考虑在UserInterfaceClass.h的typedef枚举{MC_PROTOCOL_REG_TARGET_MOTOR,MC_PROTOCOL_REG_FLAGS,MC_PROTOCOL_REG_STATUS,MC_PROTOCOL_REG_CONTROL_MODE,...} MC_Protocol_REG_t定义的值; Ciao Gigi 以上来自于谷歌翻译 以下为原文 Hello Eric The serial communication implemented in the STM32 FOC SDK 3.0 has been the firts try to estabilsh a realtime communication between the firmware and the PC. Consider that the fist version of Workbench do not support real time communication. We knows that in the user manual of the STM32 FOC SDK 3.0 there are some mistakes regarding the serial communication registers and may be something is not well documented. We are now develop a new version of protocol that will be used to comunicate with ST MC Workbench (1.2) and to make the firmware compatible we will release a 3.0.1 version soon. Regarding the documentation of the MC protocol we don't have a new document release. It will be done in the release of STM32 FOC SDK 3.2. Until then I can try to explain the beaviour of the released version of MC protocol you need. The status register reaturs the status of the firmware state macchine according the following table IDLE 0x0 IDLE_ALIGNMENT 0x1 ALIGNMENT 0x2 IDLE_START 0x3 START 0x4 START_RUN 0x5 RUN 0x6 ANY_STOP 0x7 STOP 0x8 STOP_IDLE 0x9 FAULT_NOW 0xA FAULT_OVER 0XB The flag register is a bit filed value composed by the following bits or-ed NO FAULTS 0x0000 FOC DURATION 0x0001 OVER_VOLTAGE 0x0002 UNDER_VOLTAGE 0x0004 OVERHEAT 0x0008 START_UP_FAILURE 0x0010 SPEED_FEEDBACK 0x0020 OVERCURRENT 0x0040 SOFTWARE_ERROR 0x0080 Get board info 0x06 0x00 0x06 frame returs a string containg the firmware version you can try to decode it in ascii. Finally the 0x0A error code is BAD CRC. Consider that some register is not correctly mapped in the table you find in the user manual please consider the defined value in the UserInterfaceClass.h typedef enum { MC_PROTOCOL_REG_TARGET_MOTOR, MC_PROTOCOL_REG_FLAGS, MC_PROTOCOL_REG_STATUS, MC_PROTOCOL_REG_CONTROL_MODE, ... } MC_Protocol_REG_t; Ciao Gigi |
|
|
|
谢谢你的快速反应。您提供的注册信息将非常有用。
您是否估计SDK和MC Workbench的下一个版本何时到期? 谢谢 埃里克 以上来自于谷歌翻译 以下为原文 Thank you for the quick response. The register information you provided will be most helpful. Do you have an estimate on when the next release of the SDK and MC Workbench are due? Thanks Eric |
|
|
|
Ciao Eric
我认为在2012年第一季度可以使用STM32 FOC SDK 3.2的Web分发。 再见 梁咏琪 以上来自于谷歌翻译 以下为原文 Ciao Eric I think that in the first quarter of 2012 a web distribution of STM32 FOC SDK 3.2 can be availble. Ciao Gigi |
|
|
|
只有小组成员才能发言,加入小组>>
请教:在使用UDE STK时,单片机使用SPC560D30L1,在配置文件怎么设置或选择?里面只有SPC560D40的选项
1474 浏览 1 评论
2142 浏览 1 评论
请问是否有通过UART连接的两个微处理器之间实现双向值交换的方法?
1511 浏览 1 评论
2836 浏览 6 评论
5271 浏览 21 评论
365浏览 4评论
556浏览 4评论
在Linux上安装Atollic TRUEStudio的步骤有哪些呢?
282浏览 3评论
使用DMA激活某些外设会以导致外设无法工作的方式生成代码是怎么回事
634浏览 3评论
533浏览 3评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-4-27 10:05 , Processed in 0.804485 second(s), Total 77, Slave 61 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号