RTEMS
5.0.0
|
MPC55XX flash memory support. More...
#include <errno.h>
#include <sys/types.h>
#include <mpc55xx/regs.h>
#include <mpc55xx/mpc55xx.h>
#include <libcpu/powerpc-utility.h>
#include <rtems/powerpc/registers.h>
MPC55XX flash memory support.
I set my MMU up to map what will finally be in flash into RAM and at the same time I map the flash to a different location. When the software is tested I can use this to copy the RAM version of the program into the flash and when I reboot I'm running out of flash.
I use a flag word located after the boot configuration half-word to indicate that the MMU should be left alone, and I don't include the RCHW or that flag in my call to this routine.
There are obviously other uses for this.