Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

IAR and memory banking for 128K flash and 8051

85 views
Skip to first unread message

Amir

unread,
Feb 13, 2008, 7:06:10 PM2/13/08
to
Hi all,

I am trying to use code banking for 8051 microcontroller using IAR...
Reading the IAR and XLINK documents didnt help...I appreciate some
info from any one with some hand on experience..

Regards,
Amir

Ulf Samuelsson

unread,
Feb 13, 2008, 7:27:36 PM2/13/08
to
"Amir" <amiri...@gmail.com> skrev i meddelandet
news:bccabcf3-afe1-4a1d...@d4g2000prg.googlegroups.com...

You could also consider moving into the 21st century like the rest of us
by selecting an MCU appropriate for the job.

--
Best Regards,
Ulf Samuelsson
This is intended to be my personal opinion which may,
or may not be shared by my employer Atmel Nordic AB


larwe

unread,
Feb 13, 2008, 7:50:32 PM2/13/08
to
On Feb 13, 7:27 pm, "Ulf Samuelsson" <u...@a-t-m-e-l.com> wrote:

> You could also consider moving into the 21st century like the rest of us
> by selecting an MCU appropriate for the job.

"I'm trying to extract information from a prisoner using the rack, but
I'm having real trouble tying him onto it tightly enough. I checked
the scrolls in the monastery, but didn't get any useful help. So I'm
throwing it out to all my fellow executioners"

"You should move into the 21st century and waterboard him".

Translation: Yes, 8051 is old, but if it's what he's using...

Jim Granville

unread,
Feb 13, 2008, 8:43:13 PM2/13/08
to
larwe wrote:

True.
He might even be using a AT89C51RE2 (new 128K Flash 89C51),
from Umm/Err... who was that vendor again ?? :)

He may have a PLCC44 socket he needs to upgrade, with a new chip.
Care to suggest alternatives for that ?

-jg


Neil

unread,
Feb 14, 2008, 2:25:54 AM2/14/08
to

There are a lot of people who want to Bank with 8052's. I do not know why.
I inherited on once, but it was with Keil.
If you do not get an answer here, An I assume you Post at IAR and look
for samples there, and in the sample folder that the compiler installed.
try asking at www.8052.com ( they may also ask why?)

GMM50

unread,
Feb 14, 2008, 7:41:15 AM2/14/08
to

IAR has(had) a banked switched memory model in the 1980's 1990's
vintage C compilers. I made a lot of money fitting large programs
into small address spaces. The compiler option I am familiar with was
a -m (or perhaps -m0).

The CPU's memory space needed one bank to alway be in place and not
switchable and then another bank to be switchable.

The compiler/linker sorted out all the bank switching parameters. If
a call was made from a routine in one bank to a routine in another
bank, the new bank number and routine address was passed to a bank
switching routine in the common bank. All returns from routines also
were done through this bank switching routine.

The hardware needed a register to store the bank number and that
register fed the memory decode logic in my designs.

Hope this helps
George

Amir

unread,
Feb 14, 2008, 4:49:37 PM2/14/08
to

Thank you Larwe...I assume u picked the easiest answer...lol.
But just to let u know that I am using a SOC which is pretty recent
(2006) and it has an 8051 embedded.
Brief: If you dont know the answer, or cannot provide any help, u dont
have to write useless comments!

Amir

unread,
Feb 14, 2008, 5:02:06 PM2/14/08
to

Thank you for the useful information George. I appreciate it..I use a
SOC (cc2430 ), and according to cc2430 datasheet, the banking has to
be done in 4 banks as opposed to 2. I did setup the parameters as
described by IAR compiler documents, but when I program the flash, the
system doesnt seem to find the start up code, thus nothing happens.

Regards,
Amir

Amir

unread,
Feb 14, 2008, 5:04:07 PM2/14/08
to
> try asking atwww.8052.com( they may also ask why?)

