| công cụ tìm kiếm bảng dữ liệu linh kiện điện tử |
|
PM0063 bảng dữ liệu(PDF) 17 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
PM0063 bảng dữ liệu(HTML) 17 Page - STMicroelectronics |
|
17 / 30 page ![]() PM0063 Reading/programming the STM32F100xx embedded Flash memory Doc ID 16211 Rev 2 17/30 The sequence is as follows: ● Check that no Flash memory operation is ongoing by checking the BSY bit in the FLASH_SR register. ● Unlock the OPTWRE bit in the FLASH_CR register. ● Set the OPTPG bit in the FLASH_CR register ● Write the data (half-word) to the desired address ● Wait for the BSY bit to be reset. ● Read the programmed value and verify. When the Flash memory read protection option is changed from protected to unprotected, a Mass Erase of the main Flash memory is performed before reprogramming the read protection option. If the user wants to change an option other than the read protection option, then the mass erase is not performed. The erased state of the read protection option byte protects the Flash memory. Erase procedure The option byte erase sequence (OPTERASE) is as follows: ● Check that no Flash memory operation is ongoing by reading the BSY bit in the FLASH_SR register ● Unlock the OPTWRE bit in the FLASH_CR register ● Set the OPTER bit in the FLASH_CR register ● Set the STRT bit in the FLASH_CR register ● Wait for BSY to reset ● Read the erased option bytes and verify 2.4 Protections The user area of the Flash memory can be protected against read by untrusted code. The pages of the Flash memory can also be protected against unwanted write due to loss of program counter contexts. The write-protection granularity is then: ■ Four pages (4 Kbytes) for low- and medium-density value line devices ■ Two pages (4 Kbytes) for high-density value line devices 2.4.1 Read protection The read protection is activated by setting the RDP option byte and then, by applying a system reset to reload the new RDP option byte. Note: If the read protection is set while the debugger is still connected through JTAG/SWD, apply a POR (power-on reset) instead of a system reset (without debugger connection). Once the protection byte has been programmed: ● Main Flash memory read access is not allowed except for the user code (when booting from main Flash memory itself with the debug mode not active). |
|
Link URL |
| Cho đến nay ALLDATASHEET có giúp ích cho doanh nghiệp của bạn hay không? [ DONATE ] |
Alldatasheet là | Quảng cáo | Liên lạc với chúng tôi | Chính sách bảo mật | Liên kết đến bảng dữ liệu | Trao đổi link | Tìm kiếm theo nhà sản xuất All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |