background image

ATEVK525 Mass Storage Board for AVR

3-15

 7740B–AVR–03/08

Section 3

Software Implementation

This  section  contains  information  about  the  software  package,  its  performance  and
known limitations.

3.1

Software packages

When  you  have  connected  the  boards  together  and  correctly  checked  their
configuration, you are invited to run one of the available demonstration packages:

USB  Device  External  Multi  Disk  Drives

.  The  board  enumerates  as  a  USB

composite  Mass  Storage  device,  and  combines  three  external  removable  mass
storage media:

– MMC/SD memory card reader (depends on card used)
– NAND Flash 256MB (default, otherwise depends on chip used) disk
– DataFlash 8 MB disk

This package can be found on the CD-ROM provided with the kit.

USB Dual-Role Host / Device with FAT support and Shell

1.

In Device mode (B-connector plugged), the package is identical to the first 
package, that enumerates three hardware storage volumes through the 
USB.

2.

In Host mode (A-connector plugged), the application allows connecting one 
USB mass storage device.

3.

In both modes, the STK525 can be connected to a serial terminal (using 
HyperTerminal on PC side for example), where the user can access a simple 
command line interpreter (ushell) to perform file system access (FAT man-
agement included in software):

– 57600 bps
– 8 bits data, 1 bit stop, no parity

– no flow control

4.

Navigation in the file system (on-board memories or USB Mass Storage 
device connected to the USB Host interface) supports following commands:

a:

b:

 ... (goto selected drive)

Summary of Contents for ATEVK525

Page 1: ...ATEVK525 Mass Storage Board for AVR Hardware User Guide ...

Page 2: ... 7 2 3 SD MMC Card 2 11 2 4 LEDs 2 12 2 5 Test Points 2 12 2 6 Configuration Pads 2 13 2 7 Solder Pads 2 14 Section 3 Software Implementation 3 15 3 1 Software packages 3 15 3 2 Performances 3 17 3 3 Driver limitations 3 18 3 4 Usage Notes 3 19 3 5 Handling another NAND Flash device 3 19 Section 4 Troubleshooting Guide 4 21 Section 5 Technical Specifications 5 23 Section 6 Technical Support 6 24 S...

Page 3: ...SBxxx Generic Product Name microcontroller This board is designed to allow an easy evaluation of USB Mass Storage using demonstration software The ATEVK525 board has been designed to be plugged into the Atmel STK525 Starter Kit Board in order to add Mass Storage capability to an existing development board and to combine them with other features USB RS232 Microphone but also all AVR development too...

Page 4: ...wing features NAND Flash chip soldered Micron MT29F2G08AACWP 256 MBytes Reserved location additional NAND Flash chips module plug in Receptacle for SD and MMC memory cards LED signalling for Read Write operations Power supply 3 3V regulated from motherboard Additional overvoltage protection circuitry optional with failure indicator Numerous access points for debug ...

Page 5: ...25 is an extension board that must be plugged on another microcontroller hosting board like STK525 AT90USBxxx support that provides supply voltage Figure 2 1 Connecting the ATEVK525 under the STK525 Note The ATEVK525 can also be plugged onto the STK525 but in this configuration the user must take care to avoid contact between the board and either the JTAG plug or the microcontroller ZIF socket ...

Page 6: ...icrocontroller I O levels and this voltage must be present on the VTG pins of the EXPAND connectors On the STK525 the configuration must be JP4 closed ties 3 3V to VTG pins VCC SOURCE set to REG 3 3 mode powers microcontroller I O at 3 3V Figure 2 2 Configuration to set on STK525 NAND Flash MT29F2G08AACWP current consumption is 1mA maximum in idle state and can reach 30mA 15mA typ during access op...

Page 7: ...ect power supply of the on board resources see photo above 2 2 NAND Flash 2 2 1 Default device The ATEVK525 comes with one NAND Flash chip soldered At the time of writing this chip is the Micron MT29F2G08AACWP that features 2 GBits 256 MBytes organized as 2048 blocks block size 64 pages page size 2112 bytes 2048 64 in spare zone Page program time of 300µs Block erase time of 2ms Copy Back feature ...

