EmbeddedRelated.com
Forums

LPC 2103 IAP with IAR C compiler

Started by Ghislain Djanang Tchami July 30, 2008
Hi,

Programming the LPC2103 the IAP command to write data into flash do
not work after the command to prepare the sectors. The programming
function is running from RAM during flash. The same code works with
lpc2134 and lpc2214. Is there any special setting in iar programming
the lpc2103 using IAP? How to use the iap command (copy RAM to Flash 51) with the lpc2103?

Thanks.

An Engineer's Guide to the LPC2100 Series

On Wed, 30 Jul 2008 09:57:49 -0000, you wrote:

>Hi,
>
>Programming the LPC2103 the IAP command to write data into flash do
>not work after the command to prepare the sectors. The programming
>function is running from RAM during flash. The same code works with
>lpc2134 and lpc2214. Is there any special setting in iar programming
>the lpc2103 using IAP? How to use the iap command (copy RAM to Flash >51) with the lpc2103?

Did you set the linker config to tell the compiler not to use the RAM used internally by IAP?

--- In l..., Mike Harrison wrote:
>
> On Wed, 30 Jul 2008 09:57:49 -0000, you wrote:
>
> >Hi,
> >
> >Programming the LPC2103 the IAP command to write data into flash do
> >not work after the command to prepare the sectors. The programming
> >function is running from RAM during flash. The same code works with
> >lpc2134 and lpc2214. Is there any special setting in iar programming
> >the lpc2103 using IAP? How to use the iap command (copy RAM to Flash > >51) with the lpc2103?
>
> Did you set the linker config to tell the compiler not to use the
RAM used internally by IAP?
>

no. I can't find this setting in IAR (Kickstart v4.41).
On Thu, 31 Jul 2008 15:07:33 -0000, you wrote:

>--- In l..., Mike Harrison wrote:
>>
>> On Wed, 30 Jul 2008 09:57:49 -0000, you wrote:
>>
>> >Hi,
>> >
>> >Programming the LPC2103 the IAP command to write data into flash do
>> >not work after the command to prepare the sectors. The programming
>> >function is running from RAM during flash. The same code works with
>> >lpc2134 and lpc2214. Is there any special setting in iar programming
>> >the lpc2103 using IAP? How to use the iap command (copy RAM to Flash >> >51) with the lpc2103?
>>
>> Did you set the linker config to tell the compiler not to use the
>RAM used internally by IAP?
>>no. I can't find this setting in IAR (Kickstart v4.41).

It's in the .xcl linker config file - theer will be a line that specifies the RAM available - edit
this to exclude the locations used by IAP. Documentation is under XLINK in the help.
>
>
--- In l..., Mike Harrison wrote:
>
> On Thu, 31 Jul 2008 15:07:33 -0000, you wrote:
>
> >--- In l..., Mike Harrison wrote:
> >>
> >> On Wed, 30 Jul 2008 09:57:49 -0000, you wrote:
> >>
> >> >Hi,
> >> >
> >> >Programming the LPC2103 the IAP command to write data into flash do
> >> >not work after the command to prepare the sectors. The programming
> >> >function is running from RAM during flash. The same code works with
> >> >lpc2134 and lpc2214. Is there any special setting in iar programming
> >> >the lpc2103 using IAP? How to use the iap command (copy RAM to
Flash > >> >51) with the lpc2103?
> >>
> >> Did you set the linker config to tell the compiler not to use the
> >RAM used internally by IAP?
> >>
> >
> >no. I can't find this setting in IAR (Kickstart v4.41).
>
> It's in the .xcl linker config file - theer will be a line that
specifies the RAM available - edit
> this to exclude the locations used by IAP. Documentation is under
XLINK in the help.
> >
> >
> >
> >
On Fri, 01 Aug 2008 15:50:14 -0000, you wrote:

>--- In l..., Mike Harrison wrote:
>>
>> On Thu, 31 Jul 2008 15:07:33 -0000, you wrote:
>>
>> >--- In l..., Mike Harrison wrote:
>> >>
>> >> On Wed, 30 Jul 2008 09:57:49 -0000, you wrote:
>> >>
>> >> >Hi,
>> >> >
>> >> >Programming the LPC2103 the IAP command to write data into flash do
>> >> >not work after the command to prepare the sectors. The programming
>> >> >function is running from RAM during flash. The same code works with
>> >> >lpc2134 and lpc2214. Is there any special setting in iar programming
>> >> >the lpc2103 using IAP? How to use the iap command (copy RAM to
>Flash >> >> >51) with the lpc2103?
>> >>
>> >> Did you set the linker config to tell the compiler not to use the
>> >RAM used internally by IAP?
>> >>
>> >
>> >no. I can't find this setting in IAR (Kickstart v4.41).
>>
>> It's in the .xcl linker config file - theer will be a line that
>specifies the RAM available - edit
>> this to exclude the locations used by IAP. Documentation is under
>XLINK in the help.
>> >
>> >
>> >
>> >