FYI Neil..Many SOC vendors, use these microncontrollers as they are
small, and well developped/fit for embedded designs using SOCs.

Regards,
Amir

Joerg

unread,
Feb 14, 2008, 5:13:08 PM2/14/08
to
Ulf Samuelsson wrote:
> "Amir" <amiri...@gmail.com> skrev i meddelandet
> news:bccabcf3-afe1-4a1d...@d4g2000prg.googlegroups.com...
>> Hi all,
>>
>> I am trying to use code banking for 8051 microcontroller using IAR...
>> Reading the IAR and XLINK documents didnt help...I appreciate some
>> info from any one with some hand on experience..
>>
>> Regards,
>> Amir
>
> You could also consider moving into the 21st century like the rest of us
> by selecting an MCU appropriate for the job.
>

So, then, which other architecture offers 2nd source? FYI your own
employer does not seem to believe that the 8051 is obsolete:

http://atmel.com/products/8051/default.asp

Quote: "Atmel offers a broad range of microcontrollers based on the 8051
architecture. ..."

For example, I have used an Atmel 89C51 in a design in the early 90's
and that is still in production. No end in sight so far. Because it works.

--
Regards, Joerg

http://www.analogconsultants.com/

Ulf Samuelsson

unread,
Feb 14, 2008, 6:15:40 PM2/14/08
to
>>> Hi all,
>>>
>>> I am trying to use code banking for 8051 microcontroller using IAR...
>>> Reading the IAR and XLINK documents didnt help...I appreciate some
>>> info from any one with some hand on experience..
>>>
>>> Regards,
>>> Amir
>>
>> You could also consider moving into the 21st century like the rest of us
>> by selecting an MCU appropriate for the job.
>>
>
> So, then, which other architecture offers 2nd source? FYI your own
> employer does not seem to believe that the 8051 is obsolete:
>


Maybe I should put the signature in BOLD letters...

Joerg

unread,
Feb 14, 2008, 6:41:25 PM2/14/08
to
Ulf Samuelsson wrote:
>>>> Hi all,
>>>>
>>>> I am trying to use code banking for 8051 microcontroller using IAR...
>>>> Reading the IAR and XLINK documents didnt help...I appreciate some
>>>> info from any one with some hand on experience..
>>>>
>>>> Regards,
>>>> Amir
>>> You could also consider moving into the 21st century like the rest of us
>>> by selecting an MCU appropriate for the job.
>>>
>> So, then, which other architecture offers 2nd source? FYI your own
>> employer does not seem to believe that the 8051 is obsolete:
>>
>
>
> Maybe I should put the signature in BOLD letters...
>

I know it's your personal opinion, just wanted to make a point about why
the 8051 architecture is still widely used. And unless another
2nd-sourceable series appears it will remain in use. That would be my
personal opinion, and that of a whole lot of others.

donald

unread,
Feb 14, 2008, 6:59:39 PM2/14/08
to
Hasn't the ARM7 been call the "8051" of the new millennium.

Too bad the ARM7 is just the cpu and not the entire configuration i.e.
peripherals.

donald

larwe

unread,
Feb 14, 2008, 8:33:55 PM2/14/08
to
On Feb 14, 6:59 pm, donald <Don...@dontdoithere.com> wrote:

> Hasn't the ARM7 been call the "8051" of the new millennium.

The prices of both cores are asymptotically approaching zero, but they
really don't 100% occupy the same application space.

Jim Granville

unread,
Feb 14, 2008, 8:43:28 PM2/14/08
to
Joerg wrote:
> Ulf Samuelsson wrote:
>> Maybe I should put the signature in BOLD letters...
>>
>
> I know it's your personal opinion, just wanted to make a point about why
> the 8051 architecture is still widely used. And unless another
> 2nd-sourceable series appears it will remain in use. That would be my
> personal opinion, and that of a whole lot of others.

