RTL8762C Memory User Guide EN
User Manual:
Open the PDF directly: View PDF
.
Page Count: 21
| Download | |
| Open PDF In Browser | View PDF |
RTL8762C Memory User Guide
ek
alt
Re
Co
V1.1
al
nti
de
nfi
2018/09/12
RTL8762C Memory User Guide
Revision History
Date
Version
Comments
Author
Reviewer
2018/06/11
V1.0
First release version
Grace
Rui
2018/09/12
V1.1
Modify chapter 5
Grace
Rui
ek
alt
Re
Co
al
nti
de
nfi
Copyright 2018 Realtek Semiconductor Corporation.
All Rights Reserved.
2
RTL8762C Memory User Guide
Contents
Revision History ................................................................................................................................................ 2
Figure List ......................................................................................................................................................... 4
Table List ........................................................................................................................................................... 5
1
Overview ................................................................................................................................................... 6
2
ROM .......................................................................................................................................................... 6
3
RAM .......................................................................................................................................................... 6
Data RAM .......................................................................................................................................... 7
3.2
Buffer RAM ....................................................................................................................................... 9
3.3
APIs .................................................................................................................................................... 9
3.4
Memory Usage Calculation .............................................................................................................. 10
alt
Re
3.1
Statistics of Static Zone Size on Data RAM ............................................................................. 11
3.4.2
Statistics of Static Zone Size on Cache Shared RAM Space .................................................... 11
3.4.3
Statistics of Remaining Heap Size ............................................................................................ 11
ek
3.4.1
Co
Cache ....................................................................................................................................................... 11
5
External Flash .......................................................................................................................................... 12
nfi
4
Flash Layout ..................................................................................................................................... 12
5.2
Flash APIs ........................................................................................................................................ 19
5.3
FTL ................................................................................................................................................... 20
al
nti
de
5.1
6
Flash Code and RAM Code Setting ........................................................................................................ 20
7
eFuse ........................................................................................................................................................ 21
Copyright 2018 Realtek Semiconductor Corporation.
All Rights Reserved.
3
RTL8762C Memory User Guide
Figure List
Figure 3-1 Data RAM layout ..................................................................................................................................... 7
Figure 3-2 Adjust Data RAM Layout ........................................................................................................................ 8
Figure 3-3 Buffer RAM Layout ................................................................................................................................. 9
Figure 5-1 Flash Layout........................................................................................................................................... 13
ek
alt
Re
Co
al
nti
de
nfi
Copyright 2018 Realtek Semiconductor Corporation.
All Rights Reserved.
4
RTL8762C Memory User Guide
Table List
Table 1-1 Memory Layout ......................................................................................................................................... 6
Table 3-1 Data RAM Usage....................................................................................................................................... 7
Table 3-2 Buffer RAM Usage .................................................................................................................................... 9
Table 3-3 os_mem_alloc .......................................................................................................................................... 10
Table 4-1 Configure Cache Usage ........................................................................................................................... 12
Table 5-1 Flash Section ........................................................................................................................................... 13
ek
alt
Re
Co
al
nti
de
nfi
Copyright 2018 Realtek Semiconductor Corporation.
All Rights Reserved.
5
RTL8762C Memory User Guide
1 Overview
This document describes memory system of RTL8762C and introduces how to use them. RTL8762C memory
consists of ROM, RAM, external SPI Flash and eFuse, as is shown in Table 1-1. Cache has dedicated RAM, and
the dedicated RAM also can be configured as general RAM using Realtek Vendor registers. This flexible memory
configuration mechanism makes RTL8762C support a wide range of applications whose memory usage are total
different.
Table 1-1 Memory Layout
Memory Type
End Addr
Size(K bytes)
0x0
0x00060000
384
0x00200000
0x0021C000
112
0x00220000
16
0x00288000
32
Re
Start Addr
ROM
alt
Data RAM
ek
Cache (Shared as data RAM)
Co
Buffer RAM
0x0021C000
0x00280000
nfi
0x00800000
SPI Flash (Non Cache)
0x01800000
0x01000000
de
SPI Flash (Cacheable)
0x02000000
8192
8192
al
nti
2 ROM
The ROM code is located at [0x0, 0x60000), in which Bootloader, RTOS, BT Stack, Flash Driver and other
platform modules are built in. RTL8762C opens some modules such as RTOS, BT Stack for application to use.
RTL8762C SDK contains the header files of these ROM modules which enables users to access built in ROM
functions. This reduces both application code size and RAM size.
3 RAM
RTL8762C has two pieces of RAM, the Data RAM located at [0x00200000, 0x0021C000) and the Buffer RAM
Copyright 2018 Realtek Semiconductor Corporation.
All Rights Reserved.
6
RTL8762C Memory User Guide
located at [0x00280000, 0x00288000). Both RAM memories can be used to store data and execute code. In the
current SDK, data RAM has been used for BT stack and running RAM code, while Buffer RAM has been used as
heap for buffer of BT stack, log buffer, task stack and FTL mapping table.
3.1
Data RAM
In the current SDK, Data RAM is divided into 6 parts by default, as is shown in Figure 3-1.
Patch RAM2 (16 KB)
ek
alt
Re
Data RAM Heap
(30 KB*)
Co
APP RAM
(35 KB*)
nfi
de
Patch RAM1 (17 KB)
al
nti
0x00200000
Main Stack (2KB)
Rom Data (12KB)
* means the size is adjustable
Figure 3-1 Data RAM Layout
Each part has its dedicated usage, and only APP RAM and Data RAM Heap have changeable size, as is shown in
Table 3-1.
Table 3-1 Data RAM Usage
Copyright 2018 Realtek Semiconductor Corporation.
All Rights Reserved.
7
RTL8762C Memory User Guide
Memory size
Memory Type
Memory Usage
changeable or not
ROM data
for all global and static variables used by ROM code
NO
for Cortex-M4 MSP, which is used by boot code and ISR
Main Stack
NO
(interrupt service routine) as stack pointer
for global/static variables and RAM code of patch
NO
APP RAM
for global/static variables and RAM code of APP
YES
Re
Patch RAM1
alt
for dynamic memory allocation of ROM code, Patch code and
APP code
YES
ek
Data RAM Heap
11K of the 30K data RAM heap has been used by rom code, so
19k is left for application
Co
for global/static variables and RAM code of patch, could be shut
Patch RAM2
NO
de
nfi
down to save power if not used
The total size of APP RAM and data RAM heap are 65K, which is unchangeable, while the size of each block can
decreasing the size of data RAM heap, vice versa.
al
nti
be adjusted by modifying mem_config.h, as is shown in Figure 3-2. Increase the size of APP RAM means
Copyright 2018 Realtek Semiconductor Corporation.
All Rights Reserved.
8
RTL8762C Memory User Guide
Figure 3-2 Adjust Data RAM Layout
3.2
Buffer RAM
In the current SDK, the address space of Buffer RAM is located in [0x00280000, 0x00288000] which is divided
into 2 parts by default, as is shown in Figure 3-3. The first 2KB is used for ROM Global Data, while the other 30
KB is used as heap. In the 30KB heap, ROM occupies about 25.5 KB dynamic spaces, while the remaining 4.5KB
is used by APP, shown as table 3-2.
alt
Re
Buffer RAM Heap
(30 KB)
0x280000
Rom Data (2KB)
ek
Figure 3-3 Buffer RAM Layout
Co
Each part has its dedicated usage, as is shown in Table 3-2,
Table 3-2 Buffer RAM Usage
Memory size
Memory Usage
al
nti
de
ROM data
nfi
Memory Type
for all global and static variables used by ROM code
changeable or not
NO
for dynamic memory allocation of ROM code, Patch code and
APP code
Buffer RAM Heap
NO
25.5K of the 30K buffer RAM heap has been used by rom
code, so 4.5k is left for application.
3.3
APIs
os_mem_alloc can be used to allocate memory dynamically from Data RAM Heap or Buffer RAM heap
according to the parameter of ram_type, as is shown in Table 3-3.
Copyright 2018 Realtek Semiconductor Corporation.
All Rights Reserved.
9
RTL8762C Memory User Guide
Table 3-3 os_mem_alloc
typedef enum
{
RAM_TYPE_DATA_ON
= 0,
RAM_TYPE_BUFFER_ON
= 1,
} RAM_TYPE;
/**
Re
* @brief Allocate memory dynamically from Data RAM Heap or Buffer RAM heap
* @param ram_type : specify which heap to allocate memory from
alt
*
size: memory size in bytes to be allocated
ek
* @retval pointer to the allocated memory
*/
Co
#define os_mem_alloc(ram_type, size)
os_mem_alloc_intern(ram_type, size, __func__, __LINE__)
nfi
Other APIs are list as below:
os_mem_zalloc: allocated memory will be initialized to 0
os_mem_aligned_alloc: allocated memory will be aligned to the specified alignment
os_mem_free: free a memory block that had been allocated from data ram heap or buffer ram heap
os_mem_aligned_free: free an aligned memory block that had been allocated
os_mem_peek: peek the unused memory size of the specified RAM type
al
nti
de
Refer to os_mem.h for more details.
3.4
Memory Usage Calculation
In order to make using of RAM more convenient, allocating memory dynamically from heap will always allocate
memory from Buffer RAM firstly. If allocate fails, then it will allocate memory from Data RAM again. This
allows static data and code centralization to be placed in Data RAM instead of spreading between Data RAM and
Buffer RAM, thus easier to manage.
Copyright 2018 Realtek Semiconductor Corporation.
All Rights Reserved.
10
RTL8762C Memory User Guide
3.4.1
Statistics of Static Zone Size on Data RAM
Find the first address (fixed 0x00207c00) and end address allocated in Data RAM by finding in the app.map file
generated by building app keil project, for example:
APP used Data RAM’s starting address and size is as follows.
enc_signature
0x00207c00
Data
16
system_rtl8762c.o(.encryption.signature)
APP used Data RAM’s ending address and size is as follows:
Image$$OVERLAY_A$$ZI$$Base
0x0020fa1c
Number
0
anon$$obj.o ABSOLUTE
Re
So the calculation method of APP used static zone size on Data RAM is as follows.
Data RAM Size = 0x0020fa1c - 0x00207c00 = 32284 Bytes;
alt
3.4.2 Statistics of Static Zone Size on Cache Shared RAM Space
ek
Find the first address (fixed 0x0021c000) and end address allocated in Cache Shared RAM by finding in the
app.map file generated by building app keil project, for example:
Co
APP used Cache Shared RAM’s starting address.
nfi
Image$$CACHE_DATA_ON$$RO$$Base
0x0021c000
hids_cbs
0x0021f130
0
de
APP used Cache Shared RAM’s ending address and size .
Number
Data
12
anon$$obj.o ABSOLUTE
hids_rmc.o(.constdata)
al
nti
So the calculation method of APP used static zone size on Cache Shared RAM is as follows.
Cache Shared RAM Size = 0x0021f130 + 12 - 0x0021c000 = 12604 Bytes
3.4.3 Statistics of Remaining Heap Size
The remaining heap size of the specified RAM type can be obtained through the os_mem_peek function.
4 Cache
RTL8762C has a 16K bytes cache, it co-works with SPIC (SPI Flash Controller) to speed up the SPI Flash read
and write operation. And it also can be used as data RAM. If it is configured as data RAM, it can be used for Data
Copyright 2018 Realtek Semiconductor Corporation.
All Rights Reserved.
11
RTL8762C Memory User Guide
Storage or Code Execution. If Cache is configured as data RAM, its range is [0x0021C000, 0x00220000). This
range is just at the end of data RAM.
The Data RAM size of cache could be configured by setting SHARE_CACHE_RAM_SIZE micro in
mem_config.h, as is shown in Table 4-1.
Table 4-1 Configure Cache Usage
SHARE_CACHE_RAM_SIZE
Flash Cache Size
Data RAM Size
Scenario
Run large amounts of flash Code that
0 KB
16 KB
0 KB
requires a large piece of cache
Run small amounts of flash code that
8 KB
8 KB
requires a small piece of cache
ek
alt
Re
8 KB
16 KB
0 KB
Not run flash code
Co
5 External Flash
16 KB
nfi
RTL8762C supports external SPI Flash by integrating a SPI Flash Controller (SPIC). Realtek offers the bottom
de
level API of Flash driver, FTL for user application. SPIC supports memory mapping to SPI Flash on board and
the maximum Flash size is 8M bytes. There are two range of memory mapping spaces. The range of [0x800000,
al
nti
0x1000000) is with cache, and [0x1800000, 0x2000000) is without cache. When enabled, cache will work while
CPU accesses this space. This improves the data read and code execution efficiency of SPI Flash greatly.
5.1
Flash Layout
In the current SDK, the FLASH memory layout is summarized as in Figure 5-1 and consists of 7 fields :
“Reserve”, “OEM Header”, “OTA Bank 0”, “OTA Bank 1”, “FLASH Transport Layer” , “OTA Tmp”
and
“APP Defined Section”. Note that the defined starting address of the FLASH memory accessible by MCU is
0x800000. Flash layout could be adjusted by MP tool.
Copyright 2018 Realtek Semiconductor Corporation.
All Rights Reserved.
12
RTL8762C Memory User Guide
Starting
Starting Address:
Address: 0x800000
0x800000
Reserve
Starting
Starting Address:
Address: 0x801000
0x801000
OEM Header
OTA Bank 0
OTA Bank 1
FLASH Transport Layer
OTA Tmp (Reserved for legacy)
APP Defined Section
Re
Figure 5-1 Flash Layout
The description of each field in the Flash layout is summarized in table below.
alt
Table 5-1 Flash Section
Memory
Size
Segment
Reserved
(Bytes)
0x800000
0x801000
0x1000
Reserved
Co
OEM Header
Functions
ek
Starting Address
0x1000
Store configure information which includes
BT Address, AES Key and user defined Flash
nfi
layout
de
Store data and executable code. It can be
divided into several sections: OTA Header,
OTA Bank 0
al
nti
Secure boot, Patch, APP, APP Data1, and APP
Variable
Variable length
Data2.
(defined in OEM
(defined in OEM
If bank switch of OTA update is not supported,
Header)
Header )
OTA_TMP is used for backup. If bank switch
of OTA update is supported, one of bank0 and
bank1 is executable zone, while the other is
back-up zone.
Variable
Variable length
(defined in OEM
(defined in OEM
Header)
Header )
Variable
Variable length
The same as bank0, and the size of bank1 must
OTA Bank 1
FLASH
also be the same with bank0
Support accessing flash with logic address.
Copyright 2018 Realtek Semiconductor Corporation.
All Rights Reserved.
13
RTL8762C Memory User Guide
Transport
(defined in OEM
(defined in OEM
User can read/write flash with unit size of 4
layer
Header)
Header )
bytes at least
Variable
Variable length
Used as backups for OTA when bank switch of
(defined in OEM
(defined in OEM
OTA update is not supported. Its size can’t be
Header)
Header )
less than the largest image of OTA bank0.
Variable
Variable length
(defined in OEM
(defined in OEM
Header)
Header )
OTA_TMP
APP Defined
Section
The remaining zone of the Flash. User can use
it freely except for OTA update.
There are 6 types of images in OTA Bank: OTA Header, Secure boot, Patch, APP, APP Data1 and APP Data2,
Re
shown in figure 5-2. The layout of OTA Bank is determined by OTA Header, which is generated by MP Pack Tool.
Low
Address
alt
OTA Header
Secure Boot Loader
ek
Patch
Co
App
nfi
App Data1
de
App Data2
High
Address
al
nti
Figure 5-2 POTA Bank Layout
Table 5-2 Image Description of OTA Bank
Memory
Starting Address
Size
Functions
4KB
OTA version, start address and size of each bank
changeable
Security check of code in boot process
Segment
Depend by OEM
OTA Header
Header
Secure Boot
Depend by OEM
Loader
Header
Depend by OEM
Patch
Extended function of BT protocol stack and system
changeable
Header
in ROM
Copyright 2018 Realtek Semiconductor Corporation.
All Rights Reserved.
14
RTL8762C Memory User Guide
Depend by OEM
App
changeable
User application code
changeable
APP Data need to be updated by OTA
changeable
APP Data need to be updated by OTA
Header
Depend by OEM
App Data1
Header
Depend by OEM
App Data2
Header
RTL8762C supports flexible configuration of flash layout according to different application scenarios. User can
customize flash layout through “config set” option of MP tool. Realtek offers FlashMapGenerateTool to generate
files of flash_map.ini and flash_map.h. Flash_map.ini can be imported to MPTool and MPPack Tool to generate
Re
config file and OTA Header. Flash_map.h can be copied to APP project directory to build the target APP image.
1.
alt
But you must pay attention to some of the principles of adjusting flash layout as described below.
If OTA supports bank switch, size of OTA bank0 and bank1 must be equal, while size of OTA tmp should be
ek
set to 0.
2.
If OTA supports bank switch, layout of OTA bank0 and bank1 can be different. But the size of bank0 and
3.
If OTA doesn’t support bank switch, size of OTA bank1 is set to 0. The size of OTA tmp can’t be less than
nfi
size of the largest image in OTA bank0.
4.
Co
bank1 cannot be changed and less than the total size of internal images.
If OTA doesn’t support bank switch, besides OTA Header, patch and APP, user should burn secure
image is released by Realtek.
al
nti
5.
de
boot image. The address should be fixed to 0x80d0000, and size must be less than 4KB. The secure boot
If sizes of APP Data1 and APP Data2 are not set to 0 when generating OTA Header, the responding images
must be burnt. Otherwise, image check will fail in boot process. After handled by tool, the original APP data
bin file will be added a 1KB image header which meets some specific format. Note that, sections of APP
Data1 and APP Data2 are used as storage of app data for OTA. If the data don’t need to update, it should be
placed in the APP Defined Section.
6.
Make sure the offset between end address of OTA bank1 image and flash start address (0x800000) aligned to
flash protected address range, such as 64KB, 128KB, 256KB and 512KB. This can lock all the code zone to
protect from unexpected flash write and erase operation.
As to the 6th principle, RTL8762C supports a mechanism named flash software Block Protect to lock flash to
prevent writing and erasing operations. Flash software block protect uses some BP bits in flash status register to
Copyright 2018 Realtek Semiconductor Corporation.
All Rights Reserved.
15
RTL8762C Memory User Guide
select the level (range) to protect as described below.
ek
alt
Re
Figure 5-3 Flash Software Block Protect
Co
Flash uses BP(x) bits in status register to identify number of blocks to lock, and TB bit to decide the direction to
lock. However, Realtek only supports lock flash from low address to protect some important data such as
nfi
configuration, security, and code sections. In order to support this feature, it is necessary to pass some checking
de
rules to guarantee selected flash meets our requirement for software Block Protect. That is why Approved Vendor
List (AVL) exists. Most flash in Qualified Vendor List supports protecting flash by level for different size, such as
al
nti
64KB, 128KB, 256KB, 512KB, etc.
Therefore, when we divide flash layout, we need to ensure that the end address offset of OTA bank1 segment can
be aligned to a certain level of protection that the selected flash supports as far as possible. Then RTL8762C will
parse flash layout configuration parameters and query selected flash information to set block protect value. In
order to maximize the use of BP, some flash layout examples are as follows. But what you have to notice is that
there are two kinds of flash in AVL, which does not support protecting flash by block level. More details please
refer to Qualified Vendor List.
The protected flash zone can’t be written and erased. If necessary, user can unlock flash first, and then write or
erase, finally lock the flash to the previous level. But this operation is not recommended, as the flash status
register is accessed by way of NVRAM. There is 100K times limit, so frequently unlocking may make the flash
Copyright 2018 Realtek Semiconductor Corporation.
All Rights Reserved.
16
RTL8762C Memory User Guide
unavailable.
Table 5-3 Sample Flash layout (total flash size is 256KB)
Sample Flash Layout (total size is
Size
Start Address
Block Protect size
1) Reserved
4K
0x800000
2) OEM Header
4K
0x801000
140K
0x802000
a) OTA Header
4K
0x802000
The front 128KB
b) Secure boot loader
4K
0x80D000
space starting from
40K
0x803000
92K
0x80E000
256KB)
3) OTA Bank0
e) APP data1
ek
f) APP data2
4) OTA Bank1
address offset is
0K
0x825000
0K
0x825000
aligned so just lock
0K
0x825000
128KB.)
Co
5) FTL
16K
0x825000
92K
0x829000
nfi
6) OTA Temp
flash low address
(OTA Bank1 end
alt
d) APP code
Re
c) Patch code
0K
7) APP Defined Section
148KB. It is not
0x840000
de
Table 5-4 Sample Flash layout (total flash size is 1MB)
al
nti
Sample Flash Layout (Total size is
Start
Size
1MB)
Block Protect Size
Address
1) Reserved
4K
2) OEM Header
4K
0x801000
252K
0x802000
a) OTA Header
4K
0x802000
flash low address
b) Secure boot loader
0K
0x803000
(OTA Bank1 end
c) Patch code
40K
0x803000
d) APP code
208K
0x80D000
e) APP data1
0K
0x841000
3) OTA Bank0
0x800000
The front 512KB
space starting from
address offset is
512KB.)
Copyright 2018 Realtek Semiconductor Corporation.
All Rights Reserved.
17
RTL8762C Memory User Guide
f) APP data2
0K
0x841000
252K
0x841000
a) OTA Header
4K
0x842000
b) Secure boot loader
0K
0x842000
c) Patch code
40K
0x842000
d) APP code
208K
0x84C000
e) APP data1
0K
0x880000
f) APP data2
0K
0x880000
16K
0x880000
0K
0x880000
200K
0x884000
4) OTA Bank1 (size must be same as OTA
Bank0)
6) OTA Temp
7) APP Defined Section
ek
alt
Re
5) FTL
Table 5-5 Sample Flash layout (total flash size is 2MB)
Sample flash layout (total size is 2MB)
Size
Start Addr
Co
1) Reserved
0x800000
4K
0x801000
508K
0x802000
nfi
2) OEM Header
4K
3) OTA Bank0
Block Protect Size
de
4K
0x802000
b) Secure boot loader
0K
0x803000
c) Patch code
40K
d) APP code
464K
e) APP data1
f) APP data2
al
nti
a) OTA Header
The front 1MB
0x803000
space starting from
0x80D000
flash low address
0K
0x881000
(OTA Bank1 end
0K
0x881000
address offset is
1MB.)
4) OTA Bank1 (size must be same as OTA
508K
0x881000
a) OTA Header
4K
0x881000
b) Secure boot loader
0K
0x882000
c) Patch code
40K
0x882000
Bank0)
Copyright 2018 Realtek Semiconductor Corporation.
All Rights Reserved.
18
RTL8762C Memory User Guide
d) APP code
464K
0x88C000
e) APP data1
0K
0x900000
f) APP data2
0K
0x900000
5) FTL
16K
0x900000
6) OTA Temp
0K
0x904000
200K
0x904000
7) APP Defined Section
5.2
Flash APIs
1, Basic Operation APIs:
alt
Re
Flash operation APIs are listed as follows, refer to Bee2-SDK.chm for more details.
bool flash_auto_read_locked(uint32_t addr, uint32_t *data);
ek
bool flash_read_locked(uint32_t start_addr, uint32_t data_len, uint8_t *data);
bool flash_auto_write_locked(uint32_t start_addr, uint32_t data);
Co
bool flash_auto_write_buffer_locked(uint32_t start_addr, uint32_t *data, uint32_t len);
nfi
bool flash_write_locked(uint32_t start_addr, uint32_t data_len, uint8_t *data);
de
bool flash_erase_locked(T_ERASE_TYPE type, uint32_t addr);
2, Flash High Speed Read APIs:
al
nti
bool flash_auto_dma_read_locked(T_FLASH_DMA_TYPE dma_type, FlashCB flash_cb,
uint32_t src_addr, uint32_t dst_addr, uint32_t data_len);
bool flash_auto_seq_trans_dma_read_locked(T_FLASH_DMA_TYPE dma_type, FlashCB flash_cb,
uint32_t src_addr, uint32_t dst_addr, uint32_t data_len);
bool flash_split_read_locked(uint32_t start_addr, uint32_t data_len, uint8_t *data, uint32_t *counter);
If the three above APIs are used, user needs to copy file sdk\src\flash\flash_hs_read.c into the project and
include header file flash_device.h.
Copyright 2018 Realtek Semiconductor Corporation.
All Rights Reserved.
19
RTL8762C Memory User Guide
5.3
FTL
FTL (flash transport layer) is used as abstraction layer for bt stack and user application to read/write data in flash.
Through FTL interface, user can read or write the responding data in flash space for FTL by logic address. The
FTL space can be divided into 2 spaces according to functions:
1.
BT storage space
(1) Logic address range: [0x0000, 0x0C00). But this space size can be changed by otp parameter.
(2) This region is used to store BT information such as device address, link key, etc.
(3) Refer to RTL8762C BLE Stack User Manual for more details.
Re
2.
APP storage space
alt
(1) Logic address range: [0x0C00, 0x17f0)
(2) APP can use this region to store user defined information.
ek
(3) The following APIs can be called to read/write data in this region, and they are defined in ftl.h.
Please refer to Bee2-SDK.chm for more details.
Co
uint32_t ftl_save(void * p_data, uint16_t offset, uint16_t size)
nfi
uint32_t ftl_load(void * p_data, uint16_t offset, uint16_t size)
de
al
nti
6 Flash Code and RAM Code Setting
The code can run on Flash or on RAM. This section describes how to place code in a specific memory to execute.
1.
Modify the macro FEATURE_RAM_CODE definition:
(1) 1 indicates that the code without any section modified runs on RAM.
(2) 0 indicates that the code without any section modified runs on Flash.
2.
If you want to specify a function to place on a specific memory, use the section macro in app_section.h. For
example:
(1) APP_FLASH_TEXT_SECTION means putting the function into Flash to execute.
(2) DATA_RAM_FUNCTION means putting the function into RAM to execute.
Copyright 2018 Realtek Semiconductor Corporation.
All Rights Reserved.
20
RTL8762C Memory User Guide
7 eFuse
eFuse is a block of one-time programming memory which is used to store the important and fixed information,
such as UUID, security key and other one-time programming configuration. The single bit of eFuse cannot be
changed from 0 to 1, and there is no erase operation to eFuse, so be careful to update eFuse. Realtek offers MP
Tool to update certain eFuse sections.
ek
alt
Re
Co
al
nti
de
nfi
Copyright 2018 Realtek Semiconductor Corporation.
All Rights Reserved.
21
Source Exif Data:
File Type : PDF File Type Extension : pdf MIME Type : application/pdf PDF Version : 1.5 Linearized : No Encryption : Standard V2.3 (128-bit) User Access : (none) Creator : Microsoft® Word 2016 Title : RTL8762C Memory User Guide Author : lory_xu Producer : Microsoft® Word 2016; modified using iTextSharp 5.0.5 (c) 1T3XT BVBA Subject : Draft v0.1 Modify Date : 2018:09:21 11:34:38+08:00 Create Date : 2018:09:21 11:20:00+08:00 Tagged PDF : Yes Language : zh-CN Page Count : 21EXIF Metadata provided by EXIF.tools