SAM9260-EK WinCE DEMO AT91 SAM9 Product Group. Version 1.0 October 2006.

15
SAM9260-EK WinCE DEMO AT91 SAM9 Product Group. Version 1.0 October 2006

Transcript of SAM9260-EK WinCE DEMO AT91 SAM9 Product Group. Version 1.0 October 2006.

Page 1: SAM9260-EK WinCE DEMO AT91 SAM9 Product Group. Version 1.0 October 2006.

SAM9260-EKWinCE DEMO

AT91 SAM9 Product Group.Version 1.0 October 2006

Page 2: SAM9260-EK WinCE DEMO AT91 SAM9 Product Group. Version 1.0 October 2006.

2 ARM-Based Products GroupOctober 2006

SAM9260-EK Boot Solutions

• Jumper J7 (Boot Mode Select) allows to select the Boot Mode of the AT91SAM9260-EK

• J7 Opened, the AT91SAM9260 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 DataFlash Boot program is executed. It looks for a sequence of eight valid ARM exception vectors in a DataFlash connected to the SPI. If a valid sequence is found, code is downloaded into the internal SRAM. This is followed by a remap and a jump to the first address of the SRAM.

• Then the NANDFlash Boot program is executed. It looks for a sequence of eight valid ARM exception vectors in a NANDFlash. If a valid sequence is found, 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.

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

Page 3: SAM9260-EK WinCE DEMO AT91 SAM9 Product Group. Version 1.0 October 2006.

3 ARM-Based Products GroupOctober 2006

SAM9260-EK WinCE Demo

• Software requirements

• Demo WinCE files (in CDROM:/wince_demo/ directory) including:

• Binary Files: BOOTRAM_SPI_CS1.NB0, EBOOT.nb0 & NK.nb0

• AT91ISP V1.4 (or higher) GUI Application installed on your computer

• Hardware requirements

• SAM9260-EK Evaluation Kit

• Serial Cross Cable (Female-Female)

• USB Device Cable

• Ethernet Cable

Page 4: SAM9260-EK WinCE DEMO AT91 SAM9 Product Group. Version 1.0 October 2006.

4 ARM-Based Products GroupOctober 2006

SAM9260-EK SAM-BA Boot

• Install AT91ISP v1.4 and reboot your computer

• Reset the board

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

• Start SAMBA GUI Application

• Select the SAM9260-EK and choose USB Connection

Page 5: SAM9260-EK WinCE DEMO AT91 SAM9 Product Group. Version 1.0 October 2006.

5 ARM-Based Products GroupOctober 2006

Download BootRam.nb0 in DataFlash with SAM-BA

• Select DataFlash AT45DB/DCB tab

• Choose Init & Select AT45DCB Dataflash on CS1 in scripts rolling menu and press Execute

• Choose Send BOOT File in scripts rolling menu and press Execute

• Choose file named BOOTRAM_SPI_CS1.nb0 and press Open.

1°- Init & Select AT45DCB Dataflash on CS12°- Send BOOT File

Page 6: SAM9260-EK WinCE DEMO AT91 SAM9 Product Group. Version 1.0 October 2006.

6 ARM-Based Products GroupOctober 2006

Download EBOOT.nb0 in DataFlash with SAM-BA

• Press on Send File Name Browse button

• Enter “0x4000” in Internal Address text field

• Choose EBOOT.nb0 and press Open

• Press Send File button

Dataflash internal address 0x4000

EBOOT.nb0

Page 7: SAM9260-EK WinCE DEMO AT91 SAM9 Product Group. Version 1.0 October 2006.

7 ARM-Based Products GroupOctober 2006

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

• Select NandFlash tab

• Choose Init NandFlash in scripts rolling menu and press Execute

• Press on Send File Name Browse button

• Choose file named NK.nb0 and press Open.

• Press Send File button (this will take a few moment): WinCE has been stored in NandFlash

• Close SAMBA, remove USB cable

2°- Send NK.nb0

1°- Init NandFlash

Page 8: SAM9260-EK WinCE DEMO AT91 SAM9 Product Group. Version 1.0 October 2006.

8 ARM-Based Products GroupOctober 2006

• Connect the Serial Debug Port (J17) 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 x seconds” is displayed to stop booting, the following Menu is then displayed

• Ethernet Boot Loader Configuration:0) MAC address: 02:03:04:05:06:071) IP address: 192.168.100.1282) Subnet mask: 255.255.255.03) Boot delay: 5 seconds4) DHCP: (Enabled)5) Reset to factory default configuration6) Download new image at startup7) Download image to SDRAM8) Frequency settings (core at 200, bus divider 4)C) Clean the kernel memory configuration (Force Clean Boot)D) Download image nowL) Launch existing flash resident image nowS) Save configuration in flash nowN) Nand Flash menu

Configure WinCE Boot: EBOOT

Page 9: SAM9260-EK WinCE DEMO AT91 SAM9 Product Group. Version 1.0 October 2006.

9 ARM-Based Products GroupOctober 2006

• Select option “1” and enter your own IP address

• Select option “2” and enter your own Subnet Mask

• The board must be on the same subnet as your PC

• The following menu is then displayed:

