Discussion Forum

BLOCK PROGRAM PROBLEM USING IAP

Next Thread | Thread List | Previous Thread Start a Thread | Settings

DetailsMessage
Read-Only
Author
MAHESH JOSHI
Posted
28-Apr-2008 12:58 GMT
Toolset
C51
New! BLOCK PROGRAM PROBLEM USING IAP

HI FRIENDS,

I am using 89c669 as micro-controller. I am facing a problem regarding IAP routines.

The problem is that I am not able to program a BLOCK of data in continuous locations of flash memory.

e.g.
1) if I write bytes from 0xE000 to 0xE400, then only locations 0xE000, 0xE100 ... 0xE400 (i.e. lower addr = 00) are programmed correctly. other values returned are garbage.

2) if I program byte at location 0xE000, 0xE001 & 0xE100 only then value at 0xE001 is not written correctly.(0xE000 & 0xE100 are programmed correctly).

3) if I program 0xE001 alone then it is programmed correctly.

can anyone suggest me why is this happening?
is there any restriction of 256 bytes.

and how to overcome this situation?

Read-Only
Author
Reinhard Keil
Posted
2-May-2008 16:49 GMT
Toolset
C51
New! RE: BLOCK PROGRAM PROBLEM USING IAP

This is really a question for NXP support. Maybe you copy the program lines here into this forum, then others may be able to point to your problem. With just verbal description this is a bit complex to understand.

Read-Only
Author
Mahesh Joshi
Posted
3-May-2008 07:14 GMT
Toolset
C51
New! PROBLEM SOLVED

Thanks Friends for response.

My problem is solved.

Actually it needs to write to whole 256 bytes at a time. That is why there was problem in writing 2 bytes with same lower address. I am floating this information for the use of others.

Mahesh Joshi

Next Thread | Thread List | Previous Thread Start a Thread | Settings