SAM7-EX256:FreeRTOS Eclipse

En construcción

=Toolchain para Ubuntu Linux 12.04=

sudo add-apt-repository ppa:webupd8team/java

sudo apt-get update

sudo apt-get install oracle-java7-installer

Eclipse IDE

sudo apt-get install eclipse-platform

Install JDT for Java Development

sudo apt-get install eclipse-jdt

Install CDT for C/C++ Development

Eclipse IDE for C/C++ developments then install CDT (C/C++ development tools) packages for Eclipse -

sudo apt-get install eclipse-cdt

if crashes sudo update-alternatives --config java

Go and update Eclipse It will provide improvents for interface an some stufs

FALTA CONFIGURAR EL OPENOCD

telnet_port 4445 gdb_port 3333
 * 1) Olimex SAM7-EX256 has a single Atmel at91sam7ex256 on it.

interface ft2232 ft2232_layout olimex-jtag ft2232_vid_pid 0x15ba 0x0003 jtag_khz 15000

jtag_nsrst_delay 200 jtag_ntrst_delay 200

reset_config srst_only srst_pulls_trst
 * 1) use combined on interfaces or targets that can't set TRST/SRST separately

if { [info exists CHIPNAME] } { set _CHIPNAME $CHIPNAME } else { set _CHIPNAME sam7x256 }

if { [info exists ENDIAN] } { set _ENDIAN $ENDIAN } else { set _ENDIAN little }

if { [info exists CPUTAPID ] } { set _CPUTAPID $CPUTAPID } else { set _CPUTAPID 0x3f0f0f0f }

jtag newtap $_CHIPNAME cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_CPUTAPID

set _TARGETNAME $_CHIPNAME.cpu target create $_TARGETNAME arm7tdmi -endian $_ENDIAN -chain-position $_TARGETNAME -variant arm7tdmi

$_TARGETNAME configure -event reset-init { # disable watchdog mww 0xfffffd44 0x00008000 # enable user reset mww 0xfffffd08 0xa5000001 # CKGR_MOR : enable the main oscillator mww 0xfffffc20 0x00000601 sleep 10 # CKGR_PLLR: 96.1097 MHz mww 0xfffffc2c 0x00481c0e sleep 10 # PMC_MCKR : MCK = PLL / 2 ~= 48 MHz mww 0xfffffc30 0x00000007 sleep 10 # MC_FMR: flash mode (FWS=1,FMCN=60) mww 0xffffff60 0x003c0100 sleep 100 }

$_TARGETNAME configure -work-area-phys 0x00200000 -work-area-size 0x4000 -work-area-backup 0

set _FLASHNAME $_CHIPNAME.flash flash bank $_FLASHNAME at91sam7 0 0 0 0 $_TARGETNAME 0 0 0 0 0 0 0 18432
 * 1) flash bank     [     ]


 * 1) For more information about the configuration files, take a look at:
 * 2) openocd.texi

= CONFIGURACIÓN TELNET = $ sudo apt-get install telnetd Restart inetd service:

$ sudo /etc/init.d/openbsd-inetd restart for debian


 * 1) /etc/init.d/inetd restart

now yo  shoud  connect to telnet  server  from any  other  computer machine  (windows -linux-unix- Mac)

$telnet   IP telnet server or Telnet

$ telnet  hostname  telnet server

=Ejemplos de uso=