Getting Started

Introduction

This page is a starting point for the Windows4SAM offer and allows you to easily get a running Windows Embedded CE demo on AT91 products.

This Getting started describes also how a Windows4SAM system boots and how binaries are installed on FLASH memories.

Boot Sequence

Several components of Windows Embedded CE operating system are involved in boot sequence.
Besides, the very first program is the ROM code which is in charge to check if a valid application is present on supported media (Internal FLASH, DATAFLASH, NANDFLASH, SDCARD).

  • Following program components are involved in the boot sequence:

  1. ROM Boot Program - Check whether there is a valid application in any supported media, if so, copy it to the internal SRAM and let the ARM instruction pointer (PC) jump to it. For our case, it will be the FirstBoot program.
  2. FirstBoot - In charge of initial hardware configuration, download EBoot binary from Flash to SDRAM and then, start EBoot.
  3. EBoot - In charge of downloading Main Image of Windows CE OS from Workstation through USB, Serial or Ethernet. Also it will maintain the OS level configuration, such as IP address, Memory arrangement and Debugging method. Together, a interactive setup menu will be displayed through Serial Debug port. Once there is a proper main image available in the flash and user selects to launch it, E-Boot will start the main image.
  4. Main Image (NK) - The main image of Windows Embedded CE OS.

boot_sequence.png

  • The boot sequence of Windows4SAM is done as the following steps:

  1. Processor comes out of reset and branches to the ROM startup code.
  2. The ROM startup code initializes the CPU and memory controller, performing only minimal initialization of on-chip devices, such as the console serial port to display boot diagnostic messages. It also sets up the memory map for the kernel to use in a format that is consistent across platforms, and then load and jumps to the FirstBoot.
  3. FirstBoot does the initailization of the hardware, including on-chip devices, SDRAM and NandFlash, if any. Then, it loads E-boot to SDRAM and jumps to it.
  4. E-Boot will display a user setup menu through serial port, then depending on user input, it will update the system configuration, downloading main image of Windows Embedded CE and launch it.
  5. Main image of Windows Embedded CE starts and display the desktop on the LCD*.
    (*) AT91SAM9260-EK does not have LCD

Requirements

Hardware

  • a Windows XP host (or later) to run the SAM-BA tool ;
  • power supply stocked with the Evaluation Kit ;
  • USB Device Cable ;
  • serial Cross Cable (Female-Female) ;
  • eventually a DataFlash Card => check Boot capabilities matrix (for AT91SAM9263-EK for example) ;
  • AT91SAM9-EK Evaluation Kit. Check below how kits look like and how to connect them :

AT91SAM9260-EK AT91SAM9261-EK AT91SAM9263-EK (REV-A)
AT91SAM9260-EK AT91SAM9261-EK AT91SAM9263-EK (REV-A)
AT91SAM9263-EK (REV-B) AT91SAM9263-EK user guide at http://atmel.com/dyn/products/tools_card.asp?tool_id=4057">(1) AT91SAM9G10-EK AT91SAM9G45-EKES
AT91SAM9263-EK (REV-B) AT91SAM9G10-EK AT91SAM9G45-EKES
AT91SAM9M10-EKES    
AT91SAM9M10-EKES    

Software

  • a serial terminal emulator (HyperTerminal, Terra Term, etc.) :
Serial communication parameters (115200 8-N-1) :
Baud rate 115200
Data 8 bits
Parity None
Stop 1 bit
Flow control None
  • AT91 ISP 1.12 (or later) ; containing the SAM-BA tool => Check the SoftwareTools page ;
  • the demo archive provide just below. This archive contains :
    • Windows Embedded CE binaries : FisrtBoot, EBoot, NK
    • a TCL/SAM-BA script that interfaces with the SAM-BA tool to flash the demo ;
    • a .bat script able to run the flashing script calling SAM-BA itself.

Windows Embedded CE Demos

Board Description Binary
at91sam9260ek Windows4SAM Windows CE 5.0 demo archive windows4sam_wince_5.0_at91sam9260ek.zip (~ 5.5 MB)
at91sam9260ek Windows4SAM Windows CE 6.0 demo archive windows4sam_wince_6.0_at91sam9260ek.zip (~ 4 MB)
at91sam9261ek Windows4SAM Windows CE 5.0 demo archive windows4sam_wince_5.0_at91sam9261ek.zip (~ 11 MB)
at91sam9261ek Windows4SAM Windows CE 6.0 demo archive windows4sam_wince_6.0_at91sam9261ek.zip (~ 14 MB)
at91sam9263ek (rev-a) Windows4SAM Windows CE 5.0 demo archive windows4sam_wince_5.0_at91sam9263ek.zip (~ 11 MB)
at91sam9263ek (rev-a & rev-b) Windows4SAM Windows CE 6.0 demo archive windows4sam_wince_6.0_at91sam9263ek.zip (~ 11 MB)
at91sam9g10ek Windows4SAM Windows CE 6.0 demo archive windows4sam_wince_6.0_at91sam9g10ek.zip (~ 11 MB)
at91sam9g45ekes Windows4SAM Windows CE 6.0 demo archive windows4sam_wince_6.0_at91sam9g45ekes.zip (~ 11 MB)
at91sam9m10ekes Windows4SAM Windows CE 6.0 demo archive windows4sam_wince_6.0_at91sam9m10ekes.zip (~ 11 MB)

