EasyManua.ls Logo

TELINK SEMICONDUCTOR TLSR8232 - Page 141

Default Icon
211 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Telink TLSR8232 BLE SDK Developer Handbook
AN-19112700-E1 140 Ver.1.0.0
In the main function, sincecpu_sleep_wakeup” contains settings related to
“firmware_size_k” and “boot_addr”, this API must be called before “cpu_wakeup_init”
takes effect.
If maximum firmware_size exceeds 128kB, booting address needs to be changed to
0x40000. For example, maximum firmware_size may reach 200kB; corresponding setting
should be:
bls_ota_setFirmwareSizeAndOffset (200, 0x40000);
By using this API, not only booting address can be modified, but also Flash area usage
can be optimized.
By default, maximum firmware size is 128kB, and the Flash space 0x00000 ~ 0x40000
can be used to store firmware only. If firmware does not need such a large area, e.g. FW
size does not exceed 60kB, only part of the two 128kB space (0x00000 ~ 0x20000,
0x20000 ~ 0x40000) are used.
To use the redundant space as data storage area, the setting below can be followed.
bls_ota_setFirmwareSizeAndOffset (60, 0x20000);
By the configuration above, the two 60kB Flash areas 0x00000 ~ 0x0F000 and 0x20000
~ 0x2F000 can be used as firmware storage space, while the two 68kB Flash areas
0x0F000 ~ 0x20000 and 0x2F000 ~ 0x40000 can be used as user data storage space.
The situation in TLSR8232F128 OTA is essentially the same as TLSR8232F512, just
change offset 0x20000 to 0x10000.
The following should be noted:
1) For TLSR8232F128, the default firmware size of SDK is 48kB.
2) For TLSR8232F128, by modifying the SDK configuration the maximum firmware size
can be up to 56kB but there will be no extra Flash space for storing user data.
See figure below:

Table of Contents