Page 8: ...cle footprints 2 54mm pitch Users can solder a receptacle on the board and then insert a NAND Flash module described below or directly solder the module Figure 2 4 NAND Flash module example Table 2 2 NAND Flash module pin out description NAND Flash Microcontroller Function I O 7 0 PORTA 7 0 A7 A0 Data and Address bus CLE PORTC0 A8 Command Latch Enable ALE PORTC1 A9 Data Latch Enable RE PORTE1 RD R...

Page 9: ... and mount devices on this board BOM and components placement Each module can receive up to four different devices according to the following placement Table 2 3 NAND Flash devices placement 4 WP0 4 WP1 5 VCC 5 D7 6 CLE 6 D6 7 ALE 7 D5 8 R B1 8 D4 9 CE0 9 D3 10 R B0 10 D2 11 CE1 11 D1 12 RE 12 D0 13 WE 13 GND NFCON1 NFCON2 Pin Function Pin Function ...

Page 10: ...dule 2 When using the additional module check that the configuration pads that enable CTS RTS lines on STK525 are not soldered because these signals are also con nected to the R B 2 3 But if CTS RTS lines are required you cannot use the R B 2 3 signals so disable the configuration pads CP1 CP2 of the ATEVK525 NAND Flash Microcontroller Function CE0 PORTC2 A10 Chip select for chip 0 active low on b...

Page 11: ...fert speed but is easy to implement The alternate access method is a parallel mode Command set cards have numerous commands that are common enough to completely control the memory Only the initialization process is different but a standard procedure automatically enables card identification and initialization Be aware of the card specification version information contained in the CSD structure of ...

Page 12: ...when initiating a SCSI Read command Figure 2 7 On board SCSI signalling LEDs 2 5 Test Points Several test points are included on the board to facilitate debug during development All the test points are circular pads with a silk screen printing that indicates the corresponding signal VCC power supply voltage should be 3 3V taken after the power protection circuit GND power supply ground SD_MISO SD ...

Page 13: ... Note See section 2 2 2 Additional devices for more details 2 6 2 Configuration Pads Disconnection Figure 1 Configuration Pad Disconnection 2 6 3 Configuration Pads Connection Figure 2 Configuration Pad Re connection Config Pads Reference Related Signals Function CP1 R nB2 Connect Ready notBusy signal from NF 2 third NF of the optionnal module to STK525 CP2 R nB3 Connect Ready notBusy signal from ...

Page 14: ...oard peripherals or elements Their default configuration is disconnect User may solder the pad to enable it 2 7 1 Solder Pads Listing Table 2 7 Solder Pads Solder Pads Reference Related Signals Function SP1 VCC This solder pad allows power protection circuit bypassing If this optional circuit is not mounted this solder pad must be soldered ...

Page 15: ...sh 8 MB disk This package can be found on the CD ROM provided with the kit USB Dual Role Host Device with FAT support and Shell 1 In Device mode B connector plugged the package is identical to the first package that enumerates three hardware storage volumes through the USB 2 In Host mode A connector plugged the application allows connecting one USB mass storage device 3 In both modes the STK525 ca...

Page 16: ...back to previous directory mount disk mount drive a b mkdir filename create a directory disk get number of drives and memory type associated goto goto bookmark df get free space information rm delete all files in the directory lsusb get information about the connected device in host mode only suspend suspend USB bus activity resume resume USB bus activity reboot reset the aplication This package i...

Page 17: ...size limited zones This problem con cern several other memorie devices 3 2 2 Direct limitations The limitations on reading operations are Dataflash SPI bus frequency internal read access speed SD MMC SPI bus frequency internal read access speed NAND Flash USB maximum data rate The limitations on writing operations are Dataflash internal write access speed page write duration size SPI bus frequency...

Page 18: ...ns in a software way or by implementing SD Bus operation in a more hardware way 3 3 3 NAND Flash The NAND Flash technology and the consumer request for continually faster and larger devices conduce to numerous enhancements of memories structure and thus memory management drivers Limitations The COPYBACK feature is not address dependent in the current driver version This means that the instruction ...

Page 19: ... be updated in the memory all the corresponding blocks each block contains 64 pages for example is copied to a new free block and the required page is modified during the copy To end this operation of block translation all the pages up to the modified one are programmed But to precede an optional contiguous write operation the pages that end the block the block tail are not yet programmed They wil...

