#define DATA_FLASH_START 4096
From what it looks like, when calling the following two fxns, you need to multiply the address by 2 before calling:
byte DataFlash_SetByteFlash(dword Addr,byte Data);
byte DataFlash_GetByteFlash(dword Addr,byte *Data);
When calling any other set or get fxn for words or long words, you just pass the actual address that you wish to write.
My problem is that no matter what I try at what address, the read and write functions never return an Error Ok value, there is always some sort of an error that is returned. I have turned off all interrupts in the system so that I can step through this code without CodeWarrior crashing or the peripheral clocks queueing interrupts. If someone has some basic code that performs basic read/write fxns that they know work, could you please reply and attach them.