IAP write problem on both LPC1768 and LPC1758

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

IAP write problem on both LPC1768 and LPC1758

821 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by TimucinAnuslu on Thu Jan 09 01:34:29 MST 2014
The problem is seen for all sectors and 1. sector is used as example.

After 1. sector is prepared and erased with SUCCESS return, 0xFF is seen on all sector. It is OK.

Hovewer, after prepare, write and verify command with flash start address as the beginning of this sector and these commands return SUCCESS, first 256 bytes if this sector are filled with 0x00 and RAM source buffer is written after this 256 bytes block.

The test is done on both LPC1768 and LPC1758.

What is the problem? Why does the write and verify command not start with the given address?
Labels (1)
0 Kudos
5 Replies

625 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by TimucinAnuslu on Thu Jan 09 16:13:24 MST 2014
Thanks a lot.

When I try AN11071 example code, I solve my problem. My problem is related to wrong pointer in my code. I took your time, sorry.
0 Kudos

625 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by mc on Thu Jan 09 14:07:00 MST 2014
Hi TimucinAnuslu,
Did you look into IAP application note at below link?
http://www.lpcware.com/content/nxpfile/an11071-application-programming-lpc1700
0 Kudos

625 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by TimucinAnuslu on Thu Jan 09 06:40:32 MST 2014
Firstly thanks your reponse.
I am out of office now so I have not shared my source code and detail info. Maybe I hope someone meets with same problem and I receive solution quickly.
When I return to office, I check it and share detail info.
0 Kudos

625 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by R2D2 on Thu Jan 09 01:48:15 MST 2014
Could be useful if you post a few lines of code...
0 Kudos

625 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by capiman on Thu Jan 09 01:47:50 MST 2014
Hello,

sorry, I don't understand your description of the error. Can you give more details,
which sector, addresses and parameter you use exactly?

Have you taken into account, that IAP needs some memory during operation?
Have a look into IAP/ISP section of UserManual to see where and how big this memory area is exactly.

With "Copy RAM to Flash" some boundary conditions are mentioned, do you have them right:

Param0(DST): Destination flash address where data bytes are to be written. This
address should be a 256 byte boundary.
Param1(SRC): Source RAM address from which data bytes are to be read. This
address should be a word boundary.
Param2: Number of bytes to be written. Should be 256 | 512 | 1024 | 4096.

Another topic is, when you mention first sector, have you taken into account
where your program is located? In the beginning of Flash there is also the interrupt vector table.

Best regards,

Martin
0 Kudos