16
SAM9263-EK RevB WinCE 6.0 DEMO (All-in-NAND) AT91 SAM9 Product Group. Version 1.1 May 2008

SAM9263-EK RevB WinCE 6.0 DEMO (All-in-NAND) AT91 SAM9 Product Group. Version 1.1 May 2008

Embed Size (px)

Citation preview

SAM9263-EK RevBWinCE 6.0 DEMO

(All-in-NAND)

AT91 SAM9 Product Group.Version 1.1 May 2008

ARM-Based Products GroupMay 20082

AT91SAM9263-EK WinCE Demo

• The WinCE demo has been developed to run out the NandFlash device on the AT91SAM9263-EK.

• The warning below concerns only the AT91SAM9263-EK Kit BOM 007.

• The Kit BOM Revision is mentioned on a sticker on the top left corner of the box

• For more details on Kit identification please refer to the AT91SAM9263-EK revB User guide available on ATMEL web site.

ARM-Based Products GroupMay 20083

AT91SAM9263-EK WinCE Demo

• WARNING

• Because of perturbations of the chip select line of the NAND Flash, the user might face access errors when reading or writing the NAND Flash.

• How to fix the issue?

• Solution 1 (Figure 1)

• replacing the resistor R139 (0 ohm) by a 470 Ohm resistor

• replacing the resistor R33 (470K Ohms) by a 100pF capacitor

• Solution 2 (Figure 2)

• Tying the chip select line to the ground can be an acceptable workaround. This can be achieved simply by connecting together the pin 2 of J29 and the pin 30 of J23. All the operating modes of the NAND Flash are not supported with this fix, as the accesses are controlled only with NANDOE and NANDWE. In particular, the standby modes are not functional.

• How can I prevent this issue on my own design?

• To prevent any risk occurrence of such an issue on your design using the AT91SAM9263, it is recommended to perform signal integrity analysis of the routing by using the IBIS model provided on the Atmel Web site

ARM-Based Products GroupMay 20084

AT91SAM9263-EK WinCE Demo

J29

R33

Figure 1

J23Figure 2

ARM-Based Products GroupMay 20085

SAM9263-EK Boot Solutions

• Jumper J5 (Boot Mode Select) allows to select the Boot Mode of the AT91SAM9263-EK

• J5 Opened, the AT91SAM9263 boots from the on-chip Boot ROM

• The on-chip Boot ROM Memory integrates different programs permitting download and/or upload into the different memories of the product

• First, it initializes the DBGU and the USB Device Port.

• Then the Nandflash Boot program is executed. If a valid boot is found, the code is downloaded into the internal SRAM. This is followed by a remap and a jump to the first address of the SRAM.

• If no valid ARM vector sequence is found, SAMBA™ Boot is then executed. It waits for transactions either on the USB device, or on the DBGU serial port. Then, user can use SAM-BA GUI to download binary file into the different memories of the product.

• J5 Closed, the AT91SAM9263 boots from the off-chip memory connected to NCS0 (No memory is connected on the EK by default)

ARM-Based Products GroupMay 20086

SAM9263-EK WinCE Demo

• Software requirements

• Demo WinCE file including:

• Binary Files: FIRSTBOOT.nb0, EBOOT.nb0 & NK.nb0

• AT91ISP V1.9 or higher GUI Application installed on your computerNote : As bad block management changed between ISP V1.9 and ISP V1.10, forbid to use ISP V1.10 whether NANDFlash have been erased with ISP V1.9 in the past.

• Hardware requirements

• SAM9263-EK revB Evaluation Kit

• Serial Cross Cable (Female-Female)

• USB Device Cable

ARM-Based Products GroupMay 20087

SAM9263-EK SAM-BA Boot

• Install AT91ISP and reboot your computer

• J5 Opened, Reset the board

• Connect the USB Device Interface (J19) to your PC using the USB Device Cable

• Start SAMBA GUI Application

• Select the SAM9263-EK and choose USB Connection

ARM-Based Products GroupMay 20088

Download FIRSTBOOT.nb0 in NandFlash with SAM-BA

• Select NandFlash tab

• J29 closed, Choose NandFlash Init in scripts rolling menu and press Execute

• Choose NandFlash Send Boot File in scripts rolling menu and press Execute

• Select All Files type in the Open window.

• Choose file named FIRSTBOOT-NandFlash.nb0 and press Open.

1°- NandFlash Init2°- NandFlash Send Boot File

ARM-Based Products GroupMay 20089

