MCF5223x Flash Speculation in CW V7.0

Discussion created by tim35ca on Jun 5, 2008
Latest reply on Jul 4, 2008 by Dumitru Negrea
The setting of FLASHBAR[6] in the default startup code for CodeWarrior V7.0 tools has been removed. As far as I know the Flash address speculation errata bug hasn't been fixed in the MCF5223x family yet. The code was in Ver 6.4 along with the ability to change the Flash address base. With Flash staying at the default address of 0x00000000 the following code needs to be added right near the reset vector:

    move.l  #0x00000061,d0
    movec   d0,FLASHBAR