Tech Support > Computer Hardware > Microprocessors > ColdFire 5282 - Flash programming
ColdFire 5282 - Flash programming
Posted by Karol on October 17th, 2005


Hello,

I am tring to use the internal Flash as a NV storage for some process
parameters. In order to make the Flash writeble I have to remove a write
protection bit from the FLASHBAR register.
However, the code:
asm
{
move.l #0xf0000041,d0
movec d0,FLASHBAR
}
doesn't change the contents of the FLASHBAR register - I see no change
in my debugger window, and the attempt to write anything to the Flash
gives always the Access Error Exception.

I use Metrowerks IDE, version 5.6.1.1570, and the USBColdFire Multilink
from P&E Microcomputer Systems for downloading and debugging.

Has anyone any idea, what is wrong? Is there another register, which
makes the FLASHBAR write-protected?

Thank you for any help.

Piotr Bartkiewicz


Similar Posts