The 128K in this thread is at the top-end of the 80C51 range,
(ASIX make some larger, with Ethernet) but there is a LOT
of R&D effort going into 80C51 in the far-east now :

Companies like Winbond, Megawin, Myson, Micronas, Coreriver, STC,
Syncmos, ABOV, (etc) are expanding their offerings.

Devices like the new 12Vin/12V I/O Micronas easyLIN will generate
a lot of traction.

Many of these are one clock or turbo cores.

The highest ADC performance devices use 80C51 cores, and
dominate metering.

The 80C51 will still be (easily) the worlds highest volume 8 bit uC core.

-jg

Joerg

unread,
Feb 14, 2008, 9:08:27 PM2/14/08
to

Yep, it sure will be. I even found one in our pellet stove.

Joerg

unread,
Feb 14, 2008, 9:09:20 PM2/14/08
to

Only if 2nd sources are coming from companies like Winbond. Else, no.
Just my humble thoughts.


> Too bad the ARM7 is just the cpu and not the entire configuration i.e.
> peripherals.
>
>

--
Regards, Joerg

http://www.analogconsultants.com/

Neil

unread,
Feb 14, 2008, 11:05:53 PM2/14/08
to

I like the CPU Core. Banking is a way to force it to do more than it
was designed to do. Banking adds Issues and slows the CPU down.
That said it does work. I would guess that SOC use it since it is
popular, Has good tools and has an lot of space to add control register.

In the end it is the core you have. Go with it.

David Brown

unread,
Feb 15, 2008, 3:54:16 AM2/15/08
to

Here's a bit of unrelated free advice:

When you join a newsgroup, remember that you are joining an established
community. A lot of the people here have been around for years - if you
don't understand the banter between old hands like Ulf and Lewin, don't
comment on it, as it just makes you look silly. And learn to spell
"you" - you'll be amazed at the increased level of respect you get.

mvh.,

David

Anton Erasmus

unread,
Feb 15, 2008, 9:29:39 AM2/15/08
to
On Thu, 14 Feb 2008 14:02:06 -0800 (PST), Amir <amiri...@gmail.com>
wrote:

Does your code run when you are using a normal non banked test app ?
AFACR one has to write one's own banking function when using IAR.
You can initially turn this into a test function to switch banks, do a
dump of program memory of where you think the code should be, and
check if this is in fact the case. As George ha said, IAR sorts out
all the nasty details.

Regards
Anton Erasmus

Amir

unread,
Feb 15, 2008, 11:55:23 AM2/15/08
to
On Feb 15, 7:29 am, Anton Erasmus <nob...@spam.prevent.net> wrote:
> On Thu, 14 Feb 2008 14:02:06 -0800 (PST), Amir <amiri.a...@gmail.com>
>   Anton Erasmus- Hide quoted text -
>
> - Show quoted text -

Yes. When used for unbanked, it does work, and everything is fine...It
is just that I wanna add more stuff to what I have, and to do that, I
need more memory, and I have to take advantage of the full size 128K
flash already embedded in the SOC...

Regards,
Amir

Amir

unread,
Feb 15, 2008, 12:47:38 PM2/15/08
to
On Feb 15, 1:54 am, David Brown <da...@westcontrol.removethisbit.com>
wrote:
> David- Hide quoted text -

>
> - Show quoted text -

David,

I really donot need any unrelated off-topic free advice. Thank you! We
are all mature, and professional, as far as the group members are
concerned. I posted a message to seek some help that may be beneficial
to everyone. I dont know where all these advicing is coming from..Lets
end the unrelated advicing, and talk of beneficial stuff to serve the
community as a whole!

Regards,
Amir

Coos Haak

unread,
Feb 15, 2008, 12:52:22 PM2/15/08
to
Op Fri, 15 Feb 2008 09:47:38 -0800 (PST) schreef Amir:

<snip>


