Yahoo Groups archive

Lpc2000

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

Message

Re: GCC reading ram in lpc 2292 - is it possible??

2005-12-02 by Ken Wada

/* To read */
unsigned long LPC2292_ramRead (const unsigned long address)
{
    return (* (volatile unsigned long *)(address));
}

/* To write */
void LPC2292_ramWrite (const unsigned long address, const unsigned 
long value)
{
    *(volatile unsigned long *)(address) = value;
}


/***** So there you have it... a subroutine that reads and writes to 
any ram, (including internal, and registers), for your project ****/

Ken Wada

--- In lpc2000@yahoogroups.com, "boje_d" <boje_demant@h...> wrote:

>
> Hi im using gnuarm GCC toolset.
> I want to make a c routine to read on a specefic ram location.
> I want this to be a c file.
> I am using a lpc2292processor
> Is this possible? 
> Can you suply a bit of code.
> Thank you 
> Best regards 
> Boje Demant
>

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.