Yahoo Groups archive

Lpc2000

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

Message

Re: [lpc2000] Flash variables

2005-04-22 by Michael Anburaj

Jaromir,

Its true for all compilers, as long as the .text
region (RO section in ADS) is located in Flash (in the
link step) \ufffd all constants & literals will go along
with the code. If the code is located in Flash, so
will constants & literals.

void myfunc()
{
char *ptr = "my string";
}

In this case \ufffdmy string\ufffd will be placed along with
code.

Cheers,
-Mike.



--- Richard Duits <yahoo@...> wrote:
> Anything you define as const is allocated in the
> flash (at least gcc 
> does this, have no experience with other compilers
> yet). Because the arm 
> has only one address space, all memory (flash and
> ram) is the same, 
> except you cannot write to the flash directly. The
> only reason you may 
> want to copy to ram is because ram is faster than
> flash is some cases.
> 
> Richard.
> 
> 
> Jaromir wrote:
> 
> > Hello,
> >
> > how can i keep long strings(or fonts,bitmaps) only
> in flash memory, 
> > and later read.
> > I use gcc - is something like read_flash_byte()
> function?
> > or can i use memcpy ?
> >
> > Jaromir
> >
>
_________________________________________________________________
> > List sprawdzony skanerem poczty mks_vir (
> http://www.mks.com.pl )
> >
> >
> > [Non-text portions of this message have been
> removed]
> >
> >
> >
>
------------------------------------------------------------------------
> > *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
> >      
>
<mailto:lpc2000-unsubscribe@yahoogroups.com?subject=Unsubscribe>
> >        
> >     * Your use of Yahoo! Groups is subject to the
> Yahoo! Terms of
> >       Service <http://docs.yahoo.com/info/terms/>.
> >
> >
> 
> 

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com

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.