> David,
>
> I really donot need any unrelated off-topic free advice. Thank you! We
> are all mature, and professional, as far as the group members are
> concerned. I posted a message to seek some help that may be beneficial
> to everyone. I dont know where all these advicing is coming from..Lets
> end the unrelated advicing, and talk of beneficial stuff to serve the
> community as a whole!

How in the world do we know that you (or David, or even myself) are mature
professionals?
--
Coos

Chris H

unread,
Feb 15, 2008, 1:11:19 PM2/15/08
to
In message
<0b055d7b-c892-46dd...@s19g2000prg.googlegroups.com>,
Amir <amiri...@gmail.com> writes

>On Feb 15, 1:54 am, David Brown <da...@westcontrol.removethisbit.com>
>wrote:
>> Amir wrote:
>> > On Feb 13, 5:50 pm, larwe <zwsdot...@gmail.com> wrote:
>> >> On Feb 13, 7:27 pm, "Ulf Samuelsson" <u...@a-t-m-e-l.com> wrote:
>>
>> >>> You could also consider moving into the 21st century like the rest of us
>> >>> by selecting an MCU appropriate for the job.
>> >> "I'm trying to extract information from a prisoner using the rack, but
>> >> I'm having real trouble tying him onto it tightly enough. I checked
>> >> the scrolls in the monastery, but didn't get any useful help. So I'm
>> >> throwing it out to all my fellow executioners"
>>
>> >> "You should move into the 21st century and waterboard him".
>>
>> >> Translation: Yes, 8051 is old, but if it's what he's using...
>>
>> > Thank you Larwe...I assume u picked the easiest answer...lol.
>> > But just to let u know that I am using a SOC which is pretty recent
>> > (2006) and it has an 8051 embedded.
>> > Brief: If you dont know the answer, or cannot provide any help, u dont
>> > have to write useless comments!
>>
>> Here's a bit of unrelated free advice:

Actually I think it is related... If you don't know the format and
protocol for asking questions you (u?) won't get the answers u/U/you
need.

>>
>> When you join a newsgroup, remember that you are joining an established
>> community.  A lot of the people here have been around for years - if you
>> don't understand the banter between old hands like Ulf and Lewin, don't
>> comment on it, as it just makes you look silly.  And learn to spell
>> "you" - you'll be amazed at the increased level of respect you get.
>>
>> mvh.,
>>
>> David- Hide quoted text -
>>
>> - Show quoted text -
>
>David,
>
>I really donot need any unrelated off-topic free advice. Thank you!

It is very much on topic advice. Some of us, such as myself, Ulf, David
Lewin have been on here for over a decade and we do have a lot of
banter between.... friends, those with different opinions and the
insanely misguided who don't joyfully agree with everything I say.....
:-)

>We
>are all mature, and professional,
>as far as the group members are
>concerned.

That is an incorrect assumption as you will find out in time. Many are
immature students. Some are very mature hobby people (great age but
little experience in some cases) and some you wonder how they ever got a
job in the industry in the first place. But enough about David, Lewin
and Ulf... :-)

There are some professionals on here as well .One of whom you have just
had a go at! Also some hobby people with more knowledge than some of
the professionals in fact all sorts congregate on there.

>I posted a message to seek some help that may be beneficial
>to everyone. I dont know where all these advicing is coming from..

The whole world. The Internet is global.

>Lets
>end the unrelated advicing,

It was directly related advice. As was the advice to use as far as
possible, correct English. "You" has three letters not one.

>and talk of beneficial stuff to serve the
>community as a whole!

You have been here a few weeks and are now telling the professionals who
have been on here a decade how to behave? I would think again before
you ask any more questions of the group.


--
\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
\/\/\/\/\ Chris Hills Staffs England /\/\/\/\/
/\/\/ ch...@phaedsys.org www.phaedsys.org \/\/\
\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/

Chris H

unread,
Feb 15, 2008, 1:13:34 PM2/15/08
to
In message <1ryg8yac21kgf$.1q43ofghhrj6s$.d...@40tude.net>, Coos Haak
<chf...@hccnet.nl> writes

