Home
Developers Manual TongARM - V1 7_September-eng
Contents
1. The TMPA900CMXBG provides a boundary scan interface that is compatible with Joint Test Action Group JTAG specifications and uses the industrial standard JTAG protocol IEEE Standard 1149 1 1990 Includes IEEE Standard 1449 1a 1993 gt Signal PIN Input Output Function Remarks TDO 116 Output Data output pin for JTAG TCK RTN 118 Output JTAG test feedback serial clock output TCK 120 Input Clock pin for JTAG TMS 122 Input Data for JTAG TDI 126 Input Data input pin for JTAG TRST 128 Input RESET pin for JTAG JTAG 130 Input Boundary scan switching pin ICE JTAG test select input compatible with the Enable signal gt 0 ICE 1 JTAG BOOT 132 Input AM1 Pin Glyn GmbH amp Co KG TMPA900 CPU Board Manual V1 7 Seite 28 von 89 GLIN High Tech Distribution 3 16 Keys Keyboard Port A can be used not only as a general purpose input pin with pull up but also as a key input pin By enabling interrupts Port A is used as key input pins KI3 KIO Port A can be used without pull up Port B can be used not only as general purpose output pins but also as key output pins By enabling open drain output Port B is used as key output KO3 KO0 Signal PIN Input Output Function Remarks Port AO KIO 29 Input Port AO to A3 Input ports FORT TIO zii Input Key input KIO to KI3 Pins for key on wake up 0 to 3 Port A2 KI
2. GND15 GnD16 SU4 LCLLP PD3 AN3 SU3 LCLFP PD2 AN2 SU1 LCLAC porani SUO LCLCP PDO ANO E GND17 annis Di LC D23 PM3 1251MCLK Em LC D22 PM2 12S51DATO D I LC D21 PM1 1251CLK L I LC D20 pmo izsiws GND13 GNp20 LC Dis PL3 1250MCLK SP1DI gt LC_D18 PL2 12S0DATI SP1DO LC_D17 PL1 1250CLK sP1CLK LC_D16 PLO I2s0wS sP1rss 1 GND21 GNp22 LC Di5 PC4 FSOUT PwM3ou 106 LC_D14 PC3 MLDALM PWM10UpF 108 LC_D13 Pcz pwe 41 LC_D12 reset GND23 GNp24 A7 LC Dii SPS TDO JTAGI LC Dip SPAIRTCK_ITAGL S LC D9 sPo rcx rac 32 LC D8 SP1 TMS JTAGI GND25 GNpas UC 1C D7 Spa TOI JrAG AE LC pe sp3 TRSTN_JTAGL gt LC DS sN2 sELITAG VH LC D4 SM7 AM1_JTAG GND27 GnD28 LC D3 vinav3 136 LC D2 vinava LU LC Di v nava 149 LC DO v nava H7 GND25 cupo Seite 38 von 89 GLIN High Tech Distribution PINOUT 1 5 Numper of Pin Name Input Output Function Remarks Pin 1 2 GND Ground 3 4 VDD3V3 Output Power 5 nc Output leave open 6 LED1 Output Ethernet LED1 Speed LED 7 USB_OC Input Output PCT I O port Input Output I2CODA I2C data I O Input INT9 Interrupt request pin9 an interrupt request pin that can program the rising falling edge Input USBOCn Over Current detect for USB Host 8 LED2 Output Ethernet LED2 Link Active LED 9 USB PON Input Output PC6 Port C6 I O port Input Outpu
3. Glyn GmbH amp Co KG TMPA900 CPU Board Manual V1 7 Seite 56 von 89 GLIN High Tech Distribution Speed adaptive r g hal w4 w4 w4 w4 w4 w4 w4 w4 w4 w4 w4 w4 w4 w4 w4 w4 w4 w4 w4 w4 w4 w4 w4 w4 w4 w4 w4 w4 w4 w4 w4 w4 w4 w4 w4 w4 w4 w4 w4 w4 w4 w4 w4 w4 w4 w4 w4 w4 0xf005000c 0xf0050010 Oxf005000c 0xf0050008 0xf0050004 0xf0050054 0xf080c424 0xf080c428 0xF0020260 0xf4310014 0xf4310018 0xf431001c 0xf4310020 0xf4310024 0xf4310028 0xf431002c 0xf4310030 0xf4310034 0xf4310038 0xf431003c 0xf4310040 0xf4310044 0xf4310048 0xf431000c 0xf4310304 0xf4310010 0xf4310200 0xf4310204 0xf4310208 0xf431020c 0xf4310008 0xf4310008 0xf4310008 0xf4310008 0xf4310008 0xf4310008 0xf4310008 0xf4310100 0xf4310104 0xf4310108 0xf431010c 0xf4310110 0xf4310114 0xf4310004 Oxf00a0050 0xf4311014 0xf4311018 0xf4311010 0x00000007 0x00000065 0x00000087 0x00000003 0x00000000 0x00000040 0x000000fd 0x00000002 0x3 0x4 0x1 0x2 Oxa Oxa 0x13 0x10a 0x13 0x2 0x2 0x1 Oxa Oxc 0x14 0x10012 0x58 0xa60 0x000140FC 0x000180FF 0x000180FF 0x000180FF 0xc0000 0x00000 0x40000 0x40000 0x80032 0xc0000 0xa0000 0x5 0x5 0xb 0x5 0x5 0x5 0x0 0x1 Ox4afaa 0x1 0xc00000 loadbin D Nu boot bin 0x43F00000 loadbin D Nu boot nand tonga2 bin 0x40600000 setpc 0x43F00000 g Glyn GmbH am
4. 5 2 2 8 Erase u boot Environment gt nand erase u boot_env This erases the whole environment variable area in the memory After this you have the default setting Glyn GmbH amp Co KG TMPA900 CPU Board Manual V1 7 Seite 53 von 89 GLIN High Tech Distribution 5 2 2 9 u boot NFS Server Setup It is possible to download your application via a network Then the target will download the data from a server e g your PC into RAM This method allows you to test your application quickly without having to burn the flash In order to test your program quickly and easily first you have to copy your root file system tar gz to the nfsroot directory of your Linux host system Doing this you can archive very short turn around cycles for debugging your application or testing your kernel as all changes are executed directly from the host and the board uses the new testing versions directly without the need of flashing everything for a new test Example setup NFS boot in your u boot gt setenv bootargs base setenv bootargs console ttyS0 115200n8 mtdparts rootz dev nfs nfsroot 192 168 100 120 target ip 192 168 100 121 videoparams ethaddr ethadadr gt setenv bootcmd run bootargs base tftpb ulmage bootm gt saveenv When you now boot your target the complete file system will come from the NFS server Using the setenv bootargs base your filesystem will come from your host system NFS Server Using the seten
5. TMPA900 CPU Board Manual V1 7 Seite 71 von 89 GLIN High Tech Distribution Hello World Now we want to compile it for the ARM architecture opt mucross arm environment setup arm mucross linux gnueabi gcc O2 Wall o hello arm hello c Now we have made a program for the target file hello arm hello arm ELF 32 bit LSB executable ARM version 1 SYSV dynamically linked uses shared libs for GNU Linux 2 6 16 not stripped Copy to target scp hello arm rootQ tYOUR TARGET IP Run on target root tonga2 hello arm Hello World Working with Network Disk Copy the program you wish to test to the nfs exchange directory For example the previously compiled helloworld gt cp src simple helloworld helloworld nfs exchange Glyn GmbH amp Co KG TMPA900 CPU Board Manual V1 7 Seite 72 von 89 GLIN High Tech Distribution 6 8 uCross Linux Tool Package The file system and tool chain come from the uCross package You can buy this package from kernel concepts www kernelconcepts de More information about uCross at www mucross com Why uCross pu Cross is a complete package to enable rapid project development It contains a wide selection of pre compiled packages that suit almost any requirements and is complemented by a matching cross development tool chain and SDK A distinguishing feature of uCross is the support for graphical user interface GUI development using e g GTK or Qt QT em
6. V1 7 30 12 2009 13 01 2010 18 02 2010 07 04 2010 08 04 2010 09 04 2010 14 04 2010 21 04 2010 18 05 2010 21 06 2010 05 08 2010 18 05 2010 18 05 2010 1 1 Contacts Christoph Tenbergen Glyn GmbH amp Co KG TMPA900 CPU Board Manual V1 7 CTE OLE CTE OLE OLE OLE OLE CTE HFR OLE OLE OLE CTE CTE CTE CTE Document compilation Revision Pin Allocation Revision NAND FLASH Manual for flashing the u boot Manual for flashing the application Proof reading Bootloader Correction Correction Installation Linux Image Corrections New chapters 5 0 6 5 and 7 1 Completely revised manual New ELDIO Download Wizard Some Corrections christoph tenbergen qlyn de 49 2157 127 227 Seite 4 von 89 GLIN High Tech Distribution 2 0 Summary This report contains all important technical information regarding the TMPA900 CPU board SODIMM module Detailed information about the implemented parts can be found on the appropriate data sheets and a list with references is at the end of the document 2 1 Product Information TMPA900 CPU BOARD Glyn s TMPA900 CPU board is a CPU module by Glyn GmbH amp Co KG with Toshiba s TMPA900CMXBG ARMS microcontroller The integrated TFT controller enables RGB display driving with a resolution of 800x480 with integrated hardware acceleration Dispensing with this acceleration enables up to 1024x1024 The module is a highly efficient and easy to integrate processor platfor
7. ho ILCDReg 1 210a09df Pixel Clock MHz 25 LCDReg 2 02713804 IPC 1 Kernel boot argument h Video tmpa9xxfb 651d1e9c 210a09 IHS E IVS 1 P Click here for key Calculate Validate Reset All GLIN kernel concepts Please type in the timings of your display For our displays of the EDT Family Concept all parameters are given You can find them at Or Select a Preset N After all timings have been entered press the button Calculate and then all required register values will be calculated The calculated values can be found under 2 Details of these registers can be found in the controller manual TMPA900CMXBG Transfer the kernel boot argument to the u boot environment gt setenv videoparams video tmpa9xxfb 19211e4c 10040cef 013f380d End with saveenv Glyn GmbH amp Co KG TMPA900 CPU Board Manual V1 7 Seite 77 von 89 High Tech Distribution 8 0 Mechanical Specifications Formating 2 8 RAB MM AA L4 4444 rrrsgrgrtorrt ITERETERIATS Hi HE HE LEE LE ET HHRHH Glyn GmbH amp Co KG TMPA900 CPU Board Manual V1 7 Seite 78 von 89 8 1 Soldering the TMPA900 CPU Board No Connector Mechanical Specifications Formating Recommendations for Baseboard Slot for TMPA900 CPU Board TMPA900 CPU BOARD FROM FRONTSIDE SODIMM 144 ty Dim LU Lu mm PIN 1 SLOT IN BASEBOARD PAD PATTERN ON BASEBOARD SOLDER SIDE Dimension of PAD Patter
8. the program is copied from the NAND address 0x080000 to the RAM address 0x40600000 File size 0x200000 The application is started from address 0x40700000 reset vector saveenv All changes are saved and the application starts automatically after resetting 5 3 4 Getting Started with SEGGER Evaluation Software and IAR You can find a complete evaluation version of the Segger software in the folder Segger Demo on the CD This evaluation package has been designed to provide a complete easy to use software package for the TMPA900 CPU Board and IAR s embedded workbench for ARM target compiler It allows you to easily check the target hardware the target compiler and Segger software components This evaluation process typically does not take a long time since the software can be easily recompiled and downloaded to the target Software Components in the Package e emFile emFile is SEGGER s embedded file system that can be used on any media for which you can provide basic hardware access functions emFile is a high Glyn GmbH amp Co KG TMPA900 CPU Board Manual V1 7 Seite 59 von 89 GLIN High Tech Distribution performance software that has been optimised for speed versatility and memory footprint emFile documentation can be found at Doc UM02001_emFile pdf emWin emWin is SEGGER s embedded Graphical User Interface GUI using a feature rich API and providing an efficient processer and LCD controller independent GUI
9. 6 2 Flashing the Linux Application 5 1 12 11 1 122 eit eei eene enun races natn aane nu EEN 63 6 3 Flash Layout TMPA900 CPU BOARD ssss eee 63 6 4 Installation Linux Tool chain TMPA900 CPU board seen 64 6 5 Linux Kernel Bild nn nrnnenen 64 6 5 1 Linux Kernel Source Tree anna 64 6 5 2 Linux Kernel Configuration 2 00 00 een eek 66 6 5 3 Compiling the Linux Kemnel screen 68 6 5 4 Installing the Linux E 68 6 6 Linux File Syste iere 69 6 7 Linux Hello Veteranen aaa 71 6 8 uCross Linux Tool Package eee eee 73 7 0 Installing the Display with the Glyn Graphic Base Board 76 7 1 Other Resolutions Other Timings Calculation of the Display Settings TT 8 0 Mechanical Specifications Fomapng ii iiiiiiici eei ei iieis 78 8 1 Soldering the TMPA900 CPU Board No Connector 79 Appendix A Available u boot Commande iiis 80 Appendix B Ordering Information ccccccccceeeeseeeeeeeceeeeeeeeseeeeeeeeeeeeeeeaesseeeeeeess 82 Appendix C KC Labs Public Git Genera 83 Appendix D Literature and References AAA 86 Appendix E CD file directory Tree LEE RE Yu RR ex RES Gu ME ARE 88 Appendix F Contact Information nennen 89 Glyn GmbH amp Co KG TMPA900 CPU Board Manual V1 7 Seite 3 von 89 GLIN High Tech Distribution 1 0 Revision List V0 1 V0 2 V0 3 V0 4 V0 5 V1 0 V1 1 V1 2 V1 3 V1 4 V1 5 V1 6
10. CPU Board Manual V1 7 Seite 11 von 89 GLIN High Tech Distribution 3 0 Operational Description This chapter provides a brief description of the module and its interfaces 3 1 CPU Core Note that this document provides only an overview of the CPU block Please contact ARM Holdings for operation details and refer to the TMPA900CMXBG manual The TMPA900CM has a built in 32 bit RISC processor ARM926EJ S manufactured by ARM The schematic diagram of the ARM926EJ S core is shown below CPU core ARM926EJ S Data cache MMU Instruction cache 16KB 16KB AMBA AHB I F AMBA AHB I F for data for instruction The TMPA900CM does not feature the functions shown below 1 Coprocessor I F 2 Embedded ICE RT 3 TCM I F 4 ETM9TM I F Glyn GmbH amp Co KG TMPA900 CPU Board Manual V1 7 Seite 12 von 89 GLIN High Tech Distribution 3 2 Memory Architecture The TMPA900 is characterised by a multilayer AHB bus The advantage over conventional architectures is the higher internal data throughput To expand on this concept there are two memory controllers for the external flash and RAM The first is responsible for communication with NORFLASH SRAM or SDRAM and the second is responsible for communication with NORFLASH SRAM und DDR SDRAM The external memory chips are each directly connected to one of these controllers The CSs of the external NAND flash are connected to pin D7 D8 on the TMPA900 The CSs of
11. PIN Input Output Function Remarks TSI PY 65 Output Y plus Y connecting pin for touch panel Port D7 AN7 TSI PX 67 Output X plus X connecting pin for touch panel Port D6 AN6 TSI MY 69 Output Y minus Y connecting pin for touch panel Port D5 AN5 TSI MX 71 Output X minus X connecting pin for touch panel Glyn GmbH amp Co KG TMPA900 CPU Board Manual V1 7 Seite 30 von 89 High Tech Distribution 3 19 LCD Controller LCDC SUPPORTED DISPLAY COLORS amp DISPLAY RESOLUTION Display colours from 256 to16 million Data bus width RGB Display colours 24 bit R8 G8 B8 16 million 18 bit R6 G6 B6 262 144 16 bit R5 G6 B5 65 536 12 bit R4 G4 B4 4 096 8 bit R3 G3 B2 256 Supported display resolution QV Up to WVGA with LCD data process accelerator e Scaling function expansion reduction e Filter function bi cubic convolution e Image blending function font blending Up to 1024 x 1024 without accelerator and limited colour depth Glyn GmbH amp Co KG TMPA900 CPU Board Manual V1 7 Seite 31 von 89 GLIN High Tech Distribution LCD Interface Signals Signal PIN Input Output Function Remarks L_CLLP 116 Output Data output pin for JTAG L_CLFP 118 Output JTAG test feedback serial clock output L_CLAC 120 Input Clock pin for JTAG L_CLCP 122 Input Data for JTAG Signal P
12. Remarks GND 1 GND 2 Ground GND 11 GND 12 GND 21 GND 22 GND 31 GND 32 GND 41 GND 42 GND 51 GND 52 GND 63 GND 64 GND 73 GND 74 GND 83 GND 84 GND 93 GND 94 GND 103 GND 104 GND 113 GND 114 GND 123 GND 124 GND 133 GND 134 GND 143 GND 144 Glyn GmbH amp Co KG TMPA900 CPU Board Manual V1 7 Seite 18 von 89 GLIN High Tech Distribution 3 5 RESET Before resetting the TMPA900CM make sure that the power supply voltage is within the operating range oscillation from the internal oscillator is stable at at least 20 system clock cycles 0 8 us X1 25 MHz and the RESET input pin is pulled Low When the TMPA900CM is reset the PLL stops the PLL output is unselected and the clock gear is set to TOP 1 1 The system clock therefore operates at 25 MHz X1 25 MHz Signal PIN Input Output Function Remarks RESET 112 Input RESET 3 6 External power source control output Signal PIN Input Output Function Remarks PWE 110 Output This pin controls ON OFF of the external power source PORT C2 The H level is output during regular operations and the L level is output during standby mode Glyn GmbH amp Co KG TMPA900 CPU Board Manual V1 7 Seite 19 von 89 GLIN High Tech Distribution 3 7 Ethernet Network Controller There is an LAN9221i Industrial Temperature Range Ethernet controller by SMSC integrated o
13. Republic GLYN GmbH amp Co KG Germany www glyn cz sales glyn cz GLYN Hungary GLYN GmbH amp Co KG Germany www glyn hu sales glyn hu Australia w GLYN Finland GLYN GmbH amp Co KG Germany www glyn fi sales glyn fi GLYN Sweden GLYN GmbH amp Co KG Germany www glyn se sales glyn se GLYN Denmark GLYN GmbH amp Co KG Germany www glyn nordic dk sales glyn nordic dk GLYN Norway Link Electronics AS www linknordic com sales linknordic com GLYN Bulgaria Cooperations Partner Universal 98 Ltd www uni98 bg com sales uni98 bg com Glyn GmbH amp Co KG TMPA900 CPU Board Manual V1 7 New Zealand GLYN e New Zeala GLYN U K Cooperations Partner First Byte Micro Ltd U K Head Office www firstbytemicro com sales firstbytemicro com GLYN Ltd Australia www glyn com au sales glyn com au GLYN Ltd New Zealand ww w glyn co nz sales glyn co nz Seite 89 von 89
14. SD card 46 Port T4 Input Output Port T4 I O port Output U1TXD UART function 1 transmission data 47 Port G5 Input Output Port G5 I O port Input SDCOWP Write protect input pin for SD card 48 Port T3 Input Output PT3 I O port Input SPODI Data input pin for SSPO 49 Port G4 Input Output Port G4 I O port Input Output SDCOCMD Command UO pin for SD card 50 Port T2 Input Output Port T2 I O port Output SPODO Data output pin for SSPO 51 52 GND Ground 53 Port G3 Input Output PG3 I O port Input Output SDCODATS Data I O pin for SD card 54 Port T1 Input Output Port T1 I O port Input Output SPOCLK Clock pin for SSPO 55 Port G2 Input Output PG2 I O port Input Output SDCODAT2 Data I O pin for SD card 56 Port TO Input Output PTO I O port Input Output SPOFSS FSS pin for SSPO 57 Port G1 Input Output PG1 I O port Input Output SDCODAT1 Data I O pin for SD card 58 Port F7 Input Output PF7 I O port Input Output I2C1DA I2C data I O Input INTC Interrupt request pin C an interrupt request pin that can program the rising falling edge Input U2RXD UART function 2 receive data 59 Port GO Input Output PGO I O port Input Output SDCODATO Data I O pin for SD card 60 Port F6 Input Output PF6 UO port Input Output I2C1CL DC clock I O Output U2TXD UART function 2 transmission Data 61 62 VDD3V3 Output 63 64 GND Ground Glyn GmbH amp Co KG TMPA900 CPU Board Manual V1 7 Seite 40 von 89 GLIN High Tech Distribution PI
15. asm subfolder which gets replaced by a symbolic link to asm arm if using ARM as the target platform linit This directory contains the main initialisation init code of the Linux kernel This also includes the mounting of the root file system and the start of the init process kernel At kernel all parts of the kernel core functions are stored These parts normally use plain C code Any platform specific code sometimes written in assembly language can be found at arch net This drawer hosts the networking core support of the Linux kernel The various subfolders include TCP IP support and other common network functions Glyn GmbH amp Co KG TMPA900 CPU Board Manual V1 7 Seite 65 von 89 GLIN High Tech Distribution 6 5 2 Linux Kernel Configuration Configuration of the kernel means enabling or selecting certain features from the feature pool of the kernel The kernel build uses a huge set of conditional compile switches to include or exclude specific features Some of the selections are mandatory like choosing the target platform Others are optional like including a certain set of device drivers Finally some of the selections create dependencies which must be resolved prior to compiling the kernel which has just been configured To ease the setting of hundreds of different compile switches a menu driven configuration system is provided Console Configuration Method The menuconfig way of configuring a
16. decrease ts sampling even mor to work fine with 5 7 Sommit commitdifi 8 days ago Thomas Haase Merge branch master of ssh git labs kernelconcepts sammita tre 8 days ago Thomas Haase Add support for having 3 or now 4 video parameters 8daysago Florian Boor Use DMA mask macros sort header files commit co 9daysago Florian Boor Soem cosmetic changes in tonga board file commit gommitgiff Clarins D UITAE NEP ER AU Documentation Details about Pro Git in the book from Scott Chacon on our CD folder Pro Git or at http labs kernelconcepts de downloads books Pro 20Git 20 20Scott 20Chacon pdf Glyn GmbH amp Co KG TMPA900 CPU Board Manual V1 7 Seite 85 von 89 GLIN High Tech Distribution Appendix D Literature and References This Appendix lists documents and links which we think may be useful to gain deeper understanding of technical details Field Title Comments Hardware User Manual TOSHIBA Original RISC 32 Bit Detailinformation about the Microprocessor ARM Core Family TMPA900CMXBG and his peripherals It TMPA900CMXBG is publicly available from Toshiba www toshiba components com Hardware User Manual LAN9221 LAN9221i Detailinformation about the High Performance 16 bit NON PCI 10 100 LAN9221 LAN9221i It is publicly Ethernet Controller with Variable Voltage UC available from SMSC www smsc com Hardware User Manual WM8983 Mobile Multimedia COD
17. display provides important functionalities as well as a common interface The family concept displays can be connected to the graphic base board starter kit directly All display signals are lead through the SODIMM slot T 0 5 7 5 0 4 3 3 5 Part number Size Resolution Dimensions G ET0350G0DM6 DH6 3 5 320 x 240 76 8 x 63 8 mm G ET0430G0DM6 DH6 4 3 480 x 272 105 5 x 67 2 mm G ET0500G0DM6 DH6 5 0 800 x 480 118 5 x 77 6 mm G ETQ570G0DM6 DH6 57 320 x 240 124 7 x 100 mm G ETQ570G2DM6 DH6 57 320 x 240 142 1 x 100 mm G ETV570GODMU DHU 5 7 640 x 480 124 7 x 100 mm G ETV570G2DMU DHU 57 640 x 480 142 1 x 100 mm G ET0700G0DM6 DH6 7 0 800 x 480 166 x 105 4 mm DH6 DHU with touch panel with mounting lugs Glyn GmbH amp Co KG TMPA900 CPU Board Manual V1 7 Seite 33 von 89 GLIN High Tech Distribution Pin Assignment of TFT Family Concept nu mcormeser Hardware Reset no Reset for 4 3 and 7 0 2 vss TT Loa 9 en 5 s o gmeD aBi O S o ee 0 BweDaaBi2 O oz 8 eatin 8 o Bedeno O 9 vs o Ground connected to metal houseino Kv amp NEE ou o GempaaBto m reonatait2 o ow e nn pte vs Gmunonmededtometalhoueing ow mo o Dei om s neng v ee E Reddit o vex Di 2 mem Pewomasyempt 0 2 0 Dreier mem _ teo drivershut down on 5 7 itis a complete shut down of
18. eval version of the embOS IP libraries have a time limit of 15 minutes on the connection emUSB The eval version of the emUSB libraries have a time limit of 15 minutes on the connection emWin The eval version of the emWin library shows an evaluation notification before the actual application starts Your use of the eval package or of any part included in the project indicates your Glyn GmbH amp Co KG TMPA900 CPU Board Manual V1 7 Seite 60 von 89 GLIN High Tech Distribution acknowledgement of and agreement to the SEGGER eval software license License txt is located in the root directory ofthe eval package For details look also the Segger applicaton note in the folder Segger Demo ANO00002_ GettingStartedWithSeggerEvalSoftwareAndlAR pdf 6 0 Linux for TMPA900 CPU board Important Preliminary Remark A precompiled Linux kernel comes with the board If you have your own base board the right way is to make your own custom kernel Example You do not need SD over SPI Driver because no SD card is used in your design In this case our kernel would constantly show an error message in the terminal window So you should take the SD over SPI Driver out of the kernel To optimise the efficiency of the TMPA900 CPU boards we always advise a custom kernel For performance reasons More free memory Quicker boot Less basic load e g MMC over SPI is polled First steps in chapter 6 5 Linux Kernel
19. files Runs arbitrary commands on boot Local operation possible no network connection required Target Device Glyn ARMS Tonga 2 Ot Embedded 4 x Demo Image Distribution Glyn GmbH amp Co KG TMPA900 CPU Board Manual V1 7 Seite 75 von 89 High Tech Distribution 7 0 Installing the Display with the Glyn Graphic Base Board 3 5 4 3 5 0 7 0 us KR e amp e ke Li UD va Sr Q Es DE O Etoaocoone MODEM SPL 090616 x0 K 5 7 Glyn GmbH amp Co KG TMPA900 CPU Board Manual V1 7 Seite 76 von 89 GLIN High Tech Distribution 7 1 Other Resolutions Other Timings Calculation of the Display Settings To ensure that bigger displays with other timings also work with our board the kernel must be informed of the parameters such as resolution For this we have a convenient tool available on our project homepage http www mucross com downloads tonga demo display settings Register Value Generator NOTE You don t need to know all values Once you have provided enough input the missing values will automatically be calculated Enter Values Or Select a Preset 1 HTP 800 VGA 5 7 Y HSP 669 HSW 30 Status HDP 640 Calculation successful VTR 525 VSP 490 VSW 2 VDP 480 PPL 39 LPP 1479 0 p _ Results hexadecimal VBP 33 CDReg 0 651d1e9c VER
20. for any application that operates with a display emWin documentation can be found at Doc UM03001_emWinUser pdf emboss embOS is SEGGER s embedded priority controlled multitasking system It is designed to be used as an embedded operating system for the development of real time applications and has been optimised for minimum memory consumption in both RAM and ROM as well as high speed and versatility embOS documentation can be found at Doc UM01001_embOS_Generic pdf and Doc UM01002_embOS_ARM_IAR pdf embOS IP embOS IP is SEGGER s embedded TCP IP stack It is a CPU independent high performance TCP IP stack that has been optimised for speed versatility and small footprint embOS IP documentation can be found at Doc UM07001_embOSIP pdf emUSB emUSB is SEGGER s embedded USB stack It is written in ANSI C and features bulk communication as well as device classes such as MSD CDC or HID emUSB documentation can be found at Doc UM09001_USBStack pdf Eval Limitations The included eval versions of the different components of the eval package have the following limitations Component Description emFile The eval version of the emFile libraries can only handle one open file at any given time embOS The eval version of the embOS libraries run without a time limit with a maximum of three tasks If your application creates more than three tasks embOS stops after a time limit of 15 minutes emOS IP IP The
21. internat circuit 8 vw ME 5 vs Gmund connecedtometalhousng os e Gromd conedediometalhousng pss ve PowersuppyforVcomdrvercrcut ntemalvolages 3 ve Power supply for Voom driver circuit intemal votages eem _ rightness control or LED cathode when jumper setting is changed Os x anan 3 w Teen tom La wm nmn Glyn GmbH amp Co KG TMPA900 CPU Board Manual V1 7 Seite 34 von 89 GLIN High Tech Distribution 3 21 SD Host Controller Features Data transmission reception in frame units Error check CRC7 for commands CRC16 for Data Synchronous method bit synchronous by SDCLK SD memory lO card interface COMMAND 1bit Data 4 bits INT 1bit Multiple port support 1 card 512byte x2 data buffer 256wordsx16bitsx2 Card detect support SDCxCD or SDCxDAT3 Data write protect support Detected below Status error o SDhbuffer underflow overflow o timeout response other o END error CRC error CMD error Recognizes the various response frame formats through the register settings The SD CLK cycle division ratio can be set from fPCLK 2 to fPCLK 512 The transfer data length can be set from either 1byte to 512byte Sector counter for multiple read write operation read single read only Buffer status mode transfer support This product contains an SD host controller for controlling SD cards To use the SD host controller you need to join the SD Association Pl
22. kernel is a console based program that offers a way to move around the kernel configuration using the arrow keys on the keyboard To start this configuration first you have to copy the defconfig from arch arm configs tonga defconfig to config make ARCH arm CROSS COMPILE opt mucross arm bin arm mucross linux gnueabi menuconfig COHEN 539 mmm christophalpctelinux Toshiba Training topas Datei Bearbeiten Ansicht Terminal Hilfe System Type Arrow keys navigate the menu lt Enter gt selects submenus gt Highlighted letters are hotkeys Pressing lt Y gt includes lt N gt excludes lt M gt modularizes features Press lt Esc gt lt Esc gt to exit lt gt for Help lt gt for Search Legend built in excluded M module lt gt MMU based Paged Memory Management Support ARM system type Toshiba TX09 TMPA9xx based gt Select TX09 Variant TMPA900 SoC gt Select TMPA9 board Glyn ARM9 Tonga board gt Use Glyn VGA display instead of the regular QVGA Processor Type Processor Features Support Thumb user binaries Disable I Cache I bit Disable D Cache C bit v lt Exit gt lt Help gt Glyn GmbH amp Co KG TMPA900 CPU Board Manual V1 7 Seite 66 von 89 High Tech Distribution Kernel features can either be compiled into the kernel or alternatively provided by a code module that can be loaded at kernel run time The
23. method of providing kernel features as modules is commonly found with mainstream platforms To avoid the need of compiling features into the kernel making the kernel much bigger a module approach is implemented here The basic kernel just uses a minimum set of features and loads others on a dynamic basis Embedded systems mostly have well defined interfaces such as on board or built in devices allowing the selection of these features at compile time The menu configuration of the kernel reflects these differences as follows empty bracket at the feature location disables the feature the asterisk selects the feature as a built in feature M the letter M selects the feature to be compiled as module You can also search in the kernel configuration Press Shift and 7 christoph lpctelinux foshiba Training topas Search Configuration Parameter Enter CONFIG sub string to search for with or without CONFIG TMPA Glyn GmbH amp Co KG TMPA900 CPU Board Manual V1 7 Seite 67 von 89 GLIN High Tech Distribution 6 5 3 Compiling the Linux Kernel After successfully configuring the kernel features the kernel needs to be compiled This is accomplished by simply typing make on the command line Using make as the command will compile all parts of the kernel In order to compile a kernel for another platform the desired architecture tool chain has to be given in the arguments e ARCH specifies the arc
24. must be performed before a Linux kernel or a normal C program image can execute The minimum an embedded loader has to offer are the following features e Initializing the hardware especially the memory controller e Providing boot parameters for the Linux kernel e Starting the Linux kernel or program application Additionally most boot loaders also provide convenience features that simplify development Set up a UART for terminal Reading and writing to the memory Uploading new binary images to the board s RAM via a serial line or Ethernet Copying binary images from RAM to FLASH memory First handling of the memory devices Nand Flash amp DDR RAM U boot is a boot loader which is very common in the embedded Linux world The u boot supports different architectures in our case ARM The boot loader has been published under the GNU licence which means that it is absolutely free of charge Detailed documentation can be found at http www denx de wiki u bootdoc Presentation http www denx de wiki u bootdoc WebHome GIT server for the u boot u boot sources patched to work with our board http git labs kernelconcepts de p u boot tmpa9xx gitza summa Demo file systems Linux kernel binary u boot binary http www mucross com downloads tonga linux Glyn GmbH amp Co KG TMPA900 CPU Board Manual V1 7 Seite 47 von 89 GLIN High Tech Distribution 5 2 1 The Boot Process How does the u boot work on the TMPA
25. up delay The tool set can be used together with IAR EWARM to automatically download an output into NAND with u boot u boot and the application starts after a short delay To use the tool set independently to download a binary together with u boot please make sure that you rename your binary to application bin and put it into the same folder as the toolset Please be aware that the tool set expects the vectors to be located at addr 0x40600000 To program your image independently simply start the batch file Download bat Glyn GmbH amp Co KG TMPA900 CPU Board Manual V1 7 Seite 58 von 89 GLIN High Tech Distribution Flashing without Download Tool The application must be copied from the NAND flash to a free RAM address behind the boot manager before starting To do this it is copied to the RAM of the TMPA900 CPU module via the TFTP server via Ethernet Enter the following commands tftp 0x40600000 GettingStarted bin The program is copied to the external DDR RAM nand erase 0x80000 0x200000 The NAND flash is deleted with this command The first value is the start address the second value states the size of the area nand write 0x40600000 0x80000 0x200000 This flashes the program which is shown in the DDR RAM from address 0x40600000 onwards to the NAND address 0x80000 The size of the program is 0x200000 Auto copy und start application bootcmd nand read 0x40600000 0x80000 0x200000 go 0x40700000 During start up
26. 2 25 Input with Schmitt input and pull up resistor Port A3 KI3 23 Input Port BO KOO 33 Output Port BO to B3 Output ports Fast EI RON gt Output Key output KOO zp KO3 Key out pins 0 to 3 Port B2 KO2 37 Output open drain can be set Port B3 KO3 39 Output 3 17 Analog Digital Converter A 10 bit serial conversion analog digital converter AD converter with eight channels of analog input is built in Four channels AN4 AN7 are normally used for touch screen interface Signal PIN Input Output Function Remarks ANO 82 Input Port DO Port DO to D3 Input ports AN1 80 Input Analog input ANO to AN3 AD Converter Input Pins Port D1 AN2 78 Input Port D2 AN3 76 Input Port D3 Pins normally used for Touch Screen nterface Signal PIN Input Output Function Remarks AN7 65 Output TSI_PY Port D4 to D7 Input ports AN6 67 Output Analog input AN4 to AN7 AD Converter Input Pins TSI PX AN5 69 Output TSI MY ANA 71 Output TSI MX Glyn GmbH amp Co KG TMPA900 CPU Board Manual V1 7 Seite 29 von 89 GLIN High Tech Distribution 3 18 Touch Screen Interface TSI An interface for a 4 terminal resistor network touch screen is built in The TSI easily supports two procedures touch detection and X Y position measurement Each procedure is performed Touch Screen TMPA900 CPU BOARD Port D4 AN4 Signal
27. 2 0 and the open HCI specification release 1 0a and supports USB transfers at 12 Mbps full speed The USBHC is connected to the multi layer bus system via on chip SRAM Features e Supports full speed 12 Mbps USB devices But doesn t supports low speed 1 5Mbps e Supports control bulk interrupt and isochronous transfers e Contains two 16 byte FIFO buffers IN and OUT in the bus bridge logic for connecting with the CPU allowing a maximum of 16 byte burst transfers e Supports data transfers between the FIFO buffers in the bus bridge logic and the on chip SRAM Signal PIN Input Output Function Remarks USB OC 7 Input Over current detect for USB host USB PON 9 Output Power on enable for USB host USB HDP 13 Input Output USB host data D USB HDM 15 Input Output USB host data D Glyn GmbH amp Co KG TMPA900 CPU Board Manual V1 7 Seite 23 von 89 GLIN High Tech Distribution Connection Example USB host type A on the TMPA900 CPU board o 2 o 2 6 ESD5Z5 0T1 GND R502 5k6 C504 I00pF 3 11 12C This module operates in I2C bus mode and is compliant with the typical I2C bus standard Philips specifications Features e Contains two channels chO and ch1 Allows selection between master and slave Allows selection between transmission and reception Supports multiple masters arbitration clock synchronization recognition Supports standard mode and fast m
28. 2 168 0 122 which is set by entering set ipaddr 192 168 0 122 You have to adapt the IP addresses according to your environment These values can be saved by entering saveenv You can test the correct configuration with a ping on your host PC gt setenv ipaddr 192 168 100 121 gt setenv serverip 192 168 100 120 gt saveenv If required you have to set the MAC address gt setenv ethaddr DE AD DE AD DE AD gt saveenv Glyn GmbH amp Co KG TMPA900 CPU Board Manual V1 7 Seite 51 von 89 GLIN High Tech Distribution 5 2 2 5 Configuration of the Display Parameters To ensure that bigger displays with other timings also work with our board the kernel must be informed of the timing parameters such as resolution gt setenv videoparams video tmpa9xxfb 19211e4c 10040cef 013f380d gt saveenv Check also chapter 8 1 Other Resolutions Other Timings Calculation of the Display Settings There you can find how this parameter is calculated LCD Control Register The fourth parameter of the LCD control register LCDControl can be included in the video params call For the EDT Family Concept this is not necessary setenv videoparams tmpa9xxfb 19211e4c 10040cef 013f380d nnnnnnnn nnnnnnnn stands for the LCD Control Register value 5 2 2 6 Configuration of the File System Type You can choose between JFFS2 and UBIFS JFFS2 is a log structured file system for use in flash memory devices UBIFS Unsorted Block Image File S
29. 2 bin Loads u boot into RAM nand erase u boot Erases old u boot nand write fileaddr u boot Writes new u boot into flash Important After installing the uboot you have to reset your system restart u eus some problems with the update for example nothing works anymore please check chapter 5 2 2 9 What to do if the boot loader has been flashed incorrectly Glyn GmbH amp Co KG TMPA900 CPU Board Manual V1 7 Seite 50 von 89 GLIN High Tech Distribution If you want to change the existing old u boot Before August 2010 you can do this also via TFTP server gt tftp 0x40600000 u boot nand tonga2 bin Loads u boot into RAM nand erase 0 0x60000 Erases old u boot nand write 0x40600000 0 0x60000 Writes new u boot into flash 5 2 2 3 U boot Environment Setup First the serial terminal program runs and auto boot is aborted by pressing the SPACE bar U Boot 2010 06 Sep 01 2010 11 08 49 DRAM 64 MiB NAND 256 MiB Found Environment offset in OOB Net smc911x 0 NAND read device 0 offset 0x80000 size 0x300000 3145728 bytes read OK Hit any key to stop autoboot 0 Tonga2 gt The u boot settings can now be viewed by entering printenv Important After installing the uboot you have to reset your system restart u boot 5 2 2 4 IP and MAC Address Setup Configuration of the IP address of the development board and your host PC The board should be allocated the address 19
30. 46 Output UART1 transmission data PORT T4 UART2 Signal PIN Input Output Function Remarks U2RXD 58 Input UART2 receive data PORT F7 U2TXD 60 Output UART2 transmission data PORT F6 3 9 USB 2 0 Device Features Conforms with universal serial bus specification Rev 2 0 Supports both high speed and full speed low speed is not supported Supports Chirp USB protocol processing Detects SOF USB RESET SUSPEND RESUME Generates and checks packet IDs Generates and checks data synchronization bits DATAO DATA1 DATA2 MDATA Checks CRC5 generates and checks CRC16 Supports PING Supports 4 transfer modes Control Interrupt Bulk Isochronous Supports 4 endpoints o Endpoint 0 Control 64 bytes x 1 FIFO o Endpoint 1 Bulk IN 512 bytes x 2 FIFOs o Endpoint 2 Bulk OUT 512 bytes x 2 FIFOs o Endpoint 3 Interrupt IN 64 bytes x 1 FIFO e Supports dual packet mode except for Endpoint 0 e Interrupt source signal to interrupt controller INTS 21 Signal PIN Input Output Function Remarks USB DDP 17 Input Output USB Device pin D USB DDM 19 Input Output USB Device pin D Glyn GmbH amp Co KG TMPA900 CPU Board Manual V1 7 Seite 22 von 89 GLIN High Tech Distribution Connection Example MINI USB on the TMPA900 CPU Board WE74231091 USBLC6 2 GND USBCONMINI 3 10 USB 2 0 HOST The USB host controller USBHC is compliant with USB specification revision
31. 900 CPU board There is a DDR RAM and NAND flash integrated on the TMPA900 CPU board It is not possible to execute the program code directly from the NAND flash The program code has to be copied in segments by a boot manager u boot from the NAND flash to the DDR RAM and then executed from there First the CPU executes the boot code in the boot ROM This boot code loads a special boot block from the NAND flash into the SRAM of the CPU This special boot block initialises the RAM and loads the u boot from the NAND to the RAM and jumps into it There are many additional features on the TMPA900 CPU Board such as installation of software via RS232 and TFTP The u boot needs approx 200kb Including the boot block it needs approx 330kBytes Being an interactive console 11500 8N1 the u boot enables hardware initialisation during the development process The u boot allows hardware tests e g RAM network One of the most important features is the uploading of software e g via TFTP U boot also offers debug features An overview of some important u commands e help prints online help e help command prints online help for a command e printenv prints environment variables Configuration commands e setenv ipaddr ip Sets the IP Address of the board e setenv serverip ip Sets the TFTP server host IP address e saveenv Saves environment variables Flash memory commands e nand wrile Source Address Destination Addre
32. A900 CPU BOARD Gem Signal PIN Input Output Function Remarks L D12 CMSPCK 111 Input Clock input for CMOS sensor L D13 CMSHSY 109 Input Horizontal synchronization input for CMOS sensor L D14 CMSHBK 107 Input Valid data detect input for CMOS sensor L D15 CMSVY 105 Input Vertical synchronization input for CMOS sensor L D16 CMSDO 101 Input CMOS data driver line L D17 CMSD1 99 Input CMOS data driver line L D18 CMSD2 97 Input CMOS data driver line L D19 CMSD3 95 Input CMOS data driver line L D20 CMSD4 91 Input CMOS data driver line L D21 CMSD5 89 Input CMOS data driver line L D22 CMSD6 87 Input CMOS data driver line L D23 CMSD7 85 Input CMOS data driver line Attention CMOS camera Interface uses some of the same pins as the LCDC data bus so only 12bit colour 4096 display colours is possible Glyn GmbH amp Co KG TMPA900 CPU Board Manual V1 7 Seite 36 von 89 GLIN High Tech Distribution 3 23 Melody Alarm Generator Melody Generator Based on the low speed clock 32 768 kHz clock wave forms can be generated at any frequency from 4 Hz to 5461 Hz and outputted from the MLDALM pin By connecting a buzzer etc outside melody sounds can easily be played Alarm Generator Can generate eight patterns of alarm output Can generate five types of fixed interval interrupts 1 Hz 2 Hz 64 Hz 512 Hz and 8192 Hz By connecting a buzzer etc outside alarm sounds can easily be played Signal
33. B External Bus Interface USB Host 1 1 Controller Glyn GmbH amp Co KG TMPA900 CPU Board Manual V1 7 Seite 16 von 89 GLIN High Tech Distribution 3 4 Power Supply The parts used on the TMPA900 CPU board are specified for use between 20 and 85 Grad Celsius The TMPA900 CPU board requires a DC voltage of 3 3V 0 2V The power is fed over the VDD3R3 pins This power runs through some filters and is outputted over VDD3V3 External components which aren t supplied by the module should be supplied over VDD3V3 The filters are switched between VIN VDD3R3 and VDD3V3 so the voltage peak has the same effect on external components as on the module The EMV critical part should be connected via the filters VINIVDD3R3 L L GND GND Power Supply Pins VDD3R3 VCORE Signal PIN Input Output Function Remarks VDD3R3 136 Input VDD3R3 138 Input DC IN supply 3 3V 0 2V VDD3R3 140 Input VDD3R3 142 Input Power Output Pins VDD3V3 Signal PIN Input Output Function Remarks VDD3V3 3 Output VDD3V3 Fi Output DC OUT VDD3R3 filtered VDD3V3 61 Output VDD3V3 62 Output VDD5WO 5 Not connected Glyn GmbH amp Co KG TMPA900 CPU Board Manual V1 7 Seite 17 von 89 GLIN High Tech Distribution Ground Pins Signal PIN Input Output Function
34. Build Where to find Linux kernel sources http git labs kernelconcepts de p topas git a summary First steps with the git server in Appendix C KC Labs Public Git Server Demo file systems kernel binary u boot binary configured for the Glyn graphics base board http www mucross com downloads tonga linux Our Linux Cross Compiler and Root File System is based on uCross a modern Linux based software distribution for embedded and mobile devices The yu Cross package is a product from kernel concepts www kernelconcepts de More in chapter 6 9 uCross Linux Tool Package Glyn GmbH amp Co KG TMPA900 CPU Board Manual V1 7 Seite 61 von 89 GLIN High Tech Distribution 6 1 Major Components of a Linux System A Linux system be it on a main frame or an appliance consists of three major parts e Boot loader on a PC the BIOS e Linux kernel e Root file system There are plenty of ways to combine and create all this and each part has its quite specific features and effect on the behaviour of the system As a general rule you can assume that a Linux system starts up in the following way 1 CPU power on reset loads end executes boot loader 2 Boot loader initialises some required hardware and then loads Linux kernel binary image and jumps to load address 3 Linux kernel initialises its drivers and thus the hardware then mounts the root file system and finally executes the first user space program which is eit
35. Clock input for CMOS Sensor 112 RESET Input Reset Initializes TMPA910CRA with Schmitt input and pull up resistor 113 114 GND Ground Glyn GmbH amp Co KG TMPA900 CPU Board Manual V1 7 Seite 42 von 89 GLIN High Tech Distribution PINOUT 5 5 Numper of Pin Name Input Output Function Remarks Pin 115 L_D11 Output PJ3 Output ports Output LD11 Data bus for LCD driver 116 TDO Output TDO Data output pin for JTAG 117 L D10 Output PJ2 Output ports Output LD10 Data bus for LCD driver 118 TCK RTN Output RTCK Clock output pin for JTAG 119 L D9 Output PJ1 Output ports Output LD9 Data bus for LCD driver 120 TCK Input Clock pin for JTAG 121 L D8 Output PJO Output ports Output LD8 Data bus for LCD driver 122 TMS Input TMS Pin for JTAG 123 124 GND Ground 125 L D7 Output LD7 Data bus for LCD driver 126 TDI Input TDI Data input pin for JTAG 127 L D6 Output LD6 Data bus for LCD driver 128 TRST Input TRSTn Reset pin for JTAG 129 L_D5 Output LD5 Data bus for LCD driver 130 JTAG 131 L_D4 Output LD4 Data bus for LCD driver 132 BOOT 133 134 GND 135 L_D3 Output LD3 Data bus for LCD driver 136 VIN Input Power Supply 137 L_D2 Output LD2 Data bus for LCD driver 138 VIN Input Power Supply 139 L_D1 Output LD1 Data bus for LCD driver 140 VIN Input Power Supply 141 L_DO Output LDO Data bus for LCD driver 142 VIN Input Powe
36. D GettingStarted 5 TMPASOOBOARD Graphic LIB1 0 E TMPAGDDBOARD VIEW BMP iC CE_Konformitat iC Circuit Diagram Datasheets EDT Displays EM Eldioupdate v1 00 C3 bigimage Glyn_Lieferprograrnm a Linux IS display settings iC kernel C mucross mucross Root Demos mucross toolchain LH QT Start iC Manual Gan Base Board iC Pro GIT E Segger EM Segger_Demo Dac ic PreBuild Start DI Segger Download Tod Segger UNK Lite E TARA Systems EmbeddedwWizard D Tara_Sywsters_EmWi_GUI_Demo_ 2010 05 12 ENNM u boot ald Glyn GmbH amp Co KG TMPA900 CPU Board Manual V1 7 Seite 88 von 89 GLIN High Tech Distribution Appendix F Contact Information Europe GLYN GmbH amp Co KG Head Office www glyn de sales glyn de GLYN GmbH amp Co KG Office Nettetal www glyn de nettetal glyn de GLYN GmbH amp Co KG Office Norderstedt www glyn de norderstedt glyn de GLYN GmbH amp Co KG Office Pforzheim www glyn de pforzheim glyn de GLYN GmbH amp Co KG Office Unterhaching www glyn de unterhaching glyn de GLYN GmbH amp Co KG Office Zirndorf www glyn de zirndorf glyn de t d GLYN Austria GLYN GmbH amp Co KG Germany www glyn at sales glyn at GLYN Switzerland GLYN GmbH amp Co KG Germany www glyn ch sales glyn ch GLYN Benelux GLYN GmbH amp Co KG Germany www glyn nl sales Gglyn nl GLYN Poland GLYN GmbH amp Co KG Germany www glyn pl sales glyn pl GLYN Czech
37. E 8 2 5 1 Glyn s Graphic Base Board Connechors iias 9 2 0 Insiniciols e 11 3 0 Operational DescrpblOriss scene 12 SEO OEE c 0 11 12 3 2 Memory EECHER eege aa 13 3 2 1 Nand Flash Memory Unique Characteristics iiiiuss 14 3 3 TMPA900CMXBG Block Diagram with Multilayer AHB 16 3 4 e Te e EE 17 ST TED 19 3 6 External power source control OUtpUt ccccciicccciiiiiiiiiiiiiiiiiiiiiiiis 19 3 7 Ethernet Network e 20 Sa HARMIS UD eiut iu P 21 3 9 USB 2 0 Device 22 3 10 USB ZU ne E 23 SN 24 SA2 SPISS EE 25 3 13 Ae Ecol nennen 26 3 14 PWM Pulse Width Modulation 16bit Timers ccccccceeeeeeeeeeeeeeeeeeeeeeeeees 27 3 15 EE 28 3 16 Keys Keyboard cito extet imum neu MIELE 29 3 17 Analog Digital E 29 3 18 Touch Screen Interface TSI mamma 30 3 19 ECD Eeer eege deeg EN 3 20 Glyn Graphic Base Board amp Glyn TFT Family Concept 33 321 OS HC GU NN PNE CI Rc Ts 35 3 22 CMOS Camera nn E 36 3 23 Melody Alarm SGM Gi atOl E 37 3 24 Low Frequency Clock Output 37 4 0 Pin Allocation SODIMM 144 Connechor iieis 38 Ee Ee ee En 44 5 1 Basics Data Transfer to TMPA900 CPU Board 44 5 1 1 ELDIO Download Wizard een 44 5 1 2 Basics Installing J Link Lite iei te enin tenent tenens arte eege eegnen 46 5 1 3 Basics Instal
38. EC Detailinformation about the Soundchip on with 1W Speaker Driver the Starterki It is publicly available from Wolfson www wolfsonmicro com Hardware Manual Samsung Flash Memory K9F2G08UXA Detailinformation about the Nand Flash on the CPU Board It is publicly available from Samsung www samsung com Hardware Manual Samsung DDR RAM 32Mx16 Mobile DDR Detailinformation about the DDR RAM on SDRAM the CPU Board It is publicly available from Samsung www samsung com Hardware Sonitexx J19154 144 Drawing of Sonitexx J19154 144 SODIMM 144 Socket Hardware FPC Series ZIF for FFC FPC Connector 0 5mm Drawing of Displayconnector on the Pitch 90 SMT Starterkit from Yamaichi Electronics Hardware TFT Family Concept Compatible and Flexible Information about TFT Familyconcept It is A cooperation between Glyn and EDT publicly available from Glyn www glyn com Tools SEGGER J Link J Trace User s This document gives information Guide about using the SEGGER J Link JTrace ARM It is publicly available from SEGGER www segger com Software embOS for ARM and IAR This document gives information Embedded Workbench about using embOS for IAR EWARM It is publicly available from SEGGER www segger com Software embOS IP User Guide This document gives information about using the SEGGER IP stack It is publicly available from SEGGER www segger com Software User s and reference manual This document gives information for emUSB about using the SEGGER USB sta
39. GLIN High Tech Distribution GLIN Developer Manual TMPA900 CPU Board 2010 GLYN GmbH amp Co KG All rights reserved No part of this documentation may be reproduced or with the use of electronic systems edited copied or transmitted in any form print photocopy microfilm or another procedure without the express authority of the GLYN GmbH amp Co KG D 65510 Idstein The GLYN GmbH amp Co KG D 65510 Idstein does not accept liability or provide any guarantee with respect to the contents of this documentation The GLYN GmbH amp Co KG D 65510 Idstein retains the right of revising this work All programs and descriptions have been created to the best of our knowledge and tested with great care However errors cannot be entirely excluded For this reason the GLYN GmbH amp Co KG does not accept liability for possible errors and consequential damage resulting from the provision performance or use of this material Glyn GmbH amp Co KG TMPA900 CPU Board Manual V1 7 Seite 1 von 89 GLIN High Tech Distribution Table of Contents W REVISION aaa na an ara a a ana na HK Haag TERRE FERRE AB SU EHER ABER EAEren a E TEREE EEE n EA 4 1 1 Contacts ee 4 ZU SUNMAR Sensei ce ee 5 2 1 Product Information TMPA900 CPU BOARD 5 2 2 Energy Consumption at 3 3V preliminary values Rennen 6 2 3 Block Diagram uec ceci muU ULL MEAS 6 2 4 TMPA900 CPU Board Reference Circuit 7 2 5 Glyn Graphic Base Board nano E
40. IN Input Output Function Remarks L_DO 141 Output LCD data driver line L_D1 139 Output LCD data driver line L_D2 137 Output LCD data driver line L_D3 135 Output LCD data driver line L_D4 131 Output LCD data driver line L_D5 129 Output LCD data driver line L_D6 127 Output LCD data driver line L D7 125 Output LCD data driver line L D8 121 Output LCD data driver line L D9 119 Output LCD data driver line L D10 117 Output LCD data driver line L D11 115 Output LCD data driver line L D12 111 Output LCD data driver line L D13 109 Output LCD data driver line L D14 107 Output LCD data driver line L D15 105 Output LCD data driver line L D16 101 Output LCD data driver line L D17 99 Output LCD data driver line L D18 97 Output LCD data driver line L D19 95 Output LCD data driver line L D20 91 Output LCD data driver line L D21 89 Output LCD data driver line L D22 87 Output LCD data driver line L D23 85 Output LCD data driver line Glyn GmbH amp Co KG TMPA900 CPU Board Manual V1 7 Seite 32 von 89 High Tech Distribution 3 20 Glyn Graphic Base Board amp Glyn TFT Family Concept The Concept Our objective was to offer a number of TFTs that 1 are compatible with each other 2 provide a modern interface and 3 have long term availability In close collaboration with our partner EDT Emerging Display Technologies we have selected a number of TFTs that have been modified according to your needs A PCB on the back of the
41. L2 Input Output PL2 I O port Input I2S0DATI I2S0 receive serial data input Output SP1DO Data output pin for SSP1 99 L D17 Output PK1 Output ports Output LD17 Data bus for LCD driver Output CMSD1 Data bus for CMOS Sensor 100 Port L1 Input Output PL1 I O port Input Output I2SOCLK I2S0 serial clock input output Input Output SP1CLK Clock output pin for SSP1 101 L_D16 Output PKO Output ports Output LD16 Data bus for LCD driver Output CMSDO Data bus for CMOS Sensor 102 Port LO Input Output PLO I O port Input Output I2SOWS I2S0 word select input output Input Output SP1FSS FSS pin for SSP1 103 104 GND Ground 105 L D15 Input Output PJ7 Input Output port Output LD15 Data bus for LCD driver Input CMSHBK Vertical synchronization Input for CMOS Sensor 106 Port C4 Output PC4 Output port Output FSOUT Low frequency output clock pin Output PWM2OUT Timer PWM out port 107 L D14 Input Output PJ6 Input Output port Output LD14 Data bus for LCD driver Input CMSHBK Valid Data detect input for CMOS Sensor 108 Port C3 Output PC3 Output port Output MLDALM Melody alarm output pin Output PWMOOUTPUT Timer PWM out port 109 L_D13 Input Output PJ5 Input Output port Output LD13 Data bus for LCD driver Input CMSHSY Horizontal synchronization Input for CMOS Sensor 110 Port C2 Output PC2 Output port Output PWE External power source control output 111 L_D12 Input Output PJ4 Input Output port Output LD12 Data bus for LCD driver Input CMSPCK
42. NOUT 3 5 Numper of Pin Name Input Output Function Remarks Pin 65 TSI_PY Input PD7 Input port Input ANT Analog input 7 converter input pin Output PY Y plus Y connecting pin for touch panel Input INTB interrupt request pin B an interrupt request pin that can program the rising falling edge 66 NC Not connected 67 TSI PX Input PD6 Input port Input AN6 Analog input 6 converter input pin Output PX X plus X connecting pin for touch panel Input INTA Interrupt request pin A an interrupt request pin that can program the rising falling edge 68 NC Not connected 69 TSI MY Input PD5 Input port Input AN5 Analog input 5 gt AD converter input pin Output MY Y minus gt Y connecting pin for touch panel 70 NC Not connected 71 TSI MX Input PDA Input port Input AN4 Analog input 4 gt AD converter input pin Output MX X minus gt X connecting pin for touch panel 72 NC Not connected 73 74 GND Ground 75 L CLLP Output LCLLP LCD driver output pin 76 Port D3 Input PD3 Input port Input AN3 Analog input pin 77 L_CLFP Output LCLFP LCD driver output pin 78 Port D2 Input PD2 Input port Input AN2 Analog input pin 79 L_CLAC Output LCLAC LCD driver output pin 80 Port D1 Input PD1 Input port Input AN1 Analog input pin 81 L_CLCP Output LCLCP LCD driver output pin 82 Port DO Input PDO Input port Input ANO Analog input pin 83 84 GND Gro
43. PIN Input Output Function Remarks MLDALM 108 Output Melody alarm output pin PORT C3 3 24 Low Frequency Clock Output Signal PIN Input Output Function Remarks FSOUT 106 Output Low frequency output clock pin PORT C4 Glyn GmbH amp Co KG TMPA900 CPU Board Manual V1 7 Seite 37 von 89 High Tech Distribution 4 0 Pin Allocation SODIMM 144 Connector 101 103 105 107 109 111 113 115 119 121 123 125 127 129 131 133 135 137 139 141 143 Glyn GmbH amp Co KG TMPA900 CPU Board Manual V1 7 1510 19154 144 XXA110X GNDO1 GND02 VDD3V3 vop3v3 FUTURE_USE ETHLED1 P PC7 I2CODA INTS USBOCN ETHLED2 PC6 I2COCL USBPON eruct GNDO3 nos H SN6 USBHDP Erurxpl 1 SN7 USBHDM ETHRXN A SRO USBDDP Eram 18 SR1 USBDDM erum GNDOS GNDos PA3 KI3 PN7 UORTSN INTG PA2 KI2 PN UODTRN INTF PA1 KIi PNS UORIN INTE gt PAO KIO PNA UODSRN INTD GND07 nos PB3 KO3 PN3 UODCDN PB2 KO2 PN2 UoCTSN ZP PB1 KO1 LCLAC PN1 UORXD SIROIN PBO KOO PNO UOTXD SIROOUT GNDOS enoro H PG7 SDCOCLK PTS U1RXD PG6 SDCOCD Praju1TxD PGS SDCOWP Pra sPopi PG4 SDCOCMD Pr2 SP0D GND11 GND12 PG3 SDCODAT3 Pri sPocik PG2 SDCODAT2 Pro sporss 5 PG1 SDCODAT1 PF7 I2C1DA INTC U2RXD 9 PGO SDCODATO PF6 12C1CL V2TxD VDD3V3 vop3v3 L I GND13 GND14 PD7 INTB AN7 PY FuTure_use PD6 INTA TSI ANG PX FUTURE ust 5 PDS ANS MY FUTURE USE H PD4 AN4 MX FUTURE_UsE
44. Port T lOs UART1 SPIO Port F lOs I2C1 UART2 INTC CN304 CN305 Port L lOs I2S0 SPI1 Port C IOs PWM Melody Alarm FSOUT PWE Glyn GmbH amp Co KG TMPA900 CPU Board Manual V1 7 Seite 9 von 89 High Tech Distribution CN200 CN201 VDD 1 EMDO4E EDS 3 EMDO4F D4 VDD3R3 O 3 VDD I ut E 2 EMDOSC ED1 GND DO 7 3 10 pipe Ds A 027 d4 15 3 1 pe HI 5 6 popu id 7 Di2 20 GND SR Ds R EMIXDF ECLCP 24 pis B EMDO2E ECLLE 26 24 EMDO2DECLFP 27 D16 GND 25 EMI202C CLAC 28 017 2 fpe 2 PRGO EMDOSE EPRGO 1 PRGl EMDO2B EPRG1 29 35 f D22 30 PWM EMDOlA SR 36 D23 32 30 33 e 34 VDD3R3 O 33 a 2 GND Com EMD00 EMONA 9j l0mF HC 16 C203 EMD06 EMDOIF 23 10 F HC 25 31 32 PY EMDOIB 37 PX EMDOIC 38 MY EMDOID 39 Mx EMDOIE 40 48PIN Glyn GmbH amp Co KG TMPA900 CPU Board Manual V1 7 Seite 10 von 89 GLIN High Tech Distribution 2 6 Instructions for use The standard measures of precaution regarding touching and operating circuitry in low voltage ranges apply Electrostatic discharging which may damage parts is to be avoided The board may be plugged in or out only when the supply voltage is switched off The parts used on the TMPA900 CPU board are specified for use between 20 and 85 Grad Celsius The TMPA900 CPU board requires a DC voltage of 3 3V 0 2V Glyn GmbH amp Co KG TMPA900
45. TEJ gt CP15 8 1 8x1D152152 IGache 16kB 4 128 32 DCache 16kB 4 128 32 gt Cache type Separate Write back Format C CWT supported Found 1 JTAG device Total IRLen 4 Id of device 0 x 7926031 with core Id x 7926631 CARM gt Glyn GmbH amp Co KG TMPA900 CPU Board Manual V1 7 Seite 49 von 89 GLIN High Tech Distribution Please enter the following commands and confirm by pressing return Speed adaptive r g halt loadbin u boot bin 0x43F00000 setpc 0x43F00000 g From now on the boot manager should login to the terminal and report its status In order to flash the boot manager go back to the J link commander and enter the following commands halt loadbin u boot nand tonga2 bin 0x40600000 g Now go back to the terminal program and enter the following commands nand erase 0 0x60000 nand write 0x40600000 0 0x60000 If you now push the RESET button the u boot in the terminal program will answer and can be configured The u boot can be used to load both a Linux kernel and a normal application The bad block handling which is necessary for NAND flashing is also done by the u boot Note The start address or size depends on which u boot is used and the matching kernel These values refer to the versions of 6 2 2010 5 2 2 2 Update the u boot via network handle with care If you want to change the existing u boot on the board you can do this via TFTP server gt tftp u boot nand tonga
46. ading the software 5 1 1 ELDIO Download Wizard ATTENTION Works only with Empty NAND Flash at least page 0 Board has to be connected to PC without USB Hub First before using ELDIO Updater install the driver Rightclick on trl drv 2k inf For Windows 2000 or trl_drv_xp inf Windows XP and select install Connect the Base Board USB Device to the PC If you have problems with connection to the board when you attach the board via USB Hub please connect the board directly to the PC Glyn GmbH amp Co KG TMPA900 CPU Board Manual V1 7 Seite 44 von 89 High Tech Distribution Start up ELDIOUpdater exe 2 ELDIO Download Wizard Welcome to ELDIO download Wizard Please make sure you have connected the target board and the driver must be TOSHIBA RAM Loader for Wwin2000 winxP To continue click Next Select Firmware Next Cancel Lower left side Click on Select Firmware Choose Firmware for our board EldioUpdater_Tonga2 s32 ffnen Suchen in O Eldioupdate v1 00 EI ex E3 EldioUpdater_Tonga2_sd s32 E EldioUpdater_Topas s32 Dateiname EldioU pdater_Tonga2 s32 Dateityp S Record File 532 E Abbrechen Than Click on Next Wait until connection established appears Click on Next Select Destination Ram NOR NAND RAM or NAND Select start page normally O if you want to flash u boot or bigimage Than select Target File to Flash Click on next Wait u
47. alling a TFTP Server To transfer data to the board you have to install a TFTP server Nowadays there are various free servers available The documentation of these servers is usually so detailed that the installation is usually not directly addressed One of the most important features is the fast uploading software via TFTP It s the best way during development phase 5 1 4 Basics Working completely under Linux The delivered J Link is also working under Linux using openOCD Please refer to http openocd berlios de web for installing and usage It s also possible to have a tpft server running under Linux please refer to your Linux Distribution Documentation how to install Glyn GmbH amp Co KG TMPA900 CPU Board Manual V1 7 Seite 46 von 89 GLIN High Tech Distribution 5 2 u boot Without a good boot loader the TMPA900 CPU Board is just a complicated piece of silicon with nothing to do That s where u boot a free universal boot loader software steps in www denx de A boot loader sometimes referred to as a boot monitor is a small piece of software that executes soon after powering up the module In an embedded system the role of the boot loader is more complicated since these systems do not have a BIOS to perform the initial system configuration The low level initialization of microprocessors memory controllers and other board specific hardware varies from board to board and CPU to CPU These initializations
48. aranteed per block erase cycles NAND page A NAND page consists of a number of data bytes plus a number of out of band OOB bytes Only the data bytes are used for application data The OOB bytes are used for e Marking an erase block as bad first or second page of erase block e Storing ECC error correction codes e Storing file system specific information JFFS2 NAND erase block An erase block consists of multiple pages In K9F2G08 every erase block has 64 pages K9F2G08X0A Array Organization 1 Block 64 Pages 128K 4k Byte 1 Page 2K 64 Bytes 1 Block 2K 64 B x 64 Pages 128K 4K Bytes 1 Device 2K 64 B x 64Pages x 2 048 Blocks 2 112 Mbits 128K Pages 22 048 Blocks 64 Bytes t Page Register 222 Dr 2K Bytes 64 Bytes 8 bit HO Glyn GmbH amp Co KG TMPA900 CPU Board Manual V1 7 Seite 14 von 89 GLIN High Tech Distribution Problem Bad Blocks NAND memory apparently gets shipped with blocks that are already bad The vendor just marks those blocks as bad thus resulting in higher yield and lower per unit cost The flash contains four kinds of blocks 16kBytes e Factory default bad blocks o Samsung marks the 6th OOB byte as non OxFF in the first and or second page in blocks that are bad e Worn out bad blocks e Good blocks e The first block This block is guaranteed to not require error correction up to 1000 writes This is needed as the initial boot code ca
49. bedded being supported as well With tools known from desktop Linux such as IDEs user interface builders and debugging tools an experienced GUI developer can start to develop embedded GUI applications within the shortest possible time pu Cross can be seen as the glue layer between the BSP and the customers specific application Application pu Cross complements the BSP that comes with the hardware board Only the hardware specific parts of the BSP are needed i e boot loader kernel and possibly specific drivers Everything else is supplied by p Cross Glyn GmbH amp Co KG TMPA900 CPU Board Manual V1 7 Seite 73 von 89 GLIN High Tech Distribution Components pu Cross is based on a set of well tuned and tailored components which form a complete and stable solution Cross tool chain GCC SDK including GUI development GTK Qt Qt embedded and DirectFB Root file system with package management Package feeds the source for the pre compiled binary packages which are used to build the root file system Feeds can also be used as a source for post deploy installations more than 6000 packages are available e Updates a regular release schedule with new releases every six months e Broad support offers please enquire Services e Complete development and runtime environment for embedded and mobile Linux devices o Cross tool chain development tools for the target platform consisting of compilers C C assembler an
50. ck It is publicly available from SEGGER www segger com Software emFile User s Guide This document gives information about using the SEGGER embedded filesystem It is publicly available from SEGGER www segger com Software User s and reference manual This document gives information GUI for emWin about using the SEGGER GUI software It is publicly available from SEGGER www segger com Note Components on the board can change without notice Glyn GmbH amp Co KG TMPA900 CPU Board Manual V1 7 Seite 86 von 89 GLIN High Tech Distribution Field Title Comments Software Cross The Innovative Distribution This document gives information Linux About uCross Linux based software distribution It is publicly available from kernelconcepts www mucross com Software Creating Fantastic Graphical User Interfaces with This document gives information GUI Embedded Wizard about GUI development amp prototyping suite Embedded Wizard It is publicly available from Tara Systems www tara systems de Software Qt cross platform application and UI framework Homepage gives information downloads GUI for Qt www qt nokia com Software DirectFB is a thin library that provides hardware Homepage gives information downloads GUI graphics acceleration DirectFB adds graphical for DirectFB www directfb org power to embedded systems and sets a new standard for graphics under Linux S
51. d linker o JCross SDK complements the tool chain with libraries for application and GUI development o Documentation how to integrate the uCross SDK into standard IDEs such as Eclipse Qt Creator Anjuta Glade o JCross Runtime all packages are available both in development and runtime versions e Wide range of packages o Building blocks choose what is needed leave out the rest e Stable versions o Once deployed every version of uCross stays reproducible o So does the source e Cross target image builder creates the firmware flash image from the building blocks on your development host e Continuously improved a new version every six months e We support customer versions of uCross o Complete customized version along with every main release o Or with the customers approval inclusion of a hardware specific subset into the main releases Glyn GmbH amp Co KG TMPA900 CPU Board Manual V1 7 Seite 74 von 89 High Tech Distribution uCross Target Image Builder uTIB Features e GUI Easy to use Creates file systems with a minimum of effort File system definition independent from target device define once deploy on multiple devices Fast operation 1 2 minutes to build a file system Human readable and easy to modify device and file system descriptions Access to multiple configuration parameters Support for file system variants e g debug and release Output formats TAR archives JFFS2 images and UBIFS images Includes arbitrary
52. dy Input INTD Interrupt request pin D an interrupt request pin that can program the rising falling edge 31 32 GND Ground Glyn GmbH amp Co KG TMPA900 CPU Board Manual V1 7 Seite 39 von 89 GLIN High Tech Distribution PINOUT 2 5 Numper of Pin Name Input Output Function Remarks Pin 33 Port B3 Output PB3 Output port Output KO3 Key out pins open drain can be set 34 Port N3 Input Output PN3 I O port Input UODCDn Modem status signal DCD Data Carrier Detect 35 Port B2 Output PB2 Output port Output KO2 Key out pins open drain can be set 36 Port N2 Input Output Port N2 I O port Input UOCTSn UART function 0 data can be transmitted Clear to send 37 Port B1 Output PB1 Output port Output KO1 Key out pins open drain can be set 38 Port N1 Input Output Port N1 I O port Input UORXD UART function 0 receive data Input SIROIN Data input pin for IrDA1 0 38 Port BO Output PBO Output port Output KOO Key out pins open drain can be set 40 Port NO Input Output Port NO I O port Output UART function 0 transmission data Output Data output pin for IrDA1 0 41 42 GND Ground 43 Port G7 Input Output Port G7 I O port Input Output SDCOCLK Clock output pin for SD card 44 Port T5 Input Output Port T5 I O port Input U1RXD UART function 1 receive data 45 Port G6 Input Output Port G6 I O port Input SDCOCD Card detection input pin for
53. ease also note that a non disclosure agreement must be signed with us before the detailed specifications of the SD host controller can be disclosed For details please contact us Signal PIN Input Output Function Remarks SDCODATO 59 Input Output Port GO SDCODAT1 57 Input Output SDCODATO to SDCODAT3 Port G1 Data I O pin for SD card SDCODAT2 55 Input Output Port C2 SDCODAT3 53 Input Output Port_G3 SDCOCMD 49 Input Output Command I O pin for SD card Port_G4 SDCOWP 47 Input Write protect input pin for SD card Port G5 SDCOCD 45 Input Card detection input pin for SD card Port G6 SDCOCLK 43 Input Clock output pin for SD card Port G7 Glyn GmbH amp Co KG TMPA900 CPU Board Manual V1 7 Seite 35 von 89 GLIN High Tech Distribution 3 22 CMOS Camera Interface The CMSI has the following features e SXGA 1280x1024 4VGA 1280x960 VGA 640x480 QVGA 320x240 Special 320x180 QQVGA 160x120 CIF 352x288 QCIF 176x144 Input data format CRGB Input data sampling ratio 8 bit YUV4 2 2 or RGB888 if no color space conversion Downscaling function 4VGA VGA QVGA QQVGA VGA QVGA QQVGA QVGA gt QQVGA Trimming function Data can be trimmed to a desired size SCL R BCL SDA C SDA CMSVSY Jama arr VD CMSHBK Chal HD CMSPCKC gia Dor EXTCUK CMSD 7 0 Commas DOUT TMP
54. er than using different drive letters to identify drives and partitions LINUX systems use a single starting point for the file system This single point is marked with the slash It is the starting point or root of the file system In this tree one can navigate with the command cd It is always possible to type the path to a list or a file as absolute or relative to navigate and select a program There are no disk drive letters as known from other OS Thus the kernel the real operating system and the programs always know where certain lists and with them the required files like configuration files libraries program modules and certain resources are to be found After successful installation of the Linux kernels and a file system you can connect to a serial console with the Linux board e g the console answers after installation of the example mucross 1 0 x11 gtk qt4 image tonga2 summary jffs2 as follows Mucross Linux by kernel concepts http www mucross com mucross kernelconcepts de Mucross 1 0 tonga2 ttySO Created with Imagetool v1 0 tonga2 tonga2 login Type root followed by twice cd Now you are in the root file system With the command Is the structure of the system is shown Glyn GmbH amp Co KG TMPA900 CPU Board Manual V1 7 Seite 69 von 89 GLIN High Tech Distribution The Root File System The following files or symbolic links to files can be found in the root file system I b
55. grammable Generates a common transmit and receive internal clock from the UART internal reference clock input Supports baud rates of up to 6 15Mbps at fPCLK 100MHz DMA Support NO support support IrDA 1 0 Function 1 Max data rate N A N A 115 2kbps half duplex 2 support low power mode Control pins UORXD U1RXD U2RXD UOTXD U1TXD U2TXD UOCTSn UOCTSn Clear To Send UODCDn Data Carrier Detect UODSRn Data Set Ready UORIn Ring Indicator UORTSn Request To Send UODTRn Data Terminal Ready Hardware flow RTS support NC N A control CTS support UARTO Signal PIN Input Output Function Remarks UORTSn 24 Output Output modem control line RTD Request To Send PORT N7 UODTRn 26 Output Output modem control line DTR Data Terminal Ready PORT N6 UORIn 28 Input Modem status signal RI Ring Indicator PORT N5 UODSRIn 30 Input Modem status signal DSR Data Set Ready PORT NA UODCDn 34 Input Modem status signal DCD Data Carrier Detect PORT N3 UOCTSn 36 Input UARTO data can be transmitted Clear to send PORT N2 UORXD 38 Input UARTO receive data PORT N1 UOTXD 40 Output UARTO transmission data PORT NO Glyn GmbH amp Co KG TMPA900 CPU Board Manual V1 7 Seite 21 von 89 GLIN High Tech Distribution UART1 Signal PIN Input Output Function Remarks U1RXD 44 Input UARTI1 receive data PORT_T5 U1TXD
56. her Isbin init or bin sh So the init process is always the first process started This becomes the root of the process tree and triggers all other processes Glyn GmbH amp Co KG TMPA900 CPU Board Manual V1 7 Seite 62 von 89 GLIN High Tech Distribution 6 2 Flashing the Linux Application Note The start address or size depends on the u boot used and the matching kernel These values refer to the versions of August 2010 It is assumed that the current version of the boot manager as well as the TFTP server have already been installed You will find a consistently updated kernel on our web page http www toshiba mikrocontroller de and the file system on the CD in the subdirectory KernelConcepts Press RESET on the base board The following commands are re entered via a serial terminal 115200 8 no 1 no Flow Install kernel gt tftp ulmage nand erase kernel nand write fileaddr kernel Install Rootfs max size 60MB gt tftp mucross 1 0 x11 gtk qt4 image tonga2 summary jffs2 nand erase rootfs nand write jffs2 fileaddr rootfs filesize 6 3 Flash Layout TMPA900 CPU BOARD Partition Start Length Hex Size Bootblock u boot 0x00000000 0x60000 384 kBytes Environment 0x00060000 0x20000 128 kBytes Splah Screen Partition 0x00080000 0x300000 3 MBytes Linux Kernel 0x00380000 0x300000 3 MBytes File System 0x00680000 OxFC80000 249 5 MBytes Note The start address or size depends on the u bo
57. hitecture Each supported one is located in each entry of the directory arch For ARM we will use arm e CROSS COMPILE specifies the tool chain to be used For example arm mucross linux gnueabi Make examples e make ARCH arm CROSS COMPILE opt mucross arm bin arm mucross linux gnueabi eabi modules Only selects the modules for compiling You have to copy the build modules to your root file system e make ARCH arm CROSS COMPILE opt mucross arm bin arm mucross linux gnueabi ulmage A kernel adapted for u boot of the current configuration Important To start compiling first you have to copy the defconfig from arch arm configs tonga defconfig to config 6 5 4 Installing the Linux Kernel After compiling the Linux kernel it must be installed onto the target system Therefore we use our u boot First copy the ulmage into your TFTP folder Press RESET on the base board The following commands are re entered via a serial terminal 115200 8 no 1 no Flow Install Kernel gt tftp ulmage nand erase kernel nand write fileaddr kernel Glyn GmbH amp Co KG TMPA900 CPU Board Manual V1 7 Seite 68 von 89 GLIN High Tech Distribution 6 6 Linux File System The following chapter is a short introduction to Linux for users who are using this operating system for the first time There is a large amount of literature on this subject one can fall back on LINUX systems use a unified file system Oth
58. in dev home media proc sys usr boot etc lib mnt sbin tmp var Ibin contains user programs that are essential to the system This includes system shells the command line processor of the system as well as standard tools like Is list directory content cp copy files mv move files rm delete remove files lboot contains the LINUX kernel and boot loader Idev device driver letc contains the LINUX system configuration files lhome contains the LINUX system user home directories Nib directory contains the LINUX system library files Imedia Mounting point for temporary media Imnt optional represents the LINUX system generic mount point lproc represents another special drawer of a LINUX system Typical files and directories within this drawer are dynamically created by the kernel and its device drivers These files are used to communicate internal system information Isbin is the system administrator s equivalent to the bin drawer for normal users Programs found at sbin are used for system administration Isys mounting point for temporary media tmp directory contains temporary files of the current system usr contains the user binaries programs of the LINUX System Ivar variable Data contains living system data like LINUX System log files var log messages or printer spooler data Glyn GmbH amp Co KG TMPA900 CPU Board Manual V1 7 Seite 70 von 89 GLIN High Tech Distribution It makes se
59. l PIN Input Output Function Remarks SPOD 48 Input Data input pin for SSPO Port T3 SPODO 50 Output Data output pin for SSPO Port T2 SPOCLK 54 Input Output Clock pin for SSPO Port T1 SPOFSS 56 Input Output FSS pin for SSPO Port TO SPI SSP Channel 1 Signal PIN Input Output Function Remarks SP1DI 96 Input Data input pin for SSP1 Port L3 SP1DO 98 Output Data output pin for SSP1 Port L2 SP1CLK 100 Input Output Clock pin for SSP1 Port L1 SP1FSS 102 Input Output FSS pin for SSP1 Port LO Glyn GmbH amp Co KG TMPA900 CPU Board Manual V1 7 Seite 25 von 89 GLIN High Tech Distribution 3 13 I2S Inter IC Sound The TMPA900CM contains a serial input output circuit compliant with the 12S format By connecting an external audio LSI such as an AD converter or DA converter the I2S interface can support the implementation of a digital audio system Features Channel 0 Channel 1 Transmit Receive Receive only Transmit only Modes Receive master mode Transmit master mode Receive slave mode Transmit slave mode Full duplex master mode Full duplex slave mode Clock through mode 1 12S format compliant 2 Stereo monaural 3 MSB first LSB first selectable 4 Left justified supported synchronous to WS no delay Data formats A A A A FIFO buffer 2 x 8 words 2 x 8 words Data le
60. ling a TF E 46 Glyn GmbH amp Co KG TMPA900 CPU Board Manual V1 7 Seite 2 von 89 GLIN High Tech Distribution 5 1 4 Basics Working completely under mus 46 SPAA TE 01010 EE 47 5 2 1 The Boot Process aaa a rrtt tttttnnnnn nrt tErEnnnn rnnr rtr erennn 48 5 2 2 Flashing Ree EE 49 5 2 2 1 Flashing the u boot over JTAG He 49 5 2 2 2 Update the u boot via network handle with care sssssse 50 5 2 2 3 U boot Environment Setup ec eceLeeeeeeeeee esce eese aaa aes a nasa aae aaa 51 5 2 2 4 IP and MAC Address Setup n 51 5 2 2 5 Configuration of the Display Parameters iiiiiiiiiiiiiiiiis 52 5 2 2 6 Configuration of the File System Tvpe 52 5 2 2 7 Splash Screen Re e EE 52 5 2 2 8 Erase u boot Environment iioii ode isa bidod anna 53 5 2 2 9 u boot NES Server Setup E 54 Netgen DNE 54 5 2 2 11 What to do if the boot loader has been flashed incorrectly 56 5 3 Standard Application IAR Compiler 58 5 3 1 Debugging the Application IAR Compiler iiciiiiiiiiiiiiiiicciisiiieeerns 58 5 3 2 Make a Release for Flash IAR Compiler cceeeeeeeeeeeeeeeeeeeeeeeeneeeeeeeees 58 5 3 3 Flashing the Application No Linus 58 5 3 4 Getting Started with SEGGER Evaluation Software and IAR 59 6 0 Linux for TMPA900 CPU board EE 61 6 1 Major Components of a Linux System AA 62
61. lly ubi ubi commands version print monitor version Glyn GmbH amp Co KG TMPA900 CPU Board Manual V1 7 Seite 81 von 89 GLIN High Tech Distribution Appendix B Ordering Information Starterkit TMPA900 CPU BOARD Starter The baseboard of the starter kits comes in a format 100 x 160 mm so it can be inserted into standard cases Connection possibilities on the board are Ethernet USB device and host SD card SPI amp SD host and UART Another component of the starter kits is a QVGA display with touch screen 1xTMPA900 CPU board 1xGlyn graphic base board 1xSegger Jlink ARM Lite 1xQVGA TFT EDT with touch 1xEthernet cable 2xUSB cable 1xserial cable 1xpower supply Software partial eval versions CPU Board TMPA900 CPU BOARD Processor TMPA900CMXBG 200 MHz RAM 64 MB DDRRAM ROM 256 MB NAND Flash Power supply single 3 0V to 3 6V Size SO DIMM 144 Temp range 20 C 85 C 10 100Mbps Ethernet MAC PHY High speed USB 2 0 device 480Mbps Full speed USB host 2 0 12Mbps LCD controller Interfaces e g UART SD CARD DC PWM keypad digital audio I2S 4 5 wire touch screen Glyn GmbH amp Co KG TMPA900 CPU Board Manual V1 7 Seite 82 von 89 GLIN High Tech Distribution Appendix C KC Labs Public Git Server You can find the sources of our Linux package and the u boot on the KC Labs public GIT server http git labs kernelconcepts de gt git labs kernelconcepts de Git Windows Inte
62. m with graphic and video capability The board is designed for mounting on a SODIMM socket which is also available from us it is a SODIMM 144 pin socket used in the PC field Additionally it is also possible to dispense with the socket and solder the module for larger series sizes further information available System On Module Processor TMPA900CMXBG 200 MHz RAM 64 MB DDRRAM ROM 256 MB NAND Flash Power supply single 3 0V to 3 6V Size SO DIMM 144 Temp range 20 C 85 C Key Features 10 100Mbps Ethernet MAC PHY High speed USB 2 0 Device 480Mbps Full speed USB Host 2 0 12Mbps LCD controller CMOS camera interface Interfaces UART SD CARD DC PWM Keypad Digital Audio 12S 4 5 wire touch screen The TMPA900 CPU Board what comes with the Starterkit is pre programmed with the UBoot and a Splashscreen There is no Linux Kernel or other application programmed Glyn GmbH amp Co KG TMPA900 CPU Board Manual V1 7 Seite 5 von 89 High Tech Distribution 2 2 Energy Consumption at 3 3V preliminary values ohne Ethernet Initialisierung nicht mit ethernet vollst ndig f Fc 200Mhz l mA P mW l mA P mW 2 3 Block Diagram DDR RAM Ethernet MAC PHY TMPA300CMXBG 64 MByte NAND Flash 256 MByte 144 PIN Connector SO DIMM Glyn GmbH amp Co KG TMPA900 CPU Board Manual V1 7 Seite 6 von 89 High Tech Distribution 2 4 TMPA900 CPU Board Reference Circuit
63. n copper 0 6mm space between copper 0 2mm Pads are intentionally made larger than the slot allows and will be cut by the PCB manufacturer during milling to prevent large gaps Additional PADS on both sides are needed to get a controlled continuous solder flow The radius for the milling tool of the slot is to be optimized Two subsequent millings are recommended one with 1 2mm and one with 0 8mm to get an accurate fit of the board without play These are recommendations only and must be optimized for individual solder stations Glyn GmbH amp Co KG TMPA900 CPU Board Manual V1 7 Seite 79 von 89 GLIN High Tech Distribution Appendix A Available u boot Commands alias for help base print or set address offset boot boot default i e run bootcmd bootd boot default i e run bootcmd bootm boot application image from memory bootp boot image via network using BOOTP TFTP protocol chpart change active partition cmp memory compare coninfo print console devices and information CH memory copy crc32 checksum calculation dhcp boot image via network using DHCP TFTP protocol dynpart dynpart dynamically calculate partition table based on BBT echo echo args to console editenv edit environment variable exit exit script false do nothing unsuccessfully fsinfo print information about filesystems fsload load binary file from a filesystem image go start application at addres
64. n t do ECC It is also guaranteed that a minimum of 2008 blocks out of the total 2048 are good This means up to 40 blocks 5 1MBytes can be dead More about bad block handling in chapter 5 0 u boot Glyn GmbH amp Co KG TMPA900 CPU Board Manual V1 7 Seite 15 von 89 GLIN High Tech Distribution 3 3 TMPA900CMXBG Block Diagram with Multilayer AHB The TMP900CM uses a multilayer AHB bus system with 7 layers Data Cache Instruction Cache 16Kbyte ARM926EJ S 16Kbyte Bus Master1 amp 2 Bus Interface CPU Inst A CPU Data LCD ica DMA1 DMA Controller Controller dumme Bus Master5 amp 6 Bus Master3 E E USB USB Device 2 0 LCD Data Process LCDDA Controller Bus Master7 Accelerator Bus Master4 AID converter 8ch Touch Screen I F CPU Data Interrupt Controller 12S VF 2ch NANDF Controller 2ch 16Timer PWM 6ch Power Management 12C I F 2ch UART 3ch RTC Melody Watch Dog Timer System Controller APB Bridge ti SD Host Controller Multi Layer Bus Matrix1 1ch OFD Serial Port PLL Clock Gear 2ch General purpose UO Key board matrix External Interruption DMA2 CPU Inst Multi Layer Bus MatrixO S Bus Matrix3 j Bus Matrix2 Internal RAMO Boot ROM Memory Memory 16KB 16KB Controller Controller NORF NORF Internal RAM2 Internal RAM1 x Ed T 8KB Remap 8K
65. n the TMPA900 CPU board This supports 10 100 MBit data communication The Fifo Select connection Pin13 is connected to address A12 of the TMPA900 A 3300hm series resistor has already been integrated for the network LEDs Furthermore the TXP TXN RXP and RXN are connected by a 490Ohm pull up resistor A MAC address has not been set the firmware takes care of the assignment Signal PIN Input Output Function Remarks LED1 6 Output LED1 LED2 8 Output LED2 CT 10 Output AVDD Output to Ethernet Magnetics RXP 14 Input Receive Positive RXN 16 Input Receive Negative TXP 18 Output Transmit Positive TXN 20 Output Transmit Negative Connection Example RJ45 Female Connector on TMPA900 CPU Board 220nF E VDD3V3O Glyn GmbH amp Co KG TMPA900 CPU Board Manual V1 7 Seite 20 von 89 GLIN High Tech Distribution 3 8 UARTS The TMPA900 CPU Board contains three UART channels The feature of each channel is shown below UART 0 UART 1 UART 2 Transmit FIFO 8 bit width 16 location deep Receive FIFO 12 bit width 16location deep Transmit Receive data format DATA bits 5 6 7 8bits can be selected PARITY use no use STOP bit 1bit 2bits FIFO ON OFF ON FIFO mode OFF characters mode Interrupt 1 Combined interrupt factors are output to interrupt controller baud rate generator 2 The permission of each interrupt factor is pro
66. ngth 16 bits only 16 bits only Interrupts FIFO overflow interrupt FIFO overflow interrupt FIFO underflow interrupt FIFO underflow interrupt 12S Channel 0 Signal PIN Input Output Function Remarks 12S0MCLK 96 Output 12S0 master clock output for receive circuit Port L3 I2SODATI Input I2S0 receive serial data input Port_L2 98 I2SOCLK 100 Input Output I2S0 serial clock Input output Port_L1 I2SOWS 102 Input Output I2S0 word select Input output Port LO I2S Channel 1 Signal PIN Input Output Function Remarks I281MCLK 86 Output 12S1 master clock output for receive circuit Port M3 I282DATO 88 Output I281 transmission serial data output Port M2 I2S3CLK 90 Input Output 1281 serial clock Input output Port M1 I2S4WS 92 Input Output 12S1 word select Input output Port MO Glyn GmbH amp Co KG TMPA900 CPU Board Manual V1 7 Seite 26 von 89 GLIN High Tech Distribution 3 14 PWM Pulse Width Modulation 16bit Timers The TMPA900 CPU board contains six cannels of 16 bit timers Two of them timer O and timer 2 support PWM Pulse Width Modulation output 1 Free running mode 2 Periodic timer mode 3 PWM function support The circuit consists of three blocks each associated with two channels Of the three blocks block 1 and block 2 support PWM Pulse Width Modulation output Block 1 Block 2 Block 3 TimerO Timer1 Timer2 Timer3 Time
67. nse to keep the root directory as small as possible However in general the principle is that application programs should not put directories in the root directory but should revert to the given file structure 6 7 Linux Hello World Example This section shows how to compile download and run a simple Hello World Linux application on the TMPA900 CPU Board First open an editor and write the following small program include lt stdio h gt int main int argc char argv printf Hello World n return 0 Now that you have created a C source file the human readable source for your program it needs to be compiled i e turned into machine language that your CPU can actually use There are two basic ways you can do that use gcc or cc which is usually the same thing or make First we want compile this for your Host PC means compiling for x86 gcc O2 Wall o hello host hello c Now look in the folder with Is l gt rwxr xr x 1 user user 7149 2010 08 16 16 32 hello host With the command file we can see what kind of file hello host is You see it is an executable one file hello host hello host ELF 32 bit LSB executable Intel 80386 version 1 SYSV dynamically linked uses shared libs for GNU Linux 2 6 15 not stripped file is a standard program for determining the type of data contained in a computer file Now let s start the program Jhello host Glyn GmbH amp Co KG
68. ntil flash process has finished There is also a small script goen flash image to make one big image out of the components u boot splashscreen kernel and root filesystem Run this script under Linux in a terminal in the following way Joen flash image u boot kernel splash lt rootfs gt output Glyn GmbH amp Co KG TMPA900 CPU Board Manual V1 7 Seite 45 von 89 GLIN High Tech Distribution Example Joen flash image u boot nand tonga2 bin ulmage splash bin rootfs jffs2 output bin The result is one big output bin file Now you can program the complete software in one step You find it with a demo on the CD Eldioupdate_v1 00 bigimage 5 1 2 Basics Installing J Link Lite The first software is a MS Windows software so it runs only under windows Before you plug your J Link Lite into your computer s USB port you have to extract the setup tool Setup_JLinkARM_V lt VersionNumber gt zip You will find it on the CD in the folder Segger_JLINK_Lite The setup wizard will install the software and documentation pack that also includes the certified JLink USB driver Start the setup by double clicking Setup_JLinkARM_V lt Version Number gt exe The license agreement dialog box will open Accept the terms with the Yes button After installing the software connect the Jlink on your host to an USB port and on the dedicated JTAG connector on the Glyn graphic base board 5 1 3 Basics Inst
69. ode fastest baud rate in master mode 89 91 kHz andn357 14 kHz respectively at fPCLK 100 MHz Supports the addressing format of 7 bits only e Supports transfer data sizes of 1 to 8 bits e Provides one transfer transmission or reception complete interrupt level sensitive e Can enable or disable interrupts Interrupt source for DC ch0 INTS 6 Interrupt source for I2C ch1 INTS 7 I2C Channel 0 Normally used for USB host Signal PIN Input Output Function Remarks I2COCL 7 Input Output I2C clock I O USB_OC I2CODA 9 Input Output I2C data I O USB_PON I2C Channel 1 Signal PIN Input Output Function Remarks I2C1CL 60 Input Output I2C clock I O Port_F6 I2C1DA 58 Input Output I2C data I O Port_F7 Glyn GmbH amp Co KG TMPA900 CPU Board Manual V1 7 Seite 24 von 89 GLIN High Tech Distribution 3 12 SPI SSP Features Contains two channels chO and ch1 Communication protocol includes SPI 3 types Master slave mode support Transmit FIFOs 16 bit wide 8 locations deep Receive FIFOs 16 bit wide 8 locations deep Transmit Receive data size 4 to 16 bits Interrupt type o Transmits interrupt o Receives interrupt o Receives overrun interrupt o Timeout interrupt Baud rate master mode fPCLK 2 Max 20 Mbps Slave mode fPCLK 12 Max 8 33 Mbps DMA Support Internal loop back test mode available SPI SSP Channel 0 Signa
70. oftware GTK is a highly usable feature rich toolkit for Homepage gives information downloads GUI creating graphical user interfaces which boasts for GTK www gtk org cross platform compatibility and an easy to use API Software LINUX DEVICE DRIVERS by Book about writing device drivers for the Linux Author Jonathan Corbet Alessandro Rubini and Linux system Third Edition Februar 2005 Greg Kroah Hartman ISBN 978 0 596 00590 0 636 Seiten http labs kernelconcepts de Bookshelf Software Pro GIT Book with information about GIT Server Management Author Scott Chacon http progit org http labs kernelconcepts de Bookshelf Software LXR formerly the Linux Cross Referencer is a Homepage with Linux Cross Reference Linux software toolset for indexing and presenting http Ixr linux no trees source code repositories Linux Linux Kompendium Online Source http de wikibooks org wiki Linux Kompendium Linux Linux Kompendium Ubuntu Arbeiten mit dem Online Source Terminal http de wikibooks org wiki Linux Kompendium Ubuntu Terminal Linux Running Linux under VMware Author Bill Online Source Giannikos http www linwik com wiki running linux under vmware workstation Glyn GmbH amp Co KG TMPA900 CPU Board Manual V1 7 Seite 87 von 89 GLIN High Tech Distribution Appendix E CD file directory tree GLYN BASE BOARD CD EMC C Example EMC IAR E E TMPASDDBOARD FRAKTAL DEMO H E TMPASOOBOAR
71. oshiba Training u boot tmpa9xx If necessary git reset hard Glyn GmbH amp Co KG TMPA900 CPU Board Manual V1 7 Seite 84 von 89 GLIN High Tech Distribution Snapshots The major difference between Git and any other VCS subversion and friends included is the way Git thinks about its data Conceptually most other systems store information as a list of file based changes Git doesn t think of or store its data in this way Instead Git thinks of its data more like a set of snapshots of a mini file system Every time a new project state u boot Kernel is stored it basically takes a picture of what all the files look like at that moment To be efficient if files have not changed Git doesn t store the file again just a link to the previous identical file it has already stored So you can also download a snapshot for this you don t have to install GIT But without GIT you have to download the whole project again every time something changes First click on summary Linux for Toshiba TMPAS9xx Git User 2 days ago u boot tmpa9xx git U Boot port to Toshiba TMPA9xx SoC Git User 3 hours ago Ti m If you now click on snapshot you can download the snapshot as a tar archive description Linux for Toshiba TMPA9xx platforms TOPAS910 TOPASA900 Tonga owner Git User last change Mon 23 Aug 2010 14 55 57 0000 shortlog 3daysago Thomas Haase Add LCDDA resource master 7 days ago Thomas Haase
72. ot used and the matching kernel In the current version August 2010 these sizes are dynamic see u boot command dynpart Glyn GmbH amp Co KG TMPA900 CPU Board Manual V1 7 Seite 63 von 89 GLIN High Tech Distribution 6 4 Installation Linux Tool chain TMPA900 CPU board The cross tool chain is shipped as a compressed Unix tar archive and is suitable as is for the most current Linux x86 32 bit hosts Tested host distributions include recent Debian and Ubuntu releases Unpack the archive to the root directory of the host work station Alternatively a virtual machine such as VMware or VirtualBox with a Linux installation can be used Youcan find the current tool chain at http www mucross com downloads tonga linux mucross 1 0 1686 linux armv5te linux gnueabi toolchain gtk qt4 tar bz2 The SDK files can be found in the directory opt mucross lt arch gt 6 5 Linux Kernel Build First there is a ready to use kernel on the CD Ulmage But sometimes you have to rebuild the kernel according to your needs The main reason is to optimise the kernel to your environment hardware and usage patterns E g I2C1 and UART2 have the same port pins for this you have to choose what peripheral you want to use First you have to download the kernel source http git labs kernelconcepts de p topas git a summa 6 5 1 Linux Kernel Source Tree The Linux kernel source code is organized as a tree The following list sh
73. ows the root of our kernel tree as with version 2 6 x I gitignore mailmap COPYING CREDITS Documentation Kbuild MAINTAINERS Makefile README README kc REPORTING BUGS arch block crypto drivers firmware fs include init ipc kernel lib mm net samples scripts security sound tools usr virt Glyn GmbH amp Co KG TMPA900 CPU Board Manual V1 7 Seite 64 von 89 GLIN High Tech Distribution Below you will find a description of some important folders larch The arch drawer contains the support for the different platforms supported by Linux Any source file having a platform dependency can be found here Especially for our board you find the tonga c ARM architecture in the mach tmpa910 folder for our board Idrivers The drivers directory host the device drivers of the Linux kernel The various subfolders are sorted according to the different device categories When writing a new device driver start here by copying a working one that is similar to the function of your new driver E g In this folder you can find the video folder with the frame buffer driver for our board gt drivers video tmpa910 fb c Ifs This drawer includes all the file system related functionality of the Linux kernel It contains the core functions and the specific support files for the different file systems linclude This is the header file drawer of Linux All header files needed for kernel compilation can be found here A special case is the
74. p Co KG TMPA900 CPU Board Manual V1 7 Seite 57 von 89 GLIN High Tech Distribution Afterwards the flash has to be programmed To do this switch to the terminal program and enter the following commands nand erase 0x0 0x60000 nand write 0x40600000 0x0 0x60000 5 3 Standard Application IAR Compiler In order to recompile the projects you need the IAR embedded workbench You will find a trial version on the web at www IAR com 5 3 1 Debugging the Application IAR Compiler An IAR project for direct use without an operating system can be found on the CD which is included in the delivery The Segger J Link lite has to be connected to the TMPA900 CPU module to debug The work space is set to DDR Debug for debugging The program s normal functions can now be tested 5 3 2 Make a Release for Flash IAR Compiler Stop the current debugging session in the IAR embedded workbench Select the release NAND configuration and rebuild the sample application You will find a release file in the project folder NAND_Release Exe 5 3 3 Flashing the Application No Linux There is a download tool by Segger on the CD in the folder Segger Download tool or you can find the current version on the Segger homepage www segger com This tool set restores your GLYN graphic base board with the TMPA900 CPU module to a defined state It restores u boot to loading after start up and downloads an application to be run by u boot after a short start
75. r Supply 143 144 GND Ground The module s power supply must run through pins VIN 136 138 140 142 GND 133 134 143 144 in order to ensure good disturbance reaction results It is recommended to filter and buffer the power supply Signal currents of external appliances may be connected via the module s GND connections e g in order to facilitate the layout In order to avoid failures however higher currents and current peaks are not permissible Glyn GmbH amp Co KG TMPA900 CPU Board Manual V1 7 Seite 43 von 89 GLIN High Tech Distribution 5 0 Software Components 5 1 Basics Data Transfer to TMPA900 CPU Board There are three methods for the data transfer available ELDIO Download Wizard Programming Software over USB Device with a small Windows program This method works only if the memory Flash is empty first time programming or cleared before JTAG Joint Test Action Group This method works even if the memory Flash is empty first time programming Network Using an appropriate network boot ROM or a boot loader it is also possible to download your application over a network using for example TFTP FTP or NFS The target will download the data from a server residing on the host and then executed During the development phase this method allows you to quickly test your application without having to burn the flash We use the free boot manager u boot and a TFTP server for uplo
76. r4 Timer5 Free Running e e e e e e Periodic Timer e e e e e e PWM e N A e N A N A PWMOOUT x PWM2OUT x x x Port_C3 Port_C4 Interrupt INTS 2 INTS 3 INTS 4 Source Signal Signal PIN Input Output Function Remarks PWMOOUT 108 Output Timer 0 PWM output port Port_C3 PWM20UT 106 Output Timer 2 PWM output port Port_C4 Each timer block containing two channels of timer circuits comprises two programmable 16 bit free running decrement counters The TIMCLK input is used for counter operation This clock can be selected from the internal system clock divided by two fPCLK 2 and fs 32 768 kHz Glyn GmbH amp Co KG TMPA900 CPU Board Manual V1 7 Seite 27 von 89 GLIN High Tech Distribution Figure diagram of the timer block Timer 0 and Timer 1 fpcik 2 CLKCR5 register TIMCLK TIMCLK Divide by 16 Timer interrupt Address Decoder Read data generation 3 15 JTAG Timer1 interrupt TIMCLK Divide by 16 Divide by 16 Timer 0 Timer 0 Timer 0 Timer 0 Load Compare 16 bit down counter J di Interrupt Timer 0 Generation Timer 1 Timer 1 Timer 1 Control Load U I 16 bit down counter KE Interrupt Timer 1 Generation
77. rnelconcepts de port9418 Name or service not known Glyn GmbH amp Co KG TMPA900 CPU Board Manual V1 7 Seite 83 von 89 GLIN High Tech Distribution Accessing the GIT daemon You can clone the repositories in the following ways Kernel git clone git git labs kernelconcepts de topas git U Boot git clone git git labs kernelconcepts de u boot tmpa9xx git Updates from the GIT server Once you have downloaded clone boot loader and or kernel you can update your sources easily gt go into the source folder and type in git pull rmm rm christophalpctelinux 7Toshiba Training u boot tmpa9xx Datei Bearbeiten Ansicht Terminal Hilfe CHANGELOG L System map CHANGELOG before U Boot 1 1 5 MAINTAINERS config mk Makefile COPYING u boot lds CREDITS u boot map u boot nand tonga2 bin christoph lpctelinux Toshiba Training u boot tmpa9xx git pull remote Counting objects 27 done remote Compressing objects 100 15 15 done remote Total 15 delta 12 reused 0 delta 0 Unpacking objects 100 15 15 done From git git labs kernelconcepts de u boot tmpa9xx 078b2d6 d663128 master origin master Updating 078b2d6 d663128 Fast forward Makefile 12 board tmpa9xx config mk 8 H board tmpa9xx tmpa9xx c 2 drivers video tmpa9xx fb c 4 include configs tonga2 sd no eth h 8 5 files changed 26 insertions 8 deletions christoph lpctelinux T
78. rnet Explorer G E kernelconcepts de Datei Bearbeiten Ansicht Favoriten Extras A BE geh Seite Sicherheit Extras e i i Favoriten ait labs kernelconcepts de Git projects 777 git This the KC Labs public GIT server For more detailed information about the projects at KC Labs please take a look here You can clone the repositories in the following ways e Accessing the git daemon git clone git git labs kernelconcepts de some repository git Project Description Owner Last Change anjuta plugin sdk git Anjuta Plugin for OpenEmbedded SDK Git User 9 months ago psplash git psplash improved Git User 4 weeks ago tools git This repository contains tools Git User 3 days ago Shortiog mee Linux for Toshiba TMPAQxx Git User 2 days ago shortiog loa tee U Boot port to Toshiba TMPA9xx SoC Git User 3hoursago Sea log tree u boot topas git Old U Boot port to Toshiba Git User 6 months ago summary shortioa log tree TXT OPML Internet far Qo Installing Git on Linux If you want to install Git on Linux via a binary installer you can generally do it through the basic package management tool that comes with your distribution E g on a Debian based distribution like Ubuntu try apt get apt get install git core Important For the KC Labs public GIT server you have to open TCP port 9418 If the port is not open you will get an error message fatal unable to look up git ke
79. ry The complete reference circuitry can be found on the CD Glyn GmbH amp Co KG TMPA900 CPU Board Manual V1 7 Seite 7 von 89 High Tech Distribution 2 5 Glyn s Graphic Base Board Glyn s Graphic Base Board is a platform in order to use the TMPA900 CPU board for a development At the same time it is also the reference design for including a TMPA900 CPU board The plans and BOM list can be found on the CD in the file Circuit Diagramm Should layout data be required this can also be provided against an NDA Features 144 PIN SODIMM connector Ethernet connector USB host connector USB device connector RS232 WM8983 Audio Codec by Wolfson SD card sockets SD Host controller and via SPI Glyn TFT concept connector f r 3 5 7 TFTs JTAG interface 100mm x 160mm Single power supply 5 35V X USB DEVICE USB HOST SD CARD SLOT Z 3 SD HOST E ETHERNET SD CARD SLOT d Teac D NE AERE Vs SPI Li 3 UART ILIN GRAPHIC IBASE BOARD Y j IE POWER 5 35V Audio TMPA900 CPU BOARD In amp Out All Pins for TFT Connection JTAG Glyn TFT Family Li Concept Connector 3 557 Glyn GmbH amp Co KG TMPA900 CPU Board Manual V1 7 Seite 8 von 89 High Tech Distribution 2 5 1 Glyn s Graphic Base Board Connectors na ALIE LIH b di CN300 Port A lOs Key In Port B lOs Key Out PORT A3 16 gu 15 CN301 Port G lOs SD Host CN302 CN303
80. s addr help print command description usage iminfo print header information for application image imxtract extract a part of a multi image itest return true false on integer compare loadb load binary file over serial line kermit mode loads load S Record file over serial line loady load binary file over serial line ymodem mode loop infinite loop on address range Is list files in a directory default md memory display Glyn GmbH amp Co KG TMPA900 CPU Board Manual V1 7 Seite 80 von 89 GLIN High Tech Distribution mdc memory display cyclic mm memory modify auto incrementing address mtdparts define flash nand partitions mtest simple RAM read write test mw memory write fill mwc memory write cyclic nand NAND sub system nboot boot from NAND device nfs boot image via network using NFS protocol nm memory modify constant address printenv print environment variables rarpboot boot image via network using RARP TFTP protocol reset Perform RESET of the CPU run run commands in an environment variable saveenv save environment variables to persistent storage saves save S Record file over serial line setenv set environment variables showvar print local hushshell variables sleep delay execution for some time source run script from memory test minimal test like bin sh tftpboot boot image via network using TFTP protocol true do nothing successfu
81. ss Size e nand read Source Address Size e nand erase lt Start Address gt Size Glyn GmbH amp Co KG TMPA900 CPU Board Manual V1 7 Seite 48 von 89 GLIN High Tech Distribution 5 2 2 Flashing the u boot There are two ways to flash the u boot on the board 5 2 2 1 Flashing the u boot over JTAG This method works even if the memory flash is empty For this check also chapter 5 2 2 9 What to do if the boot loader has been flashed incorrectly In order to flash the precompiled version of the boot manager on the board you have to use the J Link Lite with the u boot RAM version u boot bin To make sure that the J Link works you have to run the installation software from the Segger folder This allows all required drivers as well as the J Link commander to be installed on the PC Now connect the J Link to the GLYN BASE BOARD and your host PC Run the program Terraterm with the setting 115200 8 no 1 no flow alternatively Hypertherm The boot manager is constantly updated So you please download the current version from our web page www toshiba mikrocontroller de J Link Commander o x SEGGER J Link Commander V4 82b for help Compiled Feb 16 20809 17 14 45 DLL version U4 compiled Feb 16 2869 17 14 Firmware J Link ARM U6 compiled Jun 38 2889 11 vos 44 Hardware Up Du S N 568 UTarget 3 288U Info TotallRLen 4 IRPrint x 1 GP15 8 8 8x41869265 ARM Architecure 5
82. t I2COCL I2C clock I O Output USBPON Power On Enable for USB Host 10 CT Ether 11 12 GND Ground 13 USB HDP USB Host pin D 14 RXP Ethernet 15 USB HDM USB Host pin D 16 RXN Ethernet 17 USB DDP USB Device pin D 18 TXP Ethernet 19 USB DDM USB Device pin D 20 TXN Ethernet 21 22 GND Ground 23 Port A3 Input PA3 Input port Key input KI3 Pin for key on wake up with Schmitt input and pull up resistor 24 Port N7 Input Output PN7 I O port Output UORTSn Output modem control line RTD Request To Send Input INTG Interrupt request pin G an interrupt request pin that can program the rising falling edge 25 Port A2 Input Port A2 Input port Key input KI2 Pin for key on wake up with Schmitt input and pull up resistor 26 Port N6 Input Output PNG UO port Output UODTRn Output modem control line DTR Data Terminal Ready Input INTF Interrupt request pin F an interrupt request pin that can program the rising falling edge 27 Port A1 Input Port A1 Input port Key input KI1 Pin for key on wake up with Schmitt input and pull up resistor 28 Port N5 Input Output PNB I O port Input UORIn Modem status signal RI Ring Indicator Input INTE Interrupt request pin E an interrupt request pin that can program the rising falling edge 29 Port A0 Input Port AO Input port Key input KIO Pin for key on wake up with Schmitt input and pull up resistor 30 Port N4 Input Output PNA I O port Input UODSRIn Modem status signal DSR Data Set Rea
83. table as below mtdparts mtdparts tmpa9x0 nand 0x00060000 u boot 0x00020000 u boot env 0x00300000 splash 0x00300000 kernel 0xO0f980000 rootfs nand env oob set u boot env This command stores the position of the environment partition in the out of band OOB bytes of the first page which is always fine Why do we do this The u boot environment is traditionally stored at a fixed location within the NAND flash This is not acceptable since it could be a factory set bad block The solution is to put the in flash address of the environment into the out of band OOB area of the first block the one which is guaranteed to be good Glyn GmbH amp Co KG TMPA900 CPU Board Manual V1 7 Seite 55 von 89 GLIN High Tech Distribution 5 2 2 11 What to do if the boot loader has been flashed incorrectly By setting the magic word booting is initiated in the first sector of the NAND flash and the internal boot loader is activated The set boot option prevents initialisation of the DDR RAM and therefore prevents the described flash process Should the u boot not start due to an incorrect update it is not possible to flash the application using the normal tool The update script in the u boot allows the initialisation of the DDR RAM and loading of the application in the RAM To do this please open the Segger J Link commander Copy the contents of the whole script by pressing STRG C and paste the contents by pressing STRG V
84. the external SRAM DDRRAM are connected to pin K12 on the TMPA900 The TMPA900 has two operating modes the external memory mode and the internal boot ROM mode which are specified by the external mode pins AMO and AM1 Pin AMO is set to high Pin AM1 is connected to the expansion connector and marked BOOT PIN132 AM1 HIGH BOOT start from internal Boot ROM AM1 LOW Start from external bus memory 16 bit Bus Due to the internal structure of NAND memories it is not possible to run a program directly from this memory In fact the user program code has to be copied from the NAND memory to the external RAM before starting the program Access to the NAND flash takes place in a multiplexed 8 Bit mode The process has not been disclosed in detail Should the customer require more information we can request personalised documentation at Toshiba This is free of charge Glyn GmbH amp Co KG TMPA900 CPU Board Manual V1 7 Seite 13 von 89 GLIN High Tech Distribution 3 2 1 Nand Flash Memory Unique Characteristics When it is erased all bits are set to 1 you will see Oxff on all bytes in a hexdump You can change as many bits as you want to 0 You cannot set a bit back to 1 by using a regular write You have to erase a whole erase block to do so The number of erase cycles per block is limited Once you have reached the limit some bits will not get back to Oxff In the case of the in Samsung Flash K9F2G08 this is 100 000 gu
85. und 85 L D23 Output PK7 Output ports Output LD23 Data bus for LCD driver Output CMSD7 Data bus for CMOS Sensor 86 Port M3 Input Output PMS I O port Output I281MCLK I2S1 master clock output for transmission circuit 87 L D22 Output PK6 Output ports Output LD22 Data bus for LCD driver Output CMSDS6 Data bus for CMOS Sensor 88 Port M2 Input Output PM2 I O port Output I281DATO I281 transmission serial data output 89 L D21 Output PK5 Output ports Output LD21 Data bus for LCD driver Output CMSD5 Data bus for CMOS Sensor 90 Port M1 Input Output PM1 I O port Input Output I2S1CLK 12S1 serial clock input output 91 L_D20 Output PK4 Output ports Output LD20 Data bus for LCD driver Output CMSD4A Data bus for CMOS Sensor 92 Port MO Input Output PMO I O port Input Output I281WS I281 word select input output 93 94 GND Ground Glyn GmbH amp Co KG TMPA900 CPU Board Manual V1 7 Seite 41 von 89 GLIN High Tech Distribution PINOUT 4 5 Numper of Pin Name Input Output Function Remarks Pin 95 L_D19 Output PK3 Output ports Output LD19 Data bus for LCD driver Output CMSD3 Data bus for CMOS Sensor 96 Port L3 Input Output PL3 I O port Output I280MCLK 12S0 master clock output for receive circuit Output SP1DI Data input pin for SSP1 97 L D18 Output PK2 Output ports Output LD18 Data bus for LCD driver Output CMSD2 Data bus for CMOS Sensor 98 Port
86. v bootcmd your kernel will come from your host system tftp Server When using both your whole system except u boot will be provided by your host system 5 2 2 10 More u boot commands By the first start of the u boot the command PREBOOT is put and appeals setup Set up looks whether mtdparts is put and then explains the following commands nand bad dynpart nand env oob set u boot_env setenv preeboot setenv setup saveenv Glyn GmbH amp Co KG TMPA900 CPU Board Manual V1 7 Seite 54 von 89 GLIN High Tech Distribution This is done automatically when u boot starts the first time Explanaition of the commands gt nand bad The answer in the terminal could look like this Device 0 bad blocks 04380000 0d940000 The u boot command nand bad lists the offsets of the bad blocks More about bad blocks in chapter 3 2 1 Nand Flash Memory Unique Characteristics gt dynpart There is a new dynpart command which when executed uses the compile time board partition sizes combined with the bad block table to generate the device specific dynamic partition table Among other things this table contains a partition with the name u boot_env This is the partition where the environment is saved The result is stored in the mtdparts environment variable Everything else is standard u boot kernel behaviour If you now look in the environment printenv you will find the new device specific dynamic partition
87. ystem is a successor to JFFS2 Setting for UBIFS format gt setenv rootfs base setenv rootfs rootfs_ubifs gt saveenv Setting for JFFS2 format Default setenv rootfs_base setenv rootfs rootts_jffs2 gt saveenv 5 2 2 7 Splash Screen Support A splash screen is an image that appears after a very short time to notify the user that the program is processing while the system is loading the kernel etc The u boot for the TMPA9XX boards is also capable of doing splash screen before booting the Linux kernel There are some limitations given There is only support for TFT panels at the moment Glyn GmbH amp Co KG TMPA900 CPU Board Manual V1 7 Seite 52 von 89 GLIN High Tech Distribution The splash screen has to be exactly the size and the bits per pixel as the display The only format supported is BMP or compressed BMP with gzip The splash screen has to be A8R8G8B8 in the case of 24bit TFTs The splash screen has to be R5G6B5 in the case of 16bit TFTs Both formats can be easily generated with gimp when saving BMP open up Advance d Options and select Format If you would like to use the splash you have to use the pre boot environment variable Example gt tftp splash bmp nand write fileaddr splash setenv preboot nand read 0x43000000 splash bmp display 0x43000000 gt saveenv Erase splash screen gt nand erase splash TMPA900 CPU BOARD GLIN SPLASH SCREEN SUPPORT
Download Pdf Manuals
Related Search
Related Contents
Kurzanleitung 1 Series USER MANUAL C. Engine - V Massive Kico Suspension light 40281/34/10 Afosc @1.82 m Copernico Telescope, Ekar User Manual Emprex M955C User's Manual Invacare® S385 Butterfly Valves Electric Actuated Type S SVR-632U User Manual Copyright © All rights reserved.
Failed to retrieve file