Switching between UART and I2C mode on Cy7C65215

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

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?

0 Likes
1 Solution
Sananya_14
Moderator
Moderator
Moderator
750 replies posted 500 replies posted 250 solutions authored

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

View solution in original post

0 Likes
2 Replies