My analyst said I can be what ever I want to be so there !!!!!
Today I am a professional and tomorrow I am going to be a
Lumberjack.....
Chop down trees, work all day and sleep all night......

Chris H

unread,
Feb 15, 2008, 1:16:37 PM2/15/08
to
In message
<2914c7a5-bbc3-4fd1...@s19g2000prg.googlegroups.com>,
Amir <amiri...@gmail.com> writes

So why not use an 8051 core that has linear memory out to 128K rather
than code banking? Which core is it? There are many.

BTW you have not said what sort of banking strategy you are doing.

Chris H

unread,
Feb 15, 2008, 1:19:44 PM2/15/08
to
In message
<d92cc0e4-0f20-41b5...@p73g2000hsd.googlegroups.com>,
larwe <zwsd...@gmail.com> writes

I think it refers to the fact that both the 8051 and ARM have many many
versions from many many silicon vendors, soft cores etc

Ironically I think Intel is one of the few silicon companies not to do
an 8051 and AFAIK I don't think anyone actually uses the original Intel
8051 core any more.

Chris H

unread,
Feb 15, 2008, 1:26:05 PM2/15/08
to
In message
<462d6bc9-0768-495d...@m78g2000hsh.googlegroups.com>,
Amir <amiri...@gmail.com> writes

We know this. However I assume ing you are using the 51 core because it
is cheap. However the bank switching may not be in terms of setup and
programming time,
.
You may want to see what other cores the ASIC/FPGA vendor has. I assume
you mean an ASIC or FPGA when you say SOC?

Chris H

unread,
Feb 15, 2008, 1:29:31 PM2/15/08
to
In message
<216ab711-98d8-4a29...@e25g2000prg.googlegroups.com>,
Amir <amiri...@gmail.com> writes

What sort of banking set up do you have? Is there a common bank or four
banks each with a common in it?

Is there a link to your cc2430 device (manufacturer and part number)

Chris H

unread,
Feb 15, 2008, 1:23:32 PM2/15/08
to
In message <47b4edb8$1...@clear.net.nz>, Jim Granville
<no....@designtools.maps.co.nz> writes

>Joerg wrote:
>> Ulf Samuelsson wrote:
>>> Maybe I should put the signature in BOLD letters...
>>>
>> I know it's your personal opinion, just wanted to make a point about
>>why the 8051 architecture is still widely used. And unless another
>>2nd-sourceable series appears it will remain in use. That would be my
>>personal opinion, and that of a whole lot of others.
>
>The 128K in this thread is at the top-end of the 80C51 range,

I thought NXP had some 256K devices and, Dallas/Maxim, NXP and Analouge
had parts that will address out to a couple of MB?

Though I have never seen the point of adding so much memory to a 51

>Companies like Winbond, Megawin, Myson, Micronas, Coreriver, STC,
>Syncmos, ABOV, (etc) are expanding their offerings.

However I thought they were mainly in the specialist market?

>The 80C51 will still be (easily) the worlds highest volume 8 bit uC core.

I think that some one somewhere worked out that 30% of all MCU out there
are an 8051 family derivative. Now that was about 4 years ago. So it
might have fallen to 1on 5 MCU by now :-)

Nothing else comes close. However I expect ARM cores will one day.

Amir

unread,
Feb 15, 2008, 2:57:07 PM2/15/08
to
On Feb 15, 11:29 am, Chris H <ch...@phaedsys.org> wrote:
> In message
> <216ab711-98d8-4a29-ae47-6265f1ef1...@e25g2000prg.googlegroups.com>,
> Amir <amiri.a...@gmail.com> writes
> \/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/- Hide quoted text -

>
> - Show quoted text -

4 banks of 32K. One common (the lowest 32K of the 128K flash). Here is
the link: http://focus.ti.com/docs/prod/folders/print/cc2430.html

