Yahoo Groups archive

Lpc2000

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

Message

Re: [lpc2000] relocating code in RAM with lpc2106.

2005-02-28 by Hong Jiang

Milind Deshpande <milind_pd@...> wrote:

Hi,

I am a newbie doing firmware development on LPC2106 and using couple of interrupts for UART0 and TIMER1. The interrupts work fine when the code resides in flash. 

However when I try to put the code in RAM for debug, the interrupts no longer work and so I cannot do any debug on UART0.



When putting the code in FLASH I am linking the code as below:

Code: 0x00000000 i.e. whole 128K for code.

Ram: 0x40000000 i.e. whole 64k for data.

Register E01FC040 = 0x0;



When putting the code in RAM I am linking the code as below:

Code: 0x40000000 i.e. 48K for Code

Ram: 0x4000C000 i.e. 15K for Data.

Register E01FC040 = 0x2;



The LPC manual does not say anything else for relocating the code in RAM, so I am not sure what is going wrong with my settings. Could someone please explain or let me know if I need to do any further settings to get the interrupts working in RAM.

Thanks in advance.



Regards

Milind

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

You should remap the interrupt vector table from 0x00000000 to 0x40000000,then your program will run in the ram as well as in the flash.
__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



Yahoo! Groups SponsorADVERTISEMENT


---------------------------------
Yahoo! Groups Links

   To visit your group on the web, go to:
http://groups.yahoo.com/group/lpc2000/
  
   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. 





---------------------------------
Do You Yahoo!?
150万曲MP3疯狂搜,带您闯入音乐殿堂
美女明星应有尽有,搜遍美图、艳图和酷图
1G就是1000兆,雅虎电邮自助扩容!

[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.