Hi,
After programming the flash (program data) the software of the programmer
automatically writes manufacturing data (serial number, ...) to some
specified addresses. So these addresses should be left un-programmed after
program data download.
A possibility would be to initialize these with const 0xff - but I don't
like this solution.
I'm just trying to figure out how to use the "@nobits" attribute with C.
Matthias
Roman Lim wrote:
why are you trying to do such things in the flash memory? isn't this
only altered on programming the program image (or by explicitly erasing,
programming)?
in the ram, there exists already a noinit section. there you could use:
int __attribute((section(".noinit"))) data;
Roman
mfend wrote:
> sorry for doubleposting - still figthing with outlook...
>
> Hello,
>
> I'm trying to find out how I can declare a flash section as a noinit
> section.
> (Since the section has to be in the main memory I can't use the
> .infomemnobits section)
>
> I found this assembler example:
>
> .section .sectionname, "ax", @nobits
>
> but now I need to know related attribute for C:
>
> #define __flashdata__ __attribute__((section(".flashdata"), ???))
>
> Does anybody know the magic word?
>
> Thanks,
> matthias
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
> Don't miss this year's exciting event. There's still time to save $100.
> Use priority code J8TL2D2.
>
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javao
ne
> _______________________________________________
> Mspgcc-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/mspgcc-users
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javao
ne
_______________________________________________
Mspgcc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mspgcc-users