Chris H

unread,
Feb 15, 2008, 3:42:35 PM2/15/08
to
In message
<830563e9-2663-49e8...@u10g2000prn.googlegroups.com>,
Amir <amiri...@gmail.com> writes
>> - Show quoted text -
>
>4 banks of 32K. One common (the lowest 32K of the 128K flash). Here is
>the link: http://focus.ti.com/docs/prod/folders/print/cc2430.html

You have a common and THREE banks.

Message has been deleted

Jim Granville

unread,
Feb 15, 2008, 10:06:11 PM2/15/08
to
Chris H wrote:
> In message <47b4edb8$1...@clear.net.nz>, Jim Granville
>>
>>
>> The 128K in this thread is at the top-end of the 80C51 range,
>
>
> I thought NXP had some 256K devices and, Dallas/Maxim, NXP and Analouge
> had parts that will address out to a couple of MB?
>
> Though I have never seen the point of adding so much memory to a 51

You are correct - there is the Maxim 390 Core that will address 24 bits,
and the Philips MX core that will address 23 bits(IIRC), but I was
meaning to refer to the Single Chip uC versions. There, 128K is
reasonably common, but above that, single chip offering thin out.

>
>> Companies like Winbond, Megawin, Myson, Micronas, Coreriver, STC,
>> Syncmos, ABOV, (etc) are expanding their offerings.
>
>
> However I thought they were mainly in the specialist market?

That was true 18 months ago, but now they are after the 'merchant' & Low
Pin Count markets as well.

I've updated our overview
http://www.designtools.co.nz/overview.htm

Items of interest there are turbo cores, and peripherals from :
** Micronas easyLIN HVC 22xyA, HVC 24xyA : 12V Powered, 12V IO, ADC,
** Myson CS8960 = 24SSOP, 12 bit ADC,
** STC STC12Cxx : 2051 pinout, to 12KF, ADC, fast Core
** Winbond W79E8xx 20/24 pin ADC, LPC models; W79E2xx PWM/ADC/QEI OCD
** Megawin MPC82Exx 20/28/44/48 pins, ADC,PWM
** Coreriver Wide LPC range, newest ones have CalOsc and Wide Vcc.

There are bound to be others I've missed in the far-east as well.

All that shows a lot of R&D effort.

-jg

David Brown

unread,
Feb 16, 2008, 10:20:22 AM2/16/08
to

Ah, so we should all directly answer *your* questions on this thread,
because only such answers are of benefit to the community.

I'm not sure you understand how a Usenet group like this one actually
works. Everyone posting here does so voluntarily, and they post based
on what interests them. It's mostly on-topic for the group, but don't
expect threads to be strictly topical - we are not here to serve *you*,
or any other poster. That's one of the great things about this group -
people have turned a very specific question that is only relevant or
interesting to a few people into a wider discussion of more "benefit to
the community" than just knowing about banking on the 8051 with a
particular compiler.

It could well be that you just do not understand this sub-thread about
postings, newsgroups and community - or that you believe you are a
special case and your own questions are more important than other
discussions. But this thread is open to all - sometimes young or
inexperienced posters really do learn from what others write, and *that*
is beneficial to the community.

And now that you've learned to spell "you", today's lesson is the
apostrophe. Try writing "don't" a few times to get the hang of it.

mvh.,

David

CBFalconer

unread,
Feb 14, 2008, 5:09:21 PM2/14/08
to
larwe wrote:
> "Ulf Samuelsson" <u...@a-t-m-e-l.com> wrote:
>
>> You could also consider moving into the 21st century like the
>> rest of us by selecting an MCU appropriate for the job.
>
> "I'm trying to extract information from a prisoner using the
> rack, but I'm having real trouble tying him onto it tightly
> enough. I checked the scrolls in the monastery, but didn't get
> any useful help. So I'm throwing it out to all my fellow
> executioners"
>
> "You should move into the 21st century and waterboard him".
>
> Translation: Yes, 8051 is old, but if it's what he's using...

