EasyManua.ls Logo

TELINK SEMICONDUCTOR TLSR8232 - Page 37

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 36 Ver.1.0.0
address to store MAC address, please ensure the burning addresses of Telink jig
system are also modified correspondingly. The user_init” function in the SDK will
read MAC address from Flash area starting from the macro “CFG_ADR_MAC”. This
macro can be modified in “drivers/5316/flash.h”.
#ifndef CFG_ADR_MAC
#define CFG_ADR_MAC 0x1F000
#endif
2. The sector 0x1E000~0x1EFFF serves to store customized calibration information for
Telink MCU. Only this sector does not follow the rule that storing information of
different types into different sectors; the 4096 bytes in this sector are divided into 64
units with 64 bytes each, and each unit stores one type of calibration information.
Since calibration information is burned to corresponding addresses by jig, it can be
stored in the same sector; when firmware is running, these calibration information is
read only and not allowed to be written or erased.
1) The first 64-byte unit serves to store frequency offset calibration information.
Actually this calibration value has only 1 byte and is stored in 0x1E000.
2) The second 64-byte unit serves to store calibration value of TP value. Actually
this calibration value has only 2 bytes (TP0, TP1) and stored in 0x1E040 and
0x1E041 correspondingly.
Corresponding to SDK, actual calibration values will be burned into the addresses
above by Telink jig system. If users want to modify the address, please ensure the
burning address of Telink jig system is also modified correspondingly. In “user_init
function of SDK, “blc_app_loadCustomizedParameters()” function will read
calibration values from the addresses starting from the following macros. These
macros can be modified in the “drivers/5316/flash.h”.
#ifndef CUST_CAP_INFO_ADDR
#define CUST_CAP_INFO_ADDR 0x1E000
#endif
#ifndef CUST_TP_INFO_ADDR
#define CUST_TP_INFO_ADDR 0x1E040
#endif
3. The two sectors 0x1C000 ~ 0x1DFFF are occupied by BLE stack system, and the
8kB area is used to store pairing and security information. Users can modify the
starting address of the 8K area by calling the function below:
void bls_smp_configParingSecurityInfoStorageAddr (int addr);
4. The remaining 112kB space 0x00000 ~ 0x1bFFF are configurable area for user code
and user data. The default allocation is as below. The 48kB area 0x00000 ~0x0BFFF
is used as storage space for old firmware. The 48kB area 0x10000 ~0x1BFFF is

Table of Contents