Yahoo Groups archive

Lpc2000

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

Message

Re: How to get a function running in RAM (Lpc21xx+GnuArm)?

2006-01-19 by wmk6341

Try this.

MEMORY
  {
  CODE (rx) : ORIGIN = 0x00000000, LENGTH = 0x0001E000
  DATA (rw) : ORIGIN = 0x40000000, LENGTH = 0x00003FE0
  }

/* Section Definitions */
SECTIONS
  {

  ...

  _etext = . ;
  PROVIDE (etext = .);

  /* .data section which is used for initialized data */
  .data : AT (_etext)
    {
    _data = . ;
    *(.data)
    . = ALIGN(4)
    *(.ram_func)
    SORT(CONSTRUCTORS)
    } >DATA

...


Regards
-Bill Knight
R O SoftWare

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.