[Icc-mot] memory sections
Lance B. Smith
lance at rapidware.com
Tue Jul 24 07:46:58 PDT 2007
OK I'll bite.. Why is handling interrupts while programming EEPROM an issue?
My code does that all of the time. Is there something special about your
variant? Or perhaps you mean handling interrupts while programming flash?
Curious
-- Lance
=====================
Lance B. Smith, President
Rapidware, Inc.
108 East Main Street
Milan, MI 48160
734 439 3990
734 439 3975 Fax
lance at rapidware.com
www.rapidware.com
=====================
-----Original Message-----
From: icc-mot-bounces at imagecraft.com [mailto:icc-mot-bounces at imagecraft.com]
On Behalf Of Wade A Smith
Sent: Tuesday, July 24, 2007 10:02 AM
To: icc-mot at imagecraft.com
Subject: [Icc-mot] memory sections
well, since it seems no one has been able to handle interrupts while
programming EEPROM...
How about telling the compiler which memory "section" to put programs
into.
I have a main program that I want to start at 8000 and all the associated
files. I like the startup and library files, along with tables, to all
be at 0x5000, so that is the default. I use "#pragma abs_address:0x8000"
for the main function. But all the other C files, even if they are
included at the end of main.c, all go to 0x5000.
How do I get the "other" C files to stay in 0x8000 without specifying an
absolute address for each file?
Is there some way to designate a "section" and get the C files to go to
that specific "section" and let the other stuff (startup, libraries,
tables, etc.) go to the default "section"?
In the past this was all done in assembler. Using C is a little more
challenging.
wade
_______________________________________________
Icc-mot mailing list
Icc-mot at imagecraft.com
http://dragonsgate.net/mailman/listinfo/icc-mot
More information about the Icc-mot
mailing list