Page 20: ...you must define the memory name For example the board comes with the default configuration define NF_TYPE_MT29F2G08AACWP if you want to use different modules with different memory references without modifying the driver you must enable to TRUE either NF_AUTO_DETECT_2KB or NF_AUTO_DETECT_512B according to the page size of the memory ...

Page 21: ...thing for the JTAG plug if used Protection circuit problem If the PWR_FAIL LED is lighting ON whereas the voltage you measure on VCC is correct bypass the protection circuitry solder SP1 NAND Flash device onboard chip only does not work Additional module is mounted The onboard memory chip cannot be accessed while the optional NAND Flash module is mounted since two memories will share their chip se...

Page 22: ...oes not work Bad physical contact Check the insertion direction It can sound stupid but that can happen to anybody Check that the connector is not too old Memory failure Memories are not immortal Check the memory card with another memory reader Problem Reason or Condition Problem Solution ...

Page 23: ...t Physical Dimensions L 119 x W 56 x H 23 mm Weight 50 g Operating Conditions Internal Voltage Supply 3 3V 10 External Voltage Supply 3 3V 10 100mA Features NAND Flash device MT29F2G08AACWP MMC SD receptacle Additional NAND Flash devices support Embedded signalling LEDs Optional power protection circuit ...

Page 24: ...on Which target AVR device is used complete part number Target voltage and speed Clock source and fuse setting of the AVR Programming method ISP Parallel or specific Boot Loader Hardware revisions of the AVR tools found on the PCB Version number of AVR Studio This can be found in the AVR Studio help menu PC operating system and version build PC processor type and speed A detailed description of th...

Page 25: ...rage Board for AVR 7 25 7740B AVR 03 08 Section 7 Complete Schematics On the next pages the following documents of ATEVK525 are shown Complete schematics Assembly drawing Bill of materials Default configuration summary ...

Page 26: ...R nB1 NF_R nB1 NF_R nB1 NF_R nB1 NF_R nB1 NF_R nB1 NF_R nB1 NF_R nB1 NF_R nB1 NF_R nB1 NF_R nB1 NF_R nB1 NF_nCE1 R8 0 NF_nWE NF_nWE NF_nWE NF_nWE NF_nWE NF_nWE NF_nWE NF_nWE R4 150k VCC 10 nF C3 PA0 NF_D2 1nF C4 PA3 NF_D3 PA2 PA4 NF_D4 NF_D5 PA5 PA7 PA6 SO NF_D7 PA1 1 TP3 SD_SCK PA3 SCK NF_nWP3 NF_nWE NF_nWE PA5 CP2 NF_nWP1 R9 75k PA7 SI NF_nRE PC 7 0 PC3 PC7 CP1 PC1 PC6 PC0 NF_nCE0 PC2 1 TP9 NF_R...

Page 27: ...Complete Schematics ATEVK525 Mass Storage Board for AVR 7 27 7740B AVR 03 08 Figure 7 2 Assembly Drawing 1 of 1 component side view ...

Page 28: ...MC Connector with manual eject See DS 2 J2 J4 SIP13 2 54mm pitch socket for NAND Flash module 2 54mm pitch CONFIGURATION 2 CP1 CP2 Configuration Pad Enabled by default Can be disabled cutting it N A 1 SP1 Solder Pad Disabled by default Can be enabled with a solder drop N A 10 TP1 TP10 Test Point Solder or touch the testpoint with a probe Circular pad RESISTORS 2 R1 R11 47 KOhms Resistor 0 1W 1 47 ...

Page 29: ...older PADS PWR SP1 Power protection circuit bypassing SOLDERED Configuration PADS R nB2 CP1 Connect R nB signal from NF 2 CLOSED R nB3 CP2 Connect R nB signal from NF 3 CLOSED Optional components Power Protection Circuit See BOM Cut power supply if 3 5V and lights on PWR_FAIL LED NOT MOUNTED NANDFlash socket J2 J4 Allow plug unplug of the optional NAND Flash module NOT MOUNTED ...

Page 30: ...ed otherwise Atmel products are not suitable for and shall not be used in automotive applications Atmel s products are not intended authorized or warranted for useas components in applications intended to support or sustainlife Atmel Corporation Atmel Operations 2325 Orchard Parkway San Jose CA 95131 USA Tel 1 408 441 0311 Fax 1 408 487 2600 Regional Headquarters Europe Atmel Sarl Route des Arsena...

Reviews: