Block part of Flash from being programmed
Anonymous
Not applicable
Mar 21, 2011
01:12 AM
- Subscribe to RSS Feed
- Mark as New
- Mark as Read
- Bookmark
- Subscribe
- Printer Friendly Page
- Report Inappropriate Content
Mar 21, 2011
01:12 AM
Question: How to block the part of the Flash from being programmed in case of Hi-Tech compiler?
Answer:
By adding following code into boot.tpl, Flash part from address 0X4000 to 0X8000 can be protected from being programmed:
------------------------------------------------------------
AREA BLOCKOUT(ROM, ABS, CON) ; Do not use [0x4000, 0x8000).
org 0x4000
BLOCKOUT_ROM:: BLK 0x4000
------------------------------------------------------------
The hex file will reflect this by only having halts in this block.
Labels
- Tags:
- psoca 1
Rate this article:
Contributors
-
This widget could not be displayed.Anonymous