Home
MBS /9G35/9X25/9X MDK User Man MBS-SAM9G15
Contents
1. I MANF 03BB I CARD 0000 I CISTPL_FUNCE Fun0 I FNO_BLK_SIZE 512 0x0200 I MAX TRAN SPEED 5A R W Direct test CIA I buffer 20 0 11 01 00 02 00 00 00 00 02 00 10 00 00 00 00 00 Sales amp Marketing sales en embedinfo com Technical support support en embedinfo com 18 TM SAMICE smes 10 00 00 00 00 Write 0x03 to IEN CIA 4 rc 0 IEN After Write 0x03 test OK R W Extended test Dump CIA I buffer 20 y 0 11 01 00 02 00 00 00 00 02 00 10 00 00 00 00 00 10 00 00 00 00 Modify Some R W bytes 2 4 for FNO and write CIA after write I buffer 20 E 0 11 01 02 02 02 00 00 00 02 00 10 00 00 00 00 00 10 00 00 00 00 test OK 4 11 LCD_4 3 gt Test description This program tests the display of the LCD module including 4 3 7 0 10 2 gt Configuration default gt Test phenomenon the LCD displays pictures 4 12 LCD 7 0 gt Test description This program tests the display of the LCD module including 4 3 7 0 10 2 gt Configuration default gt Test phenomenon the LCD displays pictures 4 13LCD_10 2 gt Test description This program tests the display of the LCD module including 4 3 7 0 10 2 gt Configuration default gt Test phenomenon the LCD displays pictures 4 14 periph_protect gt Test description This program shows how to prevent programs from interfering with the PIO controller gt Configuration default gt Test phenomen
2. SAM9XX5 EK Compiled Mar 62012 10 42 02 I Filling page 0 with zeroes I Filling page 1 with zeroes I Read write on page 0 polling mode I 0 comparison error s found I Read write on page 1 IRQ mode I Callback fired I Callback fired I 0 comparison error s found 4 5 EMACO eth0 test gt Test description This routine tests the respond to the ping command issued by the PC through the Ethernet MAC EMAC interface and onboard network transceiver gt Configuration default Connect the board to the net if the board is connected to the PC directly we must use crossover cable gt Test phenomenon the HyperTerminal displays EMAC Example 2 0 SAM9XX5 EK Compiled May 3 2012 10 31 32 MAC 0 45 56 78 9a bc IP 192 168 2 115 I Valid PHY Found 0 Open command window and input ping 192 168 2 115 Sales amp Marketing sales en embedinfo com Technical support support en embedinfo com 195 by Embest C Documents and Settings huangyin gt ping 192 168 2 115 Pinging 192 168 2 115 with 32 bytes of data from 192 168 2 115 bytes 32 time lt ims from 192 168 2 115 bytes 32 time lt ims from 192 168 2 115 bytes 32 time lt ims from 192 168 2 115 bytes 32 time lt ims Ping statistics for 192 168 2 115 Packets Sent 4 Received 4 Lost z loss Approximate round trip times in milli seconds Minimum
3. M2 ER ERE eas lt MEM MES EN MM MM MM MER e lt E MM MM Mm ME MM ea lt 3 MM MM Mm eee usb_masstorage Sales amp Marketing sales en embedinfo com Technical support support en embedinfo com 2 TM SAMICE emos Chapter 2 Compile 1 Install the keil RealView MDK in 04 tools RealView MDK MDK4 22a 2 The projects are in 05 MDK_Source directory We choose adc as an example open adc_adc10 Project adc_adc10 uvproj and compile it project gt rebuild all target files as shown below File Edit View 5 7 MBS SAMIGI5 HB 4 startup Project Flash Debug Peripherals Tools SVIE Kinder New H Vision Project New Multi Project Workspace Open Project Close Project Export Manage Select Device for Target MBS SAM9G15 Remove Options for Target MBS SAM9G15 Clean target Build target Sales Marketing sales en embedinfo com FF RRB 9x5_mdk adc_ade10 User main c Wee m FF RAB 9x5_mdk ade_ade10 Project ade_ade10 uvproj In m EMBS EM STM3210C O07 EMAC_Test uIP Project Webserver_Demo_uIP RVMDE Project A RO DSHS ord mik cattle started Bradast cattinecrterted nenra i Figure 1 1 compilation Technical support support en embedinfo com TM SAMICE senos Chapter 3 Download 1 Install the SAM BA in 03 Tools Note If SAM BA 2 10 or less is inst
4. 4 24 tc_capture_waveform gt Test description This routine describes in capture model the TC functions of measure pulse frequency and calculate the values gt Configuration default connect pin13 and pin14 of J28 gt Test phenomenon The HyperTerminal displays Capture waveform example 2 0 SAM9XX5 EK Compiled Apr 6 2012 11 55 07 Configure TCO channel as waveform operating mode Start waveform Frequency 178 Hz Duty Cycle 30 Configure TCO channel 2 as capture operating mode Please Connect PA22 to PA23 on SAM9xx5 EK for wave capture test Sales amp Marketing sales en embedinfo com Technical support support en embedinfo com 27 TM SAMICE smes Output waveform property 0 Set Frequency 178 Hz Duty Cycle 30 1 Set Frequency 375 Hz Duty Cycle 50 2 Set Frequency 800 Hz Duty Cycle 75 3 Set Frequency 1000 Hz Duty Cycle 80 4 Set Frequency 4000 Hz Duty Cycle 55 c Capture waveform from TC 0 channel 2 s Stop capture and display informations what have been captured h Display menu Start waveform Frequency 178 Hz Duty Cycle 30 Start waveform Frequency 375 Hz Duty Cycle 50 Start waveform Frequency 800 Hz Duty Cycle 75 Start waveform Frequency 1000 Hz Duty Cycle 80 Start waveform Frequency 4000 Hz Duty Cycle 55 Start capture press s to stop Captured 17787 pulses from TCO channel 2 RA 1874 RB 4166 Captured wave fr
5. I SdMmcldentify Cmd5 3 I SD MEM I Card Type 2 CSD_STRUCTURE 0 W SD 4 bit mode I HS Not Supported in SD Rev 0x0 I Set SD MMC clock to 22222K I SD MMC card initialization successful I Card size 123 MB 246016 512B Sle vos sen mene sem CID EEE ete I MID Manufacturer ID 03 I CBX Card BGA eMMC 3 I OID OEM Application ID SD SD I OID OEM Application ID MMC 44 I PNM Product name SD SD128 I PNM Product name MMC SD128 I PRV Product revision SD 80 I PRV Product revision MMC 90 I PSN Product serial number SD 90182858 I PSN Product serial number MMC 18285800 I MDT Manufacturing date SD 2006 11 I MDT Manufacturing date MMC 2003 11 I CRC checksum 49 J CSD s I CSD STRUCTURE 0x0 I SPEC_VERS eMMC 0x0 I TAAC 0x26 I NSAC 0x0 I TRAN_SPEED 0x32 I CCC OxSF5 I READ_BL_LEN 0x9 I READ_BL_PARTIAL Ox1 I WRITE BLK MISALIGN 0x0 I READ BLK MISALIGN 0x0 I DSR_IMP 0x0 I C SIZE OxF03 I C SIZE HC OxFEFA I VDD R CURR MIN 0x7 I VDD_R_CURR_MAX 0x6 I VDD_W_CURR_MIN 0x7 Sales amp Marketing sales en embedinfo com Technical support support en embedinfo com 16 TM SAMICE smes I VDD_W_CURR_MAX 0x6 I C_SIZE_MULT 0x4 I ERASE_BLK_EN 0x1 I SECTOR SIZE Ox1F I WP GRP SIZE Ox7F I WP_GRP_ENABLE Ox1 I R2W FACTOR 0x4 I WRIT
6. Enter d I Initialize DMA done I Disable DMA done I Initialize DMA done I Disable DMA done Enter r I Erase block 10 I Write block 10 I Raw block write speed 4228K s I Read block 10 I Raw block Read speed 6553K s Enter s I Disable PMECC using Software ECC I Erase block 10 I Write block 10 I Raw block write speed 1506K s I Read block 10 I Raw block Read speed 1899K s at Enter p Sales Marketing sales en embedinfo com Technical support support en embedinfo com 23 TM SAMICE smes I Initialize PMECC I Erase block 10 I Write block 10 I Raw block write speed 3449K s I Read block 10 I Raw block Read speed 5041K s 4 21 spi_serialflash gt Test description This program tests the dataflash module gt Configuration default enable the dataflash gt Test phenomenon The HyperTerminal shows ith Serialflash Example 2 0 SAM9XX5 EK Compiled Mar 28 2012 15 50 29 DMA driver initialized with IRQ SPI and AT25 drivers initialized ID read 1471f AT25DF321A serial flash detected Flash unprotected Chip is being erased Checking erase Checking page 16383king page 16097 Erase successful Programming a walking 1 on all pages Programming page 16383gramming page 8175 Walking 1 test successful 4 22 ssc_dma_audio gt Test description This program tests the audio module v Configuration de
7. MBS SAM9G15 9G25 9G35 9X25 9X35 TM SAMICE senos Revision History 1 0 2012 03 07 Initial version huangyin 1 1 2012 5 15 Examples added huangyin This document copyright belongs to embest technology Co LTD O 2012 Sales Marketing sales en embedinfo com Technical support support en Gembedinfo com TM SAMICE smes Chapter 1 The List of Programs i i cccccsiecisipecseveeseeceds raoe nn aner a r A a aa E aa raeas 1 AAA eean ai ra a aE RNa Ea aR sa seecedevacasvsansscuancemscesness 3 Chapter 3 Download eooonnnronnornnrnnnernnnrnerennrnnsennrrnnsennnrnnernnrrnnsvnnnransennrrassennnrnnsennrrnnsnnnsnnsennrsensennne 4 3 LA to CO Wil ad EEE EE 4 3 2 Manual DOWNLOAD 4 Chapter 4 Programs Testing is seis ssssccsnsasceadedunaseisss aseandecescaeusisatendecd cnugetee sea EEE E RER EREE 9 FADE Ad 9 ELCAN eee eee Ee pe ere re ee eer oreo A E EE nee eee eer ee eee 9 4S DMA nana 10 4 4 BEPROM e 000 eden 12 4 5 EMACO ethO test ccccccssssssssscesssessscsseesssecsecsssessseessseseeesseesesesssssnsesaneesasesseesscusessssessnsesanescaeestessneeseess 12 46 EMACI Mi testo ninia A EE 13 47 getting started nia tiesa 14 4 8 hsmer multimedia Cdi antaras 14 JO hsmer sdeard sansene 15 2 10 Asmer SAG eee 17 4 11 LED 43 smie Re BMH HG RN RHO HOG ARUN Ne 19 VED TON 19 4T LCD 10 19 4 14 peripb protetice ineen oiea Ea E e EE AEE RENER EEE ANE 19 4 15 pme
8. ms Maximum ms Average Gms C Documents and Settings huangyin gt Test OK 4 6 EMAC1 eth1 test gt Test description This routine tests the respond to the ping command issued by the PC through the Ethernet MAC EMAC interface and onboard network transceiver gt Configuration default Connect the board to the net if the board is connected to the PC directly we must use crossover cable gt Test phenomenon the HyperTerminal displays EMAC Example 2 0 SAM9XX5 EK Compiled May 3 2012 10 31 32 MAC 0 45 56 78 9a bc IP 192 168 2 115 I Valid PHY Found 0 Open command window and input ping 192 168 2 115 C Documents and Settings huangyin gt ping 192 168 2 115 Pinging 192 168 2 115 with 32 bytes of data Reply from 192 168 2 115 bytes 32 time lt ims TTL 64 Reply from 192 168 2 115 bytes 32 time lt ims TTL 64 Reply from 192 168 2 115 bytes 32 time lt ims TTL 64 Reply from 192 168 2 115 bytes 32 time lt ims TTL 64 Ping statistics for 192 168 2 115 Packets Sent 4 Received 4 Lost z loss gt Approximate round trip times in milli seconds Minimum ms Maximum ms Average Gms C Documents and Settings huangyin gt Test OK TM SAMICE smes 4 7 getting started gt Test description This program shows the blink of LEDs v Configuration default gt Test phenomenon The D1 and D2 blink alternately On the HyperTerminal enter to
9. 1 Connect pin18 of J22 to pin6 of J23 the D13 blinks at the frequency of f1 2 Connect pin17 of J22 to pin6 of J23 the D13 blinks st the frequency of f2 f2 gt fl 4 17 gtouch gt Test description This program tests the function of qtouch gt Configuration default gt Test phenomenon The HyperTerminal displays Example 2 0 SAM9XX5 EK Compiled Apr 6 2012 11 14 19 I QT1070 Chip ID is 2e Firmware version is 15 Press K3 it shows I Key 03 detected signal 2bf Press K4 it shows I Key 02 detected signal 314 Press K5 it shows I Key 01 detected signal 32b Press K6 it shows I Key 00 detected signal 327 Sales amp Marketing sales en embedinfo com Technical support support en embedinfo com 21 TM SAMICE smes 4 18 Rs485_loopback gt Test description This program tests the RS485 mode of the USART module gt Configuration Jumpers JP2 JP3 JP4 should be open others default gt Test phenomenon The HyperTerminal displays RomBOOT Start AT91 Bootstrap Init DDR Done Loading 1 Wire info Enumerate all roms Rom 0x0 Ox8f 0x0 0x0 0x3 0x6 Oxel Ox9e 0x2d Rom 0x1 0x3f 0x0 0x0 0x2 0x55 Oxaa Oxe3 0x2d Done 0x2 1 wire chips found Board name SAM9G15 CM B1 Vendor name EMBEST Board name SAM9x5 EK BO Vendor name FLEX sn 0x4000022 rev 0x8401 Downloading image detected dataflash id Ox1f 0x47 0x1 0x0 0x0 Apr 28 2012 09 46 33
10. Sales Marketing sales en embedinfo com Technical support support en embedinfo com SAMICE s enves Chapter 1 The List of Programs ARM9 products projects 9G15 9G25 9G35 9x25 9x35 adc y y can a a a dma re lt E eeprom 2 lt ea Be lt MN ge Emac eth0 x Emac eth1 getting started Hsmci_multimedia_card Hsmci_sdcard a MEM MM lt MM ER MES lt lt ES Hsmci_sdio LCD 4 3 x x LCD_7 0 x x LCD_10 2 periph_protect pmc_clock_switching pwm qtouch Rs485_loopback Rs485_twoport Smc_nandflash Spi_serialflash Ssc_dma_audio sysc Em ENER EM EM Ex ENER MM ER Ex tc capture waveform JEN ES ES Ba eas es ces eas ea Be MES MM a MM MM MEM MM ERMER JES MM ES MM MM MEM MM ER MEM ES Touchscreen_4 3 x x Sales amp Marketing sales en embedinfo com Technical support support en embedinfo com 1 TM SAMICE senos Touchscreen_7 0 y twi y Usart_serial_COMO y Usart_serial_COM3 x x x Usart_hw_handshaking_COM3 x usb_audio_looprec usb cdc serial usb core usb hid keyboard usb hid mouse usb hid msd usb hid transfer usb iad cdc cdc usb iad cdc hid usb iad cdc msd lt MS ERMENE MER x
11. PMC Clock Switching example 2 0 SAM9XX5 EK Compiled Apr 17 2012 15 13 31 Current PMC clock from lowlevel pmc configuration The slow clock source is internal 32 kHz RC oscillator PLLA clock is 800 MHz PLLA clock is the source of Master clock MCK Master Clock is prescaler output clock divided by 3 I Select main clock as the master clock I Please measure the clock on PCK to make sure it is 12000000 Hz Sales amp Marketing sales en embedinfo com Technical support support en embedinfo com 20 TM SAMICE smes I Press to switch next clock configuration mon Press to switch system clock I Select PLLA clock as the master clock I Please measure the clock on PCK to make sure it is 12500000 Hz I Press to switch next clock configuration Wen Press to switch system clock I Select UTMI PLL clock as the master clock I Please measure the clock on PCK to make sure it is 7500000 Hz I Press to switch next clock configuration Press I Switch the XTAL 32K crystal oscillator to be the source of the slow clock I Please measure the clock on PCK to make sure it is 32768 Hz I Debuging in EWARM IAR C_SPY the JLINK will disconnect on some PC I Press to switch next clock configuration to switch system clock 4 16 PWM gt Test description This program tests the PWM module gt Configuration default gt Test phenomenon
12. already have the appropriate hardware emulator ULink2 1 Choose the emulator and initial the script Y Options for Target MBS SAM9G15 IM Punto man of eg pemon estaran m DARMATS9 DL p91SAM9G15 TARMATSS DLI pITSAMIG15 C e e O e 2 Check the ULINK2 this step is optional Connect the ULINK2 to board via USB cable if the RUN and COM indicator light first turns blue then turns off and the USB indicator light is red then there is no problem with ULINK2 Click the Setting menu under Debug if it is shown as below the ULINK2 works well Sales Marketing sales en embedinfo com Technical support support en embedinfo com 42 TM O 040792603F ARM926EJ S Core 3 Check the ULINK2 can detect the board this step is optional Click the Setting menu under Debug if it is shown as below the ULINK2 works well Move 0x0792603F ARM925EJ 5 Core 4 Up Down ID CODE Device Mame Add Delete Update IA len 4 Click a or click Debug gt Start Stop Debug Session to debug Sales Marketing sales en embedinfo com Technical support support en embedinfo com 43 TM SAMICE senos Appendix 3 Contact Us Sales Tel 0755 25621715 Fax 0755 25616057 E mail sales en embedinfo com Technical support Tel 027 87290817 E mail support en embedinfo com URL http www embedinfo com en Sales amp Marketing sales en emb
13. axf 3 I posis T Run 2 JF posts IV Beep When Complete I Start Debugging Figure 1 5 User configuration 6 the items of C C tab are configured as figure 1 6 1 7 Sales amp Marketing sales en embedinfo com Technical support support en embedinfo com 39 TM SAMICE senos Y Options for Target MBS SAN9G15 Language Code Generation IV Enable ARM Thumb Interworking I Strict ANSI C Warnings Optimization Lever0 001 y I Enum Container always int lt unspecified gt I Optimize for Time I Plain Char is aged mimada I Split Load and Store Multiple I Read Only Position Independent IV One ELF Section per Function I Read Write Position Independent ser AUser A Alibrariestlibchip_sam9kxx5 A MibrariesMibchip_sam9xxBkinclude A Mibrariesvlibboard_s aths Controls Compiler c cpu ARM926EJ S g 00 apes interwork split sections 1 AU ser Mibraries libchip_sam9xx5 a control 1 4 AlibrariesWibchip_sam9xxBinclude 1 A AlibrariesMibboard_sam9xxB ek string DK Cancel Defaults Help Figure 1 6 C C configuration 1 Y Options for Target EBS SAB9G15 E x Device Target Output Listing User C C Asm Linker Debug Vtilities p Preprocessor Symbols nein EE 2x Undefine Setup Compiler Include Paths User Languag Allbrariestlibchip_sam3xx5 A Alibrariestlibchip_sam9xx5kinclude IV Enabl i v
14. clock switching miii aa E S e o R E EE Ea 20 A GR erene NT 21 A 21 4 18 R5485 160pb ck seisseen eeidencuees vadecsesehs a a E E E E im aE EAN 22 AII RSASS LWOPOL dai oda 22 4 20 OO da 22 4 21 Spi serial cia iaa 24 ADD SSC SOM A AT 24 O 26 4 24 A A census ccaveascavtvavagesedceovawaia sea E e EE Orai E SEE EES ORES D E ES 27 425 Touchscreen is 28 4 26 TOUCHS CIEN TDi Ai 28 FTW 28 4 28 Usart serial Lo 29 4 29 Usart senal COM a 30 4 30 Usart_hw_handshaking COM3 reervornvvenvveerennvrennesersnsnrnenveenrnenrnsnnnsnrnsnvansnrsennnensnsnrssnresnsnenvasnnnsvnnennssen 30 A SUS B Audi onda tisda 31 432 USB CDE Serial fs ini 31 433 USD E E0 E AEE EE 31 4 34 USB HID A a a aaa aaa Er a Ae a Aa aa a aE O n S Eiaa Aa NSE EES 32 4 35SUSB HID keyboard iia dd 32 Sales Marketing sales en embedinfo com Technical support support en embedinfo com TM SAMICE senos 436 USB DTD MSD isa 33 437 USB HID transfer sosen eaa mastret 33 4 38 USB TAD CDG CDG spann ridad Hedin 34 4 39 USB JAD CDE HID vugge acia 35 4 40 USB TAD CDC MS Dirrie i eia siii ii 35 4 41 USB massstorage AAA ines A E A E E E AE Ei peadeyseats 36 Appendix 1 Configuratii Oiss sensein eisena n e o eas ea Ee eR Sr oiana ARS 37 Appendix 2 Debug ii si n 42 Appendix 3 Contact US sieisen io sees causavneedsusacetasanad RE id cpnasaveageabedeecdavesaebanseataecdsdassens 44
15. control D1 and enter 2 to control D2 4 8 hsmci_multimedia_card gt Test description This program describes the identification initialization and function testing of SD card gt Configuration default Note SD and MicroSD cards are needed Insert the card after the HyperTerminal shows the message gt Test phenomenon The HyperTerminal will show I I cache is already enabled Basic MultiMedia Card Project 2 0 SAM9XX5 EK Compiled Mar 28 2012 14 26 08 I Cannot check if SD card is write protected Enter 1 the main menu MCK is 133MHz Buffer 2000b748 size 0x400000 Hil Re initialize card t Disk R W Verify test HT Disk performance test Hp Change number of blocks in one access for test fm Change MCI interface used Enter m choose the card MCIO refers to microSD and MCI refers to SD Take MCI as an example When card is chosen it will be identified and initialized we can get the information through the HyperTerminal I SdMmcldentify Cmd5 3 I SD MEM I Card Type 2 CSD STRUCTURE 0 W SD 4 bit mode I HS Not Supported in SD Rev 0x0 I Set SD MMC clock to 22222K I SD MMC card initialization successful I MEM Card OK size 123 MB 246016 512B Sales amp Marketing sales en embedinfo com Technical support support en embedinfo com 14 TM SAMICE smes I MID Manufacturer ID 03 Enter 1 again test SD as the same way Enter i or I initializ
16. y mg Ed h File I Createt E daram plg IV Browse Create Libr Path FERE 9x5_m apie a OK Cancel Defaults Help Figure 1 3 output configuration Sales amp Marketing sales en embedinfo com Technical support support en embedinfo com 38 TM SAMICE senos 4 Click listing tab select the folder project 9g15 as shown in figure 1 4 x Device Target Output Listing ser C C Asm Linker Debug Utilities Select Folder for Listings Page width E a Page Lenath es 3 I Assembler Listing 9915 Ist IV Gross Reference I C Compiler Listing A9915V tst I C Preprocessor Listing A9915 i IV Linker Listing A9g154ddram map IV Memory Map IV Symbols IV Size Info IV Callgraph IV Cross Reference IV Totals Info IV Unused Sections Info IV Veneers Info OK Cancel Defaults Help Figure 1 4 Listing configuration 5 the User tab are configured as figure 1 5 to convert ddram axf to ddram bin and deposits it into the download folder VW Options for Target DS a xj Device Target Output Listing User bee Asm Linker Debug Utilities Run User Programs Before Compilation of a C C File T Runt m DOS16 T punk m DOS16 Run User Programs Before Build Rebuild T runt er DOS16 Frunze m DOS16 Run User Programs After Build Rebuild IV Runt fromelf exe bin o Download 9915 ddram bin 9g15 ddram
17. E BL LEN 0x9 I WRITE BL PARTIAL 0x0 I FILE FORMAT GRP 0x0 I COPY Ox1 I PERM WRITE PROTECT 0x0 I TMP WRITE PROTECT 0x0 I FILE FORMAT 0x0 I ECC MMC 0x0 I CRC Ox5A I MULT 0x40 I BLOCKNR 0x3C100 I BLOCKNR_HC Ox3FBEC00 I BLOCK LEN 0x200 I TOTAL SIZE 0x7820000 I TOTAL SIZE HC 0xF7D80000 MCI 1 code 1 clr 2 wr 3 rd I Testing block 246000 246015 All block tested 4 10 hsmci_sdio gt Test description This program tests the SDIO module of SD gt Configuration default insert the SDIO in the SD slot gt Test phenomenon the HyperTerminal displays MSMCI SDIO Example 2 0 SAM9XX5 EK Compiled Apr 17 2012 15 41 54 I Cannot check if SD card is write protected I SDIO I Card Type 8 CSD_STRUCTURE 0 I HS Mode not supported by SDIO I Set SD MMC clock to 33333K I SD MMC card initialization successful I SDIO ONLY card Sales amp Marketing sales en embedinfo com Technical support support en embedinfo com 17 TM SAMICE smes I CCCR 01 I SD 01 I JOE 00 I JOR 02 I JEN 00 I INT 0 I CD 0 I SCSI 0 I ECSI 0 I BUS_WIDTH 0 I 4BLS 0 I LSC 0 I E4MI 0 I S4MI 0 I SBS 0 I SRW 0 I SMB 1 I SDC 0 I CIS PTR 001000 I BR 0 I BS 0 I DF 0 I FS 0 I EX 0 I EXM 0 I RF 0 I RFM 0 I FNO_SIZE 0 0000 I EMPC 0 I SMPC 0 I EHS 0 I SHS 0 CISTPL_MANFID
18. RS485 TEST OK 4 19 Rs485 twoport gt Test description This program tests the RS485 mode of the USART module gt Configuration Jumpers JP2 JP3 JP4 should be open others default J16 and J17 connected Docking by two wires gt Test phenomenon The HyperTerminal displays Compiled Apr 28 2012 11 11 45 USARTO Sent Hi I am USARTO Who are you USARTI Received Hi I am USARTO Who are you USARTI Sent Hello USARTO I am USART1 USARTO Received Hello USARTO I am USART1 4 20 smc_nandflash gt Test description This program tests the nandflash module Vv Configuration default enable the nandflash gt Test phenomenon The HyperTerminal will show Sales amp Marketing sales en embedinfo com Technical support support en embedinfo com 22 TM SAMICE smes I I cache is already enabled SMC NandFlash Example 2 0 SAM9XX5 EK Compiled Mar 28 2012 14 46 08 I Nandflash ID is 0x9580DA2C Menu i Dump Nand flash information d Enable or disable DMA r Performance test Raw without ECC s Performance test Software ECC p Performance test PMECC h Display this menu Enter h display the menu Enter i I Size of the whole device in bytes 0x10000000 I Size in bytes of one single block of a device 0x20000 I Number of blocks in the entire device 0x800 I Size of the data area of a page in bytes 0x800 I Number of pages in one block 0x40
19. Test phenomenon The HyperTerminal will show DMA Example 2 0 SAM9XX5 EK Compiled Mar 27 2012 17 50 19 Menu 1 9 A B Programming DMAC for Multiple Buffer Transfers 1 Single Buffer or Last buffer of a multiple buffer transfer 2 Multi Buffer transfer with contiguous DADDR 3 Multi Buffer transfer with contiguous SADDR 4 Multi Buffer transfer with LLI support 5 Multi Buffer transfer with DADDR reloaded Sales amp Marketing sales en embedinfo com Technical support support en embedinfo com 10 TM SAMICE smes 6 Multi Buffer transfer with SADDR reloaded 7 Multi Buffer transfer with BTSIZE reloaded and contiguous DADDR 8 Multi Buffer transfer with BTSIZE reloaded and contiguous SADDR 9 Automatic mode channel is stalling BTsize is reloaded A Automatic mode BTSIZE SADDR and DADDR reloaded B Automatic mode BTSIZE SADDR reloaded and DADDR contiguous s Start DMA transfer h Display this menu Choose 1 9 A Multiple Buffer Transfer Programming DMAC for Multiple Buffer Transfers in row 1 Programming DMAC for Multiple Buffer Transfers in row 2 Programming DMAC for Multiple Buffer Transfers in row 3 Programming DMAC for Multiple Buffer Transfers in row 4 Programming DMAC for Multiple Buffer Transfers in row 5 Programming DMAC for Multiple Buffer Transfers in row 6 Programming DMAC for Multiple Buffer Transfers in row 7 Programming DMAC for Multiple Buffer Transfers in row 8 Programming DMAC for Multi
20. alled we should uninstall it before installation uninstall both SAM BA software and board USB driver 2 Power on and connect the board and PC with micro USB 3 Turn off the the number 1 and nuber 2 switch of SW and reset the board And we should install the driver at the first time The driver can be found under its installation directory 5 ATMEL Corporation 5 sam ba 2 11 O applets O doc og 5 examples tel lib A 4 Check it in the device manager it should be like this I AO com 70 LPT F AT91 USB to Serial Converter A FEDA PT1 DJ EO Com COM8 Now we can download the program in auto or manual way Auto download is strongly recommended 3 1 Auto download 1 install the sam ba in detals to 03 tools SAM BA sam ba install 2 disable the JP3 and reset the board you can see the flag as follows v 20 09 TR m 3 connet the JP3 4 open the package of 01_audio download and click the file of SAM9G45_MDK_nandflash bat let it download 5 reset the board you can see the output of the board 3 2 Manual download 1 Take 9G15 adc as an example after building the program open the folder 05_MDK_Source adc_adc10 Download 9g15 it should be like this Sales amp Marketing sales en embedinfo com Technical support support en embedinfo com 4 TM SAMICE senos I atQlsam9glSekes_ A atQlsam9xSele
21. dat me TCL Ti BIN Itt Y 1 KB Y 6 KB ddram bin logfile log f SAM9G15_MDK ia BIN it TEH MS DOS SHARE Y 11 KB Y 3 KB 73 1 KB 2 Switch on the SW 2 and run the SAM BA_V2 11 on PC fag SAN BA 2 11 10 x Select the connection USBserial COMS v Select your board JLink speed I Customize lowlevel tonet Exit Here the COME is the virtual serial port COM of the USB Select the corresponding board here is 9G15 and click connect button to connect according to your own board s kind to choose the right type 3 Configure the environment when connected Stepl choose the serialflash AT25 AT26 tab Step2 choose the enable serialflash to enable dataflash Step3 click execute button Step4 dataflash enabled Sales Marketing sales en embedinfo com Technical support support en O embedinfo com 5 TM SAMICE emos FREEMAN 0x00300000 OxEAOO0020 0x00000000 0x08000000 0x00300010 0x00000000 0x00000001 0x00000020 0x00300020 0x00000000 0x00000000 0x00000000 0x00300030 0x00000000 0x00000000 0x00000000 I Memory Size 0x400000 bytes I Buffer address 0x20009414 1 Buffer size Ox4000 bytes step 4 I Applet initialization done fsam ba 2 11 1 4 After enabled send the boot file of dataflash Step1 choose send boot file Step2 click execute button and select the boot file at91sam9x5ek dataflashboot bin Step3 boot file sent
22. e USARTO as DBGU port to transfer data gt Configuration default connect USARTO J13 to PC with serial cable gt Test phenomenon 1 the HyperTerminal displays Start waiting data by using DMA 2 we can enter characters through keyboard they will be displayed on the HyperTerminal Start waiting data by using DMA Hello this is usart0 test 3 we can transfer files to USARTO Create a TXT file on PC r usratO test txt PBA Ez TFE RHEO tO 0 Hw test usart test OK usart test OK usart O test OK usart test OK usart test OK usart test OK Send the file to HyperTerminal through UASRTO the HyperTerminal will displays the content Sales amp Marketing sales en embedinfo com Technical support support en embedinfo com 29 TM SAMICE senos lSseria com c securecer ARO MEG SEM MO ao BAG TAL FR a Y bo IA Ba FE ASCII R Serial cOM1 a Start waiting data by using DM WIE Moden WW hello this is usartl test FSU XModem C Zmodem HENT 2 Fig Zmodem Ef W usart0 test OK 4 29 Usart_serial COM3 gt Test description This routine simulate USARTO as DBGU port to transfer data gt Configuration default connect USARTO J14 to PC with serial cable gt Test phenomenon 1 the HyperTerminal displays Start waiting data by using DMA 2 we can enter characters through keyboard they will be displayed on the HyperTerminal Star
23. e the SD card Enter t test read and write functions of SD Test code 1 clr 2 wr 3 rd I Testing block 239128 246015 All block tested Enter T I Performance test size 4096K Multi 8192 MCK 133MHz I Read by Multi block size 512 I Write by Multi block size 512 Write test Done Bad 0 Speed 2820K Read test Done Bad 0 Speed 10131K Data verify OK Enter p Performance Multi set to 1 Performance Multi set to 2 Performance Multi set to 4 Performance Multi set to 8 Performance Multi set to 16 Performance Multi set to 32 Performance Multi set to 64 Performance Multi set to 128 Performance Multi set to 256 Performance Multi set to 512 Performance Multi set to 1024 Performance Multi set to 2048 Performance Multi set to 4096 Performance Multi set to 8192 Testing succeed 4 9 hsmci_sdcard gt Test description This program tests the SD module gt Configuration default insert the SD card in the slot gt Test phenomenon Basic HSMCI SD MMC Example 2 0 SAM9XX5 EK Compiled Mar 21 2012 16 45 22 I Cannot check if SD card is write protected Please insert a card fH A SD FJ Sales amp Marketing sales en embedinfo com Technical support support en embedinfo com 15 TM SAMICE smes I SdMmcldentify Cmd5 3 E Acmd41 cmd55 3 E SdMmcldentify Cmd 1 3 E SD_Init Identify 5
24. edinfo com Technical support support en embedinfo com 44
25. edinfo com 34 TM SAMICE smes 4 39 USB_IAD_CDC_HID gt Test description This routine tests the function of USB IAD CDC key gt Configuration default gt Test phenomenon 1 the HyperTerminal will displays Device Project 2 0 SAM9XX5 EK Compiled Mar 27 2012 18 35 20 DBG key I 2 used as buttons 1st press to push 2nd press to release I CDCDSerial_Initialize I CDCDSerialPort_Initialize I HIDDFunction_Initialize USBD Init I VBus configuration I conn 2 We can find another USB virtual port in the device manager EO com LPT Y AT91 USB to Serial Converter COM13 Won 3 Press 1 on the keyboard the HyperTerminal will continue to enter a when press 1 again it will stop I Key 0 pressed aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaa I Key 0 released 4 40 USB_IAD_CDC_MSD gt Test description This routine tests the storage function of USB_CDC gt Configuration default gt Test phenomenon 1 the HyperTerminal displays USB CDCMSD Device Project 2 0 SAM9XX5 EK Compiled Mar 27 2012 18 08 04 I LUN init RamDisk 22000000 size 10485760 I RAM Disk init I LUN init I LUN blkSize 1 size 20480 I CDCDSerial_Initialize Sales amp Marke
26. equency 4000 Hz Duty cycle 55 4 25 Touchscreen 4 3 gt Test description This program tests the touch of the LCD module including 4 3 7 0 gt Configuration default gt Test phenomenon follow the instructions to calibrate the LCD 4 26 Touchscreen_ 7 0 gt Test description This program tests the touch of the LCD module including 4 3 7 0 gt Configuration default gt Test phenomenon follow the instructions to calibrate the LCD 4 27 TWI gt Test description This program tests the slave mode of the TWI module It simulates the function of the serial memory TWI host can read and write data in the internal SRAM gt Configuration there should be 2 board a master and a slave Connect the TWDO SDA to each other pin 18 of the J25 Connect the TWCKO SCL to each other pin 17 of the J25 Connect the GND to each other pin 29 or 30 of the J25 gt Test phenomenon Sales amp Marketing sales en embedinfo com Technical support support en embedinfo com 28 TM SAMICE senos The HyperTerminal dispays ROM Example 2 0 SAM9XX5 EK Compiled Apr 28 2012 15 29 31 I Filling page 0 with zeroes I Filling page 1 with zeroes I Read write on page 0 polling mode I 0 comparison error s found I Read write on page 1 IRQ mode I Callback fired I Callback fired I 0 comparison error s found 4 28 Usart_serial COMO gt Test description This routine simulat
27. fault gt Test phenomenon The HyperTerminal shows dc audio Example 2 0 SAM9XX5 EK Compiled Mar 28 2012 16 01 26 ssc_dma_audio Menu Sales amp Marketing sales en embedinfo com Technical support support en embedinfo com 24 TM SAMICE senos x Receive WAV file with XModem Protocol X Receive WAV file through DBGU IX H LE x X Modem Protocol 7 Wn R VA O NO ED WEG TAG 90 HI ASCII rea Q FER ASCII E XModem N FR XModem C Zmodem HERE Z FR Zmodem EXE U EBA noden KAMP ET 214 SKRED G s5c dma audio Q i EF IEEE h TPB fsample rar MAHA ES y Bs peng Transfer wav file with IK XModem Ctrl D to cancel CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC EEF xmodem fit 4 Ctrl C BUR Ekt sample wav 100 274 KB 8 KB s 00 00 34 0 fix FORTE BR HERA iy ANA H K 2J ssc_dma_audio Menu W Play the WAV file loaded I Display the information of the WAV file x Receive WAV file with XModem Protocol X Receive WAV file through DBGU PUSE EW PD BUT SSRIS AR ERA MRS SSc dma audio Menu I Display the information of the WAV file Sales Marketing sales en embedinfo com Technical support support en embedinfo com 25 TM SAMICE smes S Stop playback MEL AUA WAV RAA WAV file 22000000 Wave file header information Chunk ID 0x46464952 Chunk Size 281028 F
28. he keyboard the HyperTerminal will continue to enter a when press 1 again it will stop Sales Marketing sales en embedinfo com Technical support support en embedinfo com 230 TM SAMICE smes I Key 0 pressed aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaa I Key 0 released 4 36 USB_HID_MSD gt Test description This program tests the storage function of usb_hid gt Configuration default gt Test phenomenon 1 the HyperTerminal displays SB HIDMSD Device Project 2 0 SAM9XX5 EK Compiled Mar 28 2012 17 37 09 DBG key I 2 used as buttons Ist press to push 2nd press to release I LUN init RamDisk 22000000 size 10485760 I RAM Disk init I LUN init I LUN blkSize 1 size 20480 I HIDDFunction_Initialize I MSDFun init MSDReset USBD_Init I VBus configuration I conn 2 We can see another virtual COM through the Device Manager Og AeA RS Dg USB ARR AES dg USB AEA 3 There will be a 10M removable disk We can use it as an ordinary disk after format it 4 37 USB_HID_transfer gt Test description This program tests the HID transfer gt Configuration default after reset the board double click hidTest exe gt Test phenomenon 1 One more HID virtual COM is found in the Dev
29. ibrariesvibboard samdxx5 ek Optimizati Mibraries libboard_sam9xx5 ek include I Optim I Split L IV Dne E Include Paths Misc Controls Compiler OK Cancel Defaults Figure 1 7 C C configuration 2 Help 7 Configure the Link tab as figure 1 8 shown Sales Marketing sales en embedinfo com Technical support support en embedinfo com 40 TM SAMICE senos VW Options for Target Ll Tr st ode Limas Figure 1 8 Link configuration 8 Choose project gt rebuild all target files to rebuild all target files 7 New Vision Project New Multi Project Workspace Open Project Close Project Export Manage Select Device for Target MBS SAM9G1S Remove Item Ny Options for Target MBS SAM9G15 Clean target Build target Batch Build 3 Translate F7 RK 9x5_mdk ade_adei0 User main c di Stop build 1 E FPRARG 9x5_mdk ade_adei0 Project ade_adei0 uvproj 2 E EMBS EM STM3210C 07 EMAC_Test uIP Project Webserver_Demo_uIP RVMDK Project a RADR aed mil satt ins star tad Praiant sat ins star ad nunrni Sales amp Marketing sales en embedinfo com Technical support support en embedinfo com 41 TM SAMICE senos Appendix 2 Debug Note here we take the 9G15 as example If you own other kinds of the 9X5 serial you just need to change 9G15 to your kind The basis of the following steps is you purchase or
30. ice Manager Og AREA RE fg USB ABS RAGES dg USB AEPRANEE Sales amp Marketing sales en embedinfo com Technical support support en embedinfo com a33 TM SAMICE senos 2 Click read button to get the ID of HID and the D1 D2 are control by LED1 LED2 respectively Sample HID client app xj m Device Information HID Device Device 176 UsagePage Offff Usage Off y Item Type Item attributes DEVICE ATTRIBUTES y Vendor ID Ox3eb Product ID 0x6201 Items Version Number 0x100 Output Pipe OUT Hex Write Setfiepat Enter Output Input Pipe IN Monitor BUTTON HD SDSS y vo feed 80 D2 E6 00 00 34 65 36 64 32 34 35 39 30 39 30 21 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 About BUTTON BUTTON 2 EFP FP 4 38 USB IAD CDC CDC gt Test description This routine tests the function of USB virtual port gt Configuration default gt Test phenomenon 1 the HyperTerminal displays Vitual CDC Device Project 2 0 SAM9XX5 EK Compiled Mar 23 2012 17 09 23 I DUALCDCDDriver_Initialize I CDCDSerialPort_Initialize I CDCDSerialPort_Initialize USBD Init I VBus configuration I conn 2 there will be two more USB virtual ports in the device manager Y O com LPT F AT91 USB to Serial Converter COM11 3 AT91 USB to Serial Converter COM12 Sales amp Marketing sales en embedinfo com Technical support support en emb
31. mbedinfo com t bin TA OD fat1 san9x5ek dat aflashboot bin y HF 0 HAM Bin Files Ok bin y ARH MISReari eT SOMA Raard gt 641 comQe1S elr i Technical support support en embedinfo com itRcaris1ACTMA Raard a TM SAMICE senos 5 Send the image file ddram bin Stepl select ddram bin Step2 enter the download address 0x8400 Step3 send file Step4 download successfully 0x00300000 0x00300010 0x00300020 0x00300030 E SAN BA 2 11 at9isam9zi5 ek po s OxEA000020 0x00000000 0x00000000 Ox00000000 OxFFFFFFFF 0x00000000 0x00000000 0x00000000 Ox00000000 0x00000001 0x00000000 0x00000000 GENERIC SendFile F mdk source adc adc10 Download Qg15 ddram bin at address 0x8400 I File size 0x3850 byte s I Writing 0x3850 bytes at 08400 buffer addr 0x20009414 I 0x3850 bytes written by applet sam ba 2 11 1 Sales Marketing sales en embedinfo com Technical support support en embedinfo com 0x08000000 0x00000020 0x00000000 Ox00000000 step 4 TM SAMICE smes Chapter 4 Programs Testing 4 1 ADC adc10 gt Test description This program describes how to use the function of ADC gt Configuration default gt Test phenomenon The HyperTerminal will show the information as below ADC12 Example 2 0 SAM9XX5 EK Compiled Mar 27 2012 17 47 23 d DMA Enable Disable s Channel seq
32. o Loopback Recorder gt Configuration default gt Test phenomenon This routine simulates a USB Desktop Speaker which has a microphone It can only echo the voice as a microphone input and can not speak The board running this routine connected to a host such as PCs via a USB cable is the host of the desktop speaker You can play sound in host side through the USB Audio Device When playing sound you can also record through the USB Audio Device on the host The HyperTerminal displays ice Audio LoopREC Example 2 0 SAM9XX5 EK Compiled May 2 2012 16 59 01 USBD Init When connecting USB cable to windows the LED blinks and the host reports a new USB device attachment if it s the first time you connect an audio speaker demo board to your host You can find new USB Composite Device and USB Audio Device appear in the hardware device list 4 32 USB CDC serial gt Test description This program shows how to transform USB to RS 232 serial port gt Configuration default gt Test phenomenon 1 Follow the instructions to install the CDC driver libraries usb device cdc serial drv 2 After the driver installed successfully there will be a new serial COM in the device manager GY tO com A LPT Y AT91 USB to Serial Converter COM15 A FEIO LPT1 ABRO com 4 33 USB core gt Test description This program tests the USB module gt Configuration default connect the board and PC with USB cable gt Tes
33. on The HyperTerminal displays Peripheral Protect Example 2 0 SAM9XX5 EK Sales amp Marketing sales en embedinfo com Technical support support en embedinfo com 19 TM SAMICE smes Compiled Apr 6 2012 11 45 15 Enter I to enable Write Protect and enter u to disable Write Protect Select the register to be written by a value 0x12345678 0 PIO Enable Register 0x0000 1 PIO Disable Register 0x0004 PIO Output Enable Register 0x0010 PIO Output Disable Register 0x0014 PIO Input Filter Enable Register 0x0020 PIO Input Filter Disable Register 0x0024 PIO Multi driver Enable Register 0x0050 PIO Multi driver Disable Register 0x0054 PIO Pull Up Disable Register 0x0060 PIO Pull Up Enable Register 0x0064 PIO Peripheral ABCD Select Register 1 0x0070 PIO Peripheral ABCD Select Register 2 0x0074 PIO Output Write Enable Register 0x00A0 PIO Output Write Disable Register 0x00A4 PIO Pad Pull Down Disable Register 0x0090 f PIO Pad Pull Down Enable Register 0x0094 Press 1 No write protect violation is detected OQOTI po oc Ia FW WY Press u The Write Protect is disabled 4 15 pmc_clock_switching gt Test description This program shows how to switch system clock PLLA UPLL SLCK MAINCK gt Configuration default baud rate 1200 debug in SRAM mode only gt Test phenomenon 1 the HyperTerminal displays Switch to 1200 bps for DBG
34. ormat 0x45564157 SubChunk ID 0x20746D66 Subchunk1 Size 16 Audio Format 0x0001 Num Channels 2 Sample Rate 48000 Byte Rate 192000 Block Align 4 Bits Per Sample 16 Subchunk2 ID 0x61746164 Subchunk2 Size 280992 Press any key to return to menu MEE rn WAV CHE EX HG DBGU Ei WAV 30fF Transfer wav file through RAW binary mode Please start binary data in 20 seconds DEEE EEEE EEEO 4 23 sysc gt Test description This program tests the sysc gt Configuration default baudrate 1200 disconnect the JP1 gt Test phenomenon The HyperTerminal displays SYSC Example 2 0 SAM9XX5 EK Compiled Mar 15 2012 10 50 59 Mode N Normal Mode I Idle Mode Sales amp Marketing sales en embedinfo com Technical support support en embedinfo com 26 TM SAMICE smes B Backup Mode Entered 1 times last wakeup reset status 0x00020000 Quit Q Quit test Current RTC Time 9 48 10 Press N enter the normal mode Enter in Normal Mode Press a key to go out Exit Normal mode Press I enter the interrupt mode Enter in Idle Mode Wait for interrupt Press a key to go out Exit Idle Mode Press B enter the backup mode Enable RTC Alarm Y N Y Select Alarm Time 1 In 2 seconds 2 In 3 seconds 3 In 5 seconds 4 In 10 seconds Selection 2 Current time 9 52 12 Enter in Backup Mode Press WAKE UP button to wakeup
35. ple Buffer Transfers in row 9 Programming DMAC for Multiple Buffer Transfers in row 10 Programming DMAC for Multiple Buffer Transfers in row 11 Choose s start the DMA transfer I Start DMA transfer I The Source Buffer content before transfer 00 01 02 03 04 05 06 07 08 09 Oa Ob Oc Od Oe Of 00 02 04 06 08 Oa Oc Oe 10 12 14 16 18 la Ic le 00 03 06 09 Oc Of 12 15 18 lb le 21 24 27 2a 2d 00 04 08 Oc 10 14 18 lc 20 24 28 2c 30 34 38 3c I The Destination Buffer content before transfer Sa 5a 5a Sa 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a 5a Sa Sa 5a 5a Sa Ja 5a 5a 5a Sa Sa 5a 5a 5a 5a Sa Sa Sa 5a 5a Sa 5a 5a 5a 5a 5a Sa 5a 5a 5a 5a Sa Sa Sa 5a 5a Sa Ja 5a 5a 5a Sa Sa 5a 5a 5a 5a Sa Sa I The Source Buffer content after transfer 00 01 02 03 04 05 06 07 08 09 Oa Ob Oc Od Oe Of 00 02 04 06 08 Oa Oc Oe 10 12 14 16 18 la lc le 00 03 06 09 Oc Of 12 15 18 lb le 21 24 27 2a 2d 00 04 08 Oc 10 14 18 Ie 20 24 28 2c 30 34 38 3c I The Destination Buffer content after transfer 00 01 02 03 00 01 02 03 00 01 02 03 00 01 02 03 00 01 02 03 00 01 02 03 00 01 02 03 5a 5a 5a Sa Sa Sa Sa 5a 5a Sa Sa Sa 5a 5a 5a Sa Sa 5a Sa Sa Sales amp Marketing sales en embedinfo com Technical support support en embedinfo com 11 SAMICE smes TM 5a 5a 5a 5a 5a 5a Sa 5a 5a 5a 5a 5a Sa 5a 5a Sa Done 4 4 EEPROM gt gt gt Test description This program tests the EEPROM module Configuration default Test phenomenon EEPROM Example 2 0
36. rget Audio select AT91SAM9GI1S5 as figure 1 1 W Options for Ll A AT9ISAM9263 A AT9TSAM9G35 1 AT9ISAMIGAS A ATSISAMSM10 1 ATIISAMIRE4 EJ ATSISAMSRLE4 LA ATSISAMSX25 A ATSISAMSXE128 Figure 1 1 device selection Sales Marketing sales en embedinfo com Technical support support en embedinfo com sala TM SAMICE senos 2 The items under target are configured Automatically when the device has been chosen As figure 1 2 shown M Options for Torget msssamcis x Device Target potput Listing User C C Asm Linker Debug Utilities Atmel AT9154M9G15 Xtal MHz IEE aRMMode E Operating system None y I Use Cross Module Optimization SystemViewer File Sti I Use MicroLIB IT Big Endian SFD Atmel SAM9G1544791S4M9G15 str mJ ReadOnly Memory Areas r Read Write Memory Areas default off chip Start Size Startup default off chip Start Size Nolnit il 61 hl cs O AE ro Roms e C mf r r on chip on chip r r trom 0100000 fo 10000 C imam 0300000 foxeooo IROM2 IRAM2 Cancel Defaults Help Figure 1 2 target configuration 3 The items under output are configured as figure 1 3 shown Y Options for Target MBS SAN9G15 i xj Device Targe isting User C C Asm Linker Debug Utilities Select Folder for Objects Name of Ecua aon 6 cene cn RE a IV Debug Folder O ses
37. successfully Sales Marketing sales en embedinfo com Technical support support en embedinfo com 6 TM SAMICE smes ES SAN BA 2 11 at9isam9g15 ek File Script File Link Help at9lsam9gl5 Memory Display Start Address 0x300000 Refresh Display format LS traces on DB Ox100 OC C ascii 8 bit C 16 bit 32 bit infos z Apply Size in byte s 0x00300000 OxEAOOO020 OXxFFFFFFFF 0x00300010 0x00000000 0x00000000 0x00300020 0x00000000 0x00000000 0x00300030 0x00000000 0x00000000 0x00000000 0x00000000 4 0x00000000 0x08000000 0x00000001 0x00000020 0x00000000 0x00000000 DDRAM DataFlash AT45DB DCB EEPROM AT24 NandFlash One wire EEPROM SRAM SerialFlash AT25 AT26 Download Upload File Send File Hame Receive File Name Receive File Address 0x0 Size For Receive File 0x1000 byte s npare sent file with mend Send File Scripts Send Bo Execute I Memory Size 0x400000 bytes I Buffer address 0x20009414 I Buffer size 0x4000 bytes I Applet initialization done sam ba 2 11 1 step 3 bag SAN BA 2 11 at91sam9z15 ek Link Help File Script File at9lsam9xSek dataflashboo I Buffer size 0x4000 bytes I Applet initialization done sam ba 2 11 1 GENERIC SendBootFileGUI sam ba_2 11 1 Sales Marketing sales en e
38. t phenomenon the PC prompted the discovery of new hardware and we can find new USB device through the Device Manager Sales amp Marketing sales en embedinfo com Technical support support en embedinfo com 31 TM SAMICE smes 54 HERE E TE USE Device 4 34 USB_HID_mouse gt Test description control the mouse using the board USB module keys gt Configuration default connect the board and PC with USB cable gt Test phenomenon the PC prompted the discovery of new hardware and we can find new USB device through the Device Manager Og AFPMARE fg USE AFERARE dg USE ALES AS The HyperTerminal displays Device HID Mouse Project 2 0 SAM9XX5 EK Compiled Mar 28 2012 17 35 02 Press W S AD to move cursor I HIDDFunction Initialize USBD Init I VBus configuration I conn Press W S A D to move cursor 4 35 USB_HID_keyboard gt Test description control the keyboard using the board USB module gt Configuration default connect the board and PC with USB cable gt Test phenomenon the PC prompted the discovery of new hardware and we can find new USB device through the Device Manager OU ARPA RE fg USB AACR fg USB ALES A The HyperTerminal displays Device HID Keyboard Project 2 0 SAM9XX Mar 28 2012 17 32 58 DBG key I 2 used as buttons Ist press to push 2nd press to release I HIDDFunction_Initialize USBD Init I VBus configuration I conn att Press 1 on t
39. t waiting data by using DMA Hello this is usart0 test 4 30 Usart hw handshaking COM3 gt Test description This routine tests USART Hardware Handshaking gt Configuration default connect USART3 J 14 to PC with serial cable gt Test phenomenon The HyperTerminal displays USART Serial Example 2 0 SAM9XX5 EK Compiled May 22012 16 46 15 Start to echo serial inputs 4 29 Usart_hw_handshaking_COM3 gt Test description This routine tests the USART Hardware Handshaking gt Configuration HyperTerminal configuration default data flow control hardware Connect the USART3 and PC TXD to RXD RTS to CTS GND to GND with a serial cable which support hardware control gt Test phenomenon The HyperTerminal displays USART Hardware Handshaking Example 2 0 SAM9XX5 EK Compiled May 2 2012 16 39 45 Sales amp Marketing sales en embedinfo com Technical support support en embedinfo com 30 TM SAMICE smes Bps 0 Tot 0 Send without any protocol a TXT file to the board Choose Transmit gt Send a text file This option does not support binary file transfer After beginning bps and total size will be shown on the screen When succeed the number of bytes received should be the size of the file If it is a text file the number of bytes received may not equal to the size of the file Refer to Readme txt 4 31 USB_Audio gt Test description This routine tests the USB Audi
40. ting sales en embedinfo com Technical support support en embedinfo com 35 TM SAMICE smes I CDCDSerialPort_Initialize I MSDFun init MSDReset USBD_Init I VBus configuration I conn 2 We can find another USB virtual port in the device manager GY gO com 1 LPT Y AT91 USB to Serial Converter COM14 ca AAA 3 There will be a 10M removable disk We can use it as an ordinary disk after format it 4 41 USB_massstorage gt Test description This program tests the function of usb_massstorage gt Configuration default gt Test phenomenon 1 the HyperTerminal displays USB Device Mass Storage Example 2 0 SAM9XX5 EK Compiled Mar 23 2012 17 17 49 I LUN init RamDisk 22000000 size 10485760 I RAM Disk init I LUN init I LUN blkSize 1 size 20480 I MSDFun init MSDReset USBD_Init I VBus configuration I conn 2 There will be a 10M removable disk We can use it as an ordinary disk after format it Sales amp Marketing sales en embedinfo com Technical support support en embedinfo com 36 TM SAMICE senos Appendix 1 Configuration Note here we take the 9G15 as example If you own other kinds of the 9X5 serial you just need to change 9G15 to your kind The environment is set by default we can download the program directly We must check out the configuration unless it cannot be compiled or download 1 Choose Project Options for Ta
41. uence switch 0 1 2 3 TRIGGER mode SW EXT Periodic Continuous Refresh slow gt fast DMA Enabled Trigger mode 0 Sequence 09 00 02 Vols mV 09 1400 00 2322 02 0509 4 2 CAN gt Test description This program shows how to transform USB to RS 232 serial port Configuration default disconnect JP9 connect USARTO with serial cable as DBGU connect J18 and J19 gt Test phenomenon v the HyperTerminal displays CAN Example 2 0 SAM9XX5 EK Compiled May 3 2012 09 12 59 Test start DBGU not available now I 0 210000 CANO Sync OK I 1 210000 CANI Sync OK I 0 20a00002 Sales amp Marketing sales en embedinfo com Technical support support en embedinfo com 9 TM SAMICE smes I 1 a00060 I 0 20a00006 I 1 a00060 I 1 40a00040 CANO 1 Simple test data received CANO 2 Messages to 1 Mailbox received I 0 a0000e CANO 3 Messages to I Mailbox OVR received I 1 20a00060 I 0 a0001e CAN1 5 Remote requested data received I 1 20a00062 I 0 a0007e I 1 20a00066 I 0 a0007e I 0 40a0005e CANI 1 Simple test data received CAN1 2 Messages to 1 Mailbox received I 1 a0006e CAN1 3 Messages to 1 Mailbox OVR received I 0 20a0007e I 1 a0007e CANO 5 Remote requested data received I 0 10007e I 1 10007e 4 3 DMA v Test description This program describes the function of DMA Configuration default
Download Pdf Manuals
Related Search
Related Contents
Lanner electronic FW-6420 Network Card User Manual 33-ASEP 50-ASEP Descargar e imprimir el manual entero () Manuale Installazione i5100 italiano - rev10 idea uso e manutenzione NetCom NR6-8 Raid Storage user manual ment in niversal and the hnology Ubisoft gos are Ubisoft Tarifs, équipements, options et accessoires Betriebsanleitung - Spiral Reihs & Co. "取扱説明書" Copyright © All rights reserved.
Failed to retrieve file