![GigaDevice Semiconductor GD32F10 Series Скачать руководство пользователя страница 53](http://html.mh-extra.com/html/gigadevice-semiconductor/gd32f10-series/gd32f10-series_user-manual_2225800053.webp)
GD32F10x User Manual
53
Address
Name
Description
GD32F10x_HD, GD32F10x_XD and GD32F10x_CL. Bit 0
configures the first 4KB flash protection, and so on. These
bits totally controls the first 124KB flash protection.
WP[31]: Bit 31 controls the protection of the remaining flash
memory.
0x1fff f80f
WP_N[31:24]
WP complement value bit 31 to 24
2.3.10.
Page erase/program protection
The FMC provides page erase/program protection functions to prevent inadvertent operations
on the Flash memory. The page erase or program will not be accepted by the FMC on
protected pages. If the page erase or program command is sent to the FMC on a protected
page, the WPERR bit in the FMC_STATx registers will then be set by the FMC. If the WPERR
bit is set and the ERRIE bit is also set to 1 to enable the corresponding interrupt, then the
Flash operation error interrupt will be triggered by the FMC to draw the attention of the CPU.
The page protection function can be individually enabled by configuring the WP [31:0] bit field
to 0 in the option bytes. If an erase operation is executed on the option bytes block, all the
Flash Memory page protection functions will be disabled. When WP in the option bytes is
modified, a system reset followed is necessary.
2.3.11.
Security protection
The FMC provides a security protection function to prevent illegal code/data access on the
Flash memory. This function is useful for protecting the software/firmware from illegal users.
No protection: when setting SPC byte and its complement value to 0x5AA5, no protection
performed. The main flash and option bytes block are accessible by all operations.
Under protection: when setting SPC byte and its complement value to any value except
0x5AA5, the security protection is performed. Note that a power reset should be followed
instead of a system reset if the SPC modification is performed while the debug module is still
connected to JTAG/SWD device. Under the security protection, the main flash can only be
accessed by user code and the first 4KB flash is under erase/program protection. In debug
mode, boot from SRAM or boot from boot loader mode, all operations to main flash is
forbidden. If a read operation to main flash in debug, boot from SRAM or boot from boot loader
mode, a bus error will be generated. If a program/erase operation to main flash in debug
mode, boot from SRAM or boot from boot loader mode, the WPERR bit in FMC_STATx
registers will be set. Option bytes block are accessible by all operations, which can be used
to disable the security protection. If program back to no protection level by setting SPC byte
and its complement value to 0x5AA5, a mass erase for main flash will be performed.
Содержание GD32F10 Series
Страница 1: ...GigaDevice Semiconductor Inc GD32F10x Arm Cortex M3 32 bit MCU User Manual Revision 2 6 Jun 2022 ...
Страница 63: ...GD32F10x User Manual 63 programmed during the chip production ...
Страница 117: ...GD32F10x User Manual 117 010 1 0 011 0 9 ...
Страница 416: ...GD32F10x User Manual 416 shadow register updates every update event ...
Страница 427: ...GD32F10x User Manual 427 value ...
Страница 518: ...GD32F10x User Manual 518 These bits are not used in SPI mode ...