ST意法半导体
直播中

张小林

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

steval-esc001v1与sdk 5.1.1不能处理I2C

我觉得有点令人失望的是,对于STEVAL-ESC001V1而言,没有添加到sdk 5.1.1,但该主板仍在销售中。它们也作为RS485 / UART / I2C / PWM平台出售,但固件不能处理I2C。
在新的5.1.1安装中修改JSON数据库我很容易就能在电机分析器中列出威廉希尔官方网站 板。
复制剩余的资源我也能够让分析器对固件进行编程并连接到威廉希尔官方网站 板。
分析电机并保存这些也很有效。
导入旧的STMCWB项目要求将其转换为新格式,我让它这样做。
在安装Java和最新的CubeMX之后,导出IAR EWARM格式也有效。
构建新软件并对其进行调试我发现USART配置基于错误的时钟或以某种方式配置错误。代码为115200时,卡上tx的实际波特率显示为230400波特。
Motor Profiler预计115200所以修改软件以设置115200/2工作,并且Profiler能够查询卡。
它仍然失败。
调试询问发现寄存器MC_PROTOCOL_REG_SC_CHECK的MC_PROTOCOL_CODE_GET_REG失败。代码似乎根本没有这部分。
通过原始代码搜索,我发现通过Motor Control Workbench导入和重新生成项目,可以删除整个电机分析部分。
使用监视器功能,我可以看到通信工作,卡现在正在运行固件版本'ST MC SDK Ver。 5.1.1' 。此外,我发现总线电压为“过压”并列为22。
似乎adc的收益或某些因素现在也不匹配。
现在看来,错误的mcu(ST STM32F302R8)正在建造,而STEVAL-ESC001V1上的芯片是STM32F303CBT7。我怀疑存在多个差异导致配置错误。
这是迄今为止我所获得的,任何见解都具有重要价值......

以上来自于谷歌翻译


以下为原文




I find it a bit disappointing that there is no addon to sdk 5.1.1 for STEVAL-ESC001V1 and yet the board are still being sold. They are also being sold as RS485/UART/I2C/PWM platforms but the firmware does not handle I2C.
Modifying JSON databases in the new 5.1.1 install I was easily able to get the board listed in the motor profiler.
Copying the rest of the resources I was also able to get the profiler to program the firmware and connect to the board.
Profiling motors and saving these also work.
Importing the old STMCWB project asked to convert it to new format and I let it do so.
Exporting for IAR EWARM format also worked after installing Java and the latest CubeMX.
Building the new software worked and debugging it I find that somehow USART configuration is basing of wrong clock or somehow configuring wrong. Actual baud on tx from card shows it runs at 230400 baud when code sais 115200.
Motor profiler expects 115200 so modifying software to set 115200/2 worked and Profiler was able to interrogate card.
It still fails.
Debugging interrogation finds the MC_PROTOCOL_CODE_GET_REG of register MC_PROTOCOL_REG_SC_CHECK fails. Code appears to not have this part at all.
Searching through original code I find the entire section for motor profiling to have been removed by the import and regeneration of project via Motor Control Workbench.
Using the Monitor functionality instead I can see that the comms work and card is now running firmware revision 'ST MC SDK Ver. 5.1.1'. Further more I find the bus voltage to be 'over voltage' and listed as 22.
It appears that gains or somehting for adc is now also mismatched.
It appears that building is now done for wrong mcu (ST STM32F302R8) while the chip on the STEVAL-ESC001V1 is STM32F303CBT7. I suspect there is multiple differences causing configuration errors.
This is as far as I have gotten so far, any insight would be of great value...

回帖(2)

张小林

2018-10-16 17:21:42
下载的电机控制工作台5.1.3现在支持STEVAL-ESC001V1并创建了空白的新项目。导出项目到IAR EWARM和buildt!它立即奏效!
好工作的家伙(还有加尔斯?)!
仍然只有USART支持,但至少现在可以修改!

以上来自于谷歌翻译


以下为原文




Downloaded Motor Control Workbench 5.1.3 now which DOES support STEVAL-ESC001V1 and created blank new project. Exported project to IAR EWARM and buildt! It worked immediately!
Good work guys (and gals?)!
Still only USART support but at least now it can be modified!
举报

丘素莉

2018-10-16 17:30:15
您应该注意,v5.1.3不支持使用STEVAL-ESC001V1进行总线电压检测。

以上来自于谷歌翻译


以下为原文




You should note that bus voltage sensing with the STEVAL-ESC001V1 is NOT supported in v5.1.3.
举报

更多回帖

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