- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.