Sign in

username:

password:



Not a member?

Search lpc2000



Search tips

Subscribe to lpc2000



lpc2000 by Keywords

2106 | ADC | ARM7 | Atmel | Bootloader | CAN | CrossStudio | CrossWorks | DDS | ECos | Ethernet | ETM | FIFO | FLASH | FPGA | GCC | GDB | GNU | GNUARM | GPIO | I2C | IAP | IAR | JTAG | Kickstart | LCD | Linux | LPC | LPC-E2294 | LPC2000 | LPC2100 | LPC2104 | Lpc2106 | Lpc210x | LPC2114 | LPC2119 | LPC2124 | LPC2129 | Lpc2138 | LPC213x | LPC21xx | LPC2210 | LPC2212 | LPC2214 | LPC2292 | LPC2294 | LPC2xxx | LPC3128 | MCB2100 | Olimex | Philips | PWM | Rowley | RTC | RTOS | SPI | SSP | UART | UART0 | UART1 | ULINK | USB | Watchdog | Wiggler

Ads

Discussion Groups

Discussion Groups | LPC2000 | LPC2210 boot configuration question

Discussion group dedicated to the Philips LPC2000 family of ARM MCUs

LPC2210 boot configuration question - Pieter Verstraelen - Dec 17 7:01:00 2005

I want to use the LPC2210 with an external page mode flash S29GL032.
The LPC2210 has to boot from this device so the value of the BOOT0 and
BOOT1 pins is important (P2.26 and P2.27).

Page 93 of the user manual (Rev. 01) contains the description for
PINSEL2[5:4]. The table shows me that BOOT1 should be 0 and BOOT1
should be 1 to have access to OE, D15:0 and CS0.

The problem is the PINSEL2[24] bit (CTRLP301 on page 94): according to
the explanation for CTRLP301, the I/O pin P3.1 starts as an GPOI pin if
BOOT1 is 0. P3.1 is also A1 and A1 is needed to fetch from the flash.
So, with BOOT1 set to 0 during power-on, you don't have A1 available.
And without A1 is it hard to read from the 16 bit wide FLASH.

How can I solve this? Or is there a mistake in my interpretation?

The manual also states that with BOOT1:0 set to 11, booting from 16 bit
memory with CS0 is possible (page 84). But the table on page 93
indicates that with BOOT1:0 set to 11, the pin P1.0 works as GPOI pin
and not as CS0 pin. That makes it hard to boot with CS0.
There is something here that I don't understand... or there is something
wrong in the manual.

Regards,

Pieter Verstraelen [Non-text portions of this message have been removed]




(You need to be a member of lpc2000 -- send a blank email to lpc2000-subscribe@yahoogroups.com )


Re: LPC2210 boot configuration question - vaibhav chauhan - Dec 17 8:41:00 2005

I have not worked with LPC2210/LPC2220 but i have worked with LPC2292
and readed other controllers for using external memory interface from phillips

The thing i want to tell u is for
BOOT1:0 selects one of the following options:
- 00 selects 8-bit memory on CS0 for boot.
- 01 selects 16-bit memory on CS0 for boot.
- 10 selects 32-bit memory on CS0 for boot.
- 11 selects 16-bit memory on CS0 for boot.
LAST OPTION IS ONLY TRUE IF UR CONTROLLER HAVE IN BILD FLASH
[ Does u rcontroller have ? ]
1. Boot 1 and Boot 0 were internally pull up
so by default they are in Mode 11 [last one]
which use internal FLASH of controller if present
while booting up at the time of reset.
i.e BOOT 1:0 -- 11
In other three mode controller will over look the internal
flash.
2. To Boot with an outer 32 bit memory
Connect a 10K res. permanently
Between BOOT0 and GND,So it make the desired configration
i.e BOOT 1:0 -- 10
3. To Boot with an outer 16 bit memory
Connect a 10K res. permanently
Between BOOT1 and GND,So it make the desired configration
i.e BOOT 1:0 -- 01
4. To Boot with an outer 8 bit memory
Connect a 10K res. permanently
Between BOOT1 and GND + BOOT0 and GND,
So it make the desired configration

i.e BOOT 1:0 -- 00
The choice of 10K is to make a week pull down so that
these pins can be used for their respective functionality, otherwise.

The main point that u might have over looked is that
these conditions are necessary only at the time of reset
after that u dont need them.

AND u r thinking from a software part of view because u are
looking at the internal reg. rather then looking for some schematics
If u r looking to design a LPC hardware the best way or the quickest
way is to look for a development board as per ur requirement
[quit easy to find] then look for it sch. and study it.
Then go for the user manual is u have a dought.

NOW i have a question in my mind how will i load the program the external
flash ?
Any idea other then IAP.

tell me if u find the sollution.even a blank mail with "i got sollution"

vaibhav chauhan