• Ethernet Boot Loader Configuration:0) MAC address: 02:03:04:05:06:07 1) IP address: xxx.yyy.zzz.ttt2) Subnet mask: aaa.bbb.ccc.ddd3) Boot delay: 5 seconds4) DHCP: (Enabled)5) Reset to factory default configuration6) Download new image at startup7) Download image to SDRAM8) Frequency settings (core at 200, bus divider 4) C) Clean the kernel memory configuration (Force Clean Boot) D) Download image nowL) Launch existing flash resident image nowS) Save configuration in flash nowN) Nand Flash menu

Configure WinCE Boot: EBOOT

Page 10: SAM9260-EK WinCE DEMO AT91 SAM9 Product Group. Version 1.0 October 2006.

10 ARM-Based Products GroupOctober 2006

• Select option “4”

• The following menu is then displayed:

• Ethernet Boot Loader Configuration:0) MAC address: 02:03:04:05:06:07 1) IP address: xxx.yyy.zzz.ttt 2) Subnet mask: aaa.bbb.ccc.ddd 3) Boot delay: 5 seconds4) DHCP: (Disabled)5) Reset to factory default configuration6) Download new image at startup7) Download image to SDRAM8) Frequency settings (core at 200, bus divider 4) C) Clean the kernel memory configuration (Force Clean Boot) D) Download image nowL) Launch existing flash resident image nowS) Save configuration in flash nowN) Nand Flash menu

Configure WinCE Boot: EBOOT

Page 11: SAM9260-EK WinCE DEMO AT91 SAM9 Product Group. Version 1.0 October 2006.

11 ARM-Based Products GroupOctober 2006

• Select option “6”

• The following menu is then displayed:

• Ethernet Boot Loader Configuration:0) MAC address: 02:03:04:05:06:07 1) IP address: xxx.yyy.zzz.ttt 2) Subnet mask: aaa.bbb.ccc.ddd 3) Boot delay: 5 seconds4) DHCP: (Disabled)5) Reset to factory default configuration6) Launch existing flash resident image at startup7) Download image to SDRAM8) Frequency settings (core at 200, bus divider 4) C) Clean the kernel memory configuration (Force Clean Boot) D) Download image nowL) Launch existing flash resident image nowS) Save configuration in flash nowN) Nand Flash menu

Configure WinCE Boot: EBOOT

Page 12: SAM9260-EK WinCE DEMO AT91 SAM9 Product Group. Version 1.0 October 2006.

12 ARM-Based Products GroupOctober 2006

• Select option “8” and set the following settings: • Enter new Core Frequency (old frequency is 200 MHz) 200(Press Return)

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

• The following menu is then displayed:

• Ethernet Boot Loader Configuration:0) MAC address: 02:03:04:05:06:07 1) IP address: xxx.yyy.zzz.ttt 2) Subnet mask: aaa.bbb.ccc.ddd 3) Boot delay: 5 seconds4) DHCP: (Disabled)5) Reset to factory default configuration6) Launch existing flash resident image at startup7) Download image to SDRAM8) Frequency settings (core at 200, bus divider 2) C) Clean the kernel memory configuration (Force Clean Boot) D) Download image nowL) Launch existing flash resident image nowS) Save configuration in flash nowN) Nand Flash menu

Configure WinCE Boot: EBOOT

Page 13: SAM9260-EK WinCE DEMO AT91 SAM9 Product Group. Version 1.0 October 2006.

13 ARM-Based Products GroupOctober 2006

Configure WinCE Boot: EBOOT

• Select option N, “Nand 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) : 0x80067000(Press Return)Starting ip : (0x8005a000) : 0x80068000(Press Return) Total ROM size : (0x75144c) : 0x007a8854(Press Return)

• Select option “S” to save the configuration in flash

• Reset the board and wait for a few moment for NandFlash format (3 minutes)

Page 14: SAM9260-EK WinCE DEMO AT91 SAM9 Product Group. Version 1.0 October 2006.

14 ARM-Based Products GroupOctober 2006

Browsing the board with your PC

• Once “PHY_GetConfiguration : autoneg not complete” is displayed, plug the Ethernet Cable in Ethernet Interface (J14) and on your PC.

• Start your favorite browser and enter the board URL : http://xxx.yyy.zzz.ttt/

• You can browse the demo web site thanks to the webserver.

• Your own web site can be added on a USB key. For that :

• Type telnet xxx.yyy.zzz.ttt in a windows on your PC.

• In this telnet session type WebServerSettings USB \USBDisk\YourSiteFolder

• enter the URL in your browser : http://xxx.yyy.zzz.ttt/USB/fileName.html/

• You can browse your web site.

Page 15: SAM9260-EK WinCE DEMO AT91 SAM9 Product Group. Version 1.0 October 2006.

15 ARM-Based Products GroupOctober 2006

How to erase Dataflash for recovery

• The bootram.nb0 features the dataflash recovery method.

• An erase of the first dataflash page is performed if button BP4 on the board is pressed after reset.

• To erase the first dataflash page :

• Push the button BP4

• Push the reset button while BP4 is pressed

• The following message is displayed on hyperterminal

INFO : Low Level Init : OK

Starting main ...

Testing BP4

BP4 is pressed. Erasing First Page of SPI data Flash CS1

Please reboot....