Hi Steve,
I am not sure if it shouldn't be initialized at start-up (obviously it should
not but...)
This is from gcc-internals:
`ASM_OUTPUT_SKIP (STREAM, NBYTES)'
A C statement to output to the stdio stream STREAM an assembler
instruction to advance the location counter by NBYTES bytes.
***Those bytes should be zero when loaded.*** NBYTES will be a C
expression of type `int'.
I do not know why they should be zeros (just leave them uninitialized...), but
that's all I know about it.
If people can live with uninitialized data, I'll remove zeros from there.
~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
> >>[email protected]
> >>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
> [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
********************************************************************/