The only code of yours I changed was the:
// write the flash thru the backdoor address
backdoor_addr = (uint32 *)(__IPSBAR+0x04000000+(int)addr);
*backdoor_addr = data;
to
// write the flash thru the backdoor address
backdoor_addr = (uint32 *)(int)addr);
*backdoor_addr = data;
the address of *backdoor_addr is correct (0x0000F800) but the value is not changing to data, could the cmds be wrong?
my cmds have different names but the values should be the same:
MCF_CFM_CFMCMD_WORD_PROGRAM = (0x20) right?
and
MCF_CFM_CFMCMD_PAGE_ERASE = (0x40)
The registers are getting the right values though.... hmm im stumped
Message Edited by joey c on
2008-07-31 05:03 PMMessage Edited by joey c on
2008-07-31 05:08 PM