Hi,
if you want to erase/program the flash, you can use this SSD flash driver:
http://www.nxp.com/files/soft_dev_tools/software/device_drivers/MPC56XX_C90LC_JDP_SSD_100_DEVD.exe
If you want to see C code example:
https://community.nxp.com/message/592976?commentID=592976#comment-592976
Regarding configuration of flash – it is necessary to initialize PFCR0 and PFCR1 as needed. If you use CodeWarrior 10.6, the configuration is done by FlashConfig() function in __ppc_eabi_init.c file. Required number of wait states (depending on system frequency) can be found in datasheet.
Regards,
Lukas
Hi,
if you want to erase/program the flash, you can use this SSD flash driver:
http://www.nxp.com/files/soft_dev_tools/software/device_drivers/MPC56XX_C90LC_JDP_SSD_100_DEVD.exe
If you want to see C code example:
https://community.nxp.com/message/592976?commentID=592976#comment-592976
Regarding configuration of flash – it is necessary to initialize PFCR0 and PFCR1 as needed. If you use CodeWarrior 10.6, the configuration is done by FlashConfig() function in __ppc_eabi_init.c file. Required number of wait states (depending on system frequency) can be found in datasheet.
Regards,
Lukas
Have you disabled the watchdog? It is automatically turned off by debugger...
void DisableWatchdog(void)
{
SWT.SR.R = 0x0000c520; /* Write keys to clear soft lock bit */
SWT.SR.R = 0x0000d928;
SWT.CR.R = 0x8000010A; /* Clear watchdog enable (WEN) */
}
Regards,
Lukas
Hi Lukas,
i'm very grateful to you for your help.
it's my fault . I found that my microcontroller reference manual is MPC5607B.
Could you shw me the C code example of emios->Input pulse width measurement mode
thanks