![GigaDevice Semiconductor GD32E23 Series Скачать руководство пользователя страница 26](http://html.mh-extra.com/html/gigadevice-semiconductor/gd32e23-series/gd32e23-series_user-manual_2225794026.webp)
GD32E23x User Manual
26
Pre-defined
Regions
Bus
ADDRESS
Peripherals
0x00000000 - 0x0000FFFF
Aliased to Flash or
system memory
1.3.1.
On-chip SRAM memory
The GD32E23x series contain up to 8KB of on-chip SRAM which starts at the address
0x2000 0000. It supports byte, half-word (16 bits), and word (32 bits) accesses. In order to
increase memory robustness, parity check is supported. The user can enable the parity
check function using the bit SRAM_PARITY_CHECK in the user option byte (refer to
). When enabled, an NMI is generated if the parity
check fails. The SRAM parity check error flag is implemented in the system configuration
register 2 (SYSCFG_CFG2). The error flag can be connected to the break input of TIMER 0/
TIMER 14/ TIMER 15/ TIMER 16, if the SRAM_PARITY_ERROR_LOCK control bit in the
system configuration register 2 (SYSCFG_CFG2) is set to 1.
The real data width of the SRAM is 36 bits, including 32 bits for data and 4 bits for parity (1
bit per byte). When writing, the parity bits are computed and stored into the SRAM. When
reading, the parity bits are also computed using the stored data in SRAM. The computed
parity bits are compared with the stored parity bits which are computed during the writing
access. If they are different, the parity check fails.
Note:
When enabling the SRAM parity check, it is recommended to initialize the whole
SRAM memory by software at the beginning of the code, in order to avoid getting parity
check errors when reading non-initialized locations.
1.3.2.
On-chip Flash memory
The devices provide up to 64 KB of on-chip flash memory. The flash memory consists of up
to 64 KB main flash organized into 64 pages with 1 KB capacity per page and a 3 KB
information block for the boot loader. The following table shows details.
Table 1-2. Flash module organization
Block
Name
Address
Size
Main Flash Block
Page 0
0x0800 0000 - 0x0800 03FF
1 Kbytes
Page 1
0x0800 0400 - 0x0800 07FF
1 Kbytes
Page 2
0x0800 0800 - 0x0800 0BFF
1 Kbytes
·
·
·
·
·
·
Page 63
0x0800 FC00 - 0x0800FFFF
1 Kbytes
Information Block
System memory
0x1FFF EC00 - 0x1FFF F7FF
3 Kbytes
Option Bytes
0x1FFF F800 - 0x1FFF F80F
16 bytes
All of, byte, half-word (16 bits) and word (32 bits) read accesses are supported. The flash