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


Hello,

I am trying to use ColdFire 5282 internal flash as a NV storage
for some process parameters. In order to make internal flash
writable, I have to remove write-protection bit in the FLASHBAR
register. However, I can not change the value of it!
I tried the following:
asm
{
move.l #0xf0000041,d0
movec d0,FLASHBAR
}

but my debugger shows no change of FLASHBAR contents, and the attempt of
writing to the flash gives always "Access Error Exception".

I use Metrowerks IDE version 5.6.1.1570, and for downloading/debugging
(BDM mode): USB ColdFire Multilink from P&E Microcomputer Systems.

Thank you for any help.
Piotr Bartkiewicz


Similar Posts