EmbeddedRelated.com
Forums

lpc2119--REPLACING THE CODE IN FLASH USING IAP

Started by santforjob July 18, 2008
I'M RUNNING THE IAPs FROM RAM ITSELF AND REPLACING THE CODE ALREADY
PRESENT AT 00 LOCATION IN FLASH BY THE CODE RESIDING IN RAM. PROBLEM IS
THAT THE CODE GOT REPLACED BUT NEW CODE IS NOT GETTING ACTIVATE, INFACT
AFTER MANUAL RESETING IT IS NOT WORKING.

WHAT WOULD BE THE PROBLEM AND SOLUTION.......

An Engineer's Guide to the LPC2100 Series

Are you programing the right checksum?

Chris.


--- In l..., wrote:
>
> Are you programing the right checksum?
>
> Chris.
>
>
>
>
>
>

i's not calculating the checksum at all.
it works now.
thanks.......

--- In l..., "santforjob" wrote:
>
> --- In l..., wrote:
> >
> > Are you programing the right checksum?
> >
> > Chris.
> >
> >
> >
> >
> >
> > i's not calculating the checksum at all.
> it works now.
> thanks.......
>
santforjob,
Can you share your solution?
I am working on the same thing.
The boot code got replaced in flash, data verification was ok (!), but it can't execute.

--- In l..., "santforjob" wrote:
>
> --- In l..., wrote:
> >
> > Are you programing the right checksum?
> >
> > Chris.
> >
> >
> >
> >
> >
> > i's not calculating the checksum at all.
> it works now.
> thanks.......
>
I missed checksum at 0x14.
I was actually confused since you said "it's NOT CALCULATING... and it WORKS...". FLashMagic was confusing me, too. I didn't check "Ignore checksum" box in the Verify dialog, but it still indeed ignored checksum and reported verification ok.

--- In l..., "kaimi2005" wrote:
>
> santforjob,
> Can you share your solution?
> I am working on the same thing.
> The boot code got replaced in flash, data verification was ok (!), but it can't execute.
>
> --- In l..., "santforjob" wrote:
> >
> > --- In l..., wrote:
> > >
> > > Are you programing the right checksum?
> > >
> > > Chris.
> > >
> > >
> > >
> > >
> > >
> > >
> >
> > i's not calculating the checksum at all.
> > it works now.
> > thanks.......
>