And what else has multiple suppliers?

--
[mail]: Chuck F (cbfalconer at maineline dot net)
[page]: <http://cbfalconer.home.att.net>
Try the download section.

--
Posted via a free Usenet account from http://www.teranews.com

CBFalconer

unread,
Feb 15, 2008, 5:55:01 PM2/15/08
to
Amir wrote:
> Chris H <ch...@phaedsys.org> wrote:
>
... snip. This had nothing to do with your answer ...

>>
>> What sort of banking set up do you have? Is there a common bank or four
>> banks each with a common in it?
>>
>> Is there a link to your cc2430 device (manufacturer and part number)
> >
____________ this is a snippable sig. _____________

> > --
> > \/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
> > \/\/\/\/\ Chris Hills Staffs England /\/\/\/\/
> > /\/\/ ch...@phaedsys.org www.phaedsys.org\/\/\
> > \/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/- Hide quoted text -
> >
> > - Show quoted text -
__________ to the end of the message, which is here _________

>
> 4 banks of 32K. One common (the lowest 32K of the 128K flash). Here is
> the link: http://focus.ti.com/docs/prod/folders/print/cc2430.html

Please be sure to snip quoted material that does not bear on your
answer. There are some indications above. This is standard Usenet
procedure.

Chris H

unread,
Feb 18, 2008, 7:35:22 AM2/18/08
to
In message <47B61845...@yahoo.com>, CBFalconer
<cbfal...@yahoo.com> writes

>
>Please be sure to snip quoted material that does not bear on your
>answer. There are some indications above. This is standard Usenet
>procedure.

So is having 2 sigs and more than 4 lines. So when you start sticking to
the rules then and only then should you have a go at others . You have
been told about this many times.

>--
> [mail]: Chuck F (cbfalconer at maineline dot net)
> [page]: <http://cbfalconer.home.att.net>
> Try the download section.
>
>--
> Posted via a free Usenet account from http://www.teranews.com

Amir

unread,
Feb 18, 2008, 12:26:50 PM2/18/08
to
On Feb 13, 5:06 pm, Amir <amiri.a...@gmail.com> wrote:
> Hi all,
>
> I am trying to use code banking for 8051 microcontroller using IAR...
> Reading the IAR and XLINK documents didnt help...I appreciate some
> info from any one with some hand on experience..
>
> Regards,
> Amir

OK all! Thank you for all. Special thanks to fellows like George and
Anthon who only discussed the real issue. Also thank you all others
like David who simply made this thread exponentially growing with
useless, unrelated, time-consuming comments. I am calling this threat
off....

Chris H

unread,
Feb 27, 2008, 3:46:59 AM2/27/08
to
In message
<679df76d-15fb-4895...@h11g2000prf.googlegroups.com>,
Amir <amiri...@gmail.com> writes

IAR have just released a new version of their 8051 compiler with.....
more support for banking with improved set up and better simulation.

Right on cue I should download the new version.

Amir

unread,
Mar 11, 2008, 5:20:51 PM3/11/08
to

HERE IS THE SOLUTION...

1. Project Settings in IAR for Banking Scheme (data model, etc..)
2. Keeping the core part of the code in ROOT CODE memory using
"__near_func" attribute. i.e. main(), low level initialization
functions
3. Modification of the linker file as suggested by Compiler reference
guide for banking system.
4. VERY IMPORTANT: replace the original startup code (which is for non-
banked model) with the banked model startup files found in the tools
installation directory. This is done by including the files in the
project (Project ->Add Files).
5. Read the references for more info...

Thank you All...
Amir

David Brown

unread,
Mar 12, 2008, 1:08:23 PM3/12/08
to

Well done for posting your solution - this will make it easier for
anyone in the future looking through the newsgroup archives.

mvh.,

David

0 new messages