Hi everyone,
I'm trying to use IAP to store a data buffer in flash (i.e. at sector
14 of my LPC2468).
I successfully did it using IAR IDE v. 5.20 and locating a simple code
in RAM, but when I moved to my real application, which runs from flash,
I encountered the following problem: iap_entry return CMD_SUCCESS (=0) but data
written in memory are inconsistent. for istance if I try to
write 16 bytes as 0x00, 0x01, 0x02 and so on... data on flash may
appear as 0x01, 0x01, 0x02, 0x83...
the buffer I wrote is stored into the internal flash and disabled
interrupts while doing IAP.
Any help would appreciated!
L.
Live online course · Jacob Beningo
AI for Embedded Developers
$100 off for EmbeddedRelated readers until Dec 6 · 5 live sessions, Dec 7-11
Discount ends in
26days
01hrs
51min
39sec
IAP data mismatch LPC2468
Started by ●August 25, 2008
Reply by ●August 27, 20082008-08-27
--- In l..., "boia3333" wrote:
>
> Hi everyone,
>
> I'm trying to use IAP to store a data buffer in flash (i.e. at sector
> 14 of my LPC2468).
>
> I successfully did it using IAR IDE v. 5.20 and locating a simple code
> in RAM, but when I moved to my real application, which runs from flash,
> I encountered the following problem: iap_entry return CMD_SUCCESS (=> 0) but data written in memory are inconsistent. for istance if I try to
> write 16 bytes as 0x00, 0x01, 0x02 and so on... data on flash may
> appear as 0x01, 0x01, 0x02, 0x83...
>
> the buffer I wrote is stored into the internal flash and disabled
> interrupts while doing IAP.
>
> Any help would appreciated!
>
> L.
>
I'm using IAP with IAR compiler without problems. But I noticed the
following thing:
I use IAR 5.11 and I have a pretty complex application. When IAR 5.20
was released, I tried to move to it. The code compiled without
problems but when I tried to run it I noticed some misbehavior. The
application is too big to be debugged by running it into RAM, the only
way to debug it is from flash which is way too long (sometimes it
hangs up) so I gave up and stay on 5.11
Another possible reason could be the IDE which may show wrong values
in Memory window. Compare them by program, not visually.
>
> Hi everyone,
>
> I'm trying to use IAP to store a data buffer in flash (i.e. at sector
> 14 of my LPC2468).
>
> I successfully did it using IAR IDE v. 5.20 and locating a simple code
> in RAM, but when I moved to my real application, which runs from flash,
> I encountered the following problem: iap_entry return CMD_SUCCESS (=> 0) but data written in memory are inconsistent. for istance if I try to
> write 16 bytes as 0x00, 0x01, 0x02 and so on... data on flash may
> appear as 0x01, 0x01, 0x02, 0x83...
>
> the buffer I wrote is stored into the internal flash and disabled
> interrupts while doing IAP.
>
> Any help would appreciated!
>
> L.
>
I'm using IAP with IAR compiler without problems. But I noticed the
following thing:
I use IAR 5.11 and I have a pretty complex application. When IAR 5.20
was released, I tried to move to it. The code compiled without
problems but when I tried to run it I noticed some misbehavior. The
application is too big to be debugged by running it into RAM, the only
way to debug it is from flash which is way too long (sometimes it
hangs up) so I gave up and stay on 5.11
Another possible reason could be the IDE which may show wrong values
in Memory window. Compare them by program, not visually.
Reply by ●August 29, 20082008-08-29
I'm using IAR v 5.11 now but the problem still exists. I check data written
by code.
I think the problem is related to my OS (powerpac - embOS) because the same code runs succesfully in a simple project I made without using the OS.
Is anyone experiecing a thing like this?
thankx
__________________________________________________
Do You Yahoo!?
Poco spazio e tanto spam? Yahoo! Mail ti protegge dallo spam e ti da tanto spazio gratuito per i tuoi file e i messaggi
http://mail.yahoo.it
I think the problem is related to my OS (powerpac - embOS) because the same code runs succesfully in a simple project I made without using the OS.
Is anyone experiecing a thing like this?
thankx
__________________________________________________
Do You Yahoo!?
Poco spazio e tanto spam? Yahoo! Mail ti protegge dallo spam e ti da tanto spazio gratuito per i tuoi file e i messaggi
http://mail.yahoo.it
Reply by ●September 4, 20082008-09-04
--- In l..., laura farina wrote:
>
> I'm using IAR v 5.11 now but the problem still exists. I check data
written by code.
> I think the problem is related to my OS (powerpac - embOS) because
the same code runs succesfully in a simple project I made without
using the OS.
Did you try to disable interrupts during IAP commands?
>
> I'm using IAR v 5.11 now but the problem still exists. I check data
written by code.
> I think the problem is related to my OS (powerpac - embOS) because
the same code runs succesfully in a simple project I made without
using the OS.
Did you try to disable interrupts during IAP commands?









