How to access FLASHBAR?

m8847 m8847 at abc.se
Thu Sep 30 15:00:14 UTC 2010


Hi,

I am trying to get my flash programming to work. I have copied the
functions to RAM, but I need to clear the WP bit in FLASHBAR in order to
program. 

I tried something like this from within a C function;
    asm( "move.l   #0x21,d0" );
    asm( "movec    %d0,0xC04" );

 .. but this gives me "operands mismatch" error from assembler, so
obviously I missed something.


This is on a 52259 device, but I guess it is pretty similar on most V2
coldfires.


If someone could spread some light, I'd appreciate it very much.. 

 Micael




More information about the coldfire-gnu-discuss mailing list