IAP not programming in sector 0 (2138)?
2006-03-28 by SR
Yahoo Groups archive
Index last updated: 2026-04-28 23:31 UTC
Thread
2006-03-28 by SR
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
2006-03-28 by Jayasooriah
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 lpc2000@yahoogroups.com, "SR" <emddjava@...> 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
2006-03-28 by Stanley Frederickson
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 <emddjava@...> 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, __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
2006-03-28 by Samuel
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 <robostanley@...> 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 <emddjava@...> 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,
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
---------------------------------
YAHOO! GROUPS LINKS
Visit your group "lpc2000" on the web.
To unsubscribe from this group, send an email to:
lpc2000-unsubscribe@yahoogroups.com
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
---------------------------------
---------------------------------
New Yahoo! Messenger with Voice. Call regular phones from your PC and save big.
[Non-text portions of this message have been removed]2006-03-28 by Samuel
Got it to work, it was some small init problem...
Samuel <emddjava@yahoo.com> 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 <robostanley@...> 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 <emddjava@...> 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,
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
---------------------------------
YAHOO! GROUPS LINKS
Visit your group "lpc2000" on the web.
To unsubscribe from this group, send an email to:
lpc2000-unsubscribe@yahoogroups.com
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
---------------------------------
---------------------------------
New Yahoo! Messenger with Voice. Call regular phones from your PC and save big.
[Non-text portions of this message have been removed]
---------------------------------
YAHOO! GROUPS LINKS
Visit your group "lpc2000" on the web.
To unsubscribe from this group, send an email to:
lpc2000-unsubscribe@yahoogroups.com
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
---------------------------------
---------------------------------
Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ countries) for 2ยข/min or less.
[Non-text portions of this message have been removed]