Atmel website | ARM Community | AVR freaks | Technical Support
Banner
 FAQ •  Search •  Register •  Login 

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: SAM-BA not working on AT91SAM9260-EK
PostPosted: Tue Apr 08, 2008 3:11 pm 
Offline

Joined: Tue Apr 08, 2008 2:49 pm
Posts: 4
Location: Pisa, Italy
Hi all,

I'm facing a problem using SAM-BA on an Atmel AT91SAM9260-EK board.

Maybe I messed up writing some wrong image in Dataflash or NAND.

Now my problem is: when trying to connect using SAM-BA, it always replies "No
valid processor ID found".

SETTINGS:

Board: Atmel AT91SAM9260-EK
SAM-BA version: 2.7
Jumper J2: closed
Jumper J3: closed
Jumper J6: closed
Jumper J7 (BMS): closed
Jumper J9: 2-3
Jumper J10: 2-3
Jumper J12: closed
Jumper J15: closed


I already tried to :

1. press the BP4 button together with the reset button before running SAM-BA, but it didn't work (I tried every combination!)

2. connect pin 11 and pin 35 of J24 and then running SAM-BA

3. flash the recovery image on an SD and then power-up the board

4. use SAM-BA with the USB cable (instead of the serial) using "\usb\ARM0" but it says "connection unknown"

Any help is very welcome.

Many thanks,

Claudio

P.S. If someone has a Lauterbach T32 script for this board, it would be really appreciated!


Top
 Profile  
 
 Post subject:
PostPosted: Wed Apr 30, 2008 2:40 am 
Offline

Joined: Sat Oct 07, 2006 12:06 am
Posts: 21
Open JP7
Power up the board
Press and hold BP4
Press reset while holding BP4
Then release
Plug in USB cable into PC - it should find Atmel .... something, then you should be able to use SAMBA


Top
 Profile  
 
 Post subject:
PostPosted: Wed Apr 30, 2008 9:31 am 
Offline

Joined: Tue Apr 08, 2008 2:49 pm
Posts: 4
Location: Pisa, Italy
Thank you. Indeed, the problem was with JP7 (BMS).

I attach the script for the Lauterbach Trace32 debugger for the AT91SAM9260-EK, because it may be useful for someone.

Code:
; Lauterbach script for AT91SAM9260-EK by Evidence Srl
; http://www.evidence.eu.com

local &linux
&linux="uImage"

local &filesystem
&filesystem="filesystem.jffs2"

local &uboot
&uboot="u-boot.bin"

local &bootstrap
&bootstrap="at91bootstrap_dataflash_at91sam9260ek.bin"

local &uInstallScript
&uInstallScript="uInstallScript"

winclear

screen.on


  winpos 77. 37. 93. 11. 2. 0.
  area

  winpos 0. 0. 70. 25. 2. 0.
  plist

  winpos 77. 0. 93. 31. 2. 0.
  pedit


screen.always

term.method com /dev/ttyS0 115200. 8. NONE 1STOP
  term.mode VT100
term.scroll on
winpos 0. 31. 70. 17. 2. 0
term



print "system down..."
system.down
system.reset

; hardware setup

; setup of ICD
print "initializing ICD..."
sys.JTAGCLOCK RTCK
System.cpu AT91SAM9260
print "starting JTAG..."
SYStem.Option DACR ON          ; give Debugger global write permissions
SYStem.Option ResBreak OFF     ; hardware dependent (see manual)
SYStem.Option WaitReset ON     ; hardware dependent (see manual)
SYStem.Option BigEndian OFF    ; this demo is in little endian
TrOnchip.Set DABORT OFF        ; used by Linux for page miss!
TrOnchip.Set PABORT OFF        ; used by Linux for page miss!
TrOnchip.Set UNDEF OFF         ; my be used by Linux for FPU detection
SYStem.Option MMU ON           ; enable space ids to virtual addresses
SETUP.IMASKASM OFF          ; lock interrupts while single stepping
print "system up..."
SYStem.Up



; Load Image

print "Loading bootstrap"
d.load.auto &bootstrap 0x200000 /VERIFY   ; load the image that will be executed

print "Starting PC register to bootstrap"
r.s pc 0x200000

print "Starting bootstrap"
go

print "Waiting 10 seconds"
wait 10.s

print "Stopping execution"
break

; Load Image

print "Loading U-Boot" 
d.load.auto &uboot 0x20100000 /VERIFY   ; running u-boot

print "Loading uInstallScript"
d.load.auto &uInstallScript 0x20200000 /VERIFY

print "Loading U-Boot" 
d.load.auto &uboot 0x20300000 /VERIFY   ; flashed u-boot

print "Loading Linux kernel"
d.load.auto &linux 0x20400000 /VERIFY   

print "Loading filesystem"
d.load.auto &filesystem 0x20600000 /VERIFY   

print "Setting PC register to U-Boot"
r.s pc 0x20100000

print "Running U-Boot"
go

wait 20.s

wait 2.s
term.out 0xa
wait 500.ms
term.out "autoscr 0x20200000"
wait 500.ms
term.out 0xa







Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: