OLIMEX SAM9-L9261 User Manual Download Page 9

setup the pin correspondingly as an output with initial high value, output 
with initial low value, output or input. Example:

echo high > /sys/class/gpio/gpio39/direction
echo in > /sys/class/gpio/gpio40/direction

Outputs can be controlled by writing to the value file like this:

echo 0 > /sys/class/gpio/gpio39/value
echo 1 > /sys/class/gpio/gpio39/value

Pin sense value can be read regardless of its direction by reading the value 
file:

cat /sys/class/gpio/gpio39/value
cat /sys/class/gpio/gpio40/value

Of course user is free to write a C program to access these files instead of 
using the shell examples above.

JTAG PORT

The JTAG connector allows a debugger to talk via a JTAG (Joint Test Action 
Group) port directly to the core. Instructions may be inserted and executed 
by the core thus allowing  SAM9261  memory to be programmed with code 
and executed step by step by the host software.
For   more   details   refer   to   IEEE   Standard   1149.1   -   1990   Standard   Test 
Access Port and Boundary Scan Architecture and SAM9261 datasheet.

Pin #

Signal Name

Pin #

Signal Name

1

VCC

2

VCC

3

ICE_NTRST

4

GND

5

TDI

6

GND

7

TMS

8

GND

9

TCK

10

GND

11

RTCK

12

GND

13

TDO

14

GND

15

ICE_NRST

16

GND

Downloaded from

Arrow.com.

Downloaded from

Arrow.com.

Downloaded from

Arrow.com.

Downloaded from

Arrow.com.

Downloaded from

Arrow.com.

Downloaded from

Arrow.com.

Downloaded from

Arrow.com.

Downloaded from

Arrow.com.

Downloaded from

Arrow.com.

Summary of Contents for SAM9-L9261

Page 1: ...SAM9 L9261 User Manual All boards produced by Olimex are ROHS compliant Rev C September 2009 Copyright c 2009 OLIMEX Ltd All rights reserved Downloaded from Arrow com ...

Page 2: ... and drivers SD MMC Dataflash card connector see notes in the manual AT73C213 stereo DAC with Linux ALSA drivers Ten GPIOs accessible from Linux user space applications Four user buttons accessible from Linux user space applications One reset button Three status LEDs RTC supported by Linux and with a battery backup option On board voltage regulator 3 3V with up to 800mA current Single power supply...

Page 3: ...SCHEMATIC Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com ...

Page 4: ...ww codesourcery com A convenience tarball is provided that contains the Codesourcery binaries along with some useful shell scripts This tarball must be extracted in user s home directory Example cd HOME tar xjf codesourcery toolchain 2009q1 repack tar bz2 The latter will create a directory HOME bin codesourcery armgcc 2009q1 along with some shell scripts that must be sourced before compilation sou...

Page 5: ...n into dataflash LINUX KERNEL The used kernel is a mainstream 2 6 30 slightly modified to include support for the SAM9 L9261 board As with the bootloaders the modifications were based on the source files for Atmel s AT91SAM9261EK board In order to compile the kernel its sources must be extracted first tar xjf linux 2 6 30 olimex tar bz2 Then setup the needed environment variables source HOME bin l...

Page 6: ... root filesystem can be built using http www angstrom distribution org The other option is to use a ready made binary distribution like Debian or some pre compiled Angstrom image The root filesystem used in SAM9 L9261 is a slightly modified version of the official Atmel Linux demo binary Additional software can easily be installed by the command ipkg provided that the board is connected to Interne...

Page 7: ...ncluding any data stored in the NAND partition TIP If restoration of the root filesystem in NAND is not required then its erasure can be spared Open sam9_l9261_demo_linux tcl and uncomment the last few lines concerning the writing of NAND Lines in TCL are commented if the first character on the line is The result should be like this lots of TCL code puts I Load the Kernel image send_file DataFlash...

Page 8: ... gpio EXT pin Notes 1 3 3V 2 GND PA7 gpio39 8 PA8 gpio40 9 PB4 gpio68 10 PB30 gpio94 11 PC4 gpio100 13 Not available when SD MMC is enabled PC5 gpio101 14 PC6 gpio102 15 PC7 gpio103 16 Not available when SD MMC is enabled PC12 gpio108 17 PC13 gpio109 18 19 5V 20 GND In order to setup a pin direction user must write the string high low out or in to the file sys class gpio gpio extX direction in ord...

Page 9: ...bove JTAG PORT The JTAG connector allows a debugger to talk via a JTAG Joint Test Action Group port directly to the core Instructions may be inserted and executed by the core thus allowing SAM9261 memory to be programmed with code and executed step by step by the host software For more details refer to IEEE Standard 1149 1 1990 Standard Test Access Port and Boundary Scan Architecture and SAM9261 d...

Page 10: ...epth for the frame buffer Fix that by forcing the video output driver to SDL export DISPLAY 0 0 in case we re on the ttyS0 console mplayer vo sdl myvideo avi USING THE SD MMC SLOT A few limitations arise when using the SD MMC slot 1 AT73C213 sound cannot work in Linux 2 ADS7843 touchscreen cannot work in Linux 3 Generic SPI cannot work in Linux 4 Before and during booting the jumper AT SD must be ...

Page 11: ...to nfs root Another option is to use DHCP U Boot setenv bootargs console ttyS0 115200 root dev nfs rw nfsroot 192 168 0 225 path to nfs root rsize 1024 wsize 1024 tcp ip dhcp TIP After creating a root filesystem using buildroot Angstrom or similar method it must be converted to a JFFS2 image for writing to the NAND flash Assuming that the target root directory is located in a directory sam9 rootfs...

Page 12: ...ot setenv bootcmd tftpboot bootm U Boot setenv bootfile uImage U Boot boot The above example assumes you board gets IP 192 168 0 239 your TFTP server has IP 192 168 0 225 and the kernel image filename is uImage CAVEAT The mainstream tslib package has a bug that prevents touchscreen utilities from operating on a 24bit framebuffer This is fixed in the provided root filesystem images In case you re b...

Page 13: ...forge net http www angstrom distribution org Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com ...

Page 14: ...08 REV B updated kernel and U Boot June 2009 REV C add a few more tips Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from A...

Page 15: ...provements All particulars of the product and its use contained in this document are given by OLIMEX in good faith However all warranties implied or expressed including but not limited to implied warranties of merchantability or fitness for purpose are excluded This document is intended only to assist the reader in the use of the product OLIMEX Ltd shall not be liable for any loss or damage arisin...

Reviews: