
Telink TLSR8232 BLE SDK Developer Handbook
AN-19112700-E1
34
Ver.1.0.0
address to store MAC address, please ensure the consistency. 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 the “drivers/5316/flash.h”.
#ifndef
CFG_ADR_MAC
#define
CFG_ADR_MAC
0x76000
#endif
2. The sector from 0x77000 to 0x77fff serves 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, the 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 0x77000.
2) The second 64-byte unit serves to store calibration value of TP value which has
2 bytes (TP0, TP1) and is stored in 0x77040 and 0x77041 correspondingly.
3) The third 64-byte unit serves to store capacitance calibration value of external
32kHz crystal.
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
these 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
0x77000
#endif
#ifndef
CUST_TP_INFO_ADDR
#define
CUST_TP_INFO_ADDR
0x77040
#endif
3. The two sectors 0x74000 ~ 0x75FFF 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 this 8kB area by calling the function below:
stack/ble/ble_smp.h
void bls_smp_configParingSecurityInfoStorageAddr (int addr);
4. The 256kB area 0x00000 ~ 0x3FFFF is used as program space by default:
The first 128kB area 0x00000 ~ 0x1FFFF is used as storage space for old firmware.
The second 128kB area 0x20000 ~ 0x3FFFF is used as storage space for OTA new
firmware, which means the maximum space for Firmware is 128kB.