![](/images/new-backgrounds/1192412/192412263x1.webp)
B |
Debugger General Information
FLASH Memory Visible Now = Lower Half
FLASH Memory Visible Now = Upper Half
FLASH Memory Visible Now = Lower Half
The destination address DSAADR of the PFLASH command is always interpreted using the J8 removed mapping, all of Flash mapped in. See Figure
This mapping is used whether or not J8 is installed and regardless of the most recent SFLASH command.
This mapping is also used if a relative offset is supplied as the destination address.
This treatment of the destination address allows the same PFLASH command to be used whether or not J8 is installed. It also allows programming the entire 4MB of flash or any portion with a single PFLASH command.
Assuming J8 is installed, then for this command sequence:
sflash;l
pflash ff800000 ff9fffff ffa00000
The SFLASH;L command has no effect on the destination address used by the PFLASH command. It is only a convenient way for the user to change which portion of the Flash memory array is in view.
In this case PFLASH programs the flash beginning at the location of physical address ffa00000 when J8 is out. This copies the bug from ROM at physical address ff800000 into the upper half of flash.
For the sequence:
pflash ff800000 ff9fffff 0
The PFLASH command programs the flash beginning at the Flash Relative Address of 0 (which corresponds to the flash physical address ff800000 when J8 is out). This copies the bug from ROM at physical address ff800000 into the lower half of flash.