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
IAR and memory banking for 128K flash and 8051
Started by ●February 13, 2008
Reply by ●February 13, 20082008-02-13
"Amir" <amiri.amir@gmail.com> skrev i meddelandet news:bccabcf3-afe1-4a1d-abae-e9bab77b21a1@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, > AmirYou 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
Reply by ●February 13, 20082008-02-13
On Feb 13, 7:27=A0pm, "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...
Reply by ●February 13, 20082008-02-13
larwe 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...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
Reply by ●February 14, 20082008-02-14
Amir 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, > AmirThere 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?)
Reply by ●February 14, 20082008-02-14
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, > AmirIAR 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
Reply by ●February 14, 20082008-02-14
On Feb 13, 5:50=A0pm, larwe <zwsdot...@gmail.com> wrote:> On Feb 13, 7:27=A0pm, "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!
Reply by ●February 14, 20082008-02-14
On Feb 14, 5:41=A0am, GMM50 <gfm5...@gmail.com> wrote:> 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 > > IAR has(had) a banked switched memory model in the 1980's 1990's > vintage C compilers. =A0I made a lot of money fitting large programs > into small address spaces. =A0The 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. =A0If > 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. =A0All 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 > GeorgeThank 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
Reply by ●February 14, 20082008-02-14
On Feb 14, 12:25=A0am, Neil <NeilKu...@worldnet.att.net> wrote:> Amir 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 > > There are a lot of people who want to Bank with 8052's. =A0I do not know w=hy.> 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 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
Reply by ●February 14, 20082008-02-14
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