Hi all, Is there any way to erase the flash thru the BDM once the flash protection bits in FPROT have been changed? I am using the bootloader from the mot web site, and it has a 4096 byte protected boot block at $F000, like this: org $ff0d dc.b $cf ; setup a 4K bootblock in Flash block 0. The bootloader runs, but now I can't change it from the BDM ;( I am using the IAR tools, but it gets a PVIOL error when trying to erase this area. Any other tools that can erase a protected area? Kristie Sirclum Software Engineer, ITC Systems |
|
flash erase
Started by ●October 23, 2002
Reply by ●October 23, 20022002-10-23
Reply by ●October 23, 20022002-10-23
Kristie, The FPROT register may be written any time when the DP256 is in Special mode, so just using a memory modify command to write the FPROT register to $FF will allow mass erase of block 0. I'm not sure why the IAR tools don't write the FPROT register to $FF when a mass erase is attempted to block 0. Note that in Normal mode the FPROT may be written once after reset, even if the protection location in Flash is something other than $FF. This provides additional flexibility for the application to protect various areas of the Flash blocks after initial programming. Also note that this capability was not in the original mask set (0K36N) of the DP256. Regards, Gordon kristies1 wrote: > Hi all, > > Is there any way to erase the flash thru the BDM once the > flash protection bits in FPROT have been changed? > I am using the bootloader from the mot web site, and it has > a 4096 byte protected boot block at $F000, like this: > > org $ff0d > dc.b $cf ; setup a 4K bootblock in Flash block 0. > > The bootloader runs, but now I can't change it from the BDM ;( > > I am using the IAR tools, but it gets a PVIOL error when trying to > erase this area. > Any other tools that can erase a protected area? > > Kristie Sirclum > Software Engineer, ITC Systems > -------------------- > > ">http://docs.yahoo.com/info/terms/ -- =============================================================== Gordon Doughman Ph: 937-438-6811 Motorola Semiconductor Fax: 937-434-7457 Field Applications Engineer Pager: 800-759-8352 Pin: 1304089 Suite 175 3131 Newmark Drive Miamisburg, OH 45342 Check out my HC12 book at: http://www.rtcgroup.com/books/ |