Ok Steve,

I just submitted new code.

Let's resolve this problem this way:
I defined new section '.infomemnobits'.
Data in this section will not be uploaded to the MCU.
All initializations will take no effect in this section.

So, for initial upload you can use '.infomem' and '.infomemnobits' for further 
work.

How this implemented in other compilers?

~d



On Wednesday 04 December 2002 18:21, Steve Underwood wrote:
> Hi Dmitry,
>
> Isn't that just a workaround? Shouldn't the infomem section just not be
> initialised? Initialising it is actually wrong, just as initialising a
> memory address that is really a peripheral register is wrong. The RAM
> area is only initialised by the startup code. Why isn't infomem like that?
>
> Regards,
> Steve
>
> Dmitry wrote:
> >just do not download data to infomem.
> >can you make remote command
> >
> >load [section] ? where section is one of data/dext/infomem/vectors
> >
> >~d
> >
> >On Wednesday 04 December 2002 16:19, Steve Underwood wrote:
> >>Hi,
> >>
> >>Something like the following:
> >>
> >>uint8_t __attribute__((section(".infomem"))) stuff[128];
> >>
> >>puts "stuff" into the correct address in info memory. However, it is
> >>initialised to zero. When I download my code to flash it screws the
> >>config data I have in info memory. How can this initialisation be
> >>prevented. It certainly isn't what I want. :-(
> >>
> >>Regards,
> >>Steve
> >>
> >>
> >>
> >>-------------------------------------------------------
> >>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
> >>Mspgcc-users@lists.sourceforge.net
> >>https://lists.sourceforge.net/lists/listinfo/mspgcc-users
>
> -------------------------------------------------------
> 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
> Mspgcc-users@lists.sourceforge.net
> 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