Reply by Samuel March 28, 20062006-03-28
Got it to work, it was some small init problem...

Samuel wrote: Tried that it didn;t work, MEMMAP was equal to 0x....1 I also tried the same function for IAP on the LPC2294 and had no problem at all, and yes it only for sector 0 the whole of sector 0 on the LPC2138. Something I'm missing??

Stanley Frederickson wrote: If the bootloader or RAM are mapped into the interrupt
vector table then you will have problems erasing and
writing to sector 0 (or at least the verification of
the erase and write will fail.) You can map FLASH
into the interrupt vector by writing a 1 into the
least-significant 2-bits of the MEMMAP register at
address 0xE01FC040.

--- SR wrote:
> Does anyone have this problem,. When using the IAP
> set of flash
> programming commands, sector 0's at 0x00000000 is
> never been able to
> be programmed when you are running the code on RAM,
> the vector address
> is mapped onto the internal Flash location
> 0x00000000. Any help,
__________________________________________________



---------------------------------
YAHOO! GROUPS LINKS





---------------------------------



---------------------------------
New Yahoo! Messenger with Voice. Call regular phones from your PC and save big.



---------------------------------
YAHOO! GROUPS LINKS





---------------------------------



---------------------------------
Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ countries) for 2/min or less.




Yahoo! Groups Links

An Engineer's Guide to the LPC2100 Series

Reply by Samuel March 28, 20062006-03-28
Tried that it didn;t work, MEMMAP was equal to 0x....1 I also tried the same function for IAP on the LPC2294 and had no problem at all, and yes it only for sector 0 the whole of sector 0 on the LPC2138. Something I'm missing??

Stanley Frederickson wrote: If the bootloader or RAM are mapped into the interrupt
vector table then you will have problems erasing and
writing to sector 0 (or at least the verification of
the erase and write will fail.) You can map FLASH
into the interrupt vector by writing a 1 into the
least-significant 2-bits of the MEMMAP register at
address 0xE01FC040.

--- SR wrote:
> Does anyone have this problem,. When using the IAP
> set of flash
> programming commands, sector 0's at 0x00000000 is
> never been able to
> be programmed when you are running the code on RAM,
> the vector address
> is mapped onto the internal Flash location
> 0x00000000. Any help,
__________________________________________________

---------------------------------
YAHOO! GROUPS LINKS

---------------------------------

---------------------------------
New Yahoo! Messenger with Voice. Call regular phones from your PC and save big.



Yahoo! Groups Links
Reply by Stanley Frederickson March 28, 20062006-03-28
If the bootloader or RAM are mapped into the interrupt
vector table then you will have problems erasing and
writing to sector 0 (or at least the verification of
the erase and write will fail.) You can map FLASH
into the interrupt vector by writing a 1 into the
least-significant 2-bits of the MEMMAP register at
address 0xE01FC040.

--- SR wrote:
> Does anyone have this problem,. When using the IAP
> set of flash
> programming commands, sector 0's at 0x00000000 is
> never been able to
> be programmed when you are running the code on RAM,
> the vector address
> is mapped onto the internal Flash location
> 0x00000000. Any help,
__________________________________________________

Yahoo! Groups Links
Reply by Jayasooriah March 28, 20062006-03-28
Hi Samuel,

Both IAP and ISP calls use the same routines to program the flash. Thus if
you can use ISP to program sector 0, you should be able to do the same
using IAP calls.

It should not matter where you are calling from so long as you avoid using
the bottom and top end sections of RAM that are used by the boot loader.

When you say sector 0 cannot be programmed, all of sector 0? Or is it just
16 bytes starting at 0x00000000?

Jaya

--- In l..., "SR" wrote:
>
> Does anyone have this problem,. When using the IAP set of flash
> programming commands, sector 0's at 0x00000000 is never been able to
> be programmed when you are running the code on RAM, the vector address
> is mapped onto the internal Flash location 0x00000000. Any help,
>
> Samuel

Send instant messages to your online friends http://au.messenger.yahoo.com

Yahoo! Groups Links
Reply by SR March 27, 20062006-03-27
Does anyone have this problem,. When using the IAP set of flash
programming commands, sector 0's at 0x00000000 is never been able to
be programmed when you are running the code on RAM, the vector address
is mapped onto the internal Flash location 0x00000000. Any help,

Samuel

Yahoo! Groups Links