elen <pieter@piet...> wrote:
I want to use the LPC2210 with an external page mode flash S29GL032.
The LPC2210 has to boot from this device so the value of the BOOT0 and
BOOT1 pins is important (P2.26 and P2.27).

Page 93 of the user manual (Rev. 01) contains the description for
PINSEL2[5:4]. The table shows me that BOOT1 should be 0 and BOOT1
should be 1 to have access to OE, D15:0 and CS0.

The problem is the PINSEL2[24] bit (CTRLP301 on page 94): according to
the explanation for CTRLP301, the I/O pin P3.1 starts as an GPOI pin if
BOOT1 is 0. P3.1 is also A1 and A1 is needed to fetch from the flash.
So, with BOOT1 set to 0 during power-on, you don't have A1 available.
And without A1 is it hard to read from the 16 bit wide FLASH.

How can I solve this? Or is there a mistake in my interpretation?

The manual also states that with BOOT1:0 set to 11, booting from 16 bit
memory with CS0 is possible (page 84). But the table on page 93
indicates that with BOOT1:0 set to 11, the pin P1.0 works as GPOI pin
and not as CS0 pin. That makes it hard to boot with CS0.
There is something here that I don't understand... or there is something
wrong in the manual.

Regards,

Pieter Verstraelen [Non-text portions of this message have been removed]
SPONSORED LINKS
Microprocessor Microcontrollers Pic microcontrollers 8051 microprocessor

---------------------------------
YAHOO! GROUPS LINKS --------------------------------- Send instant messages to your online friends http://in.messenger.yahoo.com

[Non-text portions of this message have been removed]




(You need to be a member of lpc2000 -- send a blank email to lpc2000-subscribe@yahoogroups.com )

RE: LPC2210 boot configuration question - Pieter Verstraelen - Dec 17 9:02:00 2005

The LPC2210 does not have internal flash. So, the 11 option for the
BOOT 1:0 pins is not a good idea probably.

I want to boot from an external 16 bit FLASH and have to connect BOOT1
with a 10K resistor to GND. That is clear.

My only doubt is about address line A1. The description of CTRLP301 on
page 94 of the user manual states that the pin with A1 is in GPIO mode
after reset if BOOT1 is zero during reset. But I need A1 to fetch code
from the flash...

Regards,
Pieter Verstraelen

> -----Oorspronkelijk bericht-----
> Van: lpc2000@lpc2... [mailto:lpc2000@lpc2...] Namens
> vaibhav chauhan
> Verzonden: zaterdag 17 december 2005 13:42
> Aan: lpc2000@lpc2...
> Onderwerp: Re: [lpc2000] LPC2210 boot configuration question
>
> I have not worked with LPC2210/LPC2220 but i have worked with LPC2292
> and readed other controllers for using external memory interface from
> phillips
>
> The thing i want to tell u is for
> BOOT1:0 selects one of the following options:
> - 00 selects 8-bit memory on CS0 for boot.
> - 01 selects 16-bit memory on CS0 for boot.
> - 10 selects 32-bit memory on CS0 for boot.
> - 11 selects 16-bit memory on CS0 for boot.
> LAST OPTION IS ONLY TRUE IF UR CONTROLLER HAVE IN BILD FLASH
> [ Does u rcontroller have ? ]
> 1. Boot 1 and Boot 0 were internally pull up
> so by default they are in Mode 11 [last one]
> which use internal FLASH of controller if present
> while booting up at the time of reset.
> i.e BOOT 1:0 -- 11
> In other three mode controller will over look the internal
> flash.
> 2. To Boot with an outer 32 bit memory
> Connect a 10K res. permanently
> Between BOOT0 and GND,So it make the desired configration
> i.e BOOT 1:0 -- 10
> 3. To Boot with an outer 16 bit memory
> Connect a 10K res. permanently
> Between BOOT1 and GND,So it make the desired configration
> i.e BOOT 1:0 -- 01
> 4. To Boot with an outer 8 bit memory
> Connect a 10K res. permanently
> Between BOOT1 and GND + BOOT0 and GND,
> So it make the desired configration
>
> i.e BOOT 1:0 -- 00
> The choice of 10K is to make a week pull down so that
> these pins can be used for their respective functionality, otherwise.
>
> The main point that u might have over looked is that
> these conditions are necessary only at the time of reset
> after that u dont need them.
>
> AND u r thinking from a software part of view because u are
> looking at the internal reg. rather then looking for some schematics
> If u r looking to design a LPC hardware the best way or the
quickest
> way is to look for a development board as per ur requirement
> [quit easy to find] then look for it sch. and study it.
> Then go for the user manual is u have a dought.
>
> NOW i have a question in my mind how will i load the program
the
> external
> flash ?
> Any idea other then IAP.
>
> tell me if u find the sollution.even a blank mail with "i got
sollution"
>
> vaibhav chauhan




(You need to be a member of lpc2000 -- send a blank email to lpc2000-subscribe@yahoogroups.com )

RE: LPC2210 boot configuration question - vaibhav chauhan - Dec 17 11:29:00 2005