Download EBOOT.nb0 in NandFlash with SAM-BA

• Press on Send File Name Browse button

• Choose file named EBOOT.nb0 and press Open.

• Enter “0x20000” in Internal Address text field

• Press Send File button

NandFlash internal address 0x20000

EBOOT.nb0

ARM-Based Products GroupMay 200810

Download WinCE Demo (NK.nb0) in NandFlash with SAM-BA

• Press on Send File Name Browse button

• Choose file named NK.nb0 and press Open.

• Enter “0x80000” in Internal Address text field

• Press Send File button

• Wait a while…

NandFlash internal address 0x80000

NK.nb0

ARM-Based Products GroupMay 200811

• Close SAMBA, remove USB cable

• Connect the Serial Debug Port (J14) to your PC using the Serial Cross Cable

• Start an hyperterminal session on your PC with settings:

• 115200 8-N-1, no flow control, emulation ANSI.

• Reset the board

• Press “Space” key when the message “Initiating image launch in 5 seconds” is displayed to stop booting, the following Default Menu is then displayed

Configure WinCE Boot: EBOOT

ARM-Based Products GroupMay 200812

0) Mac address .......... (00:12:72:72:20:20)

1) Ip address ........... (192.168.111.115)

2) Subnet Mask address .. (255.255.255.0)

3) DHCP ................. (Enabled)

4) Boot delay (seconds).. (5)

5) Frequency settings ... (core at 180, bus divider 2)

6) Download device....... (Ethernet)

7) Debug device.......... (Ethernet (EMACB))

8) Download image to..... (SDRAM)

9) Download new image at startup

l) Launch flash resident image now

d) Download from Ethernet now

s) Save configuration now

r) Restore default configuration and save now

n) Image flash menu

Configure WinCE Boot: EBOOT

ARM-Based Products GroupMay 200813

• Select option “3” and “9”

• The following menu is then displayed:

Configure WinCE Boot: EBOOT

0) Mac address .......... (00:12:72:72:20:20)

1) Ip address ........... (192.168.111.115)

2) Subnet Mask address .. (255.255.255.0)

3) DHCP ................. (Disabled)

4) Boot delay (seconds).. (5)

5) Frequency settings ... (core at 180, bus divider 2)

6) Download device....... (Ethernet)

7) Debug device.......... (Ethernet (EMACB))

8) Download image to..... (SDRAM)

9) Launch existing flash resident image at startup

l) Launch flash resident image now

d) Download from Ethernet now

s) Save configuration now

r) Restore default configuration and save now

n) Image flash menu

ARM-Based Products GroupMay 200814

• Select option “5” and set the following settings:

• Enter new Core Frequency (old frequency is 180 MHz) 240(Press Return)

• Enter new Bus divider (old divider is 2) 2(Press Return)

• The following menu is then displayed:

Configure WinCE Boot: EBOOT

0) Mac address .......... (00:12:72:72:20:20)1) Ip address ........... (192.168.111.115)2) Subnet Mask address .. (255.255.255.0)3) DHCP ................. (Disabled)4) Boot delay (seconds).. (5)5) Frequency settings ... (core at 240, bus divider 2)6) Download device....... (Ethernet)7) Debug device.......... (Ethernet (EMACB))8) Download image to..... (SDRAM)9) Launch existing flash resident image at startup

l) Launch flash resident image nowd) Download from Ethernet nows) Save configuration nowr) Restore default configuration and save nown) Image flash menu

ARM-Based Products GroupMay 200815

Configure WinCE Boot: EBOOT

• Select option n, “Image Flash menu”

• The following menu is then displayed:

• Nand Flash Menu :1) Erase all sectors2) Enter manually the image parameters3) Quit...

• Select option “2” and set the following settings:

• Physical Start Address : (0x80059000) : 0x8006c000(Press Return)Starting ip : (0x8005a000) : 0x8006d000(Press Return) Total ROM size : (0x75144c) : 0x0158c800(Press Return)

• Reset the board

• Select option “3” (in order to come back to the main menu).

• Select option “s”

• Note : The settings are stored in the NandFlash only when option “s” or option “l” (Launch existing flash resident image now) are selected. Do not reset the board before, your modifications would be lost.

ARM-Based Products GroupMay 200816

WinCE starts : Touchscreen Calibration

• Touch the screen on the cross on the center

• Touch the screen on the cross in each corner

• Touch the screen once again to end calibration

• Once done WinCE 6.0 desktop is screened