Flashing a demo on AT91 boards

Before flashing the demo, make sure that you have installed the SAM-BA tool on your host computer.

  • connect a USB cable on the board
  • connect a serial link on DBGU connector and open the terminal emulator program
  • choose the proper procedure depending on your chip through the following table :

AT91SAM9260-EK AT91SAM9261-EK AT91SAM9263-EK (RevA)
  • J7 must be opened (BMS=1) to boot from the on-chip Boot ROM
  • follow the AT91SAM9260EKSamBaRecovery recovery method, if needed
  • power up the board
  • verify that the USB connection is established (ATMEL AT91xxxxx Test Board appears in taskbar notification area)
  • J4 must be opened (BMS=1) to boot from the on-chip Boot ROM
  • remove DataFlash Jumper (J21)
  • power up the board
  • verify that the USB connection is established (ATMEL AT91xxxxx Test Board appears in taskbar notification area)
  • plug DataFlash Jumper (J21) back in position 1-2
  • J5-6 must be opened (BMS=1) to boot from the on-chip Boot ROM
  • remove DataFlash Card (J9)
  • power up the board
  • verify that the USB connection is established (ATMEL AT91xxxxx Test Board appears in taskbar notification area)
  • reinsert the DataFlash Card in J9
AT91SAM9263-EK (RevB) AT91SAMG10-EK AT91SAM9G45-EKES
  • J5-6 must be opened (BMS=1) to boot from the on-chip Boot ROM
  • remove DataFlash Card (J9)
  • remove NAND Flash Jumpers (J29)
  • power up the board
  • verify that the USB connection is established (ATMEL AT91xxxxx Test Board appears in taskbar notification area)
  • reinsert the DataFlash Card in J9 (only for DataFlash demo)
  • close NAND Flash Jumper (J29)
  • J4 must be opened (BMS=1) to boot from the on-chip Boot ROM
  • remove DataFlash and NAND Flash Jumpers (J21 & J24)
  • power up the board
  • verify that the USB connection is established (ATMEL AT91xxxxx Test Board appears in taskbar notification area)
  • close DataFlash (J21) back in position 1-2
  • close NAND Flash Jumpers (J24)
  • Check and conform to the Default Jumpers Settings
  • First of all, be sure that the ROM code replacement is located in Dataflash to workaround the issue with SAM-BA access through USB. Please refer to the Errata on AT91SAM9G45 Engineering Sample Devices document
  • JP8 must be opened (BMS=1) to boot from the on-chip Boot ROM
  • remove NAND Flash Jumper (JP10)
  • power up the board
  • verify that the USB connection is established (ATMEL AT91xxxxx Test Board appears in taskbar notification area)
  • close NAND Flash Jumper (JP10)
AT91SAM9M10-EKES    
  • Check and conform to the Default Jumpers Settings
  • JP8 must be opened (BMS=1) to boot from the on-chip Boot ROM
  • remove NAND Flash Jumper (JP10)
  • power up the board
  • verify that the USB connection is established (ATMEL AT91xxxxx Test Board appears in taskbar notification area)
  • close NAND Flash Jumper (JP10)
   

  • launch the proper .bat file : this script will run SAM-BA with proper parameters
  • when the logfile.log appears (this will take a few minutes), remove the USB cable
  • power cycle the board
  • look the system booting on the LCD screen or trough the serial line
  • calibrate accurately the LCD screen (if needed)

Playing with the demo

Ok, now you should have the Windows Embedded CE demo up'n running on your board ! Have a walk through applications of this demo.

wince_screen_cap.png

%META:FILEATTACHMENT{name="9m10g45_default_jumpers_settings.png" attachment="9m10g45_default_jumpers_settings.png" attr="h" comment="" date="1251809183" path="9m10g45_default_jumpers_settings.png" size="105749" stream="9m10g45_default_jumpers_settings.png" user="Main.PatriceVilchez" version="1"}%

Notes

1 : AT91SAM9263 MRLA or MRLB could be soldered on this board revision. To identity which chip revision you have, check AT91SAM9263-EK user guide at http://atmel.com/dyn/products/tools_card.asp?tool_id=4057


r18 - 08 Oct 2011 - 06:41:34 - JunminLin
 
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Atmel® and others, are registered trademarks or trademarks of Atmel Corporation or its subsidiaries.
ARM® and others are registered trademarks or trademarks of ARM Ltd. Other terms and product names may be trademarks of others.
Windows® and others are registered trademarks of Microsoft Corporation in US and/or other countries.
Syndicate this site RSSATOM