CYW20706 SFLASH Layout
- Subscribe to RSS Feed
- Mark as New
- Mark as Read
- Bookmark
- Subscribe
- Printer Friendly Page
- Report Inappropriate Content
Introduction
The SFLASH of CYW20706 is divided into the following section based on different purpose and function. There are three types of section:
SS (Static Section), static section used internally by chip firmware. It contains configuration records that don’t change after factory programming.
VS (Volatile Section), volatile section used by the application and the stack to store data. It may be modified frequently.
DS (Data Section), data section used to store application’s executable binary image built from source codes.
Section Layout Configuration (WICED SDK 6.2.1 for Example)
- Flash Layout for non-OTA application
The default section layout configuration for non-OTA application is in BTP file. Its path is WICED-Studio-6.2.1.2\20706-A2_Bluetooth\platforms\CYW920706WCDEVAL\CYW920706WCDEVAL_SFLASH.btp.
SS |
VS |
DS |
UNUSED |
4KByte @ 0x0000 |
4KByte @ 0x1000 |
500KByte@0x3000 |
|
The information can also be seen in the generated HEX file. The HEX file follows the intel HEX format: https://developer.arm.com/documentation/ka003292/1-0
:02000004FF00FB
:280000000108006999994204204EB1FD0400FFFFFFFF4006007766556A7020020A000030000000100000001004
:F93000000AFB0000020D009DF8380021463A4600F07CFA044696F88000AAF7CFBA000000F022FC034C044E08B18BF749B98BF73FB90000F850210080D620000248006800F6FD608BF
…
As shown above, the address offset is 0xFF00. There are two parts in the application image: SS section and DS section. The SS section starts from 0x0000. The DS section starts from 0x3000. They are same with the configuration in the BTP file.
- Flash Layout for OTA Application
If the application supports OTA Firmware Upgrade. It will need one more SS section to back up the original configuration, VS section to store customer data and DS section to store the download OTA image.
The flash layout configuration can be found in the file C:\Users\zhxh\Documents\WICED-Studio-6.2.1.2\20706-A2_Bluetooth\libraries\fw_upgrade_lib\fw_upgrade.c as follows:
We can get the following section layout from the configuration:
SS1 |
SS2 |
VS1 |
VS2 |
DS1 |
DS2 |
4KByte@0x00000 |
4KByte@0x1000 |
4KByte@0x2000 |
4KByte@0x3000 |
248KByte@0x4000 |
248KByte@0x42000 |