Cypress技术william hill官网
直播中

王坤

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

在Cy7C65215上怎么切换UART和I2C模式

我想在UART模式(SBC0模式2)和I2C模式(SBC0模式5/6)之间切换。是否有一个命令在运行时切换,还是需要重新编程内部闪存?
如果需要闪存重新编程:
1)闪光灯能经受多少个周期?
2)使用Real/WraveUSER闪存请求(0xe0,0xe1)读取和写入闪存显然是可能的。你能提供一个适合CysB3KIT-03的配置,将SBC0配置从UART模式改为I2C模式吗?

以上来自于百度翻译


     以下为原文
  I would like to switch between UART mode (SBC0 Mode 2) and I2C modes (SBC0 Mode 5/6). Is there a command to switch at runtime, or does it require reprogramming the internal flash?

If flash reprogramming is required:
1) How many cycles does the flash endure?
2) Reading and writing of the flash is apparently possible using the READ/WRITE_USER_FLASH requests, (0xE0, 0xE1). Can you provide a config suitable for the CyUSB3Kit-003, changing the SBC0 config from UART mode to I2C mode?

回帖(2)

夏焕丽

2018-10-23 15:44:09
你好,
内部闪光灯一般有两部分:
1。用户闪存
2。配置闪存
配置Flash不是使用所提到的读/写请求可编程的,并且为了将配置模式从UART更改为I2C,需要使用USB串行配置实用程序或命令行实用程序(参见CY7C6211串行通信模式)。上述读取/写入请求只能用于写入用户闪存区域而不是配置区域。
最好的问候,
萨尼亚尼亚

以上来自于百度翻译


     以下为原文
  Hello,
 
The internal flash generally has two parts:
1. User Flash
2. Config Flash
 
Config flash is not programmable using the mentioned READ/WRITE requests and for changing the configuration mode from UART to I2C, you need to use the USB-Serial Configuration Utility or the command line utility (Refer to CY7C65211 Serial Communication Mode). The mentioned READ/WRITE requests can only be used to write to the user flash area and not the configuration area.
 
Best Regards,
Sananya
举报

潘沪城

2018-10-23 15:56:41
嗨,斯特凡,
SCB0/SCB1的配置不能在运行时动态切换。
你可以用USB串行配置工具或命令行来配置它。
还有一件事,你需要重置板让芯片再次枚举以使新配置有效。

以上来自于百度翻译


     以下为原文
  Hi Stefan,
 
The configuration of SCB0/SCB1 could not be switched dynamically at the run time.
You could configure it with USB-serial configuration utility or command line.
One more thing, you will need to reset the board to let the chip enumerate again to make the new configuration valid.
举报

更多回帖

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