I Have downloaded this datasheet from phillips website

http://www.semiconductors.philips.com/acrobat/datasheets/LPC2210_2220_2.pdf

and after looking through table 9 on page 22 of 49
It says
Controls P3.0/A0 is
An Address Line [1] 0

a Port Pin[0] 1 if Boot1:0 == 00
At Reset = 0
with a bar or line over reset that says it is a active low signal

And samely for

P3.1/A1 is
An Address Line [1] for 0

a Port Pin[0] for 1

Boot 1 during reset with a bar or line over Boot 1 [U will find it clearly]
That says it is a active low signal and give a value 1 for a low [0] signal at this pin at the time of reset = 0

and Boot1 is active low only for bir no 24 of PIN FUNCTION SELECT REG 2 [PFSR2] ie it will give 1 for bit 24 of PFSR 2 a 0 on pin BOOT1

so u will get 1 at Pin function select register 2 's Bit No 24 and now u got ur A1 Pin for fatching code from flash Anything more i can do for u ?
As I m learning from the questions u r asking.

Because Neither Do i have seen this thing in such a detail Previously before u have asked the LPC group about it.I have just gone through the main External Memory Controller Module 3 given in LPC21XX-22XX User manual. And the board which i have developed was working.
But Now i know the reason why these phillips people have develop the logic of these two pin
BOOT1:0. THANKS
learner...
vaibhav chauhan.
Pieter Verstraelen <pieter@piet...> wrote:

The LPC2210 does not have internal flash. So, the 11 option for the
BOOT 1:0 pins is not a good idea probably.

I want to boot from an external 16 bit FLASH and have to connect BOOT1
with a 10K resistor to GND. That is clear.

My only doubt is about address line A1. The description of CTRLP301 on
page 94 of the user manual states that the pin with A1 is in GPIO mode
after reset if BOOT1 is zero during reset. But I need A1 to fetch code
from the flash...

Regards,
Pieter Verstraelen

> -----Oorspronkelijk bericht-----
> Van: lpc2000@lpc2... [mailto:lpc2000@lpc2...] Namens
> vaibhav chauhan
> Verzonden: zaterdag 17 december 2005 13:42
> Aan: lpc2000@lpc2...
> Onderwerp: Re: [lpc2000] LPC2210 boot configuration question
>
> I have not worked with LPC2210/LPC2220 but i have worked with LPC2292
> and readed other controllers for using external memory interface from
> phillips
>
> The thing i want to tell u is for
> BOOT1:0 selects one of the following options:
> - 00 selects 8-bit memory on CS0 for boot.
> - 01 selects 16-bit memory on CS0 for boot.
> - 10 selects 32-bit memory on CS0 for boot.
> - 11 selects 16-bit memory on CS0 for boot.
> LAST OPTION IS ONLY TRUE IF UR CONTROLLER HAVE IN BILD FLASH
> [ Does u rcontroller have ? ]
> 1. Boot 1 and Boot 0 were internally pull up
> so by default they are in Mode 11 [last one]
> which use internal FLASH of controller if present
> while booting up at the time of reset.
> i.e BOOT 1:0 -- 11
> In other three mode controller will over look the internal
> flash.
> 2. To Boot with an outer 32 bit memory
> Connect a 10K res. permanently
> Between BOOT0 and GND,So it make the desired configration
> i.e BOOT 1:0 -- 10
> 3. To Boot with an outer 16 bit memory
> Connect a 10K res. permanently
> Between BOOT1 and GND,So it make the desired configration
> i.e BOOT 1:0 -- 01
> 4. To Boot with an outer 8 bit memory
> Connect a 10K res. permanently
> Between BOOT1 and GND + BOOT0 and GND,
> So it make the desired configration
>
> i.e BOOT 1:0 -- 00
> The choice of 10K is to make a week pull down so that
> these pins can be used for their respective functionality, otherwise.
>
> The main point that u might have over looked is that
> these conditions are necessary only at the time of reset
> after that u dont need them.
>
> AND u r thinking from a software part of view because u are
> looking at the internal reg. rather then looking for some schematics
> If u r looking to design a LPC hardware the best way or the
quickest
> way is to look for a development board as per ur requirement
> [quit easy to find] then look for it sch. and study it.
> Then go for the user manual is u have a dought.
>
> NOW i have a question in my mind how will i load the program
the
> external
> flash ?
> Any idea other then IAP.
>
> tell me if u find the sollution.even a blank mail with "i got
sollution"
>
> vaibhav chauhan

SPONSORED LINKS
Microprocessor Microcontrollers Pic microcontrollers 8051 microprocessor

---------------------------------
YAHOO! GROUPS LINKS --------------------------------- Send instant messages to your online friends http://in.messenger.yahoo.com

[Non-text portions of this message have been removed]




(You need to be a member of lpc2000 -- send a blank email to lpc2000-subscribe@yahoogroups.com )