yes, this is on docs.
most recent in
msp430-libc/doc.
check CVS at SF if you have not got libc sources.

~d


On Wednesday 04 December 2002 12:33, Flemming Nyboe wrote:
> Thanks
>
> I figured something like the "gcc" way should be possible, since I had seen
> examples of using section(".text") or section(".data").
> Is there a place I can see a reference for this syntax, i.e. __attribute__,
> section(), and which section names exist ?
>
> Flemming
>
> ----- Original Message -----
> From: "Dmitry" <[email protected]>
> To: <[email protected]>
> Sent: Wednesday, December 04, 2002 9:23
> Subject: Re: [Mspgcc-users] Using Information memory
>
>
> how about to do it more 'gcc' way?
>
> whatever_the_type_is __attribute__((section(".infomem"))) flashw[];
> ...
> for(i=0;i<128;i++)
> {
> flashw[i] = whatever[i];
> }
> ...
>
> make sure the arch has this memory. otherwise linker will complain.
>
> ~d
>
> On Wednesday 04 December 2002 01:25, Chris Liechti wrote:
> > Am 03.12.2002 22:22:29, schrieb "Flemming Nyboe" <[email protected]>:
> > >Allright, there's a "flash.h" header, but once FCTL1 is set up for a
> > > write, how do I actually write to an address in information memory in C
>
> ?
>
> > 1. set up FCTL1-3 (WRT=1)
> > 2. write to address as it were RAM
> >  e.g. set up a pointer:
> > unsigned short *flashw = 0xe000;
> > for(i=0;i<128;i++) {
> >   *flashw = 123+i;
> >   flashw++;
> > }
> > or whatever.
> >
> > 3. disable writing (WRT=0)
> >
> > chris
> >
> >
> >
> >
> > -------------------------------------------------------
> > This SF.net email is sponsored by: Microsoft Visual Studio.NET
> > comprehensive development tool, built to increase your
> > productivity. Try a free online hosted session at:
> > http://ads.sourceforge.net/cgi-bin/redirect.pl?micr0003en
> > _______________________________________________
> > Mspgcc-users mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/mspgcc-users

-- 
/********************************************************************
     ("`-''-/").___..--''"`-._     (\   Dimmy the Wild      UA1ACZ
      `6_ 6  )   `-.  (     ).`-.__.`)  Enterprise Information Sys 
      (_Y_.)'  ._   )  `._ `. ``-..-'   Nevsky prospekt,   20 / 44
    _..`--'_..-_/  /--'_.' ,'           Saint Petersburg,   Russia
   (il),-''  (li),'  ((!.-'             +7 (812)  3468202, 5585314
 ********************************************************************/


Reply via email to