| Electronic Components Datasheet Search |
|
PM0054 Datasheet(PDF) 24 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
PM0054 Datasheet(HTML) 24 Page - STMicroelectronics |
|
24 / 28 page ![]() Programming STM8 Flash microcontrollers PM0054 24/28 Doc ID 15433 Rev 9 SWIM active (ICP mode) Readout protection enabled Interrupt vectors except for TRAP and TLI (if available) P TRAP and TLI (if available) P Proprietary code area (PCODE) (if available) P(6) User boot code area (UBC) P Main program P Data EEPROM area (DATA) P Option bytes P/WROP (9) Readout protection disabled Interrupt vectors except for TRAP and TLI (if available) R/W(3)/E TRAP and TLI (if available) R/W/E Proprietary code area (PCODE) (if available) R/E(6) User boot code area (UBC) R/E(7) Main program R/W/E(4) Data EEPROM area (DATA) R/W(5) Option bytes R/W 1. R/W/E = Read; Write and Execute; R/E = Read and Execute (write operation forbidden); R = Read (write and execute operations forbidden); P = the area cannot be accessed (read, execute and write operations forbidden); P/WROP = Protected, write forbidden except for ROP option byte. 2. When no UBC area has been defined, the interrupt vectors except for TRAP and TLI, can be modified in user /IAP mode. 3. If a PCODE area has been defined, then TRAP and TLI vectors cannot be modified in user and IAP mode, otherwise TRAP and TLI follow the same rules as other interrupt vectors. 4. The Flash program memory is write-protected (locked) until the correct MASS key is written in the FLASH_PUKR. It is possible to lock the memory again by resetting the PUL bit in the FLASH_IAPSR register. If wrong keys are provided, the device must be reset and new keys programmed. 5. The data memory is write-protected (locked) until the correct MASS key is written in the FLASH_DUKR. It is possible to lock the memory again by resetting the DUL bit in the IAPSR register. If wrong keys are provided, another key program sequence can be performed without resetting the device. 6. When available, the PCODE area can be read and executed only in privileged mode through TRAP and TLI vectors. The PCODE cannot be directly accessed through the SWIM. 7. To program the UBC area the application must first clear the UBC option byte. 8. The option bytes are write-protected (locked) until the correct MASS key is written in the FLASH_DUKR (with OPT set to ‘1’). It is possible to lock the memory again by resetting the DUL bit in the FLASH_IAPSR register. If wrong keys are provided, another key program sequence can be performed without resetting the device. 9. When ROP is removed, the whole memory is erased, including option bytes. Table 10. Memory access versus programming method(1) (continued) Mode ROP Memory Area Low density STM8L101x Low and medium density STM8L05x/15x Medium density STM8AL31xx / STM8AL3Lxx High density STM8L05x/15x/16x Access from core |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List 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 |