Sign in

username:

password:



Not a member?

Search lpc2000



Search tips

Subscribe to lpc2000



lpc2000 by Keywords

2106 | ADC | ARM7 | Atmel | Bootloader | CAN | CrossStudio | CrossWorks | DDS | ECos | Ethernet | ETM | FIFO | FLASH | FPGA | GCC | GDB | GNU | GNUARM | GPIO | I2C | IAP | IAR | JTAG | Kickstart | LCD | Linux | LPC | LPC-E2294 | LPC2000 | LPC2100 | LPC2104 | Lpc2106 | Lpc210x | LPC2114 | LPC2119 | LPC2124 | LPC2129 | Lpc2138 | LPC213x | LPC21xx | LPC2210 | LPC2212 | LPC2214 | LPC2292 | LPC2294 | LPC2xxx | LPC3128 | MCB2100 | Olimex | Philips | PWM | Rowley | RTC | RTOS | SPI | SSP | UART | UART0 | UART1 | ULINK | USB | Watchdog | Wiggler

Ads

Discussion Groups

Discussion Groups | LPC2000 | IAP data mismatch LPC2468

Discussion group dedicated to the Philips LPC2000 family of ARM MCUs

IAP data mismatch LPC2468 - boia3333 - Aug 25 8:03:33 2008

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.
------------------------------------



(You need to be a member of lpc2000 -- send a blank email to lpc2000-subscribe@yahoogroups.com )


Re: IAP data mismatch LPC2468 - Adrian Bica - Aug 27 10:43:38 2008

--- In l...@yahoogroups.com, "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.
------------------------------------



(You need to be a member of lpc2000 -- send a blank email to lpc2000-subscribe@yahoogroups.com )

Re: IAP data mismatch LPC2468 - laura farina - Aug 29 9:52:44 2008

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.=20
=C2=A0
Is anyone experiecing a thing like this?
=C2=A0
=C2=A0
thankx
=C2=A0
=C2=A0

__________________________________________________
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=20
http://mail.yahoo.it=20

[Non-text portions of this message have been removed]
------------------------------------



(You need to be a member of lpc2000 -- send a blank email to lpc2000-subscribe@yahoogroups.com )

Re: IAP data mismatch LPC2468 - Adrian Bica - Sep 4 9:39:27 2008

--- In l...@yahoogroups.com, 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?
------------------------------------



(You need to be a member of lpc2000 -- send a blank email to lpc2000-subscribe@yahoogroups.com )