Yahoo Groups archive

Lpc2000

Index last updated: 2026-04-28 23:31 UTC

Message

Re: [lpc2000] MEMMAP register problem

2005-12-08 by Joel Winarske

On 12/8/05, arm_beta_tester <h11@...> wrote:
>
>  I have problem with MEMMAP register in LPC2138.
> By default MEMMAP register is equal to 0x00.
> In this mode during the code execution after the reset vector next
> address is 0xFFFFD1BC.
> In order to not remapping memory this register should be equal to 0x01.
> I'm using IAR EWARM soft.
> In which part of code should I change value of this register?
> Should it be cstartup.s78 file?
>


The order both Keil and IAR use is setup PLL, MAM, then MEMMAP.
Keil implements in startup assembler, while IAR implements in main() post
crt init.  Either way works fine.

If you're debugging out of RAM with IAR you need a debugger macro file that
includes as a minimum:

execUserPreload()
{
    __writeMemory32(0x00000002, 0xE01FC040, "Memory"); // MEMMAP = 2;
}


Joel


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

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.