- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello! Can I use SPI instead of HCI UART to download the application? And if so, where can I read it, how can I do that?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Yes, the fw_upgrade.c provide the function to store and retrieve information from serial flash. You need to receive the upgraded FW data from SPI and call the function to store it to the flash in your application.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
All BT/BLE chips use HCI commands to program the device so SPI is not an option to program the device.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you for the quick response! So it turns out that for flashing any chip it is necessary to have UART only?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
There is an entry in the WICED Firmware Upgrade Library document:
While different upgrade methods (for example different OTA procedure, or SPI, or UART download) will require different Firmware Upgrade OTA module implementations, the Firmware Upgrade HAL implementation will likely be the same, and will not require changes to that module of the library.
SPI version of Firmware Upgrade OTA module will be programed the serial flash directly then it should be possible to use SPI for frimware upgrade?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Yes, the fw_upgrade.c provide the function to store and retrieve information from serial flash. You need to receive the upgraded FW data from SPI and call the function to store it to the flash in your application.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you! Can you tell me if I can send control commands via SPI in this case?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
What kind of control commands? If you mean wiced hci commands, the answer is yes. In the WICED SDK 6.2.1, demo/watch shows how to receive WICED_HCI command through SPI interface.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you!
Let's summarize:
We can download firmware and send HCI commands via SPI, but we cannot download the application via SPI.
Is that right?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You can use SPI to send WICED HCI command(not standard HCI command) or upgrade FW. But can't program the device.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Are there chips on which all this is implemented using SPI and UART? i.e. send WICED HCI command(not standard HCI command), upgrade FW, program the device?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
All the CYWxxxxx bluetooth chips supports to receive WICED HCI commands and standard HCI commands through HCI UART port. And also support program and upgrade